9817769fc8d3980f6b76239ff9241ae8bd849b80
[gnulib.git] / ChangeLog
1 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
4         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
5         fails with errno == EBADF when fd is opened with O_PATH.
6         Reported by Jim Meyering in
7         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
8         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
9         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
10
11 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12
13         test-utimens: speed up by taking shorter naps
14         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
15         New functions.
16         (nap): Use them, to do a better job of guessing the delay.
17         On Fedora 17 with ext4 atop md atop hard disks, this made
18         test-utimens run 10x faster, because the test napped for
19         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20         <http://bugs.gnu.org/12820#11>.
21
22 2012-11-07  Jim Meyering  <jim@meyering.net>
23
24         mountlist.c: fix a compilation failure
25         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
26         I introduced while transforming commit v0.0-7683-g613bcb6
27
28 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29
30         errno: port to LynxOS 178 2.2.2
31         Problem reported by Joel Brobecker in
32         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
33         * doc/posix-headers/errno.texi (errno.h): Document this.
34         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36         Supply a string for EILSEQ.
37         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
38
39 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
40
41         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
42         Linux kernel 2.6.39 introduced O_PATH (see
43         <http://lwn.net/Articles/433854/>) and this is a better fallback
44         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
45         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
46         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
47         * lib/fcntl.in.h (O_ACCMODE):
48         * tests/test-fcntl-h.c (main):
49         Do not reject O_ACCMODE merely because it has more than the
50         minimal number of bits, as POSIX allows extensions here.
51
52 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
53
54         mountlist: do not classify a bind-mounted dir entry as "dummy"
55         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
56         the "none"-testing clause.
57         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
58         exception for bind-mounted directories.
59
60 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
61
62         quote: provide a means to escape strings with nul characters
63         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
64         (quote, quote_n): Rename formal arguments for consistency with
65         quotearg.
66
67 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68
69         test-raise: don't assume 199 is an invalid signal
70         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
71
72         sh-quote-tests: port to Solaris 9
73         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
74         Problem reported by Dagobert Michelsen in
75         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
76
77 2012-10-28  Jim Meyering  <jim@meyering.net>
78
79         maint.mk: rename a new configurable variable
80         * top/maint.mk (_gl_translatable_string_re): Rename from
81         translation-markers: _gl_ prefix to insulate from user Makefile code,
82         and the _re suffix to inform that it's a regular expression.
83
84 2012-10-26  Eric Blake  <eblake@redhat.com>
85
86         maint.mk: let packages tweak sc_po_check pattern
87         * top/maint.mk (sc_po_check): Add translation-markers, to allow
88         finding files with other translation markers.
89
90 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91
92         euidaccess: speed up 'configure' on GNU hosts
93         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
94         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
95         it's needed only in this case.  Use AC_CHECK_DECLS, not
96         AC_CHECK_DECLS_ONCE.
97         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
98         or AC_REQUIRE for AC_FUNC_GETGROUPS.
99
100         * lib/regexec.c (re_search_internal): Fix grammar in comment.
101
102 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
103
104         fchmodat, fchownat, fstatat: port to non-inlining compilers
105         Problem reported for FreeBSD 9 by Jim Meyering in
106         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
107         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
108         New files, which define FCHMODAT_INLINE etc.
109         * lib/fchmodat.c (FCHMODAT_INLINE):
110         * lib/fchownat.c (FCHOWNAT_INLINE):
111         * lib/fstatat.c (FSTATAT_INLINE):
112         Remove, as chmodat.c etc. now do this.
113         * modules/fchmodat (Files): Add lib/chmodat.c.
114         * modules/fchownat (Files): Add lib/chownat.c.
115         * modules/fstatat (Files): Add lib/statat.c.
116
117 2012-10-15  Jim Meyering  <jim@meyering.net>
118
119         fchmodat.c, fchownat.c: compile-impeding typos
120         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
121         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
122         Introduced in commit v0.0-7636-gd202279.
123
124 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
125
126         fcntl-h: support GNU flags like O_IGNORE_CTTY
127         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
128         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
129         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
130         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
131         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
132         Define to 0 if not already defined.
133         * tests/test-fcntl-h.c: Test these new flags.
134
135 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
136
137         faccessat, etc.: support AT_FDCWD-only use
138         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
139         this function only if its first argument is AT_FDCWD.
140         Emacs wants faccessat for AT_EACCESS but not for any first-arg
141         values other than AT_FDCWD, so it doesn't want all the openat
142         machinery with fchdir etc.
143         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
144         * modules/fstatat, modules/mkdirat, modules/openat (Files):
145         * modules/unlinkat (Files):
146         Remove lib/openat-priv.h, as at-internal supplies this file.
147         Removing this file here allows us to support programs like Emacs
148         that avoid at-internal.
149
150         faccessat: speed up 'configure' on mainstream hosts
151         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
152         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
153         since it's only on unusual platforms that we need to check for
154         'access', and it's better not to slow 'configure' down on all
155         platforms.
156
157         faccessat: port to Solaris 10
158         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
159         Needed on Solaris 10, which doesn't have AT_EACCESS,
160         so we need the Gnulib fcntl.h, which defines it.
161
162 2012-10-14  Pádraig Brady  <P@draigBrady.com>
163         canonicalize: fix C89 compilation
164         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
165         declarations so C89 is supported.  Also remove the comment
166         referencing memorty allocation as the suggested feature could
167         not be implemented as suggested.
168         Reported by Michael Goffioul.
169
170 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
171
172         group-member: omit unnecessary dependencies
173         This is for Emacs, which has its own allocator and where we
174         don't want to use xalloc.
175         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
176         since we no longer use xmalloc.  Do not include stdbool.h, since
177         the changes below happen to remove the only use of bool.
178         (GROUPBUF_SIZE): New constant.
179         (struct group_info): Remove n_groups member.  Add groupbuf member.
180         This lets us get the groups without using malloc, usually.
181         (free_group_info, get_group_info): Adjust to this.
182         (get_group_info): Return the number of groups found, or -1 on error.
183         Use plain malloc not xmalloc, and treat its failure as if there
184         are no groups, as the user already loses in case of error.
185         (group_member): Simplify, based on changes to get_group_info.
186         * modules/group-member (Depends-on): Remove dependencies on
187         xalloc and stdbool.  Add dependency on xalloc-oversized.
188
189 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
190
191         gethrxtime: port to C++
192         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
193
194 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
195
196         ptsname: fix macro-name typo
197         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
198
199 2012-10-03  Simon Josefsson  <simon@josefsson.org>
200
201         inttostr: Relax license.
202         * modules/inttostr (License): Change from LGPL to LGPLv2+.
203
204 2012-10-03  Eric Blake  <eblake@redhat.com>
205
206         ptsname_r: support ptys returned by FreeBSD posix_openpt
207         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
208         lives in /dev/pts/.
209
210 2012-10-02  Eric Blake  <eblake@redhat.com>
211
212         pselect: reject invalid file descriptors
213         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
214         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
215         * modules/pselect (Depends-on): Add dup2.
216         * doc/posix-functions/pselect.texi (pselect): Document this.
217
218         select: reject invalid file descriptors
219         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
220         * lib/select.c (rpl_select) [!win32]: Work around it.
221         * modules/select (Depends-on): Add dup2.
222         * doc/posix-functions/select.texi (select): Document this.
223
224         select: enhance test
225         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
226         New functions.
227         (test_function): Enhance test.
228         (do_select_bad_fd): Avoid any stale errno values.
229
230         ptsname: reject invalid file descriptors
231         http://www.austingroupbugs.net/view.php?id=503
232         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
234         * modules/stdlib (Makefile.am): Replace witness.
235         * lib/stdlib.in.h (ptsname): Allow for replacement.
236         * modules/ptsname (configure.ac): Trigger replacement.
237         * doc/posix-functions/ptsname.texi (ptsname): Document this.
238
239 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
240
241         hash-pjw-bare: new module
242         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
243         * lib/hash-pjw-bare.h: Likewise.
244         * modules/hash-pjw-bare: New file.
245         * MODULES.html.sh (Misc): Add it.
246
247 2012-10-02  Eric Blake  <eblake@redhat.com>
248
249         manywarnings: cater to more gcc infelicities
250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
251         -Wuninitialized without -O.
252
253 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
254
255         select, poll tests: Make setsockopt invocation effective.
256         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
257         the bind() call.
258         * tests/test-select.h (open_server_socket): Likewise.
259
260 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
261
262         sockets, sys_stat: restore AC_C_INLINE
263         This undoes the 2012-09-22 patch.
264         * m4/sockets.m4 (gl_SOCKETS):
265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
266         Restore AC_C_INLINE, since MSVC requires __inline or _inline
267         and does not support plain 'inline'.  Reported by Bruno Haible in
268         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
269
270 2012-09-30  Bruno Haible  <bruno@clisp.org>
271
272         localeconv tests: Avoid test failure on OpenIndiana.
273         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
274         skip the 'grouping' and 'mon_grouping' tests.
275         Reported by Jim Meyering.
276
277 2012-09-30  Bruno Haible  <bruno@clisp.org>
278
279         havelib: Follow libtool developments.
280         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
281         Suggested by Simon Josefsson.
282
283 2012-09-29  Jim Meyering  <meyering@redhat.com>
284
285         fstatat.c: fix a compile-impeding typo
286         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
287         Introduced in commit v0.0-7636-gd202279.
288         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
289
290 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
291
292         extern-inline: provide a -Wundef safe config.h
293         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
294         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
295         to produce a -Wundef warning free config.h.
296
297 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
298
299         hash-pjw: relax license to LGPLv2+
300         * modules/hash-pjw (License): Relax, with consent of author.
301
302 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
303
304         maint.mk: fix strict vs. lazy variable issues with RELEASE
305         * top/maint.mk (_equal): New function.
306         (member_check): Strip the result to avoid spurious spaces.
307         (url_dir_list): Do not use ifeq, which is strict, as it will
308         require RELEASE_TYPE to be defined.
309         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
310         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
311         (announcement_Cc_alpha,announcement_mail_headers_alpha)
312         (announcement_Cc_beta,announcement_mail_headers_beta)
313         (announcement_Cc_stable,announcement_mail_headers_stable): these.
314         (release): Do not depend on $(release-type), as it forces its
315         evaluation.  Bounce to it.
316
317 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
318
319         maint.mk: formatting changes
320         * top/maint.mk: Indent bodies of if's.
321
322 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
323
324         maint.mk: factor the validation of RELEASE_TYPE
325         With help from Jim Meyering.
326         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
327         * top/maint.mk (_empty, _sp): Move their definition earlier.
328         (member-check, release-type): New.
329         Use the latter instead of $(RELEASE_TYPE).
330         Remove now useless local checks.
331
332 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
333
334         maint.mk: provide "make upload" to ease uploading
335         See
336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
337         Do not depend simply on the current $(VERSION), as there may have been
338         new commits since the tarball generation.  Rather, rely on $(RELEASE),
339         as "make release-commit" already does.
340
341         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
342         "make TYPE".
343
344         * top/maint.mk (upload_command, upload, release): New.
345         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
346         (VERSION): first word of $(RELEASE) is always right.
347         (emit_upload_commands): Adjust.
348         * top/README-release: Update.
349
350 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
351
352         maint.mk: silent rules
353         With help from Stefano Lattarini.
354         * top/maint.mk (writable-files): Use $(AM_V_GEN).
355         (announcement): Use $(AM_V_at).
356
357 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
358
359         localename: port gl_locale_name_thread_unsafe to FreeBSD
360         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
361         and use the simpler FreeBSD implementation on Mac OS X as well.
362         Original idea suggested by Ed Maste in
363         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
364
365 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
366
367         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
368         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
369         * lib/mbuiter.c, lib/xsize.c: New files.
370         * lib/binary-io.h (BINARY_IO_INLINE):
371         * lib/eealloc.h (EEALLOC_INLINE):
372         * lib/mbfile.h (MBFILE_INLINE):
373         * lib/mbiter.h (MBITER_INLINE):
374         * lib/mbuiter.h (MBUITER_INLINE):
375         * lib/xsize.h (XSIZE_INLINE):
376         New macros.
377         Replace all uses of 'static inline' with them.
378         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
379         * m4/eealloc.m4 (gl_EEALLOC):
380         * m4/mbfile.m4 (gl_MBFILE):
381         * m4/mbiter.m4 (gl_MBITER):
382         * m4/xsize.m4 (gl_XSIZE):
383         Do not require AC_C_INLINE.
384         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
385         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
386         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
387         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
388         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
389         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
390         * modules/binary-io, modules/eealloc, modules/mbfile:
391         * modules/mbiter, modules/mbuiter:
392         (Depends-on): Add extern-inline.
393
394         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
395         * lib/pipe-filter-aux.c: New file.
396         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
397         Replace all uses of 'static inline' with it.
398         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
399         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
400         (filter_retcode): No real need for inline here.
401         * modules/pipe-filter-gi, modules/pipe-filter-ii:
402         (Files): Add lib/pipe-filter-aux.c.
403         (Depends-on): Add extern-inline.
404         (configure.ac): Do not require AC_C_INLINE.
405         (lib_SOURCES): Add pipe-filter-aux.c.
406
407         fdutimensat: omit unnecessary AC_C_INLINE
408         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
409
410         fchmodat, fchownat, fstatat: use extern-inline
411         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
412         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
413         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
414         New macros.
415         * lib/openat.h:
416         Replace all uses of 'static inline' with them.
417         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
418         * modules/fchmodat, modules/fchownat, modules/fstatat:
419         * modules/openat-h:
420         (Depends-on):
421         Add extern-inline.
422         (configure.ac): Remove AC_C_INLINE.
423
424         acl, mbchar, priv-set: use extern-inline
425         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
426         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
427         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
428         New macros.
429         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
430         Replace all uses of 'static inline' with it.
431         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
432         * m4/acl.m4 (gl_FUNC_ACL):
433         * m4/mbchar.m4 (gl_MBCHAR):
434         * m4/priv-set.m4 (gl_PRIV_SET):
435         Remove AC_C_INLINE, since 'inline' is no longer used directly.
436         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
437         Add extern-inline.
438
439         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
440         * m4/sockets.m4 (gl_SOCKETS):
441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
442         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
443         environments where it's already guaranteed to work, so we needn't
444         check for it at 'configure'-time.
445
446         tls-tests: omit unnecessary 'inline'
447         * tests/test-tls.c (perhaps_yield): No longer inline.
448         Simplicity and portability trump efficiency in test cases.
449
450         utimens-tests: avoid unnecessary 'inline'
451         * modules/fdutimensat-tests (configure.ac):
452         * modules/futimens-tests (configure.ac):
453         * modules/utimens-tests (configure.ac):
454         * modules/utimensat-tests (configure.ac):
455         Remove AC_C_INLINE.
456         * tests/test-utimens-common.h (ctime_compare):
457         No longer inline.  Simplicity and portability trump efficiency here.
458
459         misc: don't limit commentary to inline functions
460         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
461         * lib/xalloc-oversized.h, lib/xsize.h:
462         Contrast macros to functions in general, not just to inline functions,
463         when the commentary does not apply only to inline functions.
464
465 2012-09-20  Jim Meyering  <meyering@redhat.com>
466
467         non-recursive-gnulib-prefix-hack: new module
468         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
469         the file that originated in Bison.
470         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
471         largely copied from a snippet that resided in bison's configure.ac.
472         * modules/non-recursive-gnulib-prefix-hack: New file.
473         * MODULES.html.sh (Support for maintaining and releasing projects):
474         Add it.
475
476 2012-09-18  Jim Meyering  <meyering@redhat.com>
477
478         maint.mk: generalize _gl_tight_scope for non-recursive make
479         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
480         that *.h would describe additional .h files in the directory
481         specified by $(_gl_TS_dir).  I.e., add this...
482         (_gl_TS_other_headers): New variable.
483
484         maint.mk: exempt trailing blanks found in "binary" files
485         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
486         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
487         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
488
489 2012-09-17  Jim Meyering  <meyering@redhat.com>
490
491         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
492         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
493         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
494         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
495
496 2012-09-17  Jim Meyering  <meyering@redhat.com>
497
498         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
499         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
500         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
501         It is not in the same category as "exit (0)" or "exit (1)", and
502         besides, I know of no symbolic name for that 77.  Reported by
503         Richard W.M. Jones in
504         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
505
506 2012-09-17  Jim Meyering  <meyering@redhat.com>
507
508         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
509         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
510         all uses of #define, not just those that start in column 1.
511         Richard W.M. Jones reported a false positive in
512         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
513
514 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
515
516         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
517         * lib/localcharset.c (locale_charset) [DARWIN7]:
518         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
519         as these two values are incompatible.  Problem reported by Max Horn.
520         For more discussion, please see
521         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
522
523         doc: document sticky-EOF issue
524         * doc/posix-functions/fgetc.texi (fgetc):
525         * doc/posix-functions/fgets.texi (fgets):
526         * doc/posix-functions/fread.texi (fread):
527         * doc/posix-functions/fscanf.texi (fscanf):
528         * doc/posix-functions/getc.texi (getc):
529         * doc/posix-functions/getchar.texi (getchar):
530         * doc/posix-functions/scanf.texi (scanf):
531         Mention that glibc and default Solaris do not conform to
532         C99 and POSIX-2001 or later, with respect to how getchar
533         etc. behave when feof reports nonzero.
534
535 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
536
537         poll: fix poll(0, NULL, msec)
538         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
539         but nfd is 0.  In that case poll should behave like select.
540
541 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
542             Paolo Bonzini <bonzini@gnu.org>
543
544         poll: fix for systems that can't recv() on a non-socket
545         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
546         is readable.  In this case POLLHUP will not be supported.
547         * doc/posix-functions/poll.texi: Document this.
548
549 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
550
551         poll/select: document portability problems not fixed by Gnulib.
552         * doc/posix-functions/poll.texi: poll does not work well on
553         pipes under Windows.  It has the same limitations as select on
554         BeOS.
555         * doc/posix-functions/select.texi: select does not work well
556         on pipes under Windows.
557
558 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
559
560         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
561         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
562         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
563         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
564
565 2012-09-06  Eric Blake  <eblake@redhat.com>
566
567         net_if: give more details about the bug being fixed
568         * doc/posix-headers/net_if.texi: Add clarification.
569
570 2012-09-05  Eric Blake  <eblake@redhat.com>
571
572         net_if: new module
573         * modules/net_if: New module, borrowing ideas from netinet_in.
574         * m4/net_if_h.m4: New file.
575         * lib/net_if.in.h: Likewise.
576         * doc/posix-headers/net_if.texi (net/if.h): Document it.
577         * MODULES.html.sh (lacking POSIX:2008): Likewise.
578         * tests/test-net_if.c: Make function checks conditional.
579         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
580
581 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
582
583         readutmp: fix non-portable UT_PID use
584         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
585         Use `UT_PID (u) > 0' as absolute condition.
586
587 2012-09-04  Jim Meyering  <meyering@redhat.com>
588
589         fts: reduce two or more trailing spaces to just one, usually
590         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
591         or more slashes, trim all but the final one.  But if a name consists
592         solely of two slashes, don't modify it.  If it consists solely of
593         three or more slashes, strip all but one.
594
595         This is part of the solution to a minor problem with rm:
596         it would print a bogus ELOOP diagnostic when failing to remove
597         the slash-decorated name of a symlink-to-directory:
598
599             $ mkdir d && ln -s d s && env rm -r s/
600             rm: cannot remove 's': Too many levels of symbolic links
601
602         With the change below and a trivial don't-trim-trailing-slashes
603         adjustment to remove.c, it does this:
604
605             $ env rm -r s/
606             rm: cannot remove 's/': Not a directory
607
608         Improved by: Eric Blake
609
610         fts: when there is no risk of overlap, use memcpy, not memmove
611         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
612
613 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
614
615         stdbool: be more compatible with mixed C/C++ compiles
616         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
617         Define to bool, true, false, respectively, as GCC's builtin
618         stdbool.h does.  Problem reported by Michael Goffioul in
619         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
620
621 2012-08-28  Jim Meyering  <meyering@redhat.com>
622
623         revert last change: it was not needed
624         * tests/test-vc-list-files-git.sh: There's already a test for
625         a working git, just below.
626
627 2012-08-28  Jim Meyering  <meyering@redhat.com>
628
629         tests: test-vc-list-files-git.sh: skip if git is not available
630         * tests/test-vc-list-files-git.sh: Skip this test when git is
631         not available.
632
633 2012-08-26  Bruno Haible  <bruno@clisp.org>
634
635         gnulib-tool: Remove no-op option --no-changelog.
636         * gnulib-tool (func_usage): Don't mention --no-changelog.
637         (do_changelog): Remove variable.
638         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
639
640 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
641
642         doc: remove fdl-1.2.texi
643         It is no longer used or maintained, and its use of @acronym
644         is problematic.  See the thread containing
645         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
646         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
647         * doc/old-licenses/fdl-1.2.texi: Remove.
648
649         execinfo: port to FreeBSD
650         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
651         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
652         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
653         * modules/execinfo (Link): Add $(LIB_EXECINFO).
654
655 2012-08-23  Jim Meyering  <meyering@redhat.com>
656
657         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
658         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
659         to placate gcc's -Wold-style-declaration.
660
661 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
662
663         doc: do not use @acronym
664         * doc/inet_ntoa.texi (inet_ntoa):
665         * doc/parse-datetime.texi (Seconds since the Epoch)
666         (Specifying time zone rules):
667         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
668         Don't use @acronym.  Problem reported by John Darlington in
669         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
670
671 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
672
673         stdnoreturn: port to newer GCCs
674         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
675         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
676         Problem reported by Jim Meyering in
677         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
678         Also, rename the 'test' function to a void a clash with the
679         already-supplied 'main' function; this fixes a bug that incorrectly
680         rejected GCC 4.7.1's <stdnoreturn.h>.
681         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
682         Document GCC problem.
683
684 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
685
686         pipe-filter: fix comment typo
687         * lib/pipe-filter.h: Mention correct function.
688
689 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
690
691         execinfo: new module
692         This is for Emacs.  Currently, it provides a no-effect stub
693         on all platforms where it does not already work.
694         It already works on glibc-based systems, and on Solaris 11.
695         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
696         New files.
697         * doc/glibc-headers/execinfo.texi (execinfo.h):
698         * MODULES.html.sh (Misc): Document it.
699
700 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
701
702         extern-inline: support old GCC 'inline'
703         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
704         if available.  This applies to GCC versions 2.7 through 4.2, or
705         when newer GCC is using -fgnu89-inline.  The goal is to address
706         some of the performance issues mentioned by Bruno Haible in
707         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
708
709 2012-08-20  Eric Blake  <eblake@redhat.com>
710
711         maint.mk: avoid redundant file name in message
712         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
713         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
714         (sc_makefile_path_separator_check): Remove bogus $(ME).
715
716 2012-08-20  Mike Frysinger <vapier@gentoo.org>
717
718         timer-time: fix link order when static linking on glibc
719         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
720         _after_ -lrt so that it's significant.
721
722 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
723
724         timespec: omit unnecessary AC_C_INLINE
725         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
726
727         stat-time: omit unnecessary AC_C_INLINE
728         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
729         Do not require AC_C_INLINE.
730
731         ignore-value: omit unnecessary AC_C_INLINE
732         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
733
734         sys_select: avoid 'static inline'
735         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
736
737         mktime: avoid 'static inline'
738         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
739         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
740
741 2012-08-19  Bruno Haible  <bruno@clisp.org>
742
743         gnulib-tool: Improve coding style.
744         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
745         func_emit_lib_Makefile_am.
746         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
747
748 2012-08-19  Bruno Haible  <bruno@clisp.org>
749
750         gnulib-tool: Fix indentation.
751         * gnulib-tool (func_import): Fix indentation.
752
753 2012-08-19  Bruno Haible  <bruno@clisp.org>
754
755         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
756         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
757         on the list of removed files.
758
759 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
760
761         test-parse-datetime: avoid glibc leap-second glitch
762         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
763         with the 2012 rules.  Problem reported by Bruce Dubbs in
764         <http://bugs.gnu.org/12206>.
765
766 2012-08-14  Bruno Haible  <bruno@clisp.org>
767
768         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
769         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
770         from argument.
771         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
772
773 2012-08-14  Eric Blake  <eblake@redhat.com>
774
775         ldexp: relax license
776         * modules/ldexp (License): Trivial relax, since the module only
777         provides a permissively licensed m4 file.
778
779 2012-08-13  Bruno Haible  <bruno@clisp.org>
780
781         gnulib-tool: Fix persistence of --witness-c-macro option.
782         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
783         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
784
785 2012-08-11  Eric Blake  <eblake@redhat.com>
786
787         count-leading-zeros: use a lookup table on non-gcc compilers
788         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
789         alternate implementation, suggested by Jim Meyering.
790
791 2012-08-10  Eric Blake  <eblake@redhat.com>
792
793         count-leading-zeros: new module
794         * modules/count-leading-zeros: New module.
795         * m4/count-leading-zeros.m4: New file.
796         * lib/count-leading-zeros.h: Likewise.
797         * modules/count-leading-zeros-tests: New test.
798         * tests/test-count-leading-zeros.c: New file.
799         * MODULES.html.sh (Integer arithmetic functions): Document it.
800
801 2012-08-07  Simon Josefsson  <simon@josefsson.org>
802             Jim Meyering  <meyering@redhat.com>
803
804         maintainer-makefile: Fix syntax error with dash.
805         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
806         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
807
808 2012-08-05  Jim Meyering  <meyering@redhat.com>
809
810         extern-inline: also ignore -Wmissing-declarations
811         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
812         required with gcc-4.8.0-to-be.
813
814         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
815         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
816         for /error ?([^,]*)/.  This avoids false-positives for strings like
817         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
818
819 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
820
821         gnumakefile: better interaction with Automake-NG
822         * modules/gnumakefile [Makefile.am]: The makefiles generated by
823         Automake-NG always contain a definition of VPATH, even in non-VPATH
824         builds (its value being simply '.' in that case).  So, in the
825         'clean-GNUmakefile' rule, to determine whether running under a
826         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
827         '$(VPATH)' expands to the empty string.
828
829 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
830
831         base64: Use extern C scope in header file, for C++.
832         * lib/base64.h: Add C++ namespace protection.
833
834 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
835
836         stat-time, timespec, u64: support naive out-of-dir builds
837         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
838         Use '#include "foo.h"', not '#include <foo.h>', when including
839         one's own interface.  This works better when configuring with
840         out-of-directory builds, since packages need not add an
841         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
842
843 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
844
845         utimens: use extern-inline
846         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
847         * lib/utimens.h: Add copyright notice, since this is now large enough
848         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
849         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
850         * modules/utimens (Depends-on): Add extern-inline.
851
852         u64: use extern-inline
853         * lib/u64.c: New file.
854         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
855         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
856         * modules/u64 (Files): Add lib/u64.c.
857         (Depends-on): Add extern-inline.
858         (configure.ac): No need to require AC_C_INLINE, since extern-inline
859         does that now.
860         (lib_SOURCES): Add u64.c.
861
862         timespec: use extern-inline
863         * lib/timespec.c: New file.
864         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
865         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
866         * modules/timespec (Files): Add lib/timespec.c.
867         (Depends-on): Add extern-inline.
868         (lib_SOURCES): Add timespec.c.
869
870         stat-time: use extern-inline
871         * lib/stat-time.c: New file.
872         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
873         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
874         * modules/stat-time (Files): Add lib/stat-time.c.
875         (Depends-on): Add extern-inline.
876         (lib_SOURCES): Add stat-time.c.
877
878         extern-inline: new module
879         * modules/extern-inline, m4/extern-inline.m4: New files.
880         This is for better support of 'extern inline' a la ISO C99,
881         with a portable alternative on compilers that do not support
882         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
883         of the Emacs executable, when compiled with debugging disabled,
884         which is a typical way that Emacs is built while developing.
885
886 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
887
888         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
889         * build-aux/do-release-commit-and-tag: Move variable definitions
890         together.
891         ($branch): Instead of defaulting to "master", default to the current
892         branch (as gnu-web-doc-update does).
893         (help): Display the current values of the option arguments.
894         * top/maint.mk (release-commit): New.
895         * top/README-release: Simplify the corresponding step.
896
897 2012-07-30  Eric Blake  <eblake@redhat.com>
898
899         passfd: fix comment on recvfd
900         * lib/passfd.c (recvfd): Fix comment.
901         Reported by Jann Horn <jannhorn@googlemail.com>.
902
903 2012-07-30  Jim Meyering  <meyering@redhat.com>
904
905         maint.mk: avoid a sub-shell
906         * top/maint.mk (release-prep): Remove unneeded sub-shell.
907
908 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
909
910         maint.mk: use silent-rules support from Automake
911         * top/maint.mk (news-check, vc-diff-check, announcement)
912         (no-submodule-changes, alpha beta stable, release-prep)
913         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
914
915 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
916
917         maint.mk: provide a web-manual-update target
918         * top/maint.mk: here.
919         * top/README-release: Use it to simplify the web manual update step.
920
921 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
922
923         README-release: shorten the circuit to post a news
924         * top/README-release: Point directly to the news submission form.
925
926 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
927
928         gnu-web-doc-update: fix --help
929         * build-aux/gnu-web-doc-update: The information "top level" was written
930         twice.
931
932 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
933
934         maint.mk: absolute VPATH issue
935         * top/maint.mk (release-prep): Help Git find .git/.
936         From Jim Meyering.
937
938 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
939
940         gitlog-to-changelog: fix previous change
941         * build-aux/gitlog-to-changelog: Fix condition.
942         Add missing ";".
943
944 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
945
946         gitlog-to-changelog: don't expect .git to be in $srcdir
947         Reported by Bruno Haible.
948         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
949         * build-aux/gitlog-to-changelog (&git_dir_option): New.
950         Use it.
951
952 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
953
954         maint.mk: absolute VPATH build fix
955         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
956         $(srcdir) is not a parent of $(builddir).
957
958 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
959
960         clean-temp: Fix memory leak.
961         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
962         'files' members of tmpdir.
963
964 2012-07-27  Jim Meyering  <meyering@redhat.com>
965
966         maint.mk: new rule: refresh-gnulib-patches
967         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
968         Use this rule to refresh them.
969         * top/maint.mk (refresh-gnulib-patches): New rule.
970
971 2012-07-24  Bruno Haible  <bruno@clisp.org>
972
973         gnulib-tool: Fix handling of inctests variable.
974         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
975         Reported by Nick Bowler <nbowler@elliptictech.com>.
976
977 2012-07-22  Bruno Haible  <bruno@clisp.org>
978
979         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
980         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
981         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
982         Remove exemption for getpass.h.
983         Suggested by Eric Blake.
984
985 2012-07-20  Eric Blake  <eblake@redhat.com>
986
987         verify: document conflict with -Wnested-externs
988         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
989
990         maint.mk: forbid exit(-1)
991         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
992
993 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
994
995         fsusage: port back to Solaris
996         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
997         error (fsd not declared) on Solaris 10.  Reported privately by
998         Andrew Borodin.
999
1000 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1001
1002         gnu-web-doc-update: fix error messages
1003         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1004
1005         gnu-web-doc-update: check the requirements.
1006         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1007         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1008         * build-aux/bootstrap (find_tool): Comment change.
1009
1010 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1011
1012         maint.mk: minor simplication.
1013         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1014         for default values.
1015
1016 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1017
1018         gitlog-to-changelog: VPATH build issues
1019         If builddir is not a subdirectory of srcdir, running git from it will
1020         fail.
1021         * build-aux/gitlog-to-changelog (--srcdir): New option.
1022
1023 2012-07-15  Bruno Haible  <bruno@clisp.org>
1024
1025         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1026         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1027         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1028         Remove exemption for fpending.h.
1029         Suggested by Eric Blake.
1030
1031 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1032
1033         pthread_sigmask: fix bug on FreeBSD 9
1034         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1035         Include string.h.
1036         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1037         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1038         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1039         but pthread_sigmask (1729, NULL, NULL) returns zero.
1040         See <http://bugs.gnu.org/11884>.
1041         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1042         by inspecting whether the main call changed the old mask.
1043
1044 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1045
1046         README-release: make it more legible
1047         * top/README-release: Improve typography slightly.
1048
1049 2012-07-15  Jim Meyering  <meyering@redhat.com>
1050
1051         maint: require that each sc_... command start with "@"
1052         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1053         "make sc_maint" helps us avoid this nit.
1054
1055 2012-07-15  Jim Meyering  <meyering@redhat.com>
1056
1057         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1058         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1059
1060 2012-07-13  Eric Blake  <eblake@redhat.com>
1061
1062         maint.mk: new syntax check for HAVE_DECL checks
1063         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1064         * cfg.mk
1065         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1066         Exempt some false positives.
1067         Based on a report by Karel Zak.
1068
1069         argp: make HAVE_DECL usage consistent
1070         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1071         macros, not whether they are defined.
1072         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1073         convention with other declaration checks.
1074         Reported by Karel Zak, with suggestions from Paul Eggert.
1075
1076         stat-time: relax license to LGPLv2+
1077         * modules/stat-time (License): Relax, with consent of all authors.
1078
1079         strndup: fix m4 usage error
1080         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1081         defined, to either 0 or 1.
1082         Reported by Karel Zak.
1083
1084 2012-07-11  Jim Meyering  <meyering@redhat.com>
1085
1086         maint: enable the sc_avoid_if_before_free syntax-check rule
1087         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1088         (if_before_free_offenders_): Define.
1089         (if_before_free_basename_re_): Define.
1090         Exempt current files with useless if-before-free.
1091
1092 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1093
1094         gettext: do not assume '#define ... defined ...' behavior
1095         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1096         Do not use '#define FOO ... defined BAR ...', as the C standard says
1097         it's not portable to expect that this works after macro expansion.
1098         Problem reported for gzip by Steven M. Schweda in
1099         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1100
1101 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1102
1103         getloadavg: clean out old Emacs and Autoconf cruft
1104         See Glenn Morris in <http://bugs.gnu.org/11905>.
1105         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1106         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1107         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1108         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1109
1110 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1111
1112         bootstrap: let warn be like tests/init.sh's warn_
1113         Reported by Jim Meyering.
1114         * build-aux/bootstrap (warn): Remove, replaced by...
1115         (warnf_, warn_): these.
1116         Adjust callers.
1117         Shorten messages that no longer fit in 80 columns.
1118
1119 2012-07-09  Bruno Haible  <bruno@clisp.org>
1120
1121         getopt: Simplify after Emacs changed.
1122         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1123         (gl_GETOPT_IFELSE): Remove macro.
1124
1125 2012-07-09  Jim Meyering  <meyering@redhat.com>
1126
1127         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1128         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1129
1130         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1131         Bugs in both of those conspired to make the
1132         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1133         _sc_search_regexp's handling of non-empty $in_files would filter
1134         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1135         choice of in_files value meant there would be no match in most
1136         projects, due to the presence of two or more Makefile.in files.
1137         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1138         Fix a bug in how a non-empty $$in_files was processed:
1139         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1140         in spite of the name, it's a regexp, not a list of file names.
1141
1142 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         getloadavg, getopt: fix commentary re configure.in
1145         Autoconf is deprecating the name 'configure.in', so change it to
1146         to the new name 'configure.ac' in a couple of places.
1147         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1148         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1149         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1150         Emacs has renamed it to configure.ac, and it no longer refers
1151         to these macros anyway.
1152
1153         timespec: mark functions with const attributes
1154         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1155         Mark with _GL_ATTRIBUTE_CONST.
1156
1157 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1158
1159         canonicalize[-lgpl]: handle "guessing" values when cross-building
1160         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1161         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1162         matches "*yes" instead of just "yes".  Regression introduced in commit
1163         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1164
1165 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1166             Bruno Haible  <bruno@clisp.org>
1167
1168         canonicalize: make the right guess when cross-compiling to GNU
1169         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1170         determine whether cross-compiling to glibc systems, so as to
1171         include GNU/Hurd.
1172
1173 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1174
1175         timespec-sub: avoid duplicate include
1176         * lib/timespec-sub.c: Do not include <config.h> twice.
1177         Reported by Juanma Barranquero.
1178
1179 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1180
1181         bootstrap: use a more consistent error reporting scheme
1182         * build-aux/bootstrap (warn, die): New.
1183         Use them.
1184
1185 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         sys_time: allow too-wide tv_sec
1188         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1189         timeval even if tv_sec is wider than time_t.  This allows
1190         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1191         as without this patch gnulib replaces struct timeval
1192         and OpenBSD futimes therefore has a type mismatch.
1193         * doc/posix-headers/sys_time.texi: Mention this.
1194
1195         pthread: check for both pthread_create and pthread_join
1196         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1197         alter the check so that it tests for both pthread_create and
1198         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1199         Suggested by Bruno Haible and Richard Yao in
1200         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1201
1202         parse-datetime: doc tuneup
1203         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1204         spacing issues.
1205
1206 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1207
1208         do-release-commit-and-tag: fix the previous commit
1209         * build-aux/do-release-commit-and-tag: Actually the test was right,
1210         but the comment and the error message were misleading.
1211         Fix comment, and improve error message.
1212         Perform check first, so that NEWS is not modified uselessly.
1213
1214         do-release-commit-and-tag: fix typo
1215         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1216         _not_ start with a stub.
1217
1218 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1219
1220         pthread: check for pthread_create, not pthread_join
1221         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1222         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1223         pthread_join in libc.  I hope this removes the need for all the
1224         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1226
1227 2012-07-04  Jim Meyering  <meyering@redhat.com>
1228
1229         parse-datetime: fix failure to diagnose invalid input
1230         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1231         rather than diagnosing the invalid input.  Now it reports this:
1232         date: invalid date '\260'
1233         * lib/parse-datetime.y (to_uchar): Define.
1234         (yylex): Don't sign-extend "other" bytes.
1235         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1236         Thanks to Bruno Haible for the patch to this file.
1237         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1238         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1239
1240 2012-07-03  Jim Meyering  <meyering@redhat.com>
1241
1242         bootstrap: do not require now-removed build-aux/missing
1243         Now that build-aux/missing is, er, missing, bootstrap would
1244         silently fail.
1245         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1246         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1247         no longer part of gnulib.
1248         Diagnose the failure.
1249
1250 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1251
1252         alloca: add support for HP NonStop TNS/E native
1253         * lib/alloca.in.h (alloca): Support the new host.
1254         From a suggestion by Joachim Schmitz in
1255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1256
1257 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1258
1259         fsusage: remove code not needed on non GNU/Linux systems.
1260
1261         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1262         Don't include headers no longer needed in this case.
1263         * lib/fsusage.c [STAT_STATVFS &&
1264         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1265         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1266
1267 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1268
1269         fsusage: include files needed for glibc 2.6 fallback
1270         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1271         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1272         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1273         Problem reported by Ludovic Courtès in
1274         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1275
1276         fsusage: avoid needless check on GNU/Linux
1277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1278         on GNU/Linux systems, since it can't possibly work.
1279
1280 2012-07-01  Bruno Haible  <bruno@clisp.org>
1281
1282         log: Fix an autoconf >= 2.64 warning.
1283         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1284         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1285
1286 2012-06-28  Bruno Haible  <bruno@clisp.org>
1287
1288         log10f: Fix possible configuration problem.
1289         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1290         $LOGF_LIBM.
1291         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1292
1293 2012-06-28  Bruno Haible  <bruno@clisp.org>
1294
1295         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1296         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1297         not gl_cv_func_unlink_works.
1298         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1299
1300 2012-06-27  Eric Blake  <eblake@redhat.com>
1301
1302         config: drop scripts that automake says are not independent
1303         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1304         * build-aux/elisp-comp: Delete.
1305         * build-aux/missing: Likewise.
1306         * build-aux/ylwrap: Likewise.
1307         * modules/elisp-comp: Likewise.
1308         * MODULES.html.sh: Drop mention of elisp-comp.
1309         * NEWS: Mention this.
1310
1311 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1312
1313         root-uid: new module
1314         This is for portability to Tandem's NonStop Kernel.
1315         * lib/root-uid.h, modules/root-uid: New files.
1316         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1317         * lib/write-any-file.c, tests/test-sethostname2.c:
1318         Include "root-uid.h".
1319         * lib/euidaccess.c (euidaccess):
1320         * lib/pt_chown.c (main):
1321         * lib/unlinkdir.c (cannot_unlink_dir):
1322         * lib/write-any-file.c (can_write_any_file):
1323         * m4/mknod.m4 (gl_FUNC_MKNOD):
1324         * tests/test-sethostname2.c (geteuid, main):
1325         Don't assume ROOT_UID == 0.
1326         * modules/euidaccess (Depends-on):
1327         * modules/pt_chown (Depends-on):
1328         * modules/sethostname-tests (Depends-on):
1329         * modules/unlinkdir (Depends-on):
1330         * modules/write-any-file (Depends-on):
1331         Add root-uid.
1332
1333         regex: use locale-independent comparison for codeset name
1334         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1335         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1336         for codeset name.
1337         * lib/regex_internal.h: Do not include <strings.h>, since we
1338         no longer use strcasecmp.
1339         * modules/regex (Depends-on): Remove strcase.
1340
1341 2012-06-23  Bruno Haible  <bruno@clisp.org>
1342
1343         getopt-posix: No longer guarantee that option processing is resettable.
1344         * doc/posix-functions/getopt.texi: Drop description of problem with
1345         internal state. Fix info about mingw and msvc9.
1346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1347         option processing by getopt(). Run three test programs instead of one.
1348         Simplify cross-compilation guess.
1349         * NEWS: Mention the change.
1350         Reported by Rich Felker <dalias@aerifal.cx>.
1351
1352 2012-06-26  Bruno Haible  <bruno@clisp.org>
1353
1354         argp, regex: Ensure strcasecmp gets declared.
1355         * lib/argp-help.c: Include <strings.h>.
1356         * lib/regex_internal.h: Likewise.
1357         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1358
1359 2012-06-24  Bruno Haible  <bruno@clisp.org>
1360
1361         ptsname_r: Make it consistent with ptsname on AIX.
1362         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1363         implementation as for OSF/1.
1364         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1365         a pty master.
1366
1367         ptsname_r: Make it consistent with ptsname on OSF/1.
1368         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1369         OSF/1.
1370
1371 2012-06-24  Bruno Haible  <bruno@clisp.org>
1372
1373         ttyname_r: Fix result on OSF/1, Solaris.
1374         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1375
1376 2012-06-24  Bruno Haible  <bruno@clisp.org>
1377
1378         ptsname_r: Add support for Solaris.
1379         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1380         Solaris.
1381
1382         ptsname_r: Fix test failure on native Windows.
1383         * modules/ptsname_r (Depends-on): Add isatty.
1384
1385         ptsname_r: Fix test failures on IRIX, Solaris.
1386         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1387         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1388         accordingly.
1389         * lib/ptsname_r.c: Include <fcntl.h>.
1390         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1391         set errno if fd is invalid.
1392         * tests/test-isatty.c (main): Update comments.
1393
1394 2012-06-24  Bruno Haible  <bruno@clisp.org>
1395
1396         ptsname test: Extend test.
1397         * tests/test-ptsname.c: Include <errno.h>.
1398         (main): Test behaviour with invalid file descriptor.
1399
1400 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         time: fix obsolete comment
1403         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1404         reference to HAVE_STRUCT_TIMESPEC in comment.
1405
1406 2012-06-23  Bruno Haible  <bruno@clisp.org>
1407
1408         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1410         does not handle abbreviated long options with equivalent
1411         disambiguations, set gl_replace_getopt to yes.
1412         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1413
1414 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         time_r: fix typo that always overrode localtime_r decl
1417         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1418         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1419         not in a standard include.
1420
1421 2012-06-22  Bruno Haible  <bruno@clisp.org>
1422
1423         Write "Mac OS X" instead of "MacOS X".
1424         * README: Write "Mac OS X" instead of "MacOS X".
1425         * build-aux/bootstrap: Likewise.
1426         * build-aux/install-reloc: Likewise.
1427         * lib/acl-internal.h: Likewise.
1428         * lib/acl_entries.c: Likewise.
1429         * lib/argp-ba.c: Likewise.
1430         * lib/argp-pv.c: Likewise.
1431         * lib/config.charset: Likewise.
1432         * lib/copy-acl.c: Likewise.
1433         * lib/csharpexec.c: Likewise.
1434         * lib/euidaccess.c: Likewise.
1435         * lib/fbufmode.c: Likewise.
1436         * lib/fflush.c: Likewise.
1437         * lib/file-has-acl.c: Likewise.
1438         * lib/filemode.h: Likewise.
1439         * lib/fpurge.c: Likewise.
1440         * lib/freadable.c: Likewise.
1441         * lib/freadahead.c: Likewise.
1442         * lib/freading.c: Likewise.
1443         * lib/freadptr.c: Likewise.
1444         * lib/freadseek.c: Likewise.
1445         * lib/fseeko.c: Likewise.
1446         * lib/fseterr.c: Likewise.
1447         * lib/fsusage.c: Likewise.
1448         * lib/fwritable.c: Likewise.
1449         * lib/fwriting.c: Likewise.
1450         * lib/get-rusage-as.c: Likewise.
1451         * lib/get-rusage-data.c: Likewise.
1452         * lib/getdomainname.c: Likewise.
1453         * lib/idpriv-drop.c: Likewise.
1454         * lib/idpriv-droptemp.c: Likewise.
1455         * lib/localcharset.c: Likewise.
1456         * lib/locale.in.h: Likewise.
1457         * lib/localename.c: Likewise.
1458         * lib/mbsrtowcs-state.c: Likewise.
1459         * lib/nproc.c: Likewise.
1460         * lib/passfd.c: Likewise.
1461         * lib/posix_openpt.c: Likewise.
1462         * lib/printf-parse.c: Likewise.
1463         * lib/progreloc.c: Likewise.
1464         * lib/safe-read.h: Likewise.
1465         * lib/safe-write.h: Likewise.
1466         * lib/sched.in.h: Likewise.
1467         * lib/set-mode-acl.c: Likewise.
1468         * lib/signal.in.h: Likewise.
1469         * lib/stdint.in.h: Likewise.
1470         * lib/stdio-impl.h: Likewise.
1471         * lib/stdlib.in.h: Likewise.
1472         * lib/strtod.c: Likewise.
1473         * lib/sys_select.in.h: Likewise.
1474         * lib/tcgetsid.c: Likewise.
1475         * lib/unistd.in.h: Likewise.
1476         * lib/unlockpt.c: Likewise.
1477         * lib/vasnprintf.c: Likewise.
1478         * lib/vma-iter.c: Likewise.
1479         * lib/wcsrtombs-state.c: Likewise.
1480         * m4/acl.m4: Likewise.
1481         * m4/acosl.m4: Likewise.
1482         * m4/asinl.m4: Likewise.
1483         * m4/atanl.m4: Likewise.
1484         * m4/c-stack.m4: Likewise.
1485         * m4/cosl.m4: Likewise.
1486         * m4/expl.m4: Likewise.
1487         * m4/extensions.m4: Likewise.
1488         * m4/fdatasync.m4: Likewise.
1489         * m4/fmal.m4: Likewise.
1490         * m4/frexp.m4: Likewise.
1491         * m4/frexpf.m4: Likewise.
1492         * m4/frexpl.m4: Likewise.
1493         * m4/fsusage.m4: Likewise.
1494         * m4/getdomainname.m4: Likewise.
1495         * m4/getloadavg.m4: Likewise.
1496         * m4/getopt.m4: Likewise.
1497         * m4/gettext.m4: Likewise.
1498         * m4/gnulib-common.m4: Likewise.
1499         * m4/intdiv0.m4: Likewise.
1500         * m4/intlmacosx.m4: Likewise.
1501         * m4/largefile.m4: Likewise.
1502         * m4/ldexpl.m4: Likewise.
1503         * m4/link-follow.m4: Likewise.
1504         * m4/locale-ar.m4: Likewise.
1505         * m4/locale-fr.m4: Likewise.
1506         * m4/locale-ja.m4: Likewise.
1507         * m4/locale-tr.m4: Likewise.
1508         * m4/locale-zh.m4: Likewise.
1509         * m4/locale_h.m4: Likewise.
1510         * m4/lock.m4: Likewise.
1511         * m4/logl.m4: Likewise.
1512         * m4/mathfunc.m4: Likewise.
1513         * m4/minus-zero.m4: Likewise.
1514         * m4/mktime.m4: Likewise.
1515         * m4/mmap-anon.m4: Likewise.
1516         * m4/multiarch.m4: Likewise.
1517         * m4/nanosleep.m4: Likewise.
1518         * m4/nocrash.m4: Likewise.
1519         * m4/poll.m4: Likewise.
1520         * m4/printf-frexpl.m4: Likewise.
1521         * m4/printf.m4: Likewise.
1522         * m4/signbit.m4: Likewise.
1523         * m4/sinl.m4: Likewise.
1524         * m4/sqrtl.m4: Likewise.
1525         * m4/strerror_r.m4: Likewise.
1526         * m4/tanl.m4: Likewise.
1527         * m4/threadlib.m4: Likewise.
1528         * m4/ttyname_r.m4: Likewise.
1529         * m4/unlink.m4: Likewise.
1530         * m4/visibility.m4: Likewise.
1531         * m4/wcwidth.m4: Likewise.
1532         * tests/minus-zero.h: Likewise.
1533         * tests/test-alloca-opt.c: Likewise.
1534         * tests/test-copy-acl.sh: Likewise.
1535         * tests/test-copy-file.sh: Likewise.
1536         * tests/test-fdatasync.c: Likewise.
1537         * tests/test-file-has-acl.sh: Likewise.
1538         * tests/test-flock.c: Likewise.
1539         * tests/test-fsync.c: Likewise.
1540         * tests/test-localename.c: Likewise.
1541         * tests/test-malloca.c: Likewise.
1542         * tests/test-nonblocking-pipe.h: Likewise.
1543         * tests/test-nonblocking-socket.h: Likewise.
1544         * tests/test-openpty.c: Likewise.
1545         * tests/test-posix_openpt.c: Likewise.
1546         * tests/test-ptsname.c: Likewise.
1547         * tests/test-ptsname_r.c: Likewise.
1548         * tests/test-sameacls.c: Likewise.
1549         * tests/test-select.h: Likewise.
1550         * tests/test-set-mode-acl.sh: Likewise.
1551         * tests/test-snprintf-posix.h: Likewise.
1552         * tests/test-sprintf-posix.h: Likewise.
1553         * tests/test-strtod.c: Likewise.
1554         * tests/test-time.c: Likewise.
1555         * tests/test-vasnprintf-posix.c: Likewise.
1556         * tests/test-vasprintf-posix.c: Likewise.
1557         * doc/acl-resources.txt: Likewise.
1558         * doc/**/*.texi: Likewise.
1559         Reported by Max Horn <max@quendi.de>.
1560
1561 2012-06-22  Bruno Haible  <bruno@clisp.org>
1562
1563         grantpt: Relax requirement regarding invalid file descriptors.
1564         * lib/grantpt.c: Don't include <fcntl.h>.
1565         (grantpt): Don't verify the validity of the file descriptor.
1566         * modules/grantpt (Depends-on): Remove fcntl-h.
1567         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1568         file descriptors.
1569         * doc/posix-functions/grantpt.texi: Document more platforms on which
1570         grantpt succeeds for invalid file descriptors.
1571         Reported by Rich Felker <dalias@aerifal.cx>.
1572
1573 2012-06-22  Bruno Haible  <bruno@clisp.org>
1574
1575         fbufmode test: Don't test unportable behaviour.
1576         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1577         (main): Invoke it three times.
1578         Reported by Szabolcs Nagy <nsz@port70.net>
1579         and Rich Felker <dalias@aerifal.cx>.
1580
1581 2012-06-21  Bruno Haible  <bruno@clisp.org>
1582
1583         gnulib-tool: Refactor inctests variable.
1584         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1585         (func_modules_transitive_closure,
1586         func_modules_transitive_closure_separately,
1587         func_import, func_create_testdir): Update.
1588
1589         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1590         * gnulib-tool: Accept option --without-tests.
1591         (func_usage): Document --without-tests option. Rearrange.
1592         (inctests): Normalize according to the mode.
1593         * NEWS: Mention the change.
1594         Suggested by Simon Josefsson.
1595
1596 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1597
1598         parse-duration test: Avoid spurious output.
1599         * tests/test-parse-duration.sh: Reindent with leading tabs.
1600
1601 2012-06-21  Jim Meyering  <meyering@redhat.com>
1602
1603         maint: disable the strncpy prohibition
1604         * cfg.mk: Do not prohibit strncpy here.
1605
1606 2012-06-21  Bruno Haible  <bruno@clisp.org>
1607
1608         nonblocking: Avoid compilation error on mingw64.
1609         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1610         fscanf.
1611         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1612         * modules/vfscanf (configure.ac): Likewise.
1613         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1614         definition only if stdio.h has prepared it.
1615         Reported by Daniel P. Berrange <berrange@redhat.com>.
1616
1617 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1618
1619         gnulib-tool: Use readlink if it is available.
1620         * gnulib-tool (func_readlink): Choose function more appropriately.
1621
1622 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1623
1624         posixtm-tests: port to buggy compiler
1625         Problem reported by Simon Josefsson in
1626         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1627         * modules/posixtm-tests (Depends-on): Add stdint.
1628         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1629         Now of type int_least64_t, not int64_t, both because that's
1630         what INT64_C returns and because int_least64_t works even
1631         on 72-bit hosts.
1632         (T): Use INT64_C on constants outside the traditional int range,
1633         to work around compiler bug noted by Simon.
1634
1635         mktime: fix integer overflow in 'configure'-time test
1636         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1637         after integer overflow.  Problem reported by Rich Felker in
1638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1639         Also, don't look for further instances of a bug if we've already
1640         found one instance; this helps 'configure' run faster.
1641
1642 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1643
1644         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1645         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1646         GetVersionEx correctly.
1647         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1648
1649 2012-06-20  Bruno Haible  <bruno@clisp.org>
1650
1651         fdopen: Allow implementations that don't reject invalid fd arguments.
1652         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1653         succeeds.
1654         Reported by Rich Felker <dalias@aerifal.cx>.
1655
1656 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1657
1658         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1659         bring in LIBINTL.
1660
1661 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         init.sh: do not rely on autoupated PWD
1664         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1665         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1666         Although Nelson's bug was not necessarily fixed by this patch,
1667         it seems wise to make the change for safety.
1668         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1669         automagically after 'cd'; this is not reliable on older shells.
1670         (setup_): Fail if we cannot cd to temporary directory.
1671
1672 2012-06-19  Bruno Haible  <bruno@clisp.org>
1673
1674         stat, fstat: Avoid warnings on mingw64.
1675         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1676         redefining.
1677         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1678         Reported by Daniel P. Berrange <berrange@redhat.com>.
1679
1680 2012-06-19  Bruno Haible  <bruno@clisp.org>
1681
1682         stdioext: Add support for musl libc.
1683
1684         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1685         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1686
1687         * m4/fseterr.m4: New file.
1688         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1689         function exists.
1690         * modules/fseterr (Files): Add m4/fseterr.m4.
1691         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1692         __fseterr does not exist.
1693         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1694
1695         * lib/freadable.h: Update comment.
1696
1697         * lib/fwritable.h: Update comment.
1698
1699         * lib/freading.h: Update comment.
1700
1701         * lib/fwriting.h: Update comment.
1702
1703         * m4/freadahead.m4: New file.
1704         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1705         that function exists.
1706         * modules/freadahead (Files): Add m4/freadahead.m4.
1707         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1708         __freadahead does not exist.
1709         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1710
1711         * m4/freadptr.m4: New file.
1712         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1713         function exists.
1714         * modules/freadptr (Files): Add m4/freadptr.m4.
1715         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1716         __freadptr does not exist.
1717         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1718
1719         * m4/freadseek.m4: New file.
1720         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1721         exists.
1722         * modules/freadseek (Files): Add m4/freadseek.m4.
1723         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1724
1725         * lib/fpurge.c (fpurge): Update comment.
1726
1727         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1728
1729 2012-06-19  Bruno Haible  <bruno@clisp.org>
1730
1731         *printf-posix: Put more info into config.log.
1732         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1733         exit code into config.log.
1734
1735 2012-06-19  Bruno Haible  <bruno@clisp.org>
1736
1737         getopt-gnu: Fix exit code overflow in autoconf test.
1738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1739         to keep them below < 128.
1740
1741 2012-06-17  Jim Meyering  <meyering@redhat.com>
1742
1743         maint.mk: fix typo in code to derive GPG key at release time
1744         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1745
1746 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         regex: avoid warning when pointers are not long
1749         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1750         and uintptr_t, not long, for portability to hosts where pointers and
1751         long have different sizes.  Issue noted by Daniel P. Berrange in
1752         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1753         and fix suggested by Bruno Haible in
1754         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1755
1756 2012-06-17  Bruno Haible  <bruno@clisp.org>
1757
1758         dummy: Relicense into the public domain.
1759         * modules/dummy (License): Set to "public domain".
1760         Suggested by Reuben Thomas.
1761
1762 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1763
1764         announce-gen: VPATH issues
1765         * build-aux/announce-gen (--srcdir): New option, used to trim the
1766         $srcdir part of the path from $builddir to NEWS.
1767         * top/maint.mk (announcement): Adjust.
1768
1769 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1770
1771         gnu-web-doc-update: VPATH builds
1772         * build-aux/gnu-web-doc-update (--builddir): New option.
1773         Revamp the handling of options.
1774         Prefer $(...) to `...`.
1775         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1776         the template, and it is GNU mktemp specific.
1777         Prefer set -e to long series of &&.
1778         Restore the initial git branch, not "master".
1779         Properly initialize submodules (don't rely only on bootstrap).
1780         Do not reconfigure blindly, use config.status.
1781         * top/README-release: Update instructions for gnu-web-doc-update.
1782
1783 2012-06-11  Jim Meyering  <meyering@redhat.com>
1784
1785         maint.mk: revert most of the previous change re "all these"
1786         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1787         For rationale, see the discussion at
1788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1789
1790 2012-06-10  Karl Berry  <karl@gnu.org>
1791
1792         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1793
1794         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1795
1796 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1797
1798         parse-duration: Relicense under LGPLv2+.
1799         * modules/parse-duration (License): Change to LGPLv2+.
1800
1801 2012-06-10  Jim Meyering  <meyering@redhat.com>
1802
1803         maint.mk: prohibit common grammar error: "all these"
1804         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1805         the list of prohibited word sequences.  It should be "all of these".
1806         * lib/tempname.c (__gen_tempname): Fix one of them.
1807
1808 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1809
1810         do-release-commit-and-tag: support VPATH builds
1811         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1812         (noteworthy): Defined earlier to factor its value.
1813         (noteworthy_stub): New.
1814         Use it to factor.
1815         (help_version): Split into...
1816         (help, version): these.
1817         Adjust the option processing part.
1818         Support "--option=value" in addition to "--option value".
1819         (builddir): New.
1820         (--builddir): New option.
1821         * top/README-release: Document this.
1822         Reword slightly so that the reader cannot understand that he
1823         has to do these steps before calling do-release-commit-and-tag.
1824
1825 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1826
1827         readme-release: also require announce-gen and maintainer-makefile
1828         * modules/readme-release (Depends-on): here.
1829         * modules/announce-gen, modules/do-release-commit-and-tag,
1830         modules/gnu-web-doc-update, modules/maintainer-makefile
1831         (Description): Point to readme-release.
1832
1833 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1834
1835         maint.mk: fix VPATH issues.
1836         * top/maint.mk (news-check): GNU Make understand $< very well.
1837         (release-prep): NEWS is in $(srcdir).
1838
1839 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1840
1841         readme-release: require the promoted modules.
1842         * modules/readme-release (Depends-on): Add
1843         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1844         in this text.
1845
1846 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1847             Bruno Haible  <bruno@clisp.org>
1848
1849         error, strerror-override: Support mingw64 from Fedora 17.
1850         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1851         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1852         EINPROGRESS.
1853         * lib/strerror-override.h (strerror_override): Test it.
1854         * lib/strerror-override.c (strerror_override): Likewise.
1855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1856
1857 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1858             Bruno Haible  <bruno@clisp.org>
1859
1860         error, strerror-override: Support mingw64 from Fedora 17.
1861         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1862         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1863         * lib/strerror-override.h (strerror_override): Test it.
1864         * lib/strerror-override.c (strerror_override): Likewise.
1865
1866 2012-06-03  Bruno Haible  <bruno@clisp.org>
1867
1868         error, strerror-override: Support new errno values from POSIX:2008.
1869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1870         ENOTRECOVERABLE.
1871         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1872         platforms.
1873         * lib/strerror-override.c (strerror_override): Conditionalize the
1874         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1875         * lib/strerror-override.h (strerror_override): Declare also if
1876         GNULIB_defined_EOWNERDEAD is defined.
1877         * tests/test-errno.c (e130, e131): New variables.
1878         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1879         ENOTRECOVERABLE.
1880         Reported by Paolo Bonzini.
1881
1882 2012-05-31  Jim Meyering  <meyering@redhat.com>
1883
1884         savewd: add missing dependency on sys_wait module
1885         * modules/savewd (Depends-on): Add sys_wait, needed at least
1886         for MSVC.  Report and suggested change by Michael Goffioul.
1887
1888 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         system-quote-tests: port to CentOS 5
1891         Problem reported by Tom G. Christensen in
1892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1893         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1894
1895 2012-05-29  Jim Meyering  <meyering@redhat.com>
1896
1897         maint: fix typos in comments and ChangeLog
1898         Culprits identified and fixed mostly automatically using these commands:
1899         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1900         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1901         using http://github.com/lyda/misspell-check
1902         * ChangeLog: Fix typos.
1903         * doc/solaris-versions: Likewise.
1904         * lib/regexec.c (re_search_stub): Likewise.
1905         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1906
1907 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         manywarnings: remove duplicate -Wmultichar entry
1910         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1911         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1912         so keep the entry marked as documented.
1913
1914 2012-05-27  Karl Berry  <karl@gnu.org>
1915
1916         * config/srclist.txt (mktime.c): remove last libc sync,
1917         perhaps just temporarily.
1918
1919 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1920
1921         regex: don't assume uint64_t or uint32_t
1922         * lib/regcomp.c (init_word_char): Don't assume that the types
1923         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1924         them, and on some 32-bit compilers there is no uint64_t.
1925         Problem reported by Gianluigi Tiesi in
1926         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1927
1928 2012-05-25  Jim Meyering  <meyering@redhat.com>
1929
1930         maint.mk: add strncpy-prohibiting syntax-check rule
1931         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1932
1933 2012-05-24  Jim Meyering  <meyering@redhat.com>
1934
1935         maint.mk: compute $(gpg_key_ID) more portably
1936         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1937         That use of sed is not portable to some fringe systems.
1938         Reported by Paul Eggert in
1939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1940
1941 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1942
1943         mktime: sync from glibc
1944         * config/srclist.txt: Uncomment mktime.c.
1945         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1946         First, indent with tabs, since glibc uses tabs and doesn't want to
1947         change and we'd rather be identical to glibc.  Also, two small
1948         coding changes:
1949         (isdst_differ): Use &&, not &, as && is the usual style.
1950         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1951         for clarity.
1952
1953 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1954
1955         announce-gen: du -h is more portable than du --human
1956         * build-aux/announce-gen (sizes): Invoke du with -h instead
1957         of --human.  Accept leading white space in its output.
1958
1959 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1960
1961         announce-gen: Improve diagnostics.
1962         * build-aux/announce-gen: When parsing command line options,
1963         prefer "announce-gen: option --release-type requires an argument"
1964         to "Option release-type requires an argument".
1965
1966 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1967
1968         maint.mk: gpg_key_ID: use sed more portably
1969         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1970         the closing brace.
1971         (refresh-po): Fuse two sed invocations into one.
1972
1973 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1974
1975         gitlog-to-changelog: support the log message format used in Bison.
1976         * build-aux/gitlog-to-changelog: Support --strip-tab and
1977         --strip-cherry-picked.
1978
1979 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1980
1981         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1982         the rest of the current time slice to another thread in the current
1983         process. So if the thread that feeds the file decscriptor we're
1984         polling is not in the current process, we get busy-waiting.
1985         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1986         Patch from Theodore Leblond.
1987         * lib/select.c: Split polling out of the loop that sets the output
1988         fd_sets.  Check for zero result and loop if the wait timeout is
1989         infinite.
1990
1991 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1992
1993         select: Fix build error on IRIX 6.5.
1994         * lib/select.c: Include stddef.h for NULL.
1995
1996 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1997
1998         gc: fix libgcrypt detection on older machines.
1999         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2000         copyright years because the file has been distributed every year
2001         since it was created.
2002
2003 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         crypto: fix bug in large buffer handling
2006         Problem reported by Serge Belyshev for glibc in
2007         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2009         * lib/md4.c (md4_process_block):
2010         * lib/md5.c (md5_process_block):
2011         * lib/sha1.c (sha1_process_block):
2012         * lib/sha256.c (sha256_process_block):
2013         Don't assume the buffer length is less than 2**32.
2014         * lib/sha512.c (sha512_process_block): Likewise.
2015         Here, the bug is present only in the rare case where the host does
2016         not support uint64_t or where size_t is wider than 64 bits.
2017         Use u64size to work around the problems.
2018         * lib/u64.h (u64size): New macro.
2019
2020 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2021
2022         fsusage: fix block size returned on older Linux 2.6
2023
2024         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2025         which is available since Linux 2.6.
2026         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2027         when the member is available so it can be used as a fallback.
2028         * doc/posix-functions/statvfs.texi: Mention the hang issue
2029         on Linux < 2.6.36.
2030
2031 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         bootstrap: suppress stderr chatter
2034         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2035         Omit unnecessary chatter to stderr.  The main program chatter
2036         was there only inadvertantly.
2037
2038         bootstrap: .gitignore files created by autopoint, libtool
2039         I ran into this problem when bootstrapping the latest diffutils.
2040         After './bootstrap', 'git status' reported lots of untracked files
2041         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2042         autopoint and do not need to be version-controlled.
2043         * build-aux/bootstrap: Put into .gitignore the files that
2044         autopoint and libtool create, by keeping track of files that exist
2045         after but not before these programs are run.
2046         (version_controlled_file): Move up.  2nd arg is now full file
2047         name, not base name; this is more convenient.  Put CVS at the end,
2048         as it's now somewhat deprecated.
2049
2050 2012-05-14  Jim Meyering  <meyering@redhat.com>
2051
2052         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2053         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2054         definition.  Reported by Bruno Haible.
2055
2056 2012-05-13  Bruno Haible  <bruno@clisp.org>
2057             Paul Eggert  <eggert@cs.ucla.edu>
2058
2059         binary-io: Define set_binary_mode function.
2060         * lib/binary-io.h (set_binary_mode): New function.
2061         (SET_BINARY): Define in terms of set_binary_mode.
2062         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2063         * tests/test-binary-io.c (main): Accept an argument, and test either
2064         set_binary_mode or SET_BINARY depending on the argument.
2065         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2066         argument. Clean up also t-bin-out0.tmp.
2067
2068 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2069
2070         bootstrap: take advantage of POSIX shell features
2071
2072         The 'bootstrap' script offered by Gnulib script already uses POSIX
2073         shell features (like $((...)) arithmetic expansions) that are not
2074         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2075         means that bootstrap must already be run using a proper POSIX shell,
2076         which will thus provide more features, like ${var#pattern} parameter
2077         expansion or inversion of a command exit status with '!'.  We can
2078         thus use these features to improve the clarity and the performances
2079         of the bootstrap script.
2080
2081         Suggested by Eric Blake.
2082
2083         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2084         of sed/expr plus command substitutions, to save some forks.  While
2085         we are at it, prefer the POSIX $(...) form of command substitution,
2086         rather than the legacy form `...` (since the former is visually
2087         clearer and interacts better with quoting), and prefer the idiom:
2088           "if ! CMD; then ACTION ..."
2089         over the idiom:
2090           "if CMD; then :; else ACTION ..."
2091         which was required by legacy Bourne shells not supporting '!'.
2092
2093 2012-05-12  Bruno Haible  <bruno@clisp.org>
2094
2095         system-quote: Add more comments.
2096         * lib/system-quote.h: Add more comments about wilcards and limitations.
2097         Suggested by Eli Zaretskii <eliz@gnu.org>.
2098
2099         sh-quote, system-quote: Add comments about wildcards.
2100         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2101         * lib/system-quote.h: Likewise.
2102         Reported by Eli Zaretskii <eliz@gnu.org>.
2103
2104 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         fsusage: check for GNU/Linux statvfs problem dynamically
2107         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2108         Define STAT_STATFS2_BSIZE too, since in this case the code now
2109         checks dynamically whether statvfs is reliable, falling back on
2110         Linux-style statfs otherwise.
2111         (statvfs_works): New function, for dynamically testing statvfs.
2112         (get_fs_usage) [STAT_STATVFS]: Use it.
2113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2114         statvfs on GNU/Linux hosts, since it's now done dynamically.
2115
2116 2012-05-10  Bruno Haible  <bruno@clisp.org>
2117
2118         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2119         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2120         '?' character.
2121         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2122         * tests/test-system-quote-main.c (check_all): Check also strings like
2123         "??????????".
2124         Reported by Eli Zaretskii <eliz@gnu.org>.
2125
2126 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2127
2128         _Noreturn: port config.h to gcc -Wundef
2129         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2130         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2131         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2132
2133 2012-05-10  Bruno Haible  <bruno@clisp.org>
2134
2135         system-quote: Refactor.
2136         * lib/system-quote.h (system_quote_copy): Fix comment.
2137         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2138         New functions, extracted from system_quote_copy.
2139         (system_quote_length, system_quote_copy): Use these functions.
2140         Reported by Paul Eggert.
2141
2142 2012-05-08  Bruno Haible  <bruno@clisp.org>
2143
2144         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2145         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2146
2147 2012-05-08  Bruno Haible  <bruno@clisp.org>
2148
2149         Tests for module 'system-quote'.
2150         * modules/system-quote-tests: New file.
2151         * tests/test-system-quote.sh: New file.
2152         * tests/test-system-quote-main.c: New file.
2153         * tests/test-system-quote-child.c: New file.
2154
2155         New module 'system-quote'.
2156         * lib/system-quote.h: New file.
2157         * lib/system-quote.c: New file.
2158         * modules/system-quote: New file.
2159
2160 2012-05-08  Bruno Haible  <bruno@clisp.org>
2161
2162         sh-quote: Make C++ safe and allow multiple inclusion.
2163         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2164         declarations in extern "C".
2165
2166 2012-05-08  Bruno Haible  <bruno@clisp.org>
2167
2168         sh-quote tests: Make tests stricter.
2169         * tests/test-sh-quote.c (check_one): Check the return value of
2170         shell_quote_copy.
2171         (main): Check a string with a CR character. Check a string that
2172         contains UCHAR_MAX.
2173
2174 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2175
2176         warnings.m4: provide a means to specify the program to compile.
2177         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2178         (gl_WARN_ADD): here.
2179         Use gl_AS_VAR_APPEND.
2180         Support an argument to specify the program to compile.
2181         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2182         AC_SUBST the WARN_CFLAGS when they are used.
2183         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2184         leave this to gl_WARN_ADD.
2185
2186 2012-05-08  Eric Blake  <eblake@redhat.com>
2187
2188         doc: recommendations on gettext version
2189         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2190         choice between versions.
2191         * DEPENDENCIES (gettext): Cover both approaches.
2192
2193 2012-05-08  Jim Meyering  <meyering@redhat.com>
2194
2195         init.sh: explain why EXEEXT support uses aliases rather than functions
2196         * tests/init.sh: Add a comment.
2197
2198         init.sh: don't let bash aliases interfere with tests
2199         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2200         is bash.  This avoids problems for those who alias standard commands to
2201         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2202         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2203
2204 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         stdint: be more consistent with glibc, SunOS libc
2207         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2208         (gl_int_fast16_t, gl_uint_fast16_t)
2209         (gl_int_fast32_t, gl_uint_fast32_t)
2210         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2211         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2212         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2213         Be consistent with glibc by default, and with SunOS 5.10 and later
2214         if __sun is defined.  This lessens the likelihood of clashes if
2215         code compiled for older hosts is combined with code compiled for
2216         newer ones.  Problem reported by Niels Möller in
2217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2218
2219 2012-05-07  Eric Blake  <eblake@redhat.com>
2220
2221         isatty: relax license to LGPLv2+
2222         * modules/isatty (License): Relax license.
2223
2224 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2225
2226         stat-size: comment fix
2227         * lib/stat-size.h: Remove obsolete comment about indenting.
2228
2229 2012-05-06  Bruno Haible  <bruno@clisp.org>
2230
2231         Tests for module 'sh-quote'.
2232         * modules/sh-quote-tests: New file.
2233         * tests/test-sh-quote.c: New file.
2234
2235 2012-05-06  Bruno Haible  <bruno@clisp.org>
2236
2237         sh-quote: Improve shell_quote_argv's signature.
2238         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2239         * lib/sh-quote.c (shell_quote_argv): Likewise.
2240
2241 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         stdint: document issues with int_fast8_t etc.
2244         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2245         stdint.h substitutes may define these types differently.  See
2246         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2247
2248 2012-05-05  Bruno Haible  <bruno@clisp.org>
2249
2250         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2252         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2253         or 'guessing no (mishandles large arguments)'.
2254
2255 2012-05-05  Bruno Haible  <bruno@clisp.org>
2256
2257         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2258         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2259         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2260         set gl_cv_func_link_follows_symlink to "guessing no".
2261
2262 2012-05-05  Bruno Haible  <bruno@clisp.org>
2263
2264         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2265         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2266         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2267         "guessing no".
2268         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2269
2270 2012-05-05  Bruno Haible  <bruno@clisp.org>
2271
2272         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2273         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2274         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2275         set gl_cv_struct_dirent_d_ino to "guessing yes".
2276
2277 2012-05-05  Bruno Haible  <bruno@clisp.org>
2278
2279         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2280         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2281         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2282         "guessing yes".
2283
2284 2012-05-05  Bruno Haible  <bruno@clisp.org>
2285
2286         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2287         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2288         compiling to a glibc system, set gl_cv_func_signbit and
2289         gl_cv_func_signbit_gcc to "guessing yes".
2290
2291 2012-05-05  Bruno Haible  <bruno@clisp.org>
2292
2293         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2294         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2295         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2296         to "guessing yes".
2297         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2298         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2299
2300 2012-05-05  Bruno Haible  <bruno@clisp.org>
2301
2302         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2303         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2304         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2305         gl_cv_func_realpath_works to "guessing yes".
2306
2307 2012-05-05  Bruno Haible  <bruno@clisp.org>
2308
2309         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2311         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2312
2313 2012-05-04  Bruno Haible  <bruno@clisp.org>
2314
2315         Tweak last commit.
2316         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2317         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2318
2319 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2320
2321         unistd_h: make it easier to avoid sys_types_h
2322         This is useful for Emacs, which has its own method of porting to
2323         Windows, and which therefore does not need the sys_types_h module.
2324         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2325         code moved here from gl_SYS_TYPES_H.
2326         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2327         using the code directly.
2328         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2329         gl_SYS_TYPES_H.
2330         * modules/sys_types (Files):
2331         * modules/unistd (Files): Add m4/off_t.m4.
2332
2333 2012-05-03  Bruno Haible  <bruno@clisp.org>
2334
2335         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2336         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2337         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2338         "guessing yes" or "guessing no".
2339         (gl_FUNC_LSTAT): Update.
2340         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2341         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2342         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2343
2344 2012-05-03  Bruno Haible  <bruno@clisp.org>
2345
2346         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2347         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2348         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2349         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2350         cross-compiling, choose the first alternative on glibc systems.
2351         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2352
2353 2012-05-03  Bruno Haible  <bruno@clisp.org>
2354
2355         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2356         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2357         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2358
2359 2012-05-03  Bruno Haible  <bruno@clisp.org>
2360
2361         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2362         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2363
2364 2012-05-03  Bruno Haible  <bruno@clisp.org>
2365
2366         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2367         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2368         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2369         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2370         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2371         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2372         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2373         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2374         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2375         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2376         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2377         gl_cv_func_chown_ctime_works to "guessing yes".
2378         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2379         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2380         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2381         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2382         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2384         compiling to glibc systems, set gl_cv_func_open_directory_works to
2385         "guessing yes".
2386         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2388         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2389         "guessing yes".
2390         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2391         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2392         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2393         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2394         "guessing yes".
2395         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2396         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2397         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2398         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2399         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2400         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2401         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2402         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2403         "guessing yes".
2404         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2405         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2406         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2407         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2408         "guessing yes".
2409         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2410         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2411         "guessing yes".
2412         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2413         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2414         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2415         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2416         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2417         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2418         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2419         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2420         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2421         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2422         "guessing yes".
2423         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2424         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2425         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2426         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2427         "guessing yes".
2428         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2429         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2430         "guessing yes".
2431         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2432         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2433         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2434         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2435         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2436         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2437         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2438         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2439         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2440         "guessing yes".
2441         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2442         compiling to glibc systems, set gl_cv_func_mknod_works to
2443         "guessing yes".
2444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2445         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2446         "guessing yes".
2447         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2448         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2449         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2450         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2451         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2452         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2453         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2454         compiling to glibc systems, set gl_cv_func_svid_putenv to
2455         "guessing yes".
2456         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2457         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2458         "guessing yes".
2459         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2460         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2461         "guessing yes".
2462         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2463         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2464         to "guessing yes".
2465         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2466         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2467         to "guessing yes".
2468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2469         compiling to glibc systems, set gl_cv_func_rmdir_works to
2470         "guessing yes".
2471         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2472         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2473         gl_cv_func_unlink_parent_fails to "guessing yes".
2474         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2475         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2476         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2477         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2478         gl_cv_func_rename_dest_works to "guessing yes".
2479         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2480         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2481         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2482         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2483         "guessing yes".
2484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2485         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2486         "guessing yes".
2487         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2488         compiling to glibc systems, set gl_cv_func_setenv_works to
2489         "guessing yes".
2490         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2491         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2492         "guessing yes".
2493         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2494         compiling to glibc systems, set gl_cv_func_sleep_works to
2495         "guessing yes".
2496         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2497         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2498         "guessing yes".
2499         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2500         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2501         "guessing yes".
2502         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2503         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2504         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2505         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2506         "guessing yes".
2507         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2508         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2509         "guessing yes".
2510         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2511         compiling to glibc systems, set gl_cv_func_usleep_works to
2512         "guessing yes".
2513         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2514         compiling to glibc systems, set gl_cv_func_futimesat_works to
2515         "guessing yes".
2516
2517 2012-05-03  Bruno Haible  <bruno@clisp.org>
2518
2519         Say "guessing yes" or "guessing no" when cross-compiling.
2520         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2521         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2523         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2524         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2525         am_cv_func_working_getline to "guessing yes" or "guessing no".
2526         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2527         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2528         (gl_FUNC_MEMMEM): When cross-compiling, set
2529         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2531         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2533         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2534         "guessing no".
2535         (gl_FUNC_STRCASESTR): When cross-compiling, set
2536         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2537         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2538         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2539         (gl_FUNC_STRSTR): When cross-compiling, set
2540         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2541         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2542         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2543         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2544         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2545
2546 2012-05-01  Bruno Haible  <bruno@clisp.org>
2547
2548         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2549         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2550         * build-aux/reloc-ldflags: Likewise.
2551         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2552
2553 2012-05-01  Bruno Haible  <bruno@clisp.org>
2554
2555         gnulib-tool: Remove transitional code.
2556         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2557         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2558
2559 2012-05-01  Bruno Haible  <bruno@clisp.org>
2560
2561         getcwd: Fix misindentation.
2562         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2563
2564 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2565
2566         exclude: process exclude and include directives in order
2567         This restores the pre-2009 behavior, and is part of a fix of a
2568         grep bug reported by Quentin Arce in
2569         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2570         * lib/exclude.c (struct exclude): Remove 'tail' member.
2571         (new_exclude_segment): Prepend the new segment instead of appending.
2572         Return void, since that's now more convenient.
2573         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2574         (file_name_matches): Renamed from excluded_file_name_p.
2575         (file_pattern_matches, file_name_matches):
2576         Return true if the pattern matches, not if it excludes.
2577         All callers changed.
2578         (excluded_file_name): Process the list in reverse order;
2579         since the list is now reversed this restores the pre-2009 behavior.
2580         (add_exclude): Adjust to new reversed-order list.  Use local var
2581         rather than macro, for clarity.
2582         * tests/test-exclude7.sh: Adjust to corrected behavior.
2583
2584         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2585         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2586         it's not possible here.  Handle the case of \ at end of pattern
2587         without dumping core.
2588         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2589
2590         _Noreturn: future-proof non-GNU and non-MSVC compilers
2591         * build-aux/snippet/_Noreturn.h (_Noreturn):
2592         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2593         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2594         C11 or later.  This is more likely to work with random future C
2595         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2596         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2597
2598         exclude: handle wildcards with FNM_EXTMATCH
2599         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2600         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2601         comment that "has wildcards" really means "has or may have
2602         wildcards".  Simplify by avoiding the need to call strcspn.
2603
2604 2012-04-29  Bruno Haible  <bruno@clisp.org>
2605
2606         gnulib-tool: Fix list of authors.
2607         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2608
2609 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2610
2611         bootstrap: support Automake-NG in $buildreq
2612         * bootstrap (check_versions): Handle automake and aclocal from
2613         Automake-NG specially.  They can be specified as respectively
2614         the "automake-ng" and "aclocal-ng" requirements.
2615
2616 2012-04-25  Eric Blake  <eblake@redhat.com>
2617
2618         bootstrap: only force latest Makefile.in.in for gettext module
2619         * build-aux/bootstrap (with_gettext): Only install latest
2620         Makefile.in.in for projects requesting bleeding edge gettext.
2621
2622 2012-04-22  Bruno Haible  <bruno@clisp.org>
2623
2624         doc: Mention reason for replacement on glibc/Linux systems.
2625         * doc/posix-functions/dprintf.texi: Mention the problem with special
2626         'long double' values.
2627         * doc/posix-functions/fprintf.texi: Likewise.
2628         * doc/posix-functions/printf.texi: Likewise.
2629         * doc/posix-functions/snprintf.texi: Likewise.
2630         * doc/posix-functions/sprintf.texi: Likewise.
2631         * doc/posix-functions/vdprintf.texi: Likewise.
2632         * doc/posix-functions/vfprintf.texi: Likewise.
2633         * doc/posix-functions/vprintf.texi: Likewise.
2634         * doc/posix-functions/vsnprintf.texi: Likewise.
2635         * doc/posix-functions/vsprintf.texi: Likewise.
2636         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2637         platforms with F_DUPFD_CLOEXEC problems.
2638         * doc/posix-functions/glob.texi: Mention which platforms are affected
2639         by the problem with symbolic links.
2640         * doc/posix-functions/linkat.texi: Mention the problem with
2641         AT_SYMLINK_FOLLOW on Linux.
2642
2643 2012-04-22  Bruno Haible  <bruno@clisp.org>
2644
2645         pwrite: Don't replace on all platforms.
2646         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2647
2648 2012-04-22  Bruno Haible  <bruno@clisp.org>
2649
2650         rint* tests: Avoid gcc warnings.
2651         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2652         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2653         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2654
2655 2012-04-21  Bruno Haible  <bruno@clisp.org>
2656
2657         users.txt: Update.
2658         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2659         switched from CVS to git, bzr, or svn.
2660
2661 2012-04-21  Bruno Haible  <bruno@clisp.org>
2662
2663         Large File Support for native Windows platforms.
2664
2665         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2666         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2667
2668         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2669         type.
2670         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2671         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2672         * doc/posix-headers/sys_types.texi: Mention the effect of the
2673         'largefile' module.
2674
2675         * lib/fcntl.in.h: Add comments about off_t.
2676         * modules/fcntl-h (Depends-on): Add sys_types.
2677
2678         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2679         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2680         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2681         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2682         * modules/unistd (Depends-on): Add sys_types.
2683         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2684
2685         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2686         instead of lseek.
2687         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2688         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2689         * modules/lseek (Depends-on): Add sys_types.
2690
2691         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2692         msvc-nothrow.h.
2693         (SetFileSize): New function.
2694         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2696         if Large File Support is requested.
2697         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2698         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2699
2700         * lib/stdio.in.h: Add comments about off_t.
2701         * modules/stdio (Depends-on): Add sys_types.
2702
2703         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2704         instead of ftello.
2705         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2706         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2707         (gl_PREREQ_FTELLO): New macro.
2708         * modules/ftello (Depends-on): Add sys_types.
2709         (configure.ac): Incoke gl_PREREQ_FTELLO.
2710
2711         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2712         instead of fseeko.
2713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2714         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2715         (gl_PREREQ_FSEEKO): New macro.
2716         * modules/fseeko (Depends-on): Add sys_types.
2717         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2718
2719         * lib/sys_stat.in.h: Add comments about off_t.
2720         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2721         64-bit integer for st_size in 'struct stat'.
2722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2723         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2724         * modules/sys_stat (Depends-on): Add sys_types.
2725         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2726
2727         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2728         instead of stat or _stat.
2729
2730         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2731         'struct _stati64' instead of fstat and 'struct stat'.
2732         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2733         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2734
2735         Reported by Ray Satiro <raysatiro@yahoo.com>.
2736
2737 2012-04-19  Eric Blake  <eblake@redhat.com>
2738
2739         bootstrap: accommodate older libtool
2740         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2741         Reported by Daniel P. Berrange.
2742
2743 2012-04-19  Jim Meyering  <meyering@redhat.com>
2744
2745         announce-gen: avoid failure due to lack of Digest::SHA1
2746         Even with the preferred Digest::SHA available, this script
2747         would fail when the backup module, Digest::SHA1, was not installed.
2748         * build-aux/announce-gen: Quote the conditional use of "use".
2749         Reported by Reuben Thomas in:
2750         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2751
2752         bootstrap: don't let a user's CDPATH setting affect this script
2753         When CDPATH is set, cd will sometimes generate output.
2754         When "cd" is run in a subshell whose output matters, that
2755         surprising-to-some output can cause malfunction.
2756         Unsetting CDPATH turns off this shell "feature."
2757         * build-aux/bootstrap (CDPATH): Unset.
2758         Reported by Reuben Thomas in:
2759         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2760         and inspired by his patch here:
2761         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2762
2763 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2764         and Jim Meyering  <meyering@redhat.com>
2765
2766         maint.mk: catch "see @xref{}" and similar
2767         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2768         prohibit "See also @xref{", "Also see @pxref{", and similar.
2769
2770 2012-04-16  Jim Meyering  <meyering@redhat.com>
2771
2772         bootstrap: really use gnulib's po/Makefile.in.in
2773         * build-aux/bootstrap: Correct the source file name in previous change.
2774         Reported by Akim Demaille.
2775
2776         configmake: correct minor inconsistency in Makefile rule
2777         * modules/configmake (Makefile.am): All other rules like this one
2778         run the final "mv -f ..." in the same backslash-continued command
2779         as the one that does everything else.  This one put the mv -f ...
2780         command on a separate, non-backslash-continued line.
2781         Make it like the others.
2782
2783         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2784         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2785         the one from gettext.  Reported by Akim Demaille.
2786
2787 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2788
2789         Fix recursion of install-* into po directories.
2790         Bison's install-pdf bug reported by Hans Aberg at
2791         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2792         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2793         (install-info, install-pdf, install-ps): New targets.
2794
2795 2012-04-16  Jim Meyering  <meyering@redhat.com>
2796
2797         maint: avoid spurious "make sc_maint" failure
2798         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2799         exempt all *.class file names, for lib/javaversion.class.
2800
2801 2012-04-15  Bruno Haible  <bruno@clisp.org>
2802
2803         lseek: Make configure test independent of environment.
2804         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2805         Windows, we know that lseek() on pipes is broken; skip the runtime
2806         test.
2807
2808 2012-04-14  Bruno Haible  <bruno@clisp.org>
2809
2810         stat: Bypass buggy override in mingw64.
2811         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2812         * lib/stat.c (stat) [mingw64]: Define to _stat.
2813         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2814
2815 2012-04-14  Bruno Haible  <bruno@clisp.org>
2816
2817         pathmax: Fix compilation error on MSVC 9.
2818         * modules/pathmax (Depends-on): Add unistd.
2819
2820 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2821
2822         README: document pointer comparison assumption
2823         * README (Portability guidelines): Document assumption about
2824         pointer comparisons, in response to a recent bug-gnulib comment by
2825         Jeffrey Kegler.
2826
2827 2012-04-12  Bruno Haible  <bruno@clisp.org>
2828
2829         Tests for module 'getrusage'.
2830         * modules/getrusage-tests: New file.
2831         * tests/test-getrusage.c: New file.
2832
2833         New module 'getrusage'.
2834         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2835         warn-on-use.h.
2836         (getrusage): New declaration.
2837         * lib/getrusage.c: New file.
2838         * m4/getrusage.m4: New file.
2839         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2840         is declared.
2841         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2842         HAVE_GETRUSAGE.
2843         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2844         snippet/c++defs, snippet/warn-on-use.
2845         (Makefile.am): Update generation of sys/resource.h. Substitute
2846         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2847         * modules/getrusage: New file.
2848         * doc/posix-functions/getrusage.texi: Mention the new module.
2849
2850 2012-04-12  Bruno Haible  <bruno@clisp.org>
2851
2852         Tests for module 'sys_resource'.
2853         * modules/sys_resource-tests: New file.
2854         * tests/test-sys_resource.c: New file.
2855
2856         New module 'sys_resource'.
2857         * lib/sys_resource.in.h: New file.
2858         * m4/sys_resource_h.m4: New file.
2859         * modules/sys_resource: New file.
2860         * doc/posix-headers/sys_resource.texi: Mention the new module.
2861
2862 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2863
2864         ioctl: Fix compilation error on mingw.
2865         * lib/ioctl.c: Include <windows.h>.
2866         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2867
2868 2012-04-04  Jim Meyering  <meyering@redhat.com>
2869
2870         regex: correct #pragma guard expression
2871         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2872         not 4.3.  Correct its cpp guard expression.
2873
2874 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         regex: remove unnecessary type punning
2877         Problem reported by Vladimir Serbinenko in
2878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2879         * lib/regex.h (struct re_pattern_buffer): Change the type of
2880         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2881         Fix comment to match code.
2882         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2883         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2884         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2885         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2886         (set_regs):
2887         Omit no-longer-necessary casts.
2888
2889 2012-04-03  Bruno Haible  <bruno@clisp.org>
2890
2891         Tests for module 'ilogbl'.
2892         * modules/ilogbl-tests: New file.
2893         * tests/test-ilogbl.c: New file.
2894
2895         New module 'ilogbl'.
2896         * lib/math.in.h (ilogbl): New declaration.
2897         * lib/ilogbl.c: New file.
2898         * m4/ilogbl.m4: New file.
2899         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2901         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2902         Split sed invocation, to avoid the limit of 100 substitutions of
2903         HP-UX 'sed'.
2904         * modules/ilogbl: New file.
2905         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2906         * doc/posix-functions/ilogbl.texi: Mention the new module.
2907
2908 2012-04-03  Bruno Haible  <bruno@clisp.org>
2909
2910         Tests for module 'ilogbf'.
2911         * modules/ilogbf-tests: New file.
2912         * tests/test-ilogbf.c: New file.
2913
2914         New module 'ilogbf'.
2915         * lib/math.in.h (ilogbf): New declaration.
2916         * lib/ilogbf.c: New file.
2917         * m4/ilogbf.m4: New file.
2918         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2920         REPLACE_ILOGBF.
2921         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2922         REPLACE_ILOGBF.
2923         * modules/ilogbf: New file.
2924         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2925         * doc/posix-functions/ilogbf.texi: Mention the new module.
2926
2927 2012-04-03  Bruno Haible  <bruno@clisp.org>
2928
2929         Tests for module 'ilogb'.
2930         * modules/ilogb-tests: New file.
2931         * tests/test-ilogb.c: New file.
2932         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2933         tests/test-logb-ieee.h.
2934
2935         New module 'ilogb'.
2936         * lib/math.in.h (ilogb): New declaration.
2937         * lib/ilogb.c: New file.
2938         * m4/ilogb.m4: New file.
2939         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2941         REPLACE_ILOGB.
2942         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2943         REPLACE_ILOGB.
2944         * modules/ilogb: New file.
2945         * tests/test-math-c++.cc: Check the declaration of ilogb.
2946         * doc/posix-functions/ilogb.texi: Mention the new module.
2947
2948 2012-04-03  Bruno Haible  <bruno@clisp.org>
2949
2950         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2951         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2952         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2953         (main): Check their values.
2954         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2955         problem.
2956
2957 2012-04-03  Bruno Haible  <bruno@clisp.org>
2958
2959         Tests for module 'logbl-ieee'.
2960         * modules/logbl-ieee-tests: New file.
2961         * tests/test-logbl-ieee.c: New file.
2962
2963         New module 'logbl-ieee'.
2964         * modules/logbl-ieee: New file.
2965
2966         Tests for module 'logb-ieee'.
2967         * modules/logb-ieee-tests: New file.
2968         * tests/test-logb-ieee.c: New file.
2969
2970         New module 'logb-ieee'.
2971         * modules/logb-ieee: New file.
2972
2973         Tests for module 'logbf-ieee'.
2974         * modules/logbf-ieee-tests: New file.
2975         * tests/test-logbf-ieee.c: New file.
2976         * tests/test-logb-ieee.h: New file.
2977
2978         New module 'logbf-ieee'.
2979         * modules/logbf-ieee: New file.
2980
2981 2012-04-03  Bruno Haible  <bruno@clisp.org>
2982
2983         Tests for module 'logbl'.
2984         * modules/logbl-tests: New file.
2985         * tests/test-logbl.c: New file.
2986
2987         New module 'logbl'.
2988         * lib/math.in.h (logbl): New declaration.
2989         * lib/logbl.c: New file.
2990         * m4/logbl.m4: New file.
2991         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2993         REPLACE_LOGBL.
2994         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2995         REPLACE_LOGBL.
2996         * modules/logbl: New file.
2997         * tests/test-math-c++.cc: Check the declaration of logbl.
2998         * doc/posix-functions/logbl.texi: Mention the new module.
2999
3000 2012-04-02  Bruno Haible  <bruno@clisp.org>
3001
3002         Tests for module 'logbf'.
3003         * modules/logbf-tests: New file.
3004         * tests/test-logbf.c: New file.
3005
3006         New module 'logbf'.
3007         * lib/math.in.h (logbf): New declaration.
3008         * lib/logbf.c: New file.
3009         * m4/logbf.m4: New file.
3010         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3012         REPLACE_LOGBF.
3013         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3014         REPLACE_LOGBF.
3015         * modules/logbf: New file.
3016         * tests/test-math-c++.cc: Check the declaration of logbf.
3017         * doc/posix-functions/logbf.texi: Mention the new module.
3018
3019 2012-04-02  Bruno Haible  <bruno@clisp.org>
3020
3021         logb tests: More tests.
3022         * tests/test-logb.h: New file, based on tests/test-logb.c and
3023         tests/test-frexp.h.
3024         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3025         (main): Just invoke test_function.
3026         * modules/logb-tests (Files): Add tests/test-logb.h,
3027         tests/minus-zero.h, tests/randomd.c.
3028         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3029
3030         logb: Provide replacement and workarounds.
3031         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3032         is 1.
3033         * lib/logb.c: New file.
3034         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3035         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3037         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3038         * modules/logb (Files): Add lib/logb.c.
3039         (Depends-on): Add isfinite, frexp, isnand.
3040         (configure.ac): Compile the replacement code logb.c if needed.
3041         * tests/test-math-c++.cc: Check the declaration of logb.
3042         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3043         with subnormal numbers.
3044
3045 2012-04-02  Bruno Haible  <bruno@clisp.org>
3046
3047         log10* tests: Speed up.
3048         * tests/test-log10.h (test_function): Reduce amount of random numbers
3049         to test.
3050
3051 2012-04-01  Bruno Haible  <bruno@clisp.org>
3052
3053         logf-ieee: Fix test whether logf works.
3054         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3055
3056 2012-04-01  Bruno Haible  <bruno@clisp.org>
3057
3058         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3059         * lib/log10l.c: Include <float.h>
3060         (log10l): On IRIX, normalize the +Infinity value.
3061         * modules/log10l (Depends-on): Add 'float'.
3062         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3063         +Infinity.
3064
3065         log10f-ieee: Work around test failure on NetBSD 5.1.
3066         * m4/log10f-ieee.m4: New file.
3067         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3068         test whether log10f works with a negative argument. Replace it if not.
3069         * lib/log10f.c (log10f): For negative arguments, return NaN.
3070         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3071         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3072         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3073
3074         log10f-ieee: Work around test failure on Solaris 9.
3075         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3076         (configure.ac): Require gl_FUNC_LOG10F.
3077
3078         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3079         * m4/log10-ieee.m4: New file.
3080         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3081         whether log10 works with a negative argument. Replace it if not.
3082         * lib/log10.c (log10): For negative arguments, return NaN.
3083         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3084         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3085         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3086
3087         Tests for module 'log10l-ieee'.
3088         * modules/log10l-ieee-tests: New file.
3089         * tests/test-log10l-ieee.c: New file.
3090
3091         New module 'log10l-ieee'.
3092         * modules/log10l-ieee: New file.
3093
3094         Tests for module 'log10-ieee'.
3095         * modules/log10-ieee-tests: New file.
3096         * tests/test-log10-ieee.c: New file.
3097
3098         New module 'log10-ieee'.
3099         * modules/log10-ieee: New file.
3100
3101         Tests for module 'log10f-ieee'.
3102         * modules/log10f-ieee-tests: New file.
3103         * tests/test-log10f-ieee.c: New file.
3104         * tests/test-log10-ieee.h: New file.
3105
3106         New module 'log10f-ieee'.
3107         * modules/log10f-ieee: New file.
3108
3109 2012-04-01  Bruno Haible  <bruno@clisp.org>
3110
3111         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3112         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3113         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3114         workaround.
3115         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3116         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3118         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3119         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3120         (Depends-on): Update conditions.
3121         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3122         IRIX 6.5, OSF/1 5.1 problems.
3123
3124 2012-04-01  Bruno Haible  <bruno@clisp.org>
3125
3126         log10f: Work around OSF/1 5.1 bug.
3127         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3128         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3129         workaround.
3130         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3131         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3133         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3134         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3135         (Depends-on): Update conditions.
3136         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3137
3138 2012-04-01  Bruno Haible  <bruno@clisp.org>
3139
3140         log10: Work around OSF/1 5.1 bug.
3141         * lib/math.in.h (log10): New declaration.
3142         * lib/log10.c: New file.
3143         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3144         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3145         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3147         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3148         * modules/log10 (Files): Add lib/log10.c.
3149         (Depends-on): Add math.
3150         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3151         * tests/test-math-c++.cc: Check the declaration of log10.
3152         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3153
3154 2012-03-31  Bruno Haible  <bruno@clisp.org>
3155
3156         log10l tests: More tests.
3157         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3158         tests/minus-zero.h, tests/randoml.c.
3159         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3160         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3161         (main): Invoke test_function.
3162
3163         log10f tests: More tests.
3164         * modules/log10f-tests (Files): Add tests/test-log10.h,
3165         tests/minus-zero.h, tests/randomf.c.
3166         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3167         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3168         (main): Invoke test_function.
3169
3170         log10 tests: More tests.
3171         * tests/test-log10.h: New file.
3172         * modules/log10-tests (Files): Add tests/test-log10.h,
3173         tests/minus-zero.h, tests/randomd.c.
3174         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3175         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3176         (main): Invoke test_function.
3177
3178 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3179
3180         fflush: Fix syntax error.
3181         * lib/fflush.c: Include unused-parameter.h, needed for
3182         _GL_UNUSED_PARAMETER.
3183         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3184
3185 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         regex: pacify GCC when compiling GRUB
3188         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3189         a diagnostic.  Reported by Vladimir Serbinenko in
3190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3191
3192 2012-03-29  Eric Blake  <eblake@redhat.com>
3193
3194         stdio: don't assume gets any more
3195         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3196         support.
3197         * modules/stdio (Makefile.am): Likewise.
3198         * lib/stdio-read.c (gets): Likewise.
3199         * tests/test-stdio-c++.cc: Likewise.
3200         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3201         * lib/stdio.in.h (gets): Make warning occur in more places.
3202         * doc/posix-functions/gets.texi (gets): Update documentation.
3203         Reported by Christer Solskogen.
3204
3205         maint.mk: fix syntax checks without exclusions
3206         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3207         Reported by Daniel P. Berrange.
3208
3209         strerror_r: avoid compiler warning
3210         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3211         level.
3212
3213         fflush: avoid compiler warning
3214         * lib/fflush.c (update_fpos_cache): Mark variables that are
3215         potentially unused.
3216
3217 2012-03-25  Bruno Haible  <bruno@clisp.org>
3218
3219         Tests for module 'localeconv'.
3220         * modules/localeconv-tests: New file.
3221         * tests/test-localeconv.c: New file.
3222
3223         New module 'localeconv'.
3224         * lib/locale.in.h (localeconv): New declaration.
3225         * lib/localeconv.c: New file.
3226         * m4/localeconv.m4: New file.
3227         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3228         REPLACE_LOCALECONV.
3229         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3230         REPLACE_LOCALECONV.
3231         * modules/localeconv: New file.
3232         * modules/nl_langinfo (Depends-on): Add localeconv.
3233         * modules/human (Depends-on): Likewise.
3234         * doc/posix-functions/localeconv.texi: Mention the new module.
3235
3236 2012-03-25  Bruno Haible  <bruno@clisp.org>
3237
3238         locale: Provide a complete 'struct lconv'.
3239         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3240         'struct lconv' does not contain int_p_cs_precedes.
3241         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3242         * doc/posix-headers/locale.texi: Update.
3243
3244         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3245         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3246         * doc/posix-headers/locale.texi: Update.
3247
3248         locale: Provide a working 'struct lconv'.
3249         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3250         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3251         'struct lconv' does not even contain decimal_point.
3252         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3253         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3254         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3255         * doc/posix-headers/locale.texi: Mention the problems with
3256         'struct lconv'.
3257         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3258
3259 2012-03-24  Bruno Haible  <bruno@clisp.org>
3260
3261         Enable common subexpression optimization in GCC.
3262         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3263         macros.
3264         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3265         GCC attribute 'const'.
3266         (uc_locale_language): Declare with GCC attribute 'pure'.
3267         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3268         with GCC attribute 'const'.
3269         * lib/unictype.in.h (uc_is_general_category_withtable,
3270         uc_combining_class, uc_combining_class_name,
3271         uc_combining_class_long_name, uc_bidi_class_name,
3272         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3273         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3274         uc_decimal_value, uc_digit_value, uc_numeric_value,
3275         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3276         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3277         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3278         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3279         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3280         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3281         Declare with GCC attribute 'const'.
3282         (uc_general_category_name, uc_general_category_long_name,
3283         uc_general_category_byname, uc_general_category,
3284         uc_is_general_category, uc_combining_class_byname,
3285         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3286         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3287         Declare with GCC attribute 'pure'.
3288         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3289         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3290         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3291         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3292         with GCC attribute 'pure'.
3293         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3294         'const'.
3295         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3296         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3297         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3298         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3299         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3300         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3301         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3302         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3303         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3304         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3305         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3306         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3307         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3308         GCC attribute 'pure'.
3309         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3310         'const'.
3311         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3312         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3313         u32_strwidth): Declare with GCC attribute 'pure'.
3314
3315         Enable common subexpression optimization in GCC.
3316         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3317         (alphasort): Declare with GCC attribute 'pure'.
3318         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3319         (atoll): Declare with GCC attribute 'pure'.
3320         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3321         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3322         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3323         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3324         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3325         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3326         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3327
3328 2012-03-24  Bruno Haible  <bruno@clisp.org>
3329
3330         gnulib-tool: Avoid unintended error output from 'cmp'.
3331         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3332         "cmp -s", not "cmp > /dev/null".
3333
3334 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3335
3336         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3337
3338         It's not just Automake versions < 1.9b that creates an empty
3339         pkgdatadir at installation time if pkgdata_DATA is specified
3340         to empty; modern automake versions do this as well, at least
3341         until automake 1.11.4 (not yet released at the moment of writing,
3342         but soon to appear).  That behaviour was generally considered a
3343         feature rather than a bug, at least until this discussion:
3344         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3345
3346         See also automake bugs #10997 and #11030.
3347
3348         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3349         reference to relevant automake bug numbers.
3350         (func_emit_tests_Makefile_am): Likewise.
3351
3352 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3353
3354         announce-gen: use Digest::SHA when possible
3355         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3356         back to Digest::SHA1 if necessary.
3357
3358 2012-03-20  Jim Meyering  <meyering@redhat.com>
3359
3360         tests: avoid gcc warnings about argv vs. const initializers
3361         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3362         warnings about discarding 'const' qualifier from pointer target type.
3363         * tests/test-posix_spawn2.c (main): Likewise.
3364
3365 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3366
3367         README-release: simplify slightly
3368         * top/README-release: Run "git checkout master" only once.
3369
3370 2012-03-15  Mark Wielaard  <mark@klomp.org>
3371
3372         git-merge-changelog: add specific example on how to use with hg.
3373         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3374
3375 2012-03-18  Mark Wielaard  <mark@klomp.org>
3376
3377         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3378
3379 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3380
3381         git-version-gen: don't let "prefix" envvar cause trouble
3382         * build-aux/git-version-gen (prefix): Initialize properly,
3383         so as not to use a value specified via the environment.
3384         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3385
3386 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3387
3388         regex: diagnose too-large repeat counts in EREs
3389         Previously, the code did not diagnose the too-large repeat count
3390         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3391         as if it were 'b\{1000000000}', which is unexpected.
3392         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3393         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3394         is a reasonable one for this problem.  Another option would be to
3395         create a new REG_OVERFLOW error for repeat counts that are too large.
3396         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3397         count is too large, so that the caller can distinguish the two cases.
3398         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3399         "Too large" return code, and that repeat counts are one example of this.
3400
3401 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3402
3403         doc: some glibc x32 integer width issues
3404         * doc/posix-headers/sys_types.texi (sys/types.h):
3405         * doc/posix-headers/time.texi (time.h):
3406         Mention that glibc x32 does not conform to POSIX in a couple of
3407         areas related to integer widths.
3408
3409 2012-03-15  Bruno Haible  <bruno@clisp.org>
3410
3411         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3412         * lib/fma.c (VOLATILE): New macro.
3413         (FUNC): Use it to work around a GCC compiler bug.
3414
3415 2012-03-13  Bruno Haible  <bruno@clisp.org>
3416
3417         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3418         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3419         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3420         REPLACE_HYPOTL to 1.
3421         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3422
3423 2012-03-13  Bruno Haible  <bruno@clisp.org>
3424
3425         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3426         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3427         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3428         REPLACE_REMAINDERL to 1.
3429         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3430         bug.
3431
3432 2012-03-13  Bruno Haible  <bruno@clisp.org>
3433
3434         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3435         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3436         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3437         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3438         too big rounding errors.
3439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3440         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3441         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3442         (Depends-on): Update conditions.
3443         * tests/test-sqrtl.c (my_ldexpl): New function.
3444         (main): Add test of a particular value.
3445         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3446
3447 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3448
3449         doc: Update timer_* platform portability notes.
3450         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3451         that always return ENOSYS.
3452         * doc/posix-functions/timer_delete.texi: Likewise.
3453         * doc/posix-functions/timer_gettime.texi: Likewise.
3454         * doc/posix-functions/timer_settime.texi: Likewise.
3455
3456 2012-03-13  Bruno Haible  <bruno@clisp.org>
3457
3458         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3459         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3460         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3461         REPLACE_CBRTL to 1.
3462         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3463
3464 2012-03-13  Bruno Haible  <bruno@clisp.org>
3465
3466         remainderl: Avoid compilation error on AIX >= 5.2.
3467         * lib/math.in.h (remainderl): Undefine macro from the system header.
3468
3469 2012-03-13  Bruno Haible  <bruno@clisp.org>
3470
3471         Avoid compilation errors with MSVC option -fp:strict.
3472         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3473         * lib/cbrtf.c: Likewise.
3474         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3475
3476 2012-03-12  Bruno Haible  <bruno@clisp.org>
3477
3478         uninorm: Don't crash in out-of-memory conditions.
3479         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3480         gracefully.
3481         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3482         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3483
3484 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3485
3486         quote: fix syntax-check
3487         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3488         also exports quote_quoting_options.
3489
3490 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3491
3492         Collapse list of copyright years to ranges.  See
3493         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3494         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3495         build-aux/csharpexec.sh.in, build-aux/gnupload,
3496         build-aux/install-reloc, build-aux/javacomp.sh.in,
3497         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3498         build-aux/move-if-change, build-aux/reloc-ldflags,
3499         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3500
3501 2012-03-11  Bruno Haible  <bruno@clisp.org>
3502
3503         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3504         * m4/log2f-ieee.m4: New file.
3505         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3506         whether log2f works with a minus zero argument. Replace it if not.
3507         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3508         (Depends-on): Add log2-ieee.
3509         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3510         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3511
3512         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3513         * m4/log2-ieee.m4: New file.
3514         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3515         whether log2 works with a minus zero argument. Replace it if not.
3516         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3517         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3518         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3519
3520         Tests for module 'log2l-ieee'.
3521         * modules/log2l-ieee-tests: New file.
3522         * tests/test-log2l-ieee.c: New file.
3523
3524         New module 'log2l-ieee'.
3525         * modules/log2l-ieee: New file.
3526
3527         Tests for module 'log2-ieee'.
3528         * modules/log2-ieee-tests: New file.
3529         * tests/test-log2-ieee.c: New file.
3530
3531         New module 'log2-ieee'.
3532         * modules/log2-ieee: New file.
3533
3534         Tests for module 'log2f-ieee'.
3535         * modules/log2f-ieee-tests: New file.
3536         * tests/test-log2f-ieee.c: New file.
3537         * tests/test-log2-ieee.h: New file.
3538
3539         New module 'log2f-ieee'.
3540         * modules/log2f-ieee: New file.
3541
3542 2012-03-11  Bruno Haible  <bruno@clisp.org>
3543
3544         Tests for module 'log2l'.
3545         * modules/log2l-tests: New file.
3546         * tests/test-log2l.c: New file.
3547
3548         New module 'log2l'.
3549         * lib/math.in.h (log2l): New declaration.
3550         * lib/log2l.c: New file.
3551         * m4/log2l.m4: New file.
3552         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3554         REPLACE_LOG2L.
3555         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3556         REPLACE_LOG2L.
3557         * modules/log2l: New file.
3558         * tests/test-math-c++.cc: Check the declaration of log2l.
3559         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3560         and OSF/1 problems.
3561
3562 2012-03-11  Bruno Haible  <bruno@clisp.org>
3563
3564         Tests for module 'log2f'.
3565         * modules/log2f-tests: New file.
3566         * tests/test-log2f.c: New file.
3567
3568         New module 'log2f'.
3569         * lib/math.in.h (log2f): New declaration.
3570         * lib/log2f.c: New file.
3571         * m4/log2f.m4: New file.
3572         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3574         REPLACE_LOG2F.
3575         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3576         REPLACE_LOG2F.
3577         * modules/log2f: New file.
3578         * tests/test-math-c++.cc: Check the declaration of log2f.
3579         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3580         and OSF/1 and Cygwin problems.
3581
3582 2012-03-11  Bruno Haible  <bruno@clisp.org>
3583
3584         Tests for module 'log2'.
3585         * modules/log2-tests: New file.
3586         * tests/test-log2.c: New file.
3587         * tests/test-log2.h: New file.
3588
3589         New module 'log2'.
3590         * lib/math.in.h (log2): New declaration.
3591         * lib/log2.c: New file.
3592         * m4/log2.m4: New file.
3593         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3595         REPLACE_LOG2.
3596         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3597         REPLACE_LOG2.
3598         * modules/log2: New file.
3599         * tests/test-math-c++.cc: Check the declaration of log2.
3600         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3601         and OSF/1 and Cygwin problems.
3602
3603 2012-03-11  Bruno Haible  <bruno@clisp.org>
3604
3605         exp2* tests: More tests.
3606         * tests/test-exp2.h (test_function): Test all integral arguments that
3607         don't need to overflow or denormalized numbers.
3608         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3609         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3610         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3611
3612 2012-03-10  Bruno Haible  <bruno@clisp.org>
3613
3614         log1pl-ieee: Work around test failure on AIX 7.1.
3615         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3616
3617         log1pl-ieee: Work around test failure on IRIX 6.5.
3618         * m4/log1pl-ieee.m4: New file.
3619         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3620         test whether log1pl works with a minus zero argument. Replace it if
3621         not.
3622         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3624         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3625         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3626         (Depends-on): Update conditions.
3627         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3628         m4/signbit.m4.
3629         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3630         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3631
3632         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3633         * m4/log1pf-ieee.m4: New file.
3634         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3635         test whether log1pf works with a minus zero argument. Replace it if
3636         not.
3637         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3638         m4/signbit.m4.
3639         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3640         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3641
3642         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3643         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3644         (configure.ac): Require gl_FUNC_LOG1PF.
3645
3646         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3647         * m4/log1p-ieee.m4: New file.
3648         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3649         whether log1p works with a minus zero argument. Replace it if not.
3650         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3652         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3653         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3654         (Depends-on): Update conditions.
3655         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3656         m4/signbit.m4.
3657         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3658         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3659
3660         Tests for module 'log1pl-ieee'.
3661         * modules/log1pl-ieee-tests: New file.
3662         * tests/test-log1pl-ieee.c: New file.
3663
3664         New module 'log1pl-ieee'.
3665         * modules/log1pl-ieee: New file.
3666
3667         Tests for module 'log1p-ieee'.
3668         * modules/log1p-ieee-tests: New file.
3669         * tests/test-log1p-ieee.c: New file.
3670
3671         New module 'log1p-ieee'.
3672         * modules/log1p-ieee: New file.
3673
3674         Tests for module 'log1pf-ieee'.
3675         * modules/log1pf-ieee-tests: New file.
3676         * tests/test-log1pf-ieee.c: New file.
3677         * tests/test-log1p-ieee.h: New file.
3678
3679         New module 'log1pf-ieee'.
3680         * modules/log1pf-ieee: New file.
3681
3682 2012-03-10  Bruno Haible  <bruno@clisp.org>
3683
3684         Tests for module 'log1pl'.
3685         * modules/log1pl-tests: New file.
3686         * tests/test-log1pl.c: New file.
3687
3688         New module 'log1pl'.
3689         * lib/math.in.h (log1pl): New declaration.
3690         * lib/log1pl.c: New file.
3691         * m4/log1pl.m4: New file.
3692         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3694         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3695         * modules/log1pl: New file.
3696         * tests/test-math-c++.cc: Check the declaration of log1pl.
3697         * doc/posix-functions/log1pl.texi: Mention the new module.
3698
3699 2012-03-10  Bruno Haible  <bruno@clisp.org>
3700
3701         Tests for module 'log1pf'.
3702         * modules/log1pf-tests: New file.
3703         * tests/test-log1pf.c: New file.
3704
3705         New module 'log1pf'.
3706         * lib/math.in.h (log1pf): New declaration.
3707         * lib/log1pf.c: New file.
3708         * m4/log1pf.m4: New file.
3709         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3711         REPLACE_LOG1PF.
3712         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3713         REPLACE_LOG1PF.
3714         * modules/log1pf: New file.
3715         * tests/test-math-c++.cc: Check the declaration of log1pf.
3716         * doc/posix-functions/log1pf.texi: Mention the new module.
3717
3718 2012-03-10  Bruno Haible  <bruno@clisp.org>
3719
3720         log1p tests: More tests.
3721         * tests/test-log1p.h: New file.
3722         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3723         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3724         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3725         (main): Invoke test_function.
3726
3727         log1p: Provide replacement for Minix and MSVC.
3728         * lib/math.in.h (log1p): New declaration.
3729         * lib/log1p.c: New file.
3730         * m4/log1p.m4: New file.
3731         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3733         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3734         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3735         (Depends-on): Add math, isnand, log, round.
3736         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3737         HAVE_LOG1P is 0.
3738         * tests/test-math-c++.cc: Check the declaration of log1p.
3739         * doc/posix-functions/log1p.texi: Mention the replacement.
3740
3741 2012-03-10  Bruno Haible  <bruno@clisp.org>
3742
3743         math tests: Small simplification.
3744         * tests/test-exp.h (test_function): Use the same err_bound for
3745         'double' on platforms with sizeof (long double) == sizeof (double)
3746         than on platforms with sizeof (long double) > sizeof (double).
3747         * tests/test-exp2.h (test_function): Likewise.
3748         * tests/test-expm1.h (test_function): Likewise.
3749         * tests/test-log.h (test_function): Likewise.
3750
3751 2012-03-10  Bruno Haible  <bruno@clisp.org>
3752
3753         Fix some comments.
3754         * lib/expl.c: Fix an ambiguous comment.
3755         * lib/expm1.c: Likewise.
3756         * lib/expm1l.c: Likewise.
3757         * lib/exp2.c: Likewise.
3758         * lib/exp2l.c: Likewise.
3759
3760 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         regex: allow inclusion of <regex.h> before <limits.h>
3763         Without this patch, portable programs had to include <limits.h> before
3764         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3765         I ran into this problem with a test version of GNU grep on Solaris 8.
3766         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3767         This is done conditionally so that this change can be merged
3768         back to glibc.
3769         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3770         using the included regex.
3771
3772         fts: depend on fdopendir
3773         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3774         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3775         problem was introduced when fdopendir was split out.
3776
3777 2012-03-10  Bruno Haible  <bruno@clisp.org>
3778
3779         Remove unused variables.
3780         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3781         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3782
3783 2012-03-10  Bruno Haible  <bruno@clisp.org>
3784
3785         isnanf-nolibm: Fix last commit.
3786         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3787
3788         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3789         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3790
3791 2012-03-10  Bruno Haible  <bruno@clisp.org>
3792
3793         logf-ieee: Work around test failure on NetBSD 5.1.
3794         * m4/logf-ieee.m4: New file.
3795         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3796         whether logf works with a negative argument. Replace it if not.
3797         * lib/logf.c (logf): For negative arguments, return NaN.
3798         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3799         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3800         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3801
3802         logf-ieee: Work around test failure on Solaris 9.
3803         * modules/logf-ieee (Depends-on): Add log-ieee.
3804         (configure.ac): Require gl_FUNC_LOGF.
3805
3806         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3807         * m4/log-ieee.m4: New file.
3808         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3809         log works with a negative argument. Replace it if not.
3810         * lib/log.c (log): For negative arguments, return NaN.
3811         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3812         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3813         * doc/posix-functions/log.texi: Mention the log-ieee module.
3814
3815         Tests for module 'logl-ieee'.
3816         * modules/logl-ieee-tests: New file.
3817         * tests/test-logl-ieee.c: New file.
3818
3819         New module 'logl-ieee'.
3820         * modules/logl-ieee: New file.
3821
3822         Tests for module 'log-ieee'.
3823         * modules/log-ieee-tests: New file.
3824         * tests/test-log-ieee.c: New file.
3825
3826         New module 'log-ieee'.
3827         * modules/log-ieee: New file.
3828
3829         Tests for module 'logf-ieee'.
3830         * modules/logf-ieee-tests: New file.
3831         * tests/test-logf-ieee.c: New file.
3832         * tests/test-log-ieee.h: New file.
3833
3834         New module 'logf-ieee'.
3835         * modules/logf-ieee: New file.
3836
3837 2012-03-10  Bruno Haible  <bruno@clisp.org>
3838
3839         log: Fix bug introduced on 2012-03-09.
3840         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3841
3842 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3843
3844         timer-time: link explicitly with pthreads on glibc
3845         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3846         to support static linking, when newer glibc is
3847         detected, as that contains pthread emulation of
3848         POSIX timer functions where required.
3849         * modules/timer-time: Depend on threadlib to
3850         pull in the appropriate library to link.
3851
3852 2012-03-10  Bruno Haible  <bruno@clisp.org>
3853
3854         log* tests: More tests.
3855         * tests/test-log.h: New file.
3856         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3857         (main): Invoke test_function.
3858         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3859         (main): Invoke test_function.
3860         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3861         (main): Invoke test_function.
3862         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3863         tests/randomd.c.
3864         (Makefile.am): Add randomd.c to test_log_SOURCES.
3865         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3866         tests/randomf.c.
3867         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3868         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3869         tests/randoml.c.
3870         (Depends-on): Add 'float'.
3871         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3872
3873 2012-03-09  Bruno Haible  <bruno@clisp.org>
3874
3875         logl: Work around OSF/1 5.1 bug.
3876         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3877         * lib/logl.c (logl): If logl exists, use it and provide just the
3878         workaround.
3879         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3880         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3882         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3883         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3884         (Depends-on): Update conditions.
3885         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3886
3887 2012-03-09  Bruno Haible  <bruno@clisp.org>
3888
3889         logf: Work around OSF/1 5.1 bug.
3890         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3891         * lib/logf.c (logf): If logf exists, use it and provide just the
3892         workaround.
3893         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3894         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3896         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3897         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3898         (Depends-on): Update conditions.
3899         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3900
3901 2012-03-09  Bruno Haible  <bruno@clisp.org>
3902
3903         log: Work around OSF/1 5.1 bug.
3904         * lib/math.in.h (log): New declaration.
3905         * lib/log.c: New file.
3906         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3907         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3908         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3910         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3911         * modules/log (Files): Add lib/log.c.
3912         (Depends-on): Add math.
3913         (configure.ac): If REPLACE_LOG is 1, compile an override.
3914         * tests/test-math-c++.cc: Check the declaration of log.
3915         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3916
3917 2012-03-09  Jim Meyering  <meyering@redhat.com>
3918
3919         readtokens.c: adjust wording in a comment
3920         * lib/readtokens.c: Insert omitted "that" in a comment.
3921
3922 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3923
3924         modechange: add notations +40, 00440, etc.
3925         * lib/modechange.c (mode_compile): Support new notations
3926         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3927
3928 2012-03-08  Bruno Haible  <bruno@clisp.org>
3929
3930         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3931         * m4/exp2l-ieee.m4: New file.
3932         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3933         test whether exp2l works with a NaN argument and with a negative
3934         infinity argument. Replace it if not.
3935         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3937         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3938         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3939         (Depends-on): Update conditions.
3940         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3941         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3942         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3943
3944         Tests for module 'exp2l-ieee'.
3945         * modules/exp2l-ieee-tests: New file.
3946         * tests/test-exp2l-ieee.c: New file.
3947
3948         New module 'exp2l-ieee'.
3949         * modules/exp2l-ieee: New file.
3950
3951         Tests for module 'exp2-ieee'.
3952         * modules/exp2-ieee-tests: New file.
3953         * tests/test-exp2-ieee.c: New file.
3954
3955         New module 'exp2-ieee'.
3956         * modules/exp2-ieee: New file.
3957
3958         Tests for module 'exp2f-ieee'.
3959         * modules/exp2f-ieee-tests: New file.
3960         * tests/test-exp2f-ieee.c: New file.
3961         * tests/test-exp2-ieee.h: New file.
3962
3963         New module 'exp2f-ieee'.
3964         * modules/exp2f-ieee: New file.
3965
3966 2012-03-08  Bruno Haible  <bruno@clisp.org>
3967
3968         Tests for module 'exp2l'.
3969         * modules/exp2l-tests: New file.
3970         * tests/test-exp2l.c: New file.
3971
3972         New module 'exp2l'.
3973         * lib/math.in.h (exp2l): New declaration.
3974         * lib/exp2l.c: New file.
3975         * lib/expl-table.c: New file, extracted from lib/expl.c.
3976         * lib/expl.c (gl_expl_table): New declaration.
3977         (expl): Remove expl_table. Update reference.
3978         * m4/exp2l.m4: New file.
3979         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3981         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3982         * modules/exp2l: New file.
3983         * modules/expl (Files): Add lib/expl-table.c.
3984         (configure.ac): Compile also expl-table.c.
3985         * tests/test-math-c++.cc: Check the declaration of exp2l.
3986         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3987         problem.
3988
3989 2012-03-08  Bruno Haible  <bruno@clisp.org>
3990
3991         Tests for module 'exp2f'.
3992         * modules/exp2f-tests: New file.
3993         * tests/test-exp2f.c: New file.
3994
3995         New module 'exp2f'.
3996         * lib/math.in.h (exp2f): New declaration.
3997         * lib/exp2f.c: New file.
3998         * m4/exp2f.m4: New file.
3999         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4001         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4002         * modules/exp2f: New file.
4003         * tests/test-math-c++.cc: Check the declaration of exp2f.
4004         * doc/posix-functions/exp2f.texi: Mention the new module and the
4005         IRIX problem.
4006
4007 2012-03-08  Bruno Haible  <bruno@clisp.org>
4008
4009         Tests for module 'exp2'.
4010         * modules/exp2-tests: New file.
4011         * tests/test-exp2.c: New file.
4012         * tests/test-exp2.h: New file.
4013
4014         New module 'exp2'.
4015         * lib/math.in.h (exp2): New declaration.
4016         * lib/exp2.c: New file.
4017         * m4/exp2.m4: New file.
4018         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4020         REPLACE_EXP2.
4021         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4022         REPLACE_EXP2.
4023         * modules/exp2: New file.
4024         * tests/test-math-c++.cc: Check the declaration of exp2.
4025         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4026         and OpenBSD problems.
4027
4028 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4029
4030         savedir: fix comment typo
4031         * lib/savedir.c (savedirstream): Fix typo in comment.
4032
4033 2012-03-08  Bruno Haible  <bruno@clisp.org>
4034
4035         test-readtokens.c: use const; remove unwarranted cast
4036         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4037
4038 2012-03-08  Bruno Haible  <bruno@clisp.org>
4039
4040         fmal: Avoid compilation error on AIX.
4041         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4042         AIX 5.2..7.1.
4043
4044 2012-03-08  Bruno Haible  <bruno@clisp.org>
4045
4046         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4047         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4048         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4049         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4050         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4051         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4052         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4053
4054 2012-03-08  Bruno Haible  <bruno@clisp.org>
4055
4056         remainderf: Override buggy system function on IRIX 6.5.
4057         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4058         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4059         when it exists.
4060         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4061
4062 2012-03-08  Jim Meyering  <meyering@redhat.com>
4063
4064         test-readtokens.c: avoid const-related compilation warnings
4065         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4066
4067 2012-03-07  Jim Meyering  <meyering@redhat.com>
4068             Bruno Haible  <bruno@clisp.org>
4069
4070         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4071         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4072         tests/randomd.c.
4073         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4074         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4075         tests/randoml.c.
4076         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4077
4078 2012-03-07  Bruno Haible  <bruno@clisp.org>
4079
4080         expm1l: Avoid compilation error on AIX.
4081         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4082         AIX 5.2..7.1.
4083
4084 2012-03-07  Bruno Haible  <bruno@clisp.org>
4085
4086         expm1l: Don't override undeclared system function on IRIX 6.5.
4087         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4088         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4089         it exists. Set HAVE_DECL_EXPM1L.
4090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4091         HAVE_EXPM1L.
4092         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4093         HAVE_EXPM1L.
4094         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4095
4096 2012-03-07  Bruno Haible  <bruno@clisp.org>
4097
4098         remainderl: Don't override undeclared system function on IRIX 6.5.
4099         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4100         HAVE_REMAINDERL.
4101         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4102         declared when it exists. Set HAVE_DECL_REMAINDERL.
4103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4104         not HAVE_REMAINDERL.
4105         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4106         HAVE_REMAINDERL.
4107         * doc/posix-functions/remainderl.texi: Mention missing declaration
4108         problem.
4109
4110 2012-03-07  Bruno Haible  <bruno@clisp.org>
4111
4112         rintf: Don't override undeclared system function on IRIX 6.5.
4113         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4114         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4115         exists. Set HAVE_DECL_RINTF.
4116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4117         HAVE_RINTF.
4118         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4119         HAVE_RINTF.
4120         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4121
4122 2012-03-07  Bruno Haible  <bruno@clisp.org>
4123
4124         roundl: Avoid compilation error on AIX.
4125         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4126         AIX 5.2..7.1.
4127
4128 2012-03-07  Bruno Haible  <bruno@clisp.org>
4129
4130         roundl: Don't override undeclared system function on IRIX 6.5.
4131         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4132         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4133         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4134         * modules/roundl (configure.ac): For replacement code, test
4135         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4136         (Depends-on): Update conditions.
4137         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4138
4139 2012-03-07  Bruno Haible  <bruno@clisp.org>
4140
4141         roundf: Don't override undeclared system function on IRIX 6.5.
4142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4143         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4144         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4145         * modules/roundf (configure.ac): For replacement code, test
4146         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4147         (Depends-on): Update conditions.
4148         * modules/roundf-ieee (Depends-on): Update conditions.
4149         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4150
4151 2012-03-07  Bruno Haible  <bruno@clisp.org>
4152
4153         round: Don't override undeclared system function on IRIX 6.5.
4154         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4155         argument.
4156         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4157         also when it is not declared. Set HAVE_ROUND. For replacement code,
4158         test HAVE_ROUND, not HAVE_DECL_ROUND.
4159         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4160         not HAVE_DECL_ROUND.
4161         (Depends-on): Update conditions.
4162         * modules/round-ieee (Depends-on): Update conditions.
4163         * doc/posix-functions/round.texi: Mention the IRIX problem.
4164
4165 2012-03-07  Bruno Haible  <bruno@clisp.org>
4166
4167         copysignf: Don't override undeclared system function on IRIX 6.5.
4168         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4169         HAVE_COPYSIGNF.
4170         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4171         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4173         not HAVE_COPYSIGNF.
4174         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4175         HAVE_COPYSIGNF.
4176         * doc/posix-functions/copysignf.texi: Mention missing declaration
4177         problem.
4178
4179 2012-03-07  Jim Meyering  <meyering@redhat.com>
4180
4181         readtokens: add tests
4182         * modules/readtokens-tests: New file.
4183         * tests/test-readtokens.c: New file.
4184
4185 2012-03-07  Jim Meyering  <meyering@redhat.com>
4186
4187         quotearg: the module must now include quote.h
4188         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4189         So must the module.
4190         * modules/quotearg (Files): Add quote.h.
4191
4192 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4193
4194         readtokens: avoid core dumps with unusual calling patterns
4195         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4196         * lib/readtokens.c: Include limits.h.
4197         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4198         (readtoken): Don't cache the delimiters; the cache code was buggy
4199         if !delim && saved_delim, or if the new n_delim differs from the old.
4200         Also, it wasn't thread-safe.
4201
4202 2012-03-07  Bruno Haible  <bruno@clisp.org>
4203
4204         quote: Adhere to common module description layout.
4205         * modules/quote (Makefile.am): Add back empty section.
4206
4207 2012-03-06  Akim Demaille  <demaille@gostai.com>
4208
4209         quote: fuse into quotearg
4210         This patch is made for the benefit of Bison.
4211         quote does not leave the choice of the quoting style to the user.
4212         quoting_style provides poor customizability, yet quoting_options,
4213         which is very rich, is hidden inside quotearg.c.  So in order to
4214         allow quote customization, move its implementation to quotearg.c.
4215         * lib/quote.c: Remove.
4216         * modules/quote: Adjust.
4217         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4218         warning: provide all the members of literal structs.
4219         (quote_quoting_options): New.
4220         (quote, quote_n): Import implementation from quote.c.
4221         * lib/quote.h: Import the comments from quote.c.
4222         (quote_quoting_options): New.
4223
4224 2012-03-06  Bruno Haible  <bruno@clisp.org>
4225
4226         Tests for module 'expm1l-ieee'.
4227         * modules/expm1l-ieee-tests: New file.
4228         * tests/test-expm1l-ieee.c: New file.
4229
4230         New module 'expm1l-ieee'.
4231         * modules/expm1l-ieee: New file.
4232
4233         Tests for module 'expm1f-ieee'.
4234         * modules/expm1f-ieee-tests: New file.
4235         * tests/test-expm1f-ieee.c: New file.
4236
4237         New module 'expm1f-ieee'.
4238         * modules/expm1f-ieee: New file.
4239
4240         Tests for module 'expm1-ieee'.
4241         * modules/expm1-ieee-tests: New file.
4242         * tests/test-expm1-ieee.c: New file.
4243         * tests/test-expm1-ieee.h: New file.
4244
4245         New module 'expm1-ieee'.
4246         * modules/expm1-ieee: New file.
4247         * m4/expm1-ieee.m4: New file.
4248         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4249         whether expm1 works with a minus zero argument. Replace it if not.
4250         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4252         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4253         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4254         (Depends-on): Update conditions.
4255         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4256         AIX problem.
4257
4258 2012-03-06  Bruno Haible  <bruno@clisp.org>
4259
4260         Work around expm1f bug on IRIX 6.5.
4261         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4262         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4263         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4264         not work.
4265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4266         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4267         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4268         (Depends-on): Update conditions.
4269         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4270
4271 2012-03-06  Bruno Haible  <bruno@clisp.org>
4272
4273         Tests for module 'expm1l'.
4274         * modules/expm1l-tests: New file.
4275         * tests/test-expm1l.c: New file.
4276
4277         New module 'expm1l'.
4278         * lib/math.in.h (expm1l): New declaration.
4279         * lib/expm1l.c: New file.
4280         * m4/expm1l.m4: New file.
4281         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4283         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4284         * modules/expm1l: New file.
4285         * tests/test-math-c++.cc: Check the declaration of expm1l.
4286         * doc/posix-functions/expm1l.texi: Mention the new module.
4287
4288 2012-03-06  Bruno Haible  <bruno@clisp.org>
4289
4290         Tests for module 'expm1f'.
4291         * modules/expm1f-tests: New file.
4292         * tests/test-expm1f.c: New file.
4293
4294         New module 'expm1f'.
4295         * lib/math.in.h (expm1f): New declaration.
4296         * lib/expm1f.c: New file.
4297         * m4/expm1f.m4: New file.
4298         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4300         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4301         * modules/expm1f: New file.
4302         * tests/test-math-c++.cc: Check the declaration of expm1f.
4303         * doc/posix-functions/expm1f.texi: Mention the new module.
4304
4305 2012-03-06  Bruno Haible  <bruno@clisp.org>
4306
4307         Tests for module 'expm1'.
4308         * modules/expm1-tests: New file.
4309         * tests/test-expm1.c: New file.
4310         * tests/test-expm1.h: New file.
4311
4312         New module 'expm1'.
4313         * lib/math.in.h (expm1): New declaration.
4314         * lib/expm1.c: New file.
4315         * m4/expm1.m4: New file.
4316         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4318         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4319         * modules/expm1: New file.
4320         * tests/test-math-c++.cc: Check the declaration of expm1.
4321         * doc/posix-functions/expm1.texi: Mention the new module.
4322
4323 2012-03-06  Bruno Haible  <bruno@clisp.org>
4324
4325         math: Ensure declarations of math functions.
4326         * modules/acosf (Depends-on): Add 'extensions'.
4327         * modules/asinf (Depends-on): Likewise.
4328         * modules/atan2f (Depends-on): Likewise.
4329         * modules/atanf (Depends-on): Likewise.
4330         * modules/cbrt (Depends-on): Likewise.
4331         * modules/cbrtf (Depends-on): Likewise.
4332         * modules/cbrtl (Depends-on): Likewise.
4333         * modules/copysignf (Depends-on): Likewise.
4334         * modules/copysignl (Depends-on): Likewise.
4335         * modules/cosf (Depends-on): Likewise.
4336         * modules/coshf (Depends-on): Likewise.
4337         * modules/expf (Depends-on): Likewise.
4338         * modules/fabsf (Depends-on): Likewise.
4339         * modules/fabsl (Depends-on): Likewise.
4340         * modules/fmaf (Depends-on): Likewise.
4341         * modules/fmal (Depends-on): Likewise.
4342         * modules/fmodf (Depends-on): Likewise.
4343         * modules/fmodl (Depends-on): Likewise.
4344         * modules/frexpf (Depends-on): Likewise.
4345         * modules/frexpl (Depends-on): Likewise.
4346         * modules/hypot (Depends-on): Likewise.
4347         * modules/hypotf (Depends-on): Likewise.
4348         * modules/hypotl (Depends-on): Likewise.
4349         * modules/ldexpf (Depends-on): Likewise.
4350         * modules/ldexpl (Depends-on): Likewise.
4351         * modules/log10f (Depends-on): Likewise.
4352         * modules/log10l (Depends-on): Likewise.
4353         * modules/log1p (Depends-on): Likewise.
4354         * modules/logb (Depends-on): Likewise.
4355         * modules/logf (Depends-on): Likewise.
4356         * modules/modff (Depends-on): Likewise.
4357         * modules/modfl (Depends-on): Likewise.
4358         * modules/powf (Depends-on): Likewise.
4359         * modules/remainderf (Depends-on): Likewise.
4360         * modules/remainderl (Depends-on): Likewise.
4361         * modules/rintf (Depends-on): Likewise.
4362         * modules/rintl (Depends-on): Likewise.
4363         * modules/sinf (Depends-on): Likewise.
4364         * modules/sinhf (Depends-on): Likewise.
4365         * modules/sqrtf (Depends-on): Likewise.
4366         * modules/tanf (Depends-on): Likewise.
4367         * modules/tanhf (Depends-on): Likewise.
4368         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4369         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4370         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4371         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4372         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4373         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4374         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4375         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4376         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4377         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4378         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4379         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4380         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4381         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4382         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4383         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4384         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4385         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4386         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4387         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4388         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4389         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4390         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4391         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4392         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4393         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4394         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4395         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4396         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4397         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4398         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4399         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4400         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4401         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4402         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4403         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4404         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4405         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4406         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4407         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4408         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4409
4410 2012-03-06  Bruno Haible  <bruno@clisp.org>
4411
4412         math: Update module names in warnings.
4413         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4414         tanl): Use specific module name in warn-on-use warning.
4415
4416 2012-03-06  Bruno Haible  <bruno@clisp.org>
4417
4418         expl: Simplify computation.
4419         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4420
4421 2012-03-05  Bruno Haible  <bruno@clisp.org>
4422
4423         exp* tests: More tests.
4424         * tests/test-exp.h: New file.
4425         * tests/test-exp.c: Include <float.h> and test-exp.h.
4426         (main): Invoke test_function.
4427         * tests/test-expf.c: Include <float.h> and test-exp.h.
4428         (main): Invoke test_function.
4429         * tests/test-expl.c: Include <float.h> and test-exp.h.
4430         (main): Invoke test_function.
4431         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4432         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4433         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4434         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4435         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4436         (Depends-on): Add 'float'.
4437         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4438
4439         expl: Fix precision of computed result.
4440         * lib/expl.c: Completely rewritten.
4441         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4442         (Maintainer): Add me.
4443         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4444
4445 2012-03-05  Bruno Haible  <bruno@clisp.org>
4446
4447         cbrt* tests: More tests.
4448         * tests/test-cbrt.h: New file.
4449         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4450         (main): Invoke test_function.
4451         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4452         (main): Invoke test_function.
4453         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4454         (main): Invoke test_function.
4455         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4456         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4457         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4458         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4459         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4460         (Depends-on): Add 'float'.
4461         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4462
4463 2012-03-05  Bruno Haible  <bruno@clisp.org>
4464
4465         hypot* tests: More tests.
4466         * tests/test-hypot.h: New file, partially extracted from
4467         tests/test-hypotl.c.
4468         * tests/test-hypot.c: Include test-hypot.h.
4469         (main): Invoke test_function.
4470         * tests/test-hypotf.c: Include test-hypot.h.
4471         (main): Invoke test_function.
4472         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4473         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4474         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4475         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4476         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4477         tests/randomf.c.
4478         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4479         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4480         tests/randoml.c.
4481         (Depends-on): Add 'fpucw', 'float'.
4482         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4483
4484 2012-03-05  Bruno Haible  <bruno@clisp.org>
4485
4486         fpucw: Doc about FreeBSD.
4487         * lib/fpucw.h: Mention FreeBSD in comments.
4488
4489 2012-03-04  Bruno Haible  <bruno@clisp.org>
4490
4491         sqrt* tests: More tests.
4492         * tests/test-sqrt.h: New file.
4493         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4494         (main): Invoke test_function.
4495         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4496         (main): Invoke test_function.
4497         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4498         (main): Invoke test_function.
4499         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4500         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4501         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4502         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4503         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4504         (Depends-on): Add 'float'.
4505         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4506
4507 2012-03-04  Bruno Haible  <bruno@clisp.org>
4508
4509         remainder* tests: More tests.
4510         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4511         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4512         (main): Invoke test_function.
4513         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4514         (main): Invoke test_function.
4515         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4516         (main): Invoke test_function.
4517         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4518         tests/randomd.c.
4519         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4520         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4521         tests/randomf.c.
4522         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4523         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4524         tests/randoml.c.
4525         (Depends-on): Add 'float'.
4526         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4527
4528 2012-03-04  Bruno Haible  <bruno@clisp.org>
4529
4530         remainder, remainderf, remainderl: Fix computation for large quotients.
4531         * lib/remainder.c: Completely rewritten.
4532         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4533         USE_FLOAT.
4534         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4535         USE_LONG_DOUBLE.
4536         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4537         isnand, isinf. Remove round, fma.
4538         * modules/remainderf (Files): Add lib/remainder.c.
4539         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4540         Remove roundf, fmaf.
4541         * modules/remainderl (Files): Add lib/remainder.c.
4542         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4543         isinf. Remove roundl, fmal.
4544         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4545         REMAINDER_LIBM.
4546         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4547         REMAINDERF_LIBM.
4548         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4549         REMAINDERL_LIBM.
4550
4551 2012-03-04  Bruno Haible  <bruno@clisp.org>
4552
4553         fmod* tests: More tests.
4554         * tests/test-fmod.h (my_ldexp): New function.
4555         (test_function): Reduce amount of random numbers to test. Add tests
4556         of very large quotients x / y.
4557         * tests/test-fmod.c (MAX_EXP): New macro.
4558         * tests/test-fmodf.c (MAX_EXP): Likewise.
4559         * tests/test-fmodl.c (MAX_EXP): Likewise.
4560
4561 2012-03-04  Bruno Haible  <bruno@clisp.org>
4562
4563         fmod, fmodl: Fix computation for large quotients x / y.
4564         * lib/fmod.c: Completely rewritten.
4565         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4566         USE_LONG_DOUBLE.
4567         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4568         isnand. Remove fma.
4569         * modules/fmodl (Files): Add lib/fmod.c.
4570         (Depends-on): Add float, isfinite, signbit, fabsl,
4571         frexpl, ldexpl, isnanl. Remove fma.
4572         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4573         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4574
4575 2012-03-03  Bruno Haible  <bruno@clisp.org>
4576
4577         fmod* tests: More tests.
4578         * tests/test-fmod.h: New file.
4579         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4580         (main): Invoke test_function.
4581         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4582         (main): Invoke test_function.
4583         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4584         (main): Invoke test_function.
4585         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4586         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4587         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4588         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4589         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4590         (Depends-on): Add 'float'.
4591         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4592
4593 2012-03-03  Bruno Haible  <bruno@clisp.org>
4594
4595         rint* tests: More tests.
4596         * tests/test-rint.h: New file, partially extracted from
4597         tests/test-rintl.c.
4598         * tests/test-rint.c: Include test-rint.h.
4599         (main): Invoke test_function.
4600         * tests/test-rintf.c: Include test-rint.h.
4601         (main): Invoke test_function.
4602         * tests/test-rintl.c: Include test-rint.h.
4603         (main): Invoke test_function.
4604         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4605         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4606         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4607         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4608         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4609         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4610
4611 2012-03-03  Bruno Haible  <bruno@clisp.org>
4612
4613         modf* tests: More tests.
4614         * tests/test-modf.h: New file.
4615         * tests/test-modf.c: Include <float.h> and test-modf.h.
4616         (main): Invoke test_function.
4617         * tests/test-modff.c: Include <float.h> and test-modf.h.
4618         (main): Invoke test_function.
4619         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4620         (main): Invoke test_function.
4621         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4622         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4623         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4624         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4625         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4626         (Depends-on): Add 'float'.
4627         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4628
4629 2012-03-03  Bruno Haible  <bruno@clisp.org>
4630
4631         fabs* tests: More tests.
4632         * tests/test-fabs.h: New file, partially extracted from
4633         tests/test-fabsl.c.
4634         * tests/test-fabs.c (RANDOM): New macro.
4635         * tests/test-fabsf.c (RANDOM): New macro.
4636         * tests/test-fabsl.c (RANDOM): New macro.
4637         * modules/fabs-tests (Files): Add tests/randomd.c.
4638         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4639         * modules/fabsf-tests (Files): Add tests/randomf.c.
4640         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4641         * modules/fabsl-tests (Files): Add tests/randoml.c.
4642         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4643
4644 2012-03-03  Bruno Haible  <bruno@clisp.org>
4645
4646         ldexp* tests: More tests.
4647         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4648         * tests/test-ldexp.c (RANDOM): New macro.
4649         * tests/test-ldexpf.c (RANDOM): New macro.
4650         * tests/test-ldexpl.c (RANDOM): New macro.
4651         * modules/ldexp-tests (Files): Add tests/randomd.c.
4652         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4653         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4654         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4655         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4656         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4657
4658 2012-03-03  Bruno Haible  <bruno@clisp.org>
4659
4660         frexp* tests: More tests.
4661         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4662         * tests/test-frexp.c (RANDOM): New macro.
4663         * tests/test-frexpf.c (RANDOM): New macro.
4664         * tests/test-frexpl.c (RANDOM): New macro.
4665         * modules/frexp-tests (Files): Add tests/randomd.c.
4666         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4667         * modules/frexpf-tests (Files): Add tests/randomf.c.
4668         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4669         * modules/frexpl-tests (Files): Add tests/randoml.c.
4670         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4671
4672 2012-03-03  Bruno Haible  <bruno@clisp.org>
4673
4674         Support for pseudo-random numbers in tests.
4675         * tests/randomf.c: New file.
4676         * tests/randomd.c: New file.
4677         * tests/randoml.c: New file.
4678         * tests/macros.h (randomf, randomd, randoml): New declarations.
4679
4680 2012-03-03  Bruno Haible  <bruno@clisp.org>
4681
4682         frexp* tests: Refactor.
4683         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4684         * tests/test-frexp.c: Include and use it.
4685         * tests/test-frexpf.c: Likewise.
4686         * tests/test-frexpl.c: Likewise.
4687         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4688         * modules/frexpf-tests (Files): Likewise.
4689         * modules/frexpl-tests (Files): Likewise.
4690
4691 2012-03-02  Jim Meyering  <meyering@redhat.com>
4692
4693         maint: don't specify XZ_OPT=-9ev in dist-related rule
4694         Using xz's -9 option is warranted only if you have a very large
4695         tarball (see xz's documentation for the sizes vs. presets), and
4696         requires 64MiB of memory at decompression time.
4697         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4698         Automake's default of just "-e" is fine.  Override on a
4699         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4700
4701 2012-03-01  Eric Blake  <eblake@redhat.com>
4702
4703         maint.mk: allow announcement for non-gnulib project
4704         * maint.mk (announcement): Skip gnulib version if not used.
4705
4706 2012-03-01  Jim Meyering  <meyering@redhat.com>
4707
4708         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4709         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4710         envvar settings cannot interfere.  Otherwise, setting envvars like
4711         prohibit=foo require=bar, etc. would cause spurious test failures.
4712
4713 2012-03-01  Eric Blake  <eblake@redhat.com>
4714
4715         maint.mk: add per-line exclusions to prohibitions
4716         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4717         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4718         (sc_const_long_option): Use it.
4719
4720 2012-03-01  Bruno Haible  <bruno@clisp.org>
4721
4722         Tests for module 'expl-ieee'.
4723         * modules/expl-ieee-tests: New file.
4724         * tests/test-expl-ieee.c: New file.
4725
4726         New module 'expl-ieee'.
4727         * modules/expl-ieee: New file.
4728
4729         Tests for module 'exp-ieee'.
4730         * modules/exp-ieee-tests: New file.
4731         * tests/test-exp-ieee.c: New file.
4732
4733         New module 'exp-ieee'.
4734         * modules/exp-ieee: New file.
4735
4736         Tests for module 'expf-ieee'.
4737         * modules/expf-ieee-tests: New file.
4738         * tests/test-expf-ieee.c: New file.
4739         * tests/test-exp-ieee.h: New file.
4740
4741         New module 'expf-ieee'.
4742         * modules/expf-ieee: New file.
4743
4744 2012-02-29  Bruno Haible  <bruno@clisp.org>
4745
4746         cbrtl-ieee: Work around test failure on IRIX 6.5.
4747         * m4/cbrtl-ieee.m4: New file.
4748         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4749         test whether cbrtl works with a minus zero argument. Replace it if not.
4750         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4752         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4753         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4754         (Depends-on): Update conditions.
4755         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4756         m4/signbit.m4.
4757         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4758         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4759         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4760
4761         Tests for module 'cbrtl-ieee'.
4762         * modules/cbrtl-ieee-tests: New file.
4763         * tests/test-cbrtl-ieee.c: New file.
4764
4765         New module 'cbrtl-ieee'.
4766         * modules/cbrtl-ieee: New file.
4767
4768         Tests for module 'cbrt-ieee'.
4769         * modules/cbrt-ieee-tests: New file.
4770         * tests/test-cbrt-ieee.c: New file.
4771
4772         New module 'cbrt-ieee'.
4773         * modules/cbrt-ieee: New file.
4774
4775         Tests for module 'cbrtf-ieee'.
4776         * modules/cbrtf-ieee-tests: New file.
4777         * tests/test-cbrtf-ieee.c: New file.
4778         * tests/test-cbrt-ieee.h: New file.
4779
4780         New module 'cbrtf-ieee'.
4781         * modules/cbrtf-ieee: New file.
4782
4783 2012-02-29  Bruno Haible  <bruno@clisp.org>
4784
4785         cbrtf: Work around bug in IRIX 6.5 system function.
4786         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4787         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4788         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4789         work.
4790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4791         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4792         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4793         (Depends-on): Update conditions.
4794         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4795
4796 2012-02-29  Bruno Haible  <bruno@clisp.org>
4797
4798         Tests for module 'cbrtl'.
4799         * modules/cbrtl-tests: New file.
4800         * tests/test-cbrtl.c: New file.
4801
4802         New module 'cbrtl'.
4803         * lib/math.in.h (cbrtl): New declaration.
4804         * lib/cbrtl.c: New file.
4805         * m4/cbrtl.m4: New file.
4806         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4808         HAVE_DECL_CBRTL.
4809         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4810         HAVE_DECL_CBRTL.
4811         * modules/cbrtl: New file.
4812         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4813         * doc/posix-functions/cbrtl.texi: Mention the new module.
4814
4815 2012-02-29  Bruno Haible  <bruno@clisp.org>
4816
4817         Tests for module 'cbrtf'.
4818         * modules/cbrtf-tests: New file.
4819         * tests/test-cbrtf.c: New file.
4820
4821         New module 'cbrtf'.
4822         * lib/math.in.h (cbrtf): New declaration.
4823         * lib/cbrtf.c: New file.
4824         * m4/cbrtf.m4: New file.
4825         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4827         HAVE_DECL_CBRTF.
4828         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4829         HAVE_DECL_CBRTF.
4830         * modules/cbrtf: New file.
4831         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4832         * doc/posix-functions/cbrtf.texi: Mention the new module.
4833
4834 2012-02-29  Bruno Haible  <bruno@clisp.org>
4835
4836         cbrt: Provide replacement on MSVC and Minix.
4837         * lib/math.in.h (cbrt): New declaration.
4838         * lib/cbrt.c: New file.
4839         * m4/cbrt.m4: New file.
4840         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4842         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4843         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4844         (Depends-on): Add dependencies.
4845         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4846         * tests/test-math-c++.cc: Check the declaration of cbrt.
4847         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4848         replacement.
4849
4850 2012-02-29  Bruno Haible  <bruno@clisp.org>
4851
4852         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4853         * m4/hypotl-ieee.m4: New file.
4854         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4855         test whether hypotl works with mixed NaN and Infinity arguments.
4856         Replace it if not.
4857         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4859         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4860         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4861         (Depends-on): Update conditions.
4862         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4863         (Depends-on): Add hypot-ieee.
4864         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4865         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4866
4867         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4868         * m4/hypotf-ieee.m4: New file.
4869         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4870         test whether hypotf works with mixed NaN and Infinity arguments.
4871         Replace it if not.
4872         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4873         (Depends-on): Add hypot-ieee.
4874         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4875         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4876
4877         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4878         * lib/math.in.h (hypot): New declaration.
4879         * lib/hypot.c: New file.
4880         * m4/hypot-ieee.m4: New file.
4881         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4882         whether hypot works with mixed NaN and Infinity arguments. Replace it
4883         if not.
4884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4885         REPLACE_HYPOT.
4886         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4887         * modules/hypot (Files): Add lib/hypot.c.
4888         (Depends-on): Add dependencies.
4889         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4890         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4891         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4892         * tests/test-math-c++.cc: Check the declaration of hypot.
4893         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4894
4895         Tests for module 'hypotl-ieee'.
4896         * modules/hypotl-ieee-tests: New file.
4897         * tests/test-hypotl-ieee.c: New file.
4898
4899         New module 'hypotl-ieee'.
4900         * modules/hypotl-ieee: New file.
4901
4902         Tests for module 'hypot-ieee'.
4903         * modules/hypot-ieee-tests: New file.
4904         * tests/test-hypot-ieee.c: New file.
4905
4906         New module 'hypot-ieee'.
4907         * modules/hypot-ieee: New file.
4908
4909         Tests for module 'hypotf-ieee'.
4910         * modules/hypotf-ieee-tests: New file.
4911         * tests/test-hypotf-ieee.c: New file.
4912         * tests/test-hypot-ieee.h: New file.
4913
4914         New module 'hypotf-ieee'.
4915         * modules/hypotf-ieee: New file.
4916
4917 2012-02-29  Bruno Haible  <bruno@clisp.org>
4918
4919         Remove unused variables.
4920         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4921         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4922         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4923         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4924
4925 2012-02-29  Eric Blake  <eblake@redhat.com>
4926
4927         termios: fix pid_t always, not just for tcgetsid
4928         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4929         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4930         just when building tcgetsid.
4931
4932 2012-02-29  Bruno Haible  <bruno@clisp.org>
4933
4934         Tests for module 'hypotl'.
4935         * modules/hypotl-tests: New file.
4936         * tests/test-hypotl.c: New file.
4937
4938         New module 'hypotl'.
4939         * lib/math.in.h (hypotl): New declaration.
4940         * lib/hypotl.c: New file.
4941         * m4/hypotl.m4: New file.
4942         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4944         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4945         * modules/hypotl: New file.
4946         * tests/test-math-c++.cc: Check the hypotl declaration.
4947         * doc/posix-functions/hypotl.texi: Mention the new module.
4948
4949 2012-02-29  Eric Blake  <eblake@redhat.com>
4950
4951         tcgetsid: fix cygwin header bug
4952         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4953
4954         docs: update cygwin progress
4955         * doc/posix-functions/llround.texi (llround): Added in cygwin
4956         1.7.8.
4957         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4958         * doc/glibc-functions/program_invocation_name.texi
4959         (program_invocation_name): Likewise.
4960         * doc/glibc-functions/program_invocation_short_name.texi
4961         (program_invocation_short_name): Likewise.
4962         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4963         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4964         Likewise.
4965         * doc/posix-functions/pthread_spin_destroy.texi
4966         (pthread_spin_destroy): Added in cygwin 1.7.10.
4967         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4968         Likewise.
4969         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4970         Likewise.
4971         * doc/posix-functions/pthread_spin_trylock.texi
4972         (pthread_spin_trylock): Likewise.
4973         * doc/posix-functions/pthread_spin_unlock.texi
4974         (pthread_spin_unlock): Likewise.
4975         * doc/posix-functions/pthread_setschedprio.texi
4976         (pthread_setschedprio): Likewise.
4977         * doc/posix-functions/pthread_attr_getstack.texi
4978         (pthread_attr_getstack): Likewise.
4979         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4980         (pthread_attr_getstackaddr): Likewise.
4981         * doc/glibc-functions/pthread_getattr_np.texi
4982         (pthread_getattr_np): Likewise.
4983         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4984         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4985         * doc/posix-functions/clock_settime.texi (clock_settime):
4986         Likewise.
4987         * doc/posix-functions/pthread_attr_getguardsize.texi
4988         (pthread_attr_getguardsize): Likewise.
4989         * doc/posix-functions/pthread_attr_setguardsize.texi
4990         (pthread_attr_setguardsize): Likewise.
4991         * doc/posix-functions/pthread_attr_setstack.texi
4992         (pthread_attr_setstack): Likewise.
4993         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4994         (pthread_attr_setstackaddr): Likewise.
4995         * doc/posix-functions/clock_getcpuclockid.texi
4996         (clock_getcpuclockid): Likewise.
4997         * doc/posix-functions/pthread_getcpuclockid.texi
4998         (pthread_getcpuclockid): Likewise.
4999         * doc/glibc-functions/error.texi (error): Likewise.
5000         * doc/glibc-functions/error_at_line.texi (error_at_line):
5001         Likewise.
5002         * doc/glibc-functions/error_message_count.texi
5003         (error_message_count): Likewise.
5004         * doc/glibc-functions/error_one_per_line.texi
5005         (error_one_per_line): Likewise.
5006         * doc/glibc-functions/error_print_progname.texi
5007         (error_print_progname): Likewise.
5008         * doc/posix-functions/pthread_condattr_getclock.texi
5009         (pthread_condattr_getclock): Likewise.
5010         * doc/posix-functions/pthread_condattr_setclock.texi
5011         (pthread_condattr_setclock): Likewise.
5012         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5013         Likewise.
5014         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5015         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5016         * doc/glibc-functions/get_current_dir_name.texi
5017         (get_current_dir_name): Likewise.
5018         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5019         Likewise.
5020         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5021         wrong return type.
5022         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5023         1.7.11.
5024
5025 2012-02-29  Bruno Haible  <bruno@clisp.org>
5026
5027         Tests for module 'hypotf'.
5028         * modules/hypotf-tests: New file.
5029         * tests/test-hypotf.c: New file.
5030
5031         New module 'hypotf'.
5032         * lib/math.in.h (hypotf): New declaration.
5033         * lib/hypotf.c: New file.
5034         * m4/hypotf.m4: New file.
5035         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5037         REPLACE_HYPOTF.
5038         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5039         REPLACE_HYPOTF.
5040         * modules/hypotf: New file.
5041         * tests/test-math-c++.cc: Check the hypotf declaration.
5042         * doc/posix-functions/hypotf.texi: Mention the new module.
5043
5044         hypot: Prepare for hypotf module.
5045         * m4/hypot.m4: New file.
5046         * modules/hypot (Files): Add m4/hypot.m4.
5047         (configure.ac): Invoke gl_FUNC_HYPOT.
5048
5049 2012-02-29  Bruno Haible  <bruno@clisp.org>
5050
5051         hypot tests: More tests.
5052         * tests/test-hypot.c: Include <float.h>.
5053         (main): Add tests about overflow and underflow.
5054
5055 2012-02-29  Bruno Haible  <bruno@clisp.org>
5056
5057         math code: Add comments.
5058         * lib/acosl.c: Add comment about related glibc source files.
5059         * lib/asinl.c: Likewise.
5060         * lib/atanl.c: Likewise.
5061         * lib/expl.c: Likewise.
5062         * lib/logl.c: Likewise.
5063         * lib/sincosl.c: Likewise.
5064         * lib/sinl.c: Likewise.
5065         * lib/tanl.c: Likewise.
5066         * lib/trigl.c: Likewise.
5067         * lib/cosl.c: Likewise. Fix comments.
5068
5069 2012-02-28  Bruno Haible  <bruno@clisp.org>
5070
5071         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5072         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5073         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5074         HUGE_VALL are defined.
5075         (numeric_equald): Renamed from numeric_equal.
5076         (numeric_equalf, numeric_equall): New functions.
5077         (main): Check also HUGE_VALF, HUGE_VALL.
5078         * modules/math-tests (Files): Add tests/macros.h.
5079         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5080         HUGE_VALL.
5081
5082 2012-02-28  Bruno Haible  <bruno@clisp.org>
5083
5084         doc: Move ISO C11 feature notes into POSIX chapters.
5085         * doc/posix-functions/aligned_alloc.texi: Renamed from
5086         doc/glibc-functions/aligned_alloc.texi.
5087         * doc/posix-functions/quick_exit.texi: Renamed from
5088         doc/glibc-functions/quick_exit.texi.
5089         * doc/posix-headers/uchar.texi: Renamed from
5090         doc/glibc-headers/uchar.texi.
5091         * doc/posix-functions/c16rtomb.texi: Renamed from
5092         doc/glibc-functions/c16rtomb.texi.
5093         * doc/posix-functions/c32rtomb.texi: Renamed from
5094         doc/glibc-functions/c32rtomb.texi.
5095         * doc/posix-functions/mbrtoc16.texi: Renamed from
5096         doc/glibc-functions/mbrtoc16.texi.
5097         * doc/posix-functions/mbrtoc32.texi: Renamed from
5098         doc/glibc-functions/mbrtoc32.texi.
5099         * doc/gnulib.texi: Update.
5100         (Glibc uchar.h): Remove section.
5101         Suggested by Eric Blake.
5102
5103 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5104
5105         stdnoreturn: port to MSVC better
5106         MSVC standard headers use __declspec(noreturn), so #define noreturn
5107         to empty on that platform.  Reported by Bruno Haible in
5108         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5109         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5110         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5111
5112 2012-02-28  Bruno Haible  <bruno@clisp.org>
5113
5114         doc: Mention new glibc headers and functions.
5115         * doc/glibc-headers/uchar.texi: New file.
5116         * doc/glibc-functions/aligned_alloc.texi: New file.
5117         * doc/glibc-functions/c16rtomb.texi: New file.
5118         * doc/glibc-functions/c32rtomb.texi: New file.
5119         * doc/glibc-functions/clock_adjtime.texi: New file.
5120         * doc/glibc-functions/fanotify_init.texi: New file.
5121         * doc/glibc-functions/fanotify_mark.texi: New file.
5122         * doc/glibc-functions/inet6_opt_append.texi: New file.
5123         * doc/glibc-functions/inet6_opt_find.texi: New file.
5124         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5125         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5126         * doc/glibc-functions/inet6_opt_init.texi: New file.
5127         * doc/glibc-functions/inet6_opt_next.texi: New file.
5128         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5129         * doc/glibc-functions/inet6_rth_add.texi: New file.
5130         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5131         * doc/glibc-functions/inet6_rth_init.texi: New file.
5132         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5133         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5134         * doc/glibc-functions/inet6_rth_space.texi: New file.
5135         * doc/glibc-functions/login.texi: New file.
5136         * doc/glibc-functions/mbrtoc16.texi: New file.
5137         * doc/glibc-functions/mbrtoc32.texi: New file.
5138         * doc/glibc-functions/name_to_handle_at.texi: New file.
5139         * doc/glibc-functions/ntp_gettimex.texi: New file.
5140         * doc/glibc-functions/open_by_handle_at.texi: New file.
5141         * doc/glibc-functions/prlimit.texi: New file.
5142         * doc/glibc-functions/process_vm_readv.texi: New file.
5143         * doc/glibc-functions/process_vm_writev.texi: New file.
5144         * doc/glibc-functions/recvmmsg.texi: New file.
5145         * doc/glibc-functions/scandirat.texi: New file.
5146         * doc/glibc-functions/sendmmsg.texi: New file.
5147         * doc/glibc-functions/setns.texi: New file.
5148         * doc/glibc-functions/timespec_get.texi: New file.
5149         * doc/gnulib.texi: Include them.
5150         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5151         sections.
5152         Reported by Eric Blake.
5153
5154 2012-02-28  Bruno Haible  <bruno@clisp.org>
5155
5156         Avoid compilation errors with MSVC option -fp:strict.
5157         * lib/floor.c: Use MSVC specific pragma fenv_access.
5158         * lib/ceil.c: Likewise.
5159         * lib/trunc.c: Likewise.
5160         * lib/round.c: Likewise.
5161         * lib/rint.c: Likewise.
5162         * lib/fma.c: Likewise.
5163         * lib/integer_length.c: Likewise.
5164         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5165         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5166         * tests/test-floor2.c: Likewise.
5167         * tests/test-floorf2.c: Likewise.
5168         * tests/test-ceil2.c: Likewise.
5169         * tests/test-ceilf2.c: Likewise.
5170         * tests/test-trunc2.c: Likewise.
5171         * tests/test-truncf2.c: Likewise.
5172         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5173
5174 2012-02-27  Bruno Haible  <bruno@clisp.org>
5175
5176         Tests for module 'sqrtl-ieee'.
5177         * modules/sqrtl-ieee-tests: New file.
5178         * tests/test-sqrtl-ieee.c: New file.
5179
5180         New module 'sqrtl-ieee'.
5181         * modules/sqrtl-ieee: New file.
5182
5183         Tests for module 'sqrt-ieee'.
5184         * modules/sqrt-ieee-tests: New file.
5185         * tests/test-sqrt-ieee.c: New file.
5186
5187         New module 'sqrt-ieee'.
5188         * modules/sqrt-ieee: New file.
5189
5190         Tests for module 'sqrtf-ieee'.
5191         * modules/sqrtf-ieee-tests: New file.
5192         * tests/test-sqrtf-ieee.c: New file.
5193         * tests/test-sqrt-ieee.h: New file.
5194
5195         New module 'sqrtf-ieee'.
5196         * modules/sqrtf-ieee: New file.
5197
5198 2012-02-27  Bruno Haible  <bruno@clisp.org>
5199
5200         remainderl-ieee: Work around test failure on OSF/1.
5201         * m4/remainderl-ieee.m4: New file.
5202         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5203         present, test whether remainderl works with a zero second argument.
5204         Replace it if not.
5205         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5207         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5208         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5209         (Depends-on): Update conditions.
5210         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5211         (Depends-on): Add remainder-ieee.
5212         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5213         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5214         module.
5215
5216         remainderf-ieee: Work around test failure on OSF/1.
5217         * m4/remainderf-ieee.m4: New file.
5218         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5219         present, test whether remainderf works with a zero second argument.
5220         Replace it if not.
5221         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5223         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5224         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5225         (Depends-on): Update conditions.
5226         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5227         (Depends-on): Add remainder-ieee.
5228         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5229         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5230         module.
5231
5232         remainder-ieee: Work around test failure on OSF/1.
5233         * m4/remainder-ieee.m4: New file.
5234         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5235         present, test whether remainder works with a zero second argument.
5236         Replace it if not.
5237         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5239         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5240         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5241         (Depends-on): Update dependencies.
5242         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5243         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5244         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5245
5246         Tests for module 'remainderl-ieee'.
5247         * modules/remainderl-ieee-tests: New file.
5248         * tests/test-remainderl-ieee.c: New file.
5249
5250         New module 'remainderl-ieee'.
5251         * modules/remainderl-ieee: New file.
5252
5253         Tests for module 'remainder-ieee'.
5254         * modules/remainder-ieee-tests: New file.
5255         * tests/test-remainder-ieee.c: New file.
5256
5257         New module 'remainder-ieee'.
5258         * modules/remainder-ieee: New file.
5259
5260         Tests for module 'remainderf-ieee'.
5261         * modules/remainderf-ieee-tests: New file.
5262         * tests/test-remainderf-ieee.c: New file.
5263         * tests/test-remainder-ieee.h: New file.
5264
5265         New module 'remainderf-ieee'.
5266         * modules/remainderf-ieee: New file.
5267
5268 2012-02-27  Bruno Haible  <bruno@clisp.org>
5269
5270         modff, modfl: Fix configure syntax error.
5271         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5272         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5273
5274 2012-02-27  Bruno Haible  <bruno@clisp.org>
5275
5276         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5277         * m4/fmodl-ieee.m4: New file.
5278         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5279         whether fmodl works with zero arguments. Replace it if not.
5280         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5281         (Depends-on): Add fmod-ieee.
5282         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5283         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5284
5285         fmodf-ieee: Work around test failure on OSF/1.
5286         * m4/fmodf-ieee.m4: New file.
5287         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5288         whether fmodf works with zero arguments. Replace it if not.
5289         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5291         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5292         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5293         (Depends-on): Update dependencies.
5294         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5295         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5296         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5297
5298         fmodf-ieee: Work around test failure on MSVC 9.
5299         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5300         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5301
5302         fmod-ieee: Work around test failures on OSF/1, mingw.
5303         * m4/fmod-ieee.m4: New file.
5304         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5305         whether fmod works with zero arguments. Replace it if not.
5306         * lib/math.in.h (fmod): New declaration.
5307         * lib/fmod.c: New file.
5308         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5310         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5311         * modules/fmod (Files): Add lib/fmod.c.
5312         (Depends-on): Add math, isinf, trunc, fma.
5313         (configure.ac): Arrange to compile lib/fmod.c if needed.
5314         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5315         m4/signbit.m4.
5316         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5317         * tests/test-math-c++.cc: Check the declaration of fmod.
5318         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5319
5320         fmodl-ieee: Fix test failures.
5321         * lib/fmodl.c (fmodl): Treat Inf specially.
5322         * modules/fmodl (Depends-on): Add isinf.
5323
5324         Tests for module 'fmodl-ieee'.
5325         * modules/fmodl-ieee-tests: New file.
5326         * tests/test-fmodl-ieee.c: New file.
5327
5328         New module 'fmodl-ieee'.
5329         * modules/fmodl-ieee: New file.
5330
5331         Tests for module 'fmod-ieee'.
5332         * modules/fmod-ieee-tests: New file.
5333         * tests/test-fmod-ieee.c: New file.
5334
5335         New module 'fmod-ieee'.
5336         * modules/fmod-ieee: New file.
5337
5338         Tests for module 'fmodf-ieee'.
5339         * modules/fmodf-ieee-tests: New file.
5340         * tests/test-fmodf-ieee.c: New file.
5341         * tests/test-fmod-ieee.h: New file.
5342
5343         New module 'fmodf-ieee'.
5344         * modules/fmodf-ieee: New file.
5345
5346 2012-02-27  Bruno Haible  <bruno@clisp.org>
5347
5348         Tests for module 'rintl-ieee'.
5349         * modules/rintl-ieee-tests: New file.
5350         * tests/test-rintl-ieee.c: New file.
5351
5352         New module 'rintl-ieee'.
5353         * modules/rintl-ieee: New file.
5354
5355         Tests for module 'rint-ieee'.
5356         * modules/rint-ieee-tests: New file.
5357         * tests/test-rint-ieee.c: New file.
5358
5359         New module 'rint-ieee'.
5360         * modules/rint-ieee: New file.
5361
5362         Tests for module 'rintf-ieee'.
5363         * modules/rintf-ieee-tests: New file.
5364         * tests/test-rintf-ieee.c: New file.
5365         * tests/test-rint-ieee.h: New file.
5366
5367         New module 'rintf-ieee'.
5368         * modules/rintf-ieee: New file.
5369
5370 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5371
5372         regex: re_search etc. should return -2 when memory exhausted
5373         This bug was uncovered when testing 'grep'.  Without the fix,
5374         re_search and friends return -1 when memory is exhausted, but -1
5375         means no match, and this causes grep to falsely report no-match
5376         instead of memory-exhaustion.  See
5377         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5378         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5379         trouble; this can occur if re_search_internal ran out of memory.
5380
5381 2012-02-26  Bruno Haible  <bruno@clisp.org>
5382
5383         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5384         * m4/modfl-ieee.m4: New file.
5385         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5386         whether modfl works with Inf. Replace it if not.
5387         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5389         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5390         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5391         (Depends-on): Update dependencies.
5392         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5393         m4/signbit.m4.
5394         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5395         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5396
5397         modfl-ieee: Fix dependencies.
5398         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5399
5400         modfl-ieee: Fix test failures.
5401         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5402         * modules/modfl (Depends-on): Add isfinite, isinf.
5403
5404         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5405         * m4/modff-ieee.m4: New file.
5406         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5407         whether modff works with NaN and Inf. Replace it if not.
5408         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5410         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5411         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5412         (Depends-on): Update dependencies.
5413         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5414         m4/signbit.m4.
5415         (Depends-on): Add modf-ieee.
5416         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5417         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5418
5419         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5420         * m4/modf-ieee.m4: New file.
5421         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5422         whether modf works with NaN and Inf. Replace it if not.
5423         * lib/math.in.h (modf): New declaration.
5424         * lib/modf.c: New file.
5425         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5427         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5428         * modules/modf (Files): Add lib/modf.c.
5429         (Depends-on): Add math, isfinite, trunc, isinf.
5430         (configure.ac): Addrange to compile lib/modf.c if needed.
5431         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5432         m4/signbit.m4.
5433         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5434         * tests/test-math-c++.cc: Check the declaration of modf.
5435         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5436
5437         Tests for module 'modfl-ieee'.
5438         * modules/modfl-ieee-tests: New file.
5439         * tests/test-modfl-ieee.c: New file.
5440
5441         New module 'modfl-ieee'.
5442         * modules/modfl-ieee: New file.
5443
5444         Tests for module 'modf-ieee'.
5445         * modules/modf-ieee-tests: New file.
5446         * tests/test-modf-ieee.c: New file.
5447
5448         New module 'modf-ieee'.
5449         * modules/modf-ieee: New file.
5450
5451         Tests for module 'modff-ieee'.
5452         * modules/modff-ieee-tests: New file.
5453         * tests/test-modff-ieee.c: New file.
5454         * tests/test-modf-ieee.h: New file.
5455
5456         New module 'modff-ieee'.
5457         * modules/modff-ieee: New file.
5458
5459 2012-02-26  Bruno Haible  <bruno@clisp.org>
5460
5461         Tests for module 'fabsl-ieee'.
5462         * modules/fabsl-ieee-tests: New file.
5463         * tests/test-fabsl-ieee.c: New file.
5464
5465         New module 'fabsl-ieee'.
5466         * modules/fabsl-ieee: New file.
5467
5468         Tests for module 'fabs-ieee'.
5469         * modules/fabs-ieee-tests: New file.
5470         * tests/test-fabs-ieee.c: New file.
5471
5472         New module 'fabs-ieee'.
5473         * modules/fabs-ieee: New file.
5474
5475         Tests for module 'fabsf-ieee'.
5476         * modules/fabsf-ieee-tests: New file.
5477         * tests/test-fabsf-ieee.c: New file.
5478         * tests/test-fabs-ieee.h: New file.
5479
5480         New module 'fabsf-ieee'.
5481         * modules/fabsf-ieee: New file.
5482
5483 2012-02-26  Bruno Haible  <bruno@clisp.org>
5484
5485         Tests for module 'fmal-ieee'.
5486         * modules/fmal-ieee-tests: New file.
5487         * tests/test-fmal-ieee.c: New file.
5488
5489         New module 'fmal-ieee'.
5490         * modules/fmal-ieee: New file.
5491
5492         Tests for module 'fma-ieee'.
5493         * modules/fma-ieee-tests: New file.
5494         * tests/test-fma-ieee.c: New file.
5495
5496         New module 'fma-ieee'.
5497         * modules/fma-ieee: New file.
5498
5499         Tests for module 'fmaf-ieee'.
5500         * modules/fmaf-ieee-tests: New file.
5501         * tests/test-fmaf-ieee.c: New file.
5502         * tests/test-fma-ieee.h: New file.
5503
5504         New module 'fmaf-ieee'.
5505         * modules/fmaf-ieee: New file.
5506
5507 2012-02-26  Bruno Haible  <bruno@clisp.org>
5508
5509         Tests for module 'ldexpl-ieee'.
5510         * modules/ldexpl-ieee-tests: New file.
5511         * tests/test-ldexpl-ieee.c: New file.
5512
5513         New module 'ldexpl-ieee'.
5514         * modules/ldexpl-ieee: New file.
5515
5516         Tests for module 'ldexp-ieee'.
5517         * modules/ldexp-ieee-tests: New file.
5518         * tests/test-ldexp-ieee.c: New file.
5519
5520         New module 'ldexp-ieee'.
5521         * modules/ldexp-ieee: New file.
5522
5523         Tests for module 'ldexpf-ieee'.
5524         * modules/ldexpf-ieee-tests: New file.
5525         * tests/test-ldexpf-ieee.c: New file.
5526         * tests/test-ldexp-ieee.h: New file.
5527
5528         New module 'ldexpf-ieee'.
5529         * modules/ldexpf-ieee: New file.
5530
5531 2012-02-26  Bruno Haible  <bruno@clisp.org>
5532
5533         Refactor frexp*-ieee tests.
5534         * tests/test-frexp-ieee.h: New file.
5535         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5536         (main): Just call test_function.
5537         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5538         (main): Just call test_function.
5539         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5540         (main): Just call test_function.
5541         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5542         * modules/frexp-ieee-tests (Files): Likewise.
5543         * modules/frexpl-ieee-tests (Files): Likewise.
5544
5545         Tests for module 'frexpl-ieee'.
5546         * modules/frexpl-ieee-tests: New file.
5547         * tests/test-frexpl-ieee.c: New file.
5548
5549         New module 'frexpl-ieee'.
5550         * modules/frexpl-ieee: New file.
5551
5552         Tests for module 'frexp-ieee'.
5553         * modules/frexp-ieee-tests: New file.
5554         * tests/test-frexp-ieee.c: New file.
5555
5556         New module 'frexp-ieee'.
5557         * modules/frexp-ieee: New file.
5558
5559         Tests for module 'frexpf-ieee'.
5560         * modules/frexpf-ieee-tests: New file.
5561         * tests/test-frexpf-ieee.c: New file.
5562
5563         New module 'frexpf-ieee'.
5564         * modules/frexpf-ieee: New file.
5565
5566 2012-02-26  Bruno Haible  <bruno@clisp.org>
5567
5568         roundl-ieee tests: More tests.
5569         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5570         (main): Add tests for [MX] shaded specification in POSIX.
5571         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5572         (Depends-on): Add isnanl-nolibm.
5573
5574         round-ieee tests: More tests.
5575         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5576         (main): Add tests for [MX] shaded specification in POSIX.
5577         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5578         (Depends-on): Add isnand-nolibm.
5579
5580         roundf-ieee tests: More tests.
5581         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5582         (main): Add tests for [MX] shaded specification in POSIX.
5583         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5584         (Depends-on): Add isnanf-nolibm.
5585
5586         truncl-ieee tests: More tests.
5587         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5588         (main): Add tests for [MX] shaded specification in POSIX.
5589         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5590         (Depends-on): Add isnanl-nolibm.
5591
5592         trunc-ieee tests: More tests.
5593         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5594         (main): Add tests for [MX] shaded specification in POSIX.
5595         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5596         (Depends-on): Add isnand-nolibm.
5597
5598         truncf-ieee tests: More tests.
5599         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5600         (main): Add tests for [MX] shaded specification in POSIX.
5601         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5602         (Depends-on): Add isnanf-nolibm.
5603
5604         ceill-ieee tests: More tests.
5605         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5606         (main): Add tests for [MX] shaded specification in POSIX.
5607         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5608         (Depends-on): Add isnanl-nolibm.
5609
5610         ceil-ieee tests: More tests.
5611         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5612         (main): Add tests for [MX] shaded specification in POSIX.
5613         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5614         (Depends-on): Add isnand-nolibm.
5615
5616         ceilf-ieee tests: More tests.
5617         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5618         (main): Add tests for [MX] shaded specification in POSIX.
5619         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5620         (Depends-on): Add isnanf-nolibm.
5621
5622         floorl-ieee tests: More tests.
5623         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5624         (main): Add tests for [MX] shaded specification in POSIX.
5625         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5626         (Depends-on): Add isnanl-nolibm.
5627
5628         floor-ieee tests: More tests.
5629         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5630         (main): Add tests for [MX] shaded specification in POSIX.
5631         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5632         (Depends-on): Add isnand-nolibm.
5633
5634         floorf-ieee tests: More tests.
5635         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5636         (main): Add tests for [MX] shaded specification in POSIX.
5637         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5638         (Depends-on): Add isnanf-nolibm.
5639
5640 2012-02-26  Bruno Haible  <bruno@clisp.org>
5641
5642         fpieee: More comments.
5643         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5644
5645 2012-02-25  Bruno Haible  <bruno@clisp.org>
5646
5647         Tests for module 'log10l'.
5648         * modules/log10l-tests: New file.
5649         * tests/test-log10l.c: New file.
5650         * tests/test-math-c++.cc: Check the declaration of log10l.
5651
5652         New module 'log10l'.
5653         * lib/math.in.h (log10l): New declaration.
5654         * lib/log10l.c: New file.
5655         * m4/log10l.m4: New file.
5656         * modules/log10l: New file.
5657         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5659         HAVE_DECL_LOG10L.
5660         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5661         HAVE_DECL_LOG10L.
5662         * doc/posix-functions/log10l.texi: Mention the new module.
5663
5664 2012-02-25  Bruno Haible  <bruno@clisp.org>
5665
5666         fmodl, remainder*: Avoid wrong results due to rounding errors.
5667         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5668         expected bounds.
5669         * lib/remainderf.c (remainderf): Likewise.
5670         * lib/remainder.c (remainder): Likewise.
5671         * lib/remainderl.c (remainderl): Likewise.
5672
5673 2012-02-25  Bruno Haible  <bruno@clisp.org>
5674
5675         Tests for module 'remainderl'.
5676         * modules/remainderl-tests: New file.
5677         * tests/test-remainderl.c: New file.
5678         * tests/test-math-c++.cc: Check the declaration of remainderl.
5679
5680         New module 'remainderl'.
5681         * lib/math.in.h (remainderl): New declaration.
5682         * lib/remainderl.c: New file.
5683         * m4/remainderl.m4: New file.
5684         * modules/remainderl: New file.
5685         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5687         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5688         HAVE_REMAINDERL.
5689         * doc/posix-functions/remainderl.texi: Mention the new module.
5690
5691 2012-02-25  Bruno Haible  <bruno@clisp.org>
5692
5693         Tests for module 'remainderf'.
5694         * modules/remainderf-tests: New file.
5695         * tests/test-remainderf.c: New file.
5696         * tests/test-math-c++.cc: Check the declaration of remainderf.
5697
5698         New module 'remainderf'.
5699         * lib/math.in.h (remainderf): New declaration.
5700         * lib/remainderf.c: New file.
5701         * m4/remainderf.m4: New file.
5702         * modules/remainderf: New file.
5703         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5705         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5706         HAVE_REMAINDERF.
5707         * doc/posix-functions/remainderf.texi: Mention the new module.
5708
5709 2012-02-25  Bruno Haible  <bruno@clisp.org>
5710
5711         remainder: Support for MSVC.
5712         * lib/math.in.h (remainder): New declaration.
5713         * lib/remainder.c: New file.
5714         * m4/remainder.m4: New file.
5715         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5716         (Depends-on): Add math, round, fma.
5717         (configure.ac): Use results of gl_FUNC_REMAINDER.
5718         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5720         HAVE_DECL_REMAINDER.
5721         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5722         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5723         * tests/test-math-c++.cc: Check the declaration of remainder.
5724         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5725         problems are fixed.
5726
5727 2012-02-25  Bruno Haible  <bruno@clisp.org>
5728
5729         Tests for module 'fmodl'.
5730         * modules/fmodl-tests: New file.
5731         * tests/test-fmodl.c: New file.
5732         * tests/test-math-c++.cc: Check the declaration of fmodl.
5733
5734         New module 'fmodl'.
5735         * lib/math.in.h (fmodl): New declaration.
5736         * lib/fmodl.c: New file.
5737         * m4/fmodl.m4: New file.
5738         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5740         REPLACE_FMODL.
5741         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5742         REPLACE_FMODL.
5743         * modules/fmodl: New file.
5744         * doc/posix-functions/fmodl.texi: Mention the new module.
5745
5746 2012-02-25  Bruno Haible  <bruno@clisp.org>
5747
5748         Tests for module 'modfl'.
5749         * modules/modfl-tests: New file.
5750         * tests/test-modfl.c: New file.
5751         * tests/test-math-c++.cc: Check the declaration of modfl.
5752
5753         New module 'modfl'.
5754         * lib/math.in.h (modfl): New declaration.
5755         * lib/modfl.c: New file.
5756         * m4/modfl.m4: New file.
5757         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5759         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5760         * modules/modfl: New file.
5761         * doc/posix-functions/modfl.texi: Mention the new module.
5762
5763 2012-02-25  Bruno Haible  <bruno@clisp.org>
5764
5765         Tests for module 'fabsl'.
5766         * modules/fabsl-tests: New file.
5767         * tests/test-fabsl.c: New file.
5768         * tests/test-math-c++.cc: Check the declaration of fabsl.
5769
5770         New module 'fabsl'.
5771         * lib/math.in.h (fabsl): New declaration.
5772         * lib/fabsl.c: New file.
5773         * m4/fabsl.m4: New file.
5774         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5776         REPLACE_FABSL.
5777         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5778         REPLACE_FABSL.
5779         * modules/fabsl: New file.
5780         * doc/posix-functions/fabsl.texi: Mention the new module.
5781
5782 2012-02-25  Bruno Haible  <bruno@clisp.org>
5783
5784         fabs tests: More tests.
5785         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5786         (zero): New variable.
5787         (main): Add tests for signed zero.
5788         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5789
5790         fabsf tests: More tests.
5791         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5792         (zero): New variable.
5793         (main): Add tests for signed zero.
5794         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5795
5796 2012-02-24  Bruno Haible  <bruno@clisp.org>
5797
5798         atanl: Provide function definition on MSVC.
5799         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5800         function pointer.
5801         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5802
5803 2012-02-24  Bruno Haible  <bruno@clisp.org>
5804
5805         acosl: Provide function definition on MSVC.
5806         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5807         function pointer.
5808         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5809
5810 2012-02-24  Bruno Haible  <bruno@clisp.org>
5811
5812         asinl: Provide function definition on MSVC.
5813         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5814         function pointer.
5815         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5816
5817 2012-02-24  Bruno Haible  <bruno@clisp.org>
5818
5819         tanl: Provide function definition on MSVC.
5820         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5821         function pointer.
5822         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5823
5824 2012-02-24  Bruno Haible  <bruno@clisp.org>
5825
5826         cosl: Provide function definition on MSVC.
5827         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5828         function pointer.
5829         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5830
5831 2012-02-24  Bruno Haible  <bruno@clisp.org>
5832
5833         sinl: Provide function definition on MSVC.
5834         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5835         function pointer.
5836         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5837
5838 2012-02-24  Bruno Haible  <bruno@clisp.org>
5839
5840         logl: Provide function definition on MSVC.
5841         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5842         function pointer.
5843         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5844
5845 2012-02-24  Bruno Haible  <bruno@clisp.org>
5846
5847         expl: Provide function definition on MSVC.
5848         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5849         function pointer.
5850         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5851
5852 2012-02-24  Bruno Haible  <bruno@clisp.org>
5853
5854         sqrtl: Provide function definition on MSVC.
5855         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5856         a function pointer.
5857         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5858
5859 2012-02-24  Bruno Haible  <bruno@clisp.org>
5860
5861         ceill: Provide function definition on MSVC.
5862         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5863         used as a function pointer.
5864         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5865
5866 2012-02-24  Bruno Haible  <bruno@clisp.org>
5867
5868         floorl: Provide function definition on MSVC.
5869         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5870         used as a function pointer.
5871         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5872
5873 2012-02-24  Bruno Haible  <bruno@clisp.org>
5874
5875         ceilf: Provide function definition on MSVC.
5876         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5877         used as a function pointer.
5878         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5879
5880 2012-02-24  Bruno Haible  <bruno@clisp.org>
5881
5882         floorf: Provide function definition on MSVC.
5883         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5884         used as a function pointer.
5885         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5886
5887 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5888
5889         stdnoreturn: new module
5890         This implements a replacement for C11's <stdnoreturn.h>.
5891         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5892         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5893         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5894         * tests/test-stdnoreturn.c: New files.
5895
5896 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5897
5898         regex: fix false multibyte matches in some regular expressions
5899         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5900         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5901         * lib/regex_internal.c (re_string_skip_chars):
5902         Fix miscomputation of remain_len that may cause incomplete
5903         multi-byte character and false match.
5904
5905 2012-02-24  Jim Meyering  <meyering@redhat.com>
5906
5907         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5908         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5909         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5910         Remove now-unnecessary str''cmp obfuscation.
5911         Suggested by Akim Demaille.
5912
5913 2012-02-24  Bruno Haible  <bruno@clisp.org>
5914
5915         streq: Rename macro.
5916         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5917         * NEWS: Mention the change.
5918         * lib/mbrtowc.c (mbrtowc): Update.
5919         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5920         * lib/wcwidth.c (wcwidth): Update.
5921         Suggested by Akim Demaille and Jim Meyering.
5922
5923 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         regex: fix typo in definition of MIN
5926         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5927         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5928
5929 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5930             Bruno Haible  <bruno@clisp.org>
5931
5932         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5933         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5934         entries into a stack-allocated buffer directly.
5935         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5936
5937 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5938             Bruno Haible  <bruno@clisp.org>
5939
5940         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5941
5942          - There were several instances of this pattern:
5943
5944              for (;;) {
5945                n = acl (f, GETACLCNT, 0, NULL);
5946                [ allocate an array A of size N ]
5947                if (acl (f, GETACL, n, a) == n)
5948                  break;
5949              }
5950
5951            This loop might never terminate if some other process is constantly
5952            manipulating the file's ACL.  The loop should be rewritten to
5953            terminate.
5954
5955          - The acl (... GETACLNT ...) call is merely an optimization; its value
5956            is merely a hint as to how big to make the array.  A better
5957            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5958            and just guess a reasonably-big size, growing the size and trying
5959            again if it's not large enough.  This guarantees termination, and
5960            saves a system call.
5961
5962         * lib/acl-internal.h: Include <limits.h>.
5963         (MIN, SIZE_MAX): New macros.
5964         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5965         a stack-allocated buffer, and use malloc if it does not fit. Don't
5966         use GETACLCNT.
5967         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5968
5969 2012-02-19  Bruno Haible  <bruno@clisp.org>
5970
5971         acl: Fix endless loop on Solaris with vxfs.
5972         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5973         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5974         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5975         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5976         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5977         Reported by Bill Jones in
5978         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5979
5980 2012-02-19  Bruno Haible  <bruno@clisp.org>
5981
5982         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5983         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5984         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5985         that this function returns 0 in some more cases.
5986
5987 2012-02-19  Bruno Haible  <bruno@clisp.org>
5988
5989         acl: Update doc references.
5990         * doc/acl-resources.txt: Update links to Solaris documentation.
5991
5992 2012-02-19  Bruno Haible  <bruno@clisp.org>
5993
5994         Fix test failure in many locales on Solaris 11.
5995         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5996         'tr' arguments.
5997         * tests/test-pipe-filter-ii1.c (main): Likewise.
5998         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5999         expressions in the C locale.
6000         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6001         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6002
6003 2012-02-19  Bruno Haible  <bruno@clisp.org>
6004
6005         gnulib-tool: Improve usage message.
6006         * gnulib-tool (func_usage): Move doc of --help and --version to the
6007         section "Operation modes".
6008
6009 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6010
6011         README-release: make it easier to execute commands
6012         * top/README-release: break commands out on to separate lines.
6013
6014 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6015
6016         GNUmakefile: simplify detection of unconfigured trees
6017         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6018         whether the tree make is being run from is already configured or
6019         not.  Related simplifications.
6020
6021 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6022
6023         * gnulib-tool (func_usage): Document --help and --version.
6024
6025 2012-02-11  Jim Meyering  <meyering@redhat.com>
6026
6027         bootstrap: don't exit 0 upon gnulib-tool failure
6028         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6029         its exit status, not 0.
6030
6031 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6032
6033         README-release: various improvements
6034         * top/README-release: Give a command to push changes for the
6035         release.  Add "distcheck" to list of other pre-release checks.
6036         Fix instance of "make stable" which should be "make TYPE".
6037
6038 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6039
6040         maint: replace FSF snail-mail addresses with URLs
6041         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6042         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6043         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6044         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6045         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6046         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6047         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6048         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6049         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6050         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6051         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6052         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6053         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6054         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6055         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6056         * lib/glthread/thread.c, lib/glthread/thread.h:
6057         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6058         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6059         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6060         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6061         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6062         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6063         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6064         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6065         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6066         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6067         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6068         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6069         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6070         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6071         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6072         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6073         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6074         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6075         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6076         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6077         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6078         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6079         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6080         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6081         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6082         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6083         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6084         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6085         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6086         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6087         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6088         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6089         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6090         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6091         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6092         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6093         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6094         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6095         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6096         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6097         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6098         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6099         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6100         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6101         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6102         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6103         * tests/test-poll.c, tests/test-quotearg-simple.c:
6104         * tests/test-quotearg.c, tests/test-quotearg.h:
6105         * tests/test-round-ieee.c, tests/test-round1.c:
6106         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6107         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6108         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6109         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6110         * tests/test-strerror.c, tests/test-strerror_r.c:
6111         * tests/test-strsignal.c, tests/test-strverscmp.c:
6112         * tests/test-xmemdup0.c:
6113         Replace FSF snail mail addresses with URLs, as per GNU coding
6114         standards.  See glibc bug
6115         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6116
6117 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6118
6119         README-release: capitalize a word and split a line
6120         * top/README-release: Fix punctuation and spacing.
6121
6122 2012-02-08  Akim Demaille  <demaille@gostai.com>
6123
6124         fatal-signal: use C prototypes (with explicit void).
6125         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6126         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6127
6128 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         regex: spelling fix
6131         * lib/regexec.c: spelling fix
6132
6133         regex: rely on stdint.h for SIZE_MAX
6134         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6135
6136 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6137
6138         regex: merge glibc changes
6139
6140         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6141         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6142         (init_word_char): Work even if bitset words are not exactly 32 or
6143         64 bits wide.  Don't assume there are no padding bits.
6144         * lib/regex.c [_LIBC]: Do not include <config.h>.
6145         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6146         and -Wtype-limits.
6147         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6148         needless disagreement with glibc.  All uses changed.  Define it to
6149         1 only if _GNU_SOURCE, to match glibc.
6150         (_REG_RM_NAME): Remove; no longer needed, since the names in
6151         question are now all protected by __USE_GNU.
6152         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6153         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6154         * lib/regex_internal.h (MIN): New macro.
6155
6156         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6157         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6158
6159         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6160         * lib/regex_internal.c (re_string_fetch_byte_case):
6161         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6162         is miscompiled, and it turns out it is because of an incorrect
6163         attribute on re_string_fetch_byte_case.  Unlike
6164         re_string_peek_byte_case, this one is really not pure, it modifies
6165         memory (increments pstr->cur_idx), and with the pure attribute GCC
6166         assumed it doesn't and it cached the presumed value of
6167         regexp->cur_idx in a variable across the
6168          for (;; ++i)
6169            {
6170              if (i >= BRACKET_NAME_BUF_SIZE)
6171                return REG_EBRACK;
6172              if (token->type == OP_OPEN_CHAR_CLASS)
6173                ch = re_string_fetch_byte_case (regexp);
6174              else
6175                ch = re_string_fetch_byte (regexp);
6176              if (re_string_eoi(regexp))
6177                return REG_EBRACK;
6178              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6179                break;
6180              elem->opr.name[i] = ch;
6181            }
6182
6183         2011-11-29 Andreas Schwab <schwab@redhat.com>
6184         * lib/regcomp.c (build_equiv_class):
6185         Fix access after end of search string in regex matcher.
6186
6187         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6188         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6189
6190         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6191         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6192
6193         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6194         * lib/regcomp.c (parse_branch, parse_sub_exp):
6195         More regex memory leak fixes and tests.
6196         (parse_sub_exp, parse_bracket_exp):
6197         Fix memory leak for some invalid regular expressions.
6198
6199         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6200         * lib/regex_internal.c, lib/regexec.c:
6201         Fix unnecessary overallocation due to incomplete character.  When
6202         incomplete characters are found at the end of a string the code
6203         ran amok and allocated lots of memory.  Stricter limits are now in
6204         place.
6205
6206         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6207         * lib/regex.h: Update documentation.
6208
6209         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6210         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6211
6212         2010-05-05 Andreas Schwab <schwab@redhat.com>
6213         * lib/regexec.c (find_collation_sequence_value):
6214         Fix lookup of collation sequence value during regexp matching.
6215
6216         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6217         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6218
6219         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6220         * lib/regex.h: Cleanup namespace.
6221
6222         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6223         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6224
6225         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6226         * lib/regex_internal.h: Prevent some declarations and definitions
6227         to be seen when used in tests.
6228
6229         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6230         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6231         __libc_lock_* macros if not _LIBC.
6232         (struct re_dfa_t): Add lock.
6233
6234 2012-02-07  Eric Blake  <eblake@redhat.com>
6235
6236         maint.mk: also prohibit lower-case @var@
6237         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6238         lower case, like @top_srcdir@.
6239
6240 2012-02-04  Eric Blake  <eblake@redhat.com>
6241
6242         canonicalize: avoid uninitialized memory use
6243         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6244         random '/' left in dest.
6245         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6246
6247 2012-02-04  Bruno Haible  <bruno@clisp.org>
6248
6249         isatty: Fix test failure of ptsname_r on native Windows.
6250         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6251         and don't set errno.
6252         (isatty): Test first whether fd is valid. Set errno when returning 0.
6253
6254 2012-02-04  Bruno Haible  <bruno@clisp.org>
6255
6256         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6257         * tests/test-spawn-pipe-main.c: Include progname.h.
6258         (main): Invoke set_program_name.
6259         * modules/spawn-pipe-tests (Depends-on): Add progname.
6260
6261         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6262         * tests/test-nonblocking-socket-main.c: Include progname.h.
6263         (main): Invoke set_program_name.
6264         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6265
6266         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6267         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6268         (main): Invoke set_program_name.
6269         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6270
6271 2012-02-04  Eric Blake  <eblake@redhat.com>
6272
6273         canonicalize-lgpl: fix // handling
6274         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6275
6276         canonicalize: fix // handling
6277         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6278         /// to //, since only // is special.
6279
6280 2012-02-04  Bruno Haible  <bruno@clisp.org>
6281
6282         ioctl: Fix test failure on native Windows.
6283         * lib/ioctl.c: Include msvc-nothrow.h.
6284         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6285
6286 2012-02-04  Bruno Haible  <bruno@clisp.org>
6287
6288         fsync: Avoid test failure on native Windows.
6289         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6290         read-only.
6291
6292 2012-02-04  Bruno Haible  <bruno@clisp.org>
6293
6294         sys_select: Avoid syntax error on OpenBSD 5.0.
6295         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6296         currently being included, just include the system's <sys/select.h>.
6297
6298 2012-02-04  Bruno Haible  <bruno@clisp.org>
6299
6300         sys_select: Avoid syntax error on OpenBSD 5.0.
6301         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6302         <sys/select.h>, not before.
6303         Reported by Jiri B <jirib@devio.us>.
6304
6305 2012-02-04  Bruno Haible  <bruno@clisp.org>
6306
6307         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6308         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6309         global variables.
6310         * tests/test-get-rusage-data.c (main): Likewise.
6311         Reported by Jim Meyering.
6312
6313 2012-02-04  Bruno Haible  <bruno@clisp.org>
6314
6315         stdioext: Fix last commit.
6316         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6317
6318 2012-02-03  Bruno Haible  <bruno@clisp.org>
6319
6320         stdioext: Add tentative support for Plan9.
6321         * lib/stdio-impl.h: Include <errno.h>.
6322         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6323         * lib/freadable.c (freadable): Likewise.
6324         * lib/fwritable.c (fwritable): Likewise.
6325         * lib/fbufmode.c (fbufmode): Likewise.
6326         * lib/freading.c (freading): Likewise.
6327         * lib/fwriting.c (fwriting): Likewise.
6328         * lib/freadptr.c (freadptr): Likewise.
6329         * lib/freadseek.c (freadptrinc): Likewise.
6330         * lib/freadahead.c (freadahead): Likewise.
6331         * lib/fpurge.c (fpurge): Likewise.
6332         * lib/fseeko.c (rpl_fseeko): Likewise.
6333         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6334         Reported by Jens Staal <staal1978@gmail.com>.
6335
6336 2012-02-02  Jim Meyering  <meyering@redhat.com>
6337
6338         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6339         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6340         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6341         not even to try to add the attribute.  Instead, add a pragma to suppress
6342         the suggestion/warning.
6343
6344 2012-01-31  Karl Berry  <karl@gnu.org>
6345
6346         setstate doc: typo.
6347         * doc/posix-functions/setstate.texi (setstate): { not (.
6348
6349 2012-01-31  Bruno Haible  <bruno@clisp.org>
6350
6351         popen: Make more robust on Windows.
6352         * lib/popen.c: On native Windows, use the _popen based code even if
6353         HAVE_POPEN is set.
6354         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6355         environment variable on native Windows.
6356
6357 2012-01-30  Bruno Haible  <bruno@clisp.org>
6358
6359         pclose: Fix typo.
6360         * lib/stdio.in.h (pclose): Fix typo in warning message.
6361
6362 2012-01-30  Bruno Haible  <bruno@clisp.org>
6363
6364         doc about getlogin_r, setstate.
6365         * doc/posix-functions/getlogin_r.texi: List the incompatible
6366         declaration problem under "not fixed by gnulib".
6367         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6368         problem on Solaris 11 and other platforms.
6369
6370 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6371             Bruno Haible  <bruno@clisp.org>
6372
6373         poll tests: Make test more robust.
6374         * tests/test-poll.c: Include macros.h.
6375         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6376         return value of various I/O operations.
6377         * modules/poll-tests (Files): Add tests/macros.h.
6378
6379 2012-01-30  Bruno Haible  <bruno@clisp.org>
6380
6381         sys_stat: Fix support for mingw64 and MSVC.
6382         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6383         header files already do it.
6384         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6385         stat itself.
6386         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6387
6388 2012-01-30  Bruno Haible  <bruno@clisp.org>
6389
6390         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6392         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6393
6394 2012-01-29  Bruno Haible  <bruno@clisp.org>
6395
6396         quotearg: Fix test failure on MacOS X 10.5.
6397         * tests/test-quotearg-simple.c: Include localcharset.h.
6398         (main): If the locale encoding is not ASCII, bypass the tests of
6399         locale_quoting_style and clocale_quoting_style.
6400         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6401
6402 2012-01-29  Jim Meyering  <meyering@redhat.com>
6403
6404         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6405         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6406         detect uses of canonicalize_file_name.
6407
6408 2012-01-28  Bruno Haible  <bruno@clisp.org>
6409
6410         test-framework-sh: Fix test failure with AIX 7.1 diff.
6411         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6412         in column 1, like 'diff -c' does.
6413         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6414         whether 'diff -u' is used. Instead, test whether the output contains
6415         some '@' character.
6416
6417 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6418
6419         strtoimax: eliminate need for stdint.h, inttypes.h checks
6420         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6421         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6422         the prerequisites for a recently-introduced strtoimax test.
6423         I guess this might cause strtoimax to be replaced when not
6424         strictly necessary on older hosts, but this shouldn't introduce
6425         any bugs and it should make Emacs 'configure' faster on typical
6426         modern hosts.  Problem discovered when importing the latest gnulib
6427         to an Emacs test version.
6428         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6429
6430 2012-01-28  Bruno Haible  <bruno@clisp.org>
6431
6432         sys_time: Override 'struct timeval' on some native Windows platforms.
6433         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6434         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6435         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6436         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6437         needs to be overridden.
6438         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6439         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6440         * tests/test-sys_select.c: Check that the tv_sec member has the same
6441         size as a 'time_t'.
6442         * tests/test-sys_time.c: Likewise.
6443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6444         is set, set also REPLACE_GETTIMEOFDAY.
6445         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6446         convert the resulting 'struct timeval' before returning.
6447         * lib/select.c: Include <sys/time.h>.
6448         (select, timeval): Undefine at the right place.
6449         * modules/select (Depends-on): Add sys_time.
6450         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6451         some Windows platforms.
6452         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6453
6454 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6455
6456         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6457         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6458         an integer.
6459         * lib/fcntl.c (dupfd): Likewise.
6460         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6461
6462 2012-01-28  Bruno Haible  <bruno@clisp.org>
6463
6464         fcntl: Avoid compilation error on native Windows.
6465         * modules/fcntl (Depends-on): Add 'close'.
6466
6467 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6468
6469         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6470         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6471         pointer to an integer.
6472         * lib/poll.c (IsConsoleHandle): Likewise.
6473         * lib/isatty.c (IsConsoleHandle): Likewise.
6474
6475 2012-01-28  Jim Meyering  <meyering@redhat.com>
6476
6477         doc: clarify README-release
6478         * top/README-release: Clarify: you should make a point to have
6479         the latest stable versions of build tools in your PATH, and the
6480         reference to buildreq is solely for its list of tool names, not
6481         for its minimal-functional version numbers.
6482         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6483
6484         maint.mk: use more readable (yet functionally equivalent) quoting
6485         It is common to quote a single quote in a single quoted string like
6486         this:  '...'\''...'.  Unless you know the idiom, that looks like
6487         gibberish, so prefer to double-quote the string when possible.
6488         Then you can use a more readable, lone single quote: "...'..."
6489         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6490         "don't" is more readable than the equivalent 'don'\''t'.
6491         (sc_cast_of_x_alloc_return_value): Likewise.
6492         (sc_cast_of_alloca_return_value): Likewise.
6493         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6494         rather than '\'':'\''.
6495
6496 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6497
6498         stdalign: relax _Alignof and tighten _Alignas test
6499         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6500         as it was too strict: alignof must divide offsetof, but it need
6501         not equal offsetof.  Inspired by Joseph S. Myers's comment
6502         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6503         Conversely, tighten the _Alignas test a bit, as the resulting
6504         alignment must be exactly 8.
6505
6506 2012-01-27  Bruno Haible  <bruno@clisp.org>
6507
6508         stdalign: Document the last change.
6509         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6510
6511 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6512
6513         stdalign: check that alignof and offsetof are consistent
6514         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6515         Problem reported for gnulib by Richard W.M. Jones in
6516         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6517
6518 2012-01-27  Jim Meyering  <meyering@redhat.com>
6519
6520         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6521         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6522         convert a sequence with gaps to the minimal containing range.
6523         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6524         * tests/test-update-copyright.sh: Test for this.
6525         The FSF confirmed it is ok to do this, assuming there is at
6526         least one significant change per year in the affected range:
6527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6528
6529 2012-01-26  Bruno Haible  <bruno@clisp.org>
6530
6531         pipe2: refine doc about thread-safety
6532         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6533         multithread-safety problem.
6534         * doc/glibc-functions/accept4.texi: Likewise.
6535
6536 2012-01-26  Bruno Haible  <bruno@clisp.org>
6537
6538         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6539         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6540         In the test program, include <fcntl.h>, for O_RDONLY.
6541
6542 2012-01-26  Eric Blake  <eblake@redhat.com>
6543
6544         pipe2: document lack of thread-safety in replacement
6545         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6546         issue in replacement.
6547         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6548         Based on a report by Eric Wong.
6549
6550 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6551             Bruno Haible  <bruno@clisp.org>
6552
6553         malloca: Avoid warnings on x86_64 mingw64.
6554         * lib/malloca.c: Include <stdint.h>.
6555         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6556         * modules/malloca (Depends-on): Add stdint.
6557         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6558
6559 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6560
6561         obstack: remove __STDC__ conditionals
6562         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6563         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6564         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6565         m4/include_next.m4 as the only gnulib-maintained places that still
6566         refer to __STDC__.
6567
6568 2012-01-24  Bruno Haible  <bruno@clisp.org>
6569
6570         havelib: Modern quoting.
6571         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6572         the recent change to the GNU coding standards.
6573
6574 2012-01-24  Bruno Haible  <bruno@clisp.org>
6575
6576         stdint: Improve support for Android.
6577         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6578         Reported by Simon Josefsson <simon@josefsson.org>.
6579
6580 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         doc: omit trailing empty lines from INSTALL etc.
6583         * doc/Makefile (INSTALL): Omit trailing empty lines.
6584         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6585         omit trailing empty lines.  This simplifies the build procedure.
6586
6587 2012-01-23  Jim Meyering  <meyering@redhat.com>
6588
6589         tests: avoid spurious warnings about gl_sockets_startup
6590         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6591         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6592         reporting a "statement with no effect".
6593         * tests/test-accept.c (main): Mark as "(void)".
6594         * tests/test-accept4.c (main): Likewise.
6595         * tests/test-bind.c (main): Likewise.
6596         * tests/test-connect.c (main): Likewise.
6597         * tests/test-getpeername.c (main): Likewise.
6598         * tests/test-getsockname.c (main): Likewise.
6599         * tests/test-getsockopt.c (main): Likewise.
6600         * tests/test-listen.c (main): Likewise.
6601         * tests/test-recv.c (main): Likewise.
6602         * tests/test-recvfrom.c (main): Likewise.
6603         * tests/test-send.c (main): Likewise.
6604         * tests/test-sendto.c (main): Likewise.
6605         * tests/test-setsockopt.c (main): Likewise.
6606         * tests/test-shutdown.c (main): Likewise.
6607
6608 2012-01-21  Bruno Haible  <bruno@clisp.org>
6609
6610         locale-fr.m4: Fix for Android.
6611         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6612         failure of the test program on Bionic libc.
6613
6614 2012-01-21  Jim Meyering  <meyering@redhat.com>
6615
6616         bootstrap: fail when bootstrap_post_import_hook fails
6617         Otherwise, it's far too easy to miss diagnostics emitted
6618         between gnulib-tool's output and that of running configure.
6619         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6620
6621 2012-01-17  Jim Meyering  <meyering@redhat.com>
6622
6623         maint: enable sc_trailing_blank
6624         * build-aux/pmccabe.css: Remove trailing blanks.
6625         * doc/acl-cygwin.txt: Likewise.
6626         * doc/gnu-oids.texi: Likewise
6627         * cfg.mk: Enable sc_trailing_blank.
6628         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6629
6630 2012-01-17  Jim Meyering  <meyering@redhat.com>
6631
6632         maint: enable sc_prohibit_openat_without_use
6633         * cfg.mk: Enable sc_prohibit_openat_without_use.
6634         Exempt lib/selinux-at.c.
6635
6636 2012-01-17  Jim Meyering  <meyering@redhat.com>
6637
6638         maint: enable sc_prohibit_cloexec_without_use
6639         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6640         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6641
6642 2012-01-17  Jim Meyering  <meyering@redhat.com>
6643
6644         maint: enable sc_prohibit_intprops_without_use
6645         * cfg.mk: Enable sc_prohibit_intprops_without_use
6646         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6647
6648 2012-01-17  Jim Meyering  <meyering@redhat.com>
6649
6650         maint: enable sc_prohibit_hash_pjw_without_use
6651         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6652         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6653         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6654         following " (".
6655
6656 2012-01-17  Jim Meyering  <meyering@redhat.com>
6657
6658         maint: enable double-word-prohibiting rule
6659         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6660         Exempt three files.
6661
6662 2012-01-17  Jim Meyering  <meyering@redhat.com>
6663
6664         maint: remove empty lines at EOF, but excluding modules/*
6665         Apply syntax rules at home as well as abroad.  Most changes
6666         were induced by running this:
6667           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6668             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6669             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6670         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6671         Exempt modules/* and two binary files.
6672         Also exempt doc/INSTALL*, per request from Bruno Haible.
6673         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6674         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6675         * doc/Copyright/request-assign.future: Likewise.
6676         * doc/Copyright/request-disclaim.changes: Likewise.
6677         * doc/INSTALL: Likewise.
6678         * doc/INSTALL.ISO: Likewise.
6679         * doc/INSTALL.UTF-8: Likewise.
6680         * doc/acl-cygwin.txt: Likewise.
6681         * doc/acl-resources.txt: Likewise.
6682         * doc/fdl-1.2.texi: Likewise.
6683         * doc/fdl-1.3.texi: Likewise.
6684         * doc/fdl.texi: Likewise.
6685         * lib/argp-pin.c: Likewise.
6686         * lib/round.c: Likewise.
6687         * lib/unicase/u16-totitle.c: Likewise.
6688         * lib/unictype/block_test.c: Likewise.
6689         * lib/uninorm/canonical-decomposition.c: Likewise.
6690         * m4/README: Likewise.
6691         * m4/relocatable-lib.m4: Likewise.
6692         * tests/test-isnand-nolibm.c: Likewise.
6693         * tests/test-isnand.c: Likewise.
6694         * tests/uninorm/NormalizationTest.txt: Likewise.
6695
6696 2012-01-17  Jim Meyering  <meyering@redhat.com>
6697
6698         maint: add framework to run syntax-check rules against gnulib sources
6699         * cfg.mk: New file, to disable all currently-failing tests.
6700         We'll enable them one by one, as they are made to pass.
6701         * Makefile (sc_maint): New rule.
6702
6703 2012-01-21  Bruno Haible  <bruno@clisp.org>
6704
6705         stdint: Add support for Android.
6706         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6707         include the system's <stdint.h>.
6708         Reported by Simon Josefsson <simon@josefsson.org>.
6709
6710 2012-01-19  Jim Meyering  <meyering@redhat.com>
6711
6712         bootstrap: add bootstrap_post_import_hook
6713         Bison does still need something like the gnulib_mk_hook whose
6714         invocation I had to remove along with slurp in commit 767ccd40.
6715         Technically, we could get along without it, but doing so would
6716         have required living with a warning and a mandatory post-bootstrap
6717         automake rerun.
6718         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6719         (bootstrap_post_import_hook): New function.
6720         Invoke it after gnulib-tool --import and before autoreconf.
6721
6722 2012-01-18  Jim Meyering  <meyering@redhat.com>
6723
6724         gitlog-to-changelog: don't use "no_"-prefixed variable name
6725         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6726         to enable both --cluster and --no-cluster.  Change variable name,
6727         s/\$no_cluster/$cluster/, and reverse usage to match.
6728
6729         gitlog-to-changelog: use "||", not "or" in expressions
6730         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6731         expressions.
6732
6733 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6734
6735         gitlog-to-changelog: new option --no-cluster
6736         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6737         clustering of adjacent commit messages.
6738
6739 2012-01-17  Jim Meyering  <meyering@redhat.com>
6740
6741         maint: spell file systems with two words, not one
6742         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6743         two words, not one.
6744
6745 2012-01-16  Jim Meyering  <meyering@redhat.com>
6746
6747         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6748         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6749
6750 2012-01-16  Eric Blake  <eblake@redhat.com>
6751
6752         bootstrap: cater to autoconf 2.59
6753         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6754         is not available.
6755
6756         bootstrap: properly check for libtool
6757         * build-aux/bootstrap (libtoolize): Also run libtool when older
6758         usage is detected.
6759
6760 2012-01-15  Bruno Haible  <bruno@clisp.org>
6761
6762         Improve support for MSVC 9.
6763         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6764         clashes on MSVC.
6765         * lib/fcntl.in.h: Likewise.
6766         * lib/stdlib.in.h: Likewise.
6767         * lib/sys_stat.in.h: Likewise.
6768
6769 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6770
6771         gnupload: we hold the master copy of this script now
6772         For motivation and more information, see:
6773         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6774         * build-aux/gnupload: Make it clear in the heading comments that the
6775         master copy of this file is maintained by gnulib.  Since we are at
6776         it, bump its copyright year and ...
6777         ($scriptversion): ... the date in its version.
6778         ($usage): Patches and bug reports should be sent to the gnulib list,
6779         not the automake one.
6780         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6781         anymore.
6782
6783 2012-01-15  Bruno Haible  <bruno@clisp.org>
6784
6785         Fix module 'random'.
6786         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6787         initstate, setstate are declared.
6788
6789 2012-01-14  Bruno Haible  <bruno@clisp.org>
6790
6791         Tests for module 'random'.
6792         * modules/random-tests: New file.
6793         * tests/test-random.c: New file, based on tests/test-random_r.c.
6794
6795         New module 'random'.
6796         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6797         declarations.
6798         * lib/random.c: New file, based on glibc/stdlib/random.c.
6799         * m4/random.m4: New file.
6800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6801         HAVE_RANDOM.
6802         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6803         * modules/random: New file.
6804         * config/srclist.txt: Add an entry for random.c.
6805         * doc/posix-functions/random.texi: Mention the 'random' module.
6806         * doc/posix-functions/initstate.texi: Likewise.
6807         * doc/posix-functions/setstate.texi: Likewise.
6808         * doc/posix-functions/srandom.texi: Likewise.
6809
6810 2012-01-12  Bruno Haible  <bruno@clisp.org>
6811
6812         random_r: Use common idioms.
6813         * lib/random_r.c: Include <stdlib.h> first.
6814
6815         random_r: Override incompatible API on AIX, OSF/1.
6816         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6817         Override the system function if REPLACE_RANDOM_R is 1.
6818         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6819         and OSF/1, set REPLACE_RANDOM_R.
6820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6821         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6822         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6823         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6824         * doc/glibc-functions/random_r.texi: Likewise.
6825         * doc/glibc-functions/setstate_r.texi: Likewise.
6826
6827         random_r: Support for MSVC 9.
6828         * lib/random_r.c: Include stdint.h, not inttypes.h.
6829
6830 2012-01-12  Eric Blake  <eblake@redhat.com>
6831
6832         inet_ntop: guard extra work by IF_LINT
6833         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6834         better code generation when not checking for warnings.
6835         Suggested by Paul Eggert and Jim Meyering.
6836
6837         strptime: fix regression on mingw
6838         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6839         Fix regression.  Reported by Bruno Haible.
6840
6841 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6842             Bruno Haible  <bruno@clisp.org>
6843
6844         copy-file: add error-code-returning variant.
6845         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6846         (qcopy_file_preserving): New declaration.
6847         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6848         copy_file_preserving. Change return type to 'int'. Don't emit an error
6849         message here.
6850         (copy_file_preserving): New function.
6851         * tests/test-copy-file.c: Include <stdlib.h>.
6852         (main): Test qcopy_file_preserving if the environment variable
6853         NO_STDERR_OUTPUT is set.
6854         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6855         with NO_STDERR_OUTPUT
6856         * tests/test-copy-file-2.sh: Likewise.
6857
6858 2012-01-10  Bruno Haible  <bruno@clisp.org>
6859
6860         copy-file: Use 'quote' module consistently.
6861         * lib/copy-file.c (copy_file_preserving): Use quote().
6862
6863         copy-file: Refactor.
6864         * lib/copy-file.c: Include quote.h.
6865         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6866         message here.
6867         * modules/copy-file (Depends-on): Add quote.
6868
6869         acl: Export qcopy_acl.
6870         * lib/acl.h (qcopy_acl): New declaration.
6871         * lib/copy-acl.c (qcopy_acl): Make non-static.
6872
6873         acl: Rename a local variable.
6874         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6875
6876         acl: Align return values of copy_acl and qcopy_acl.
6877         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6878         maybe < -1.
6879
6880 2012-01-11  Eric Blake  <eblake@redhat.com>
6881
6882         strptime: silence gcc warnings
6883         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6884         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6885         Reported by Daniel P. Berrange.
6886
6887         inet_ntop: silence gcc warning
6888         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6889         Reported by Daniel P. Berrange.
6890
6891 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6892
6893         getloadavg test: skip the test on GNU/Linux without /proc mounted
6894         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6895         file.  When /proc is not mounted, it always fails with ENOENT.
6896         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6897         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6898
6899 2012-01-10  Bruno Haible  <bruno@clisp.org>
6900
6901         regex: Avoid link error on MSVC 9.
6902         * modules/regex (Depends-on): Add wctype.
6903
6904 2012-01-10  Bruno Haible  <bruno@clisp.org>
6905
6906         doc: Mention --with-tests option.
6907         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6908         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6909         --with-tests.
6910         Reported by Reuben Thomas.
6911
6912 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6913
6914         users.txt: order package names lexicographically.
6915         * users.txt: Order package names lexicographically.
6916
6917 2012-01-10  Jim Meyering  <meyering@redhat.com>
6918
6919         maint.mk: fix description in comment
6920         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6921
6922         ignore-value: remove deprecated ignore_ptr function
6923         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6924         * NEWS: Note this.
6925
6926 2012-01-09  Jim Meyering  <meyering@redhat.com>
6927
6928         test-init.sh: avoid a subshell
6929         * tests/test-init.sh: Remove protective subshell.
6930         Suggested by Bernhard Voelker.  While a subshell is normally
6931         required to protect against older shells (Solaris, FreeBSD) that
6932         warn about a missing program before performing redirection, the
6933         shell-selection tests performed by init.sh probably exclude any
6934         offending shell.
6935
6936 2012-01-08  Bruno Haible  <bruno@clisp.org>
6937
6938         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6939         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6940         variable.
6941
6942 2012-01-08  Bruno Haible  <bruno@clisp.org>
6943
6944         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6945         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6946         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6947         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6948         macro.
6949         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6950         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6951         * lib/spawn_faction_addopen.c: Add workaround implementation if
6952         HAVE_WORKING_POSIX_SPAWN.
6953         * modules/spawn (Makefile): Substitute
6954         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6955         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6956         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6957         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6958         (Depends-on): Update conditions.
6959         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6960         the Solaris 11 bug.
6961
6962 2012-01-08  Bruno Haible  <bruno@clisp.org>
6963
6964         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6965         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6966         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6967         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6968         macro.
6969         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6970         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6971         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6972         HAVE_WORKING_POSIX_SPAWN.
6973         * modules/spawn (Makefile): Substitute
6974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6975         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6976         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6977         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6978         (Depends-on): Update conditions.
6979         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6980         the Solaris 11 bug.
6981
6982 2012-01-08  Bruno Haible  <bruno@clisp.org>
6983
6984         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6985         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6986         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6988         HAVE_WORKING_POSIX_SPAWN.
6989         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6990         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6992         * lib/spawn_faction_addclose.c: Add workaround implementation if
6993         HAVE_WORKING_POSIX_SPAWN.
6994         * modules/spawn (Makefile): Substitute
6995         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6996         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6997         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6998         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6999         (Depends-on): Update conditions.
7000         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7001         the Solaris 11 bug.
7002
7003 2012-01-08  Bruno Haible  <bruno@clisp.org>
7004
7005         doc: Update for Solaris 11 2011-11.
7006         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7007         * m4/printf.m4: Update comments.
7008
7009 2012-01-08  Bruno Haible  <bruno@clisp.org>
7010
7011         mktime: Avoid compilation error on Solaris 11.
7012         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7013
7014 2012-01-08  Bruno Haible  <bruno@clisp.org>
7015
7016         doc: Small fix.
7017         * doc/posix-headers/nl_types.texi: Correct platforms list.
7018
7019 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7020
7021         Add lgpl-3.0 module.
7022         * MODULES.html.sh (Support for building documentation): Add
7023         lgpl-3.0.
7024         * modules/lgpl-3.0: New file.
7025
7026 2012-01-08  Jim Meyering  <meyering@redhat.com>
7027
7028         select.c: indent with spaces, not TABs
7029         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7030
7031 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7032
7033         quotearg: do not use grave accent for left quote
7034         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7035         locale_quoting_style.
7036         (quotearg_buffer_restyled): Fix example.
7037         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7038
7039 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7040
7041         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7042         Most programs do not have translation catalogs for English and much
7043         less separate catalogs for British and American English.  Drop the
7044         suggestion to translators about these two, and provide it
7045         automatically for Unicode locales.  Like most programs, even those
7046         using American English, we use single quotation marks.  This conflicts
7047         with the American typographic convention, but works better when you
7048         cite the entire error message within double quotes.  It also tries not
7049         to clash with established practice and with what non-gnulib programs
7050         will usually do.
7051         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7052         using an UTF-8 or GB-18030 locale.  The list of other locales with
7053         quotes was provided by Bruno Haible.
7054         (quotearg_buffer_restyled): Adjust instructions to translators.
7055         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7056         text, since this would be wrong when using Unicode.
7057         * modules/quotearg: Depend on c-strcaseeq.
7058
7059 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7060
7061         quotearg: fix Wikipedia link
7062         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7063
7064 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7065
7066         Fix for mingw with MSVC9.
7067         * m4/ld-version-script.m4: Check that compiler rejects version
7068         scripts with syntax errors.  Reported by Bruno Haible
7069         <bruno@clisp.org>.
7070
7071 2012-01-06  Bruno Haible  <bruno@clisp.org>
7072
7073         Talk about "native Windows API", not "Woe32".
7074         * lib/accept4.c: Update comments to mention native Windows.
7075         * lib/execute.c: Likewise.
7076         * lib/fatal-signal.c: Likewise.
7077         * lib/localcharset.c: Likewise.
7078         * lib/nanosleep.c: Likewise.
7079         * lib/nl_langinfo.c: Likewise.
7080         * lib/pclose.c: Likewise.
7081         * lib/pipe-filter-gi.c: Likewise.
7082         * lib/pipe-filter-ii.c: Likewise.
7083         * lib/pipe.c: Likewise.
7084         * lib/pipe2.c: Likewise.
7085         * lib/popen.c: Likewise.
7086         * lib/progreloc.c: Likewise.
7087         * lib/relocatable.c: Likewise.
7088         * lib/sigaction.c: Likewise.
7089         * lib/sigprocmask.c: Likewise.
7090         * lib/spawn-pipe.h: Likewise.
7091         * lib/spawn-pipe.c: Likewise.
7092         * lib/spawni.c: Likewise.
7093         * lib/stat-time.h: Likewise.
7094         * lib/w32spawn.h: Likewise.
7095         * tests/test-isatty.c: Likewise.
7096         * lib/config.charset: More comments.
7097         * doc/gnulib-intro.texi: Mention native Windows.
7098         * doc/posix-functions/_Exit_C99.texi: Likewise.
7099         * doc/posix-headers/fcntl.texi: Likewise.
7100
7101 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7102
7103         argp: Avoid crash if translator uses % characters in a translation.
7104         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7105         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7106
7107 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7108
7109         doc: C11 and C++11 are now official
7110         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7111         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7112         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7113         * modules/stdalign:
7114         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7115
7116 2012-01-06  Bruno Haible  <bruno@clisp.org>
7117
7118         uc-is-grapheme-break tests: Tweak.
7119         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7120         message.
7121
7122 2012-01-06  Bruno Haible  <bruno@clisp.org>
7123
7124         test-init.sh: correct the test for diff -u
7125         * tests/test-init.sh: Also redirect stdout to /dev/null.
7126
7127 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7128
7129         Use ', not `, for quoting output.
7130         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7131         (print_changelog_deltas, get_tool_versions, main program):
7132         * build-aux/git-version-gen:
7133         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7134         * build-aux/move-if-change (help):
7135         * build-aux/useless-if-before-free (usage, main program):
7136         * check-module (parse_module_file, usage)
7137         (find_included_lib_files, check_module):
7138         * lib/argmatch.c (main) [TEST]:
7139         * lib/argp-help.c (_help):
7140         * lib/getopt1.c (main) [TEST]:
7141         * lib/git-merge-changelog.c (usage):
7142         * lib/xstrtol-error.c (xstrtol_error):
7143         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7144         * m4/argz.m4 (gl_FUNC_ARGZ):
7145         * m4/bison.m4 (gl_BISON):
7146         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7148         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7149         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7150         * m4/gc-random.m4 (gl_GC_RANDOM):
7151         * m4/intl.m4 (gt_CHECK_DECL):
7152         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7154         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7156         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7157         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7158         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7159         * tests/test-dirname.c (main):
7160         * tests/test-getpass.c (main):
7161         * tests/test-iconvme.c (main):
7162         * tests/test-parse-datetime.c (LOG):
7163         * tests/test-xstrtoimax.sh:
7164         * tests/test-xstrtol.sh:
7165         * tests/test-xstrtoll.sh:
7166         * tests/test-xstrtoumax.sh:
7167         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7168         * top/GNUmakefile (abort-due-to-no-makefile):
7169         Quote 'like this', not `like this', as per the recent change to
7170         the GNU coding standards.
7171
7172 2012-01-05  Bruno Haible  <bruno@clisp.org>
7173
7174         strtoimax: Don't force a replacement on systems where intmax_t is int.
7175         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7176         'intmax_t' is not larger than 'int'.
7177         Reported by Pádraig Brady <P@draigBrady.com>.
7178
7179 2012-01-05  Bruno Haible  <bruno@clisp.org>
7180
7181         doc: Mention NetBSD bugs.
7182         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7183         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7184
7185 2012-01-05  Bruno Haible  <bruno@clisp.org>
7186
7187         strtoumax tests: Enhance tests.
7188         * tests/test-strtoumax.c (main): Add tests for large values.
7189
7190 2012-01-05  Bruno Haible  <bruno@clisp.org>
7191
7192         strtoimax: Work around AIX 5.1 bug.
7193         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7194         definition.
7195         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7196         Set HAVE_STRTOIMAX.
7197         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7198         REPLACE_STRTOIMAX.
7199         * modules/inttypes-incomplete (Makefile.am): Substitute
7200         REPLACE_STRTOIMAX.
7201         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7202         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7203         (Depends-on): Update conditions.
7204         * tests/test-strtoimax.c (main): Add tests for large values.
7205         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7206
7207 2012-01-05  Bruno Haible  <bruno@clisp.org>
7208
7209         inttypes: Modernize.
7210         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7211         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7212         (Makefile.am): Update inttypes.h rule.
7213
7214 2012-01-05  Jim Meyering  <meyering@redhat.com>
7215
7216         init.sh: don't waste a subshell just to redirect stderr
7217         * tests/init.sh: In testing for diff -u and diff -c, use a
7218         stderr-redirecting exec inside `...` rather than a subshell.
7219
7220         test-init.sh: avoid failure on HP-UX 11.00
7221         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7222         resolves to diff -c or cmp.  Reported by Bruno Haible.
7223
7224 2012-01-05  Bruno Haible  <bruno@clisp.org>
7225
7226         Tests for module 'strtoull'.
7227         * modules/strtoull-tests: New file.
7228         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7229
7230 2012-01-05  Bruno Haible  <bruno@clisp.org>
7231
7232         Tests for module 'strtoll'.
7233         * modules/strtoll-tests: New file.
7234         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7235
7236 2012-01-05  Bruno Haible  <bruno@clisp.org>
7237
7238         Tests for module 'strtoul'.
7239         * modules/strtoul-tests: New file.
7240         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7241
7242 2012-01-05  Bruno Haible  <bruno@clisp.org>
7243
7244         Tests for module 'strtol'.
7245         * modules/strtol-tests: New file.
7246         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7247
7248 2012-01-04  Jim Meyering  <meyering@redhat.com>
7249
7250         test-init.sh: accommodate Solaris 5.10's different diff -u output
7251         * tests/test-init.sh: Also exempt @@ lines from the comparison
7252         of diff output, since Solaris 5.10 and GNU diff formats differ.
7253         Reported by Stefano Lattarini.
7254
7255 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         test-posixtm: don't assume signed integer wraparound
7258         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7259         after signed integer overflow.  Inspired by (though it may not
7260         fix) Bruno Haible's bug report in
7261         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7262
7263         Spell out "Windows 9x" and "Windows XP".
7264         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7265         "Windows 9x" and "WinXP" with "Windows XP".
7266
7267 2012-01-04  Jim Meyering  <meyering@redhat.com>
7268
7269         test-vc-list-files-cvs.sh: remove obsolete comment
7270         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7271         double exit.  Now that's all encapsulated via skip_ and Exit.
7272
7273 2012-01-04  Bruno Haible  <bruno@clisp.org>
7274
7275         Talk about "native Windows API", not "Win32".
7276         * lib/classpath.c: Update comments to mention native Windows.
7277         * lib/csharpexec.c: Likewise.
7278         * lib/dup2.c: Likewise.
7279         * lib/error.c: Likewise.
7280         * lib/fcntl.c: Likewise.
7281         * lib/filename.h: Likewise.
7282         * lib/findprog.c: Likewise.
7283         * lib/get-rusage-as.c: Likewise.
7284         * lib/get-rusage-data.c: Likewise.
7285         * lib/getpagesize.c: Likewise.
7286         * lib/javaexec.c: Likewise.
7287         * lib/msvc-inval.c: Likewise.
7288         * lib/msvc-nothrow.c: Likewise.
7289         * lib/nanosleep.c: Likewise.
7290         * lib/nonblocking.c: Likewise.
7291         * lib/printf-parse.c: Likewise.
7292         * lib/setlocale.c: Likewise.
7293         * lib/sigaction.c: Likewise.
7294         * lib/strerror_r.c: Likewise.
7295         * lib/tmpdir.c: Likewise.
7296         * lib/vasnprintf.c: Likewise.
7297         * lib/w32spawn.h: Likewise.
7298         * lib/waitpid.c: Likewise.
7299         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7300         * m4/locale-ar.m4: Likewise.
7301         * m4/locale-fr.m4: Likewise.
7302         * m4/locale-ja.m4: Likewise.
7303         * m4/locale-tr.m4: Likewise.
7304         * m4/locale-zh.m4: Likewise.
7305         * m4/printf.m4: Likewise.
7306         * tests/test-cloexec.c: Likewise.
7307         * tests/test-copy-acl.sh: Likewise.
7308         * tests/test-copy-file.sh: Likewise.
7309         * tests/test-file-has-acl.sh: Likewise.
7310         * tests/test-set-mode-acl.sh: Likewise.
7311         * tests/test-dup-safer.c: Likewise.
7312         * tests/test-dup2.c: Likewise.
7313         * tests/test-dup3.c: Likewise.
7314         * tests/test-fcntl.c: Likewise.
7315         * tests/test-nonblocking-pipe.h: Likewise.
7316         * tests/test-nonblocking-socket.h: Likewise.
7317         * tests/test-pipe.c: Likewise.
7318         * tests/test-pipe2.c: Likewise.
7319         * tests/test-spawn-pipe-child.c: Likewise.
7320         * doc/acl-resources.txt: Likewise.
7321         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7322         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7323         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7324         * lib/localcharset.c: Update comments to mention native Windows.
7325         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7326         * lib/localename.c: Likewise.
7327         * lib/progreloc.c: Likewise.
7328         * lib/relocatable.c: Likewise.
7329         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7330         (windows_compute_revents): Renamed from win32_compute_revents.
7331         (windows_compute_revents_socket): Renamed from
7332         win32_compute_revents_socket.
7333         * lib/select.c: Update comments to mention native Windows.
7334         (windows_poll_handle): Renamed from win32_poll_handle.
7335         * m4/threadlib.m4: Update comments to mention native Windows.
7336         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7337         --enable-threads=windows instead of --enable-threads=win32. Set
7338         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7339         * lib/glthread/lock.h: Update comments to mention native Windows.
7340         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7341         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7342         USE_WIN32_THREADS.
7343         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7344         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7345         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7346         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7347         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7348         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7349         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7350         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7351         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7352         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7353         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7354         * tests/test-tls.c: Likewise.
7355         Rationale:
7356         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7357         on both 32-bit and 64-bit Windows systems.
7358         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7359         line of distinction is between "native Windows" on one side and Unix/
7360         POSIX systems on the other side. More details in
7361         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7362         Suggested by Paul Eggert.
7363
7364 2012-01-03  Bruno Haible  <bruno@clisp.org>
7365
7366         isatty: Support for MSVC 9.
7367         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7368         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7369         (_isatty_nothrow): New function.
7370         (isatty): Use it instead of _isatty.
7371         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7372         * lib/poll.c (IsConsoleHandle): Likewise.
7373         * lib/select.c (IsConsoleHandle): Likewise.
7374         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7375         (gl_PREREQ_ISATTY): New macro.
7376         * modules/isatty (Depends-on): Add msvc-inval.
7377         (configure.ac): Invoke gl_PREREQ_ISATTY.
7378
7379 2012-01-03  Jim Meyering  <meyering@redhat.com>
7380
7381         maint.mk: remove temporary transition aid from over 1.5 years ago
7382         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7383         purpose was to aid in the transition (avoiding silent malfunction)
7384         from that old name to the new _sc_search_regexp.  This shim was
7385         added by commit 219c504b.
7386
7387         init.sh: do not try to accommodate compare arguments starting with "-"
7388         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7389         compare arguments that start with "-".  Besides, we do not worry
7390         about this when invoking diff or cmp; why start now with sed?
7391         Using "--" to separate options from argument would trigger sed
7392         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7393         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7394
7395 2012-01-02  Bruno Haible  <bruno@clisp.org>
7396
7397         Enhance tests for module 'isatty'.
7398         * modules/isatty-tests (Depends-on): Add pipe-posix.
7399         * tests/test-isatty.c: Include <fcntl.h>.
7400         (DEV_NULL): New macro.
7401         (main): Test the resut of isatty() also on regular files, pipes, and
7402         /dev/null.
7403
7404         New module 'isatty'.
7405         * lib/unistd.in.h (isatty): New declaration.
7406         * lib/isatty.c: New file, based on an idea of
7407         Bastien Roucariès <roucaries.bastien@gmail.com>.
7408         * m4/isatty.m4: New file.
7409         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7410         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7411         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7412         REPLACE_ISATTY.
7413         * modules/isatty: New file.
7414         * doc/posix-functions/isatty.texi: Mention the new module.
7415         Suggested by Paolo Bonzini.
7416
7417 2012-01-02  Bruno Haible  <bruno@clisp.org>
7418
7419         canonicalize: Tweak 2011-12-29 commit.
7420         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7421         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7422
7423 2012-01-02  Jim Meyering  <meyering@redhat.com>
7424
7425         gitlog-to-changelog: describe input syntax in --help output
7426         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7427
7428         gitlog-to-changelog: fix typo in --help: show backslash before email @
7429         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7430         in sources, but not in actual output.
7431
7432 2011-12-30  Jim Meyering  <meyering@redhat.com>
7433
7434         gitlog-to-changelog: don't malfunction when name contains %-directive
7435         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7436         in a name string cause trouble.  E.g., with a user name of "%s",
7437         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7438
7439 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7440
7441         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7442         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7443         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7444         the "  (tiny change)" notation that is appended to the standard
7445         ChangeLog "date  name  email" header line.
7446
7447 2012-01-01  Jim Meyering  <meyering@redhat.com>
7448
7449         test-framework-sh: init.sh: fix "make dist" failure
7450         When using gnulib-tool's --with-tests option and any module that
7451         depends on test-framework-sh, "make dist" would fail due to the
7452         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7453         in the gltests directory, and not in the gllib/ directory.
7454         One way to work around that is to move the EXTRA_DIST += init.sh
7455         from the primary module to the -tests one:
7456         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7457         * modules/test-framework-sh (Makefile.am): ...not here.
7458         Reported by Tom G. Christensen in
7459         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7460
7461         version-etc: update copyright year reported by --version
7462         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7463
7464 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7465
7466         canonicalize: only stat() if required
7467         * lib/canonicalize.c (canonicalize_filename_mode):
7468         Avoid calling l?stat() when both CAN_MISSING,
7469         and CAN_NOLINKS are set, as we neither need
7470         to resolve symlinks or test component existence.
7471
7472 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7473
7474         doc: cover st_ino issues once; add OpenVMS etc.
7475         * doc/posix-functions/stat.texi (stat):
7476         * doc/posix-functions/lstat.texi (lstat):
7477         * doc/posix-functions/fstatat.texi (fstatat):
7478         * doc/posix-functions/fstat.texi (fstat):
7479         Move general 'struct stat' stuff to sys_stat.texi,
7480         leaving behind a pointer.
7481         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7482         Merge duplicate info about 'struct stat' problems into here.
7483         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7484         and suggest partial workarounds.
7485
7486         same-inode: port to OpenVMS
7487         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7488         three st_ino values.
7489
7490 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7491
7492         canonicalize: fix references to stat() and lstat()
7493         * lib/canonicalize.c (canonicalize_filename_mode):
7494         Ensure references always resolve to a replacement
7495         function if required (even via a macro).
7496
7497 2011-12-30  Jim Meyering  <meyering@redhat.com>
7498
7499         gitlog-to-changelog: remove a little duplication
7500         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7501         rather than twice.
7502
7503 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7504
7505         canonicalize: add support for not resolving symlinks
7506         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7507         indicate we don't want to follow symlinks.  Also
7508         provide CAN_MODE_MASK to aid setting these existing
7509         mutually exclusive values.
7510         * lib/canonicalize.c (canonicalize_filename_mode):
7511         Extract the flags from can_mode parameter, which
7512         are currently just used to select between stat()
7513         and lstat().  Also ensure that mutually exclusive
7514         values are flagged immediately as invalid.
7515         * tests/test-canonicalize.c: Verify symlinks are
7516         not followed, and that invalid flag combinations
7517         are diagnosed.
7518
7519 2011-12-25  Jim Meyering  <meyering@redhat.com>
7520
7521         gitlog-to-changelog: do not clump multi-paragraph entries
7522         Identical header lines (date,name,email+coauthors) are suppressed,
7523         thus putting all entries with those same characteristics under
7524         a single header.  However, when a log entry consists of two or
7525         more paragraphs, it may not be clear where it starts and ends.
7526         This change makes it so that such an entry is always separated
7527         from others by a header line, even when that header would
7528         otherwise be suppressed.
7529         * build-aux/gitlog-to-changelog: Implement the above.
7530         Inspired by a related request from Stefano Lattarini in
7531         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7532
7533 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         announce-gen: fix `cmd' typo in diagnostic
7536         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7537         diagnostic: a missing '$' meant that the command was not output.
7538
7539 2011-12-23  Jim Meyering  <meyering@redhat.com>
7540
7541         test-framework-sh: distribute init.sh
7542         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7543         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7544         fail due to the lack of init.sh.
7545
7546         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7547         * modules/atexit-tests: Rather than listing tests/init.sh,
7548         now that there's a module for it, simply depend on that new module.
7549         * modules/closein-tests: Likewise.
7550         * modules/exclude-tests: Likewise.
7551         * modules/getcwd-tests: Likewise.
7552         * modules/perror-tests: Likewise.
7553         * modules/pread-tests: Likewise.
7554         * modules/pwrite-tests: Likewise.
7555         * modules/vc-list-files-tests: Likewise.
7556         * modules/verify-tests: Likewise.
7557         * modules/xalloc-die-tests: Likewise.
7558         * modules/xstrtoimax-tests: Likewise.
7559         * modules/xstrtol-tests: Likewise.
7560         * modules/xstrtoll-tests: Likewise.
7561         * modules/xstrtoumax-tests: Likewise.
7562         * modules/yesno-tests: Likewise.
7563
7564 2011-12-22  Jim Meyering  <meyering@redhat.com>
7565
7566         test-framework-sh: add minimal tests of init.sh's compare function
7567         * modules/test-framework-sh-tests: New file.
7568         * tests/test-init.sh: New file.
7569
7570         test-framework-sh: new module
7571         * modules/test-framework-sh: New file.
7572         * MODULES.html.sh (Support for maintaining and releasing projects):
7573         List it.
7574
7575         init.sh: do not emit simulated diff output to stderr
7576         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7577
7578 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7579
7580         .gitignore: ignore gnulib.dvi and regex.info
7581         * doc/.gitignore:add gnulib.dvi and regex.info
7582
7583 2011-12-22  Jim Meyering  <meyering@redhat.com>
7584
7585         init.sh: correct previous change
7586         * tests/init.sh (compare): My previous change was wrong.
7587         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7588
7589         init.sh: avoid unwarranted test failure when using "set -e"
7590         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7591         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7592         a use like "compare exp out" would get evoke an unconditional failure.
7593
7594 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7595
7596         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7597         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7598         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7599         autoreconf that did not.
7600         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7601         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7602
7603 2011-12-17  Jim Meyering  <meyering@redhat.com>
7604
7605         bootstrap: remove some now-unneeded code
7606         This script arose back when gnulib-tool was young.
7607         Since then, it has seen improvements that render much of this
7608         script unnecessary.  In particular, it can now make symlinks
7609         to the files it uses.  Also, I no longer see as much value in
7610         marking files as read-only via comments.
7611         If you relied on the symlink-creation feature of the preceding
7612         version of this script, you can get most of that functionality
7613         by adding the --symlink option to the definition of
7614         gnulib_tool_option_extras in your bootstrap.conf file.
7615         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7616         Run autopoint and libtoolize *before* gnulib-tool.
7617         After it, run an abbreviated autoreconf, rather than a loop around
7618         all tools.
7619         (slirp, bt_mark_as_generated): Remove functions.
7620
7621 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7622
7623         ftoastr: fix typo
7624         * lib/ftoastr.h: Fix misspelling in comment.
7625
7626 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7627
7628         * top/README-release: fix punctuation.
7629
7630 2011-12-17  Jim Meyering  <meyering@redhat.com>
7631
7632         bootstrap: correct the recent buildreq change
7633         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7634         had no effect.
7635         * build-aux/bootstrap (buildreq): Bracket each search term with
7636         "*...*", so that the shell "case" statement works as intended.
7637         Add comments.
7638
7639 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7640
7641         build: let bootstrap resort to wget when downloading .po files
7642         * build-aux/bootstrap (download_po_files): Fallback to wget when
7643         downloading the .po files via rsync fails.  This is necessary to
7644         bootstrap from behind a strict firewall.
7645
7646 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7647
7648         stdint: don't assume C++11 when compiling with g++
7649         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7651         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7652         work also in C++ before C++11, as that improperly inhibits
7653         generating a substitute stdint.h for that case.
7654
7655 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         alloca: protect comment from gnulib-tool
7658         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7659         that gnulib-tool doesn't think it's a license, and munge it to
7660         say "GCC version 3".
7661
7662 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7663
7664         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7665         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7666         $(abs_top_builddir) instead of $(top_builddir).
7667
7668 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7669
7670         strftime-tests: also test nanoseconds
7671         * tests/test-strftime.c (T): Add a test of %N.
7672
7673 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7674
7675         inttypes, stdint: add C++11 support
7676         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7677         when including inttypes.h and stdint.h.  Support this change to
7678         the standard.
7679         * doc/posix-headers/inttypes.texi (inttypes.h):
7680         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7681         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7682         Define if not defined already, for the benefit of pre-C++11 hosts.
7683         Define the standard format macros (e.g., PRId8) always.
7684         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7685         Likewise, if __cpluspus.  Define the standard constant and limit
7686         macros (e.g., INT8_C, INT8_MAX) always.
7687         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7688         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7689         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7690         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7691         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7692         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7693         Likewise.
7694
7695 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7696
7697         nonblocking tests: Fix test failure on Linux/PPC.
7698         Suggested by Prerna Saxena in
7699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7700         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7701         Set to 1100000.
7702
7703 2011-12-12  Jim Meyering  <meyering@redhat.com>
7704
7705         argmatch: don't hard-code `' when listing valid option arguments
7706         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7707         use the quote function to add quotes.  Use fputs rather than
7708         fprintf for the format string with no format directive.
7709
7710 2011-12-07  Eric Blake  <eblake@redhat.com>
7711
7712         bootstrap: detect tools required by gnulib-tool
7713         * build-aux/bootstrap (buildreq): Provide minimum implicit
7714         dependencies.
7715         * DEPENDENCIES: Mention patch as a prereq.
7716
7717 2011-12-04  Bruno Haible  <bruno@clisp.org>
7718
7719         sethostname: Port to Windows platforms.
7720         * lib/sethostname.c: Provide an alternate implementation for Windows
7721         platforms.
7722         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7723         (main): Skip the test if sethostname() fails with EPERM. On Windows
7724         platforms, don't check the result of gethostname().
7725
7726 2011-12-04  Bruno Haible  <bruno@clisp.org>
7727             Jim Meyering  <meyering@redhat.com>
7728
7729         tests: Avoid spurious error message on platforms without mktemp program.
7730         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7731
7732 2011-12-04  Bruno Haible  <bruno@clisp.org>
7733
7734         sethostname: Fix documentation.
7735         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7736         "not fixed" section.
7737
7738 2011-12-03  Bruno Haible  <bruno@clisp.org>
7739
7740         gnulib-tool: Verify that the License field is present and non-empty.
7741         * gnulib-tool (func_get_license_raw): New function, extracted from
7742         func_get_license.
7743         (func_get_license): Use it. Warn if the module is not a test module and
7744         has no license.
7745         Suggested by Jim Meyering.
7746
7747 2011-12-03  Bruno Haible  <bruno@clisp.org>
7748
7749         sethostname tests: Fix link error on mingw.
7750         * tests/test-sethostname1.c: New file, extracted from
7751         tests/test-sethostname.c.
7752         * tests/test-sethostname2.c: New file, extracted from
7753         tests/test-sethostname.c.
7754         * tests/test-sethostname.c: Remove file.
7755         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7756         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7757         (Depends-on): Add gethostname.
7758         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7759         Link the latter with $(GETHOSTNAME_LIB).
7760
7761         sethostname tests: Fix compilation error on mingw.
7762         * tests/test-sethostname.c: Don't include <sys/types.h>.
7763         (geteuid): Use a dummy value without uid_t.
7764         * modules/sethostname-tests (Depends-on): Remove sys_types.
7765
7766         sethostname tests: Avoid a gcc warning.
7767         * tests/test-sethostname.c (main): Remove an unused variable.
7768
7769         Tweak last commit.
7770         * modules/sethostname-tests (Files): Sort by decreasing importance.
7771         (configure.ac): Check for geteuid.
7772         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7773         the test when there's nothing to test. Drop an unnecessary cast.
7774         Improve an error message. Verify that the final sethostname() call
7775         succeeds.
7776
7777 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7778
7779         Add a test suite for the sethostname module.
7780         * modules/sethostname-tests: New file.  A test program
7781         for the sethostname module.
7782         * tests/test-sethostname.c: Likewise.
7783
7784 2011-12-03  Bruno Haible  <bruno@clisp.org>
7785
7786         Tweak last commit.
7787         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7788         Fix preprocessor directives indentation. Fix typos.
7789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7790         * modules/unistd (Makefile): Likewise.
7791
7792 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7793
7794         Integrate the sethostname module into unistd.
7795         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7796         into the unistd.h header.
7797         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7798         preprocessor directives.
7799         * modules/unistd: Setup the Makefile substitutions of the
7800         SETHOSTNAME preprocessor directives.
7801
7802 2011-12-03  Bruno Haible  <bruno@clisp.org>
7803
7804         Tweak last commit.
7805         * lib/sethostname.c: Don't include <string.h>.
7806         (sethostname): No need to copy the argument string to the stack. Don't
7807         call clearerr. Preserve errno when fprintf failed.
7808         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7809         Don't invoke AC_REPLACE_FUNCS.
7810         * modules/sethostname (Link): Remove empty section.
7811         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7812         failure problem.
7813
7814 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7815
7816         New module 'sethostname'.
7817         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7818         for systems that lack it.
7819         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7820         sethostname declaration and function.
7821         * modules/sethostname: New file.  Define the sethostname module.
7822
7823 2011-12-03  Bruno Haible  <bruno@clisp.org>
7824
7825         Tweak last commit.
7826         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7827
7828 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7829
7830         Split the HOST_NAME_MAX detection into a separate m4 macro.
7831         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7832         macro so it can be used by the pending sethostname module.
7833
7834 2011-12-03  Bruno Haible  <bruno@clisp.org>
7835
7836         Fix module descriptions syntax.
7837         * modules/argv-iter (License): Fix syntax.
7838         * modules/di-set (License): Likewise.
7839         * modules/ino-map (License): Likewise.
7840         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7841
7842 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7843
7844         stdalign: port to Clang 3.0
7845         Problem reported by Simon Josefsson in
7846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7847         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7848         which has <stdalign.h> but which does not define alignof.
7849         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7850
7851 2011-12-01  Eric Blake  <eblake@redhat.com>
7852
7853         mktempd: silence dd usage
7854         * build-aux/mktempd (rand_bytes): Silence dd.
7855
7856 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7857
7858         manywarnings: Don't mention gcc version in docstring.
7859         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7860         Jim Meyering <meyering@redhat.com>.
7861
7862 2011-11-30  Jim Meyering  <meyering@redhat.com>
7863
7864         hash: mark a few floating point constants with "f" suffix
7865         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7866         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7867         floating point constants with "f", since they're destined to be
7868         saved/used as "float"s.
7869
7870 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7871
7872         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7873         * tests/test-float.c (test_long_double): Correct and re-enable the
7874         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7875
7876 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7877
7878         Avoid subtracting two pointers that don't point into the same block.
7879         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7880         only pointers into the same memory block are subtracted. We cannot
7881         assume that sizeof (ptrdiff_t) == sizeof (void *).
7882
7883 2011-11-29  Eric Blake  <eblake@redhat.com>
7884
7885         maint.mk: add syntax check for use of compare from init.sh
7886         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7887         moved here from coreutils.
7888
7889         manywarnings: drop -Wunsuffixed-float-constants
7890         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7891         '1.0D', which is the only way to silence this warning for 'double'.
7892
7893 2011-11-29  Jim Meyering  <meyering@redhat.com>
7894
7895         hash: mark compute_bucket_size with the pure attribute
7896         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7897
7898         quotearg, propername: correct pragma guard expression
7899         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7900         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7901
7902 2011-11-28  Jim Meyering  <meyering@redhat.com>
7903
7904         propername: do not mark proper_name with the const attribute
7905         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7906         since it examines data pointed to by its parameter.
7907         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7908         the suggestion from -Wsuggest-attribute=const.
7909
7910         propername: mark one more function as const
7911         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7912
7913 2011-11-27  Jim Meyering  <meyering@redhat.com>
7914
7915         mark functions with const and pure attributes
7916
7917         Mark functions per suggestions from gcc-4.6 when using these options:
7918         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7919         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7920         Follow these guidelines: when possible, apply the attribute to
7921         an extern declaration, not to its definition.  Apply it to the
7922         definition only when the definition is static.
7923         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7924         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7925         * lib/base64.h (isbase64): Likewise.
7926         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7927         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7928         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7929         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7930         (c_tolower, c_toupper): Likewise.
7931         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7932         * lib/chdir-long.c (find_non_slash): Likewise.
7933         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7934         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7935         * lib/file-type.h (file_type): Likewise.
7936         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7937         * lib/filevercmp.c (verrevcmp): Likewise.
7938         * lib/freadahead.h (freadahead): Likewise.
7939         * lib/fts.c (fts_maxarglen): Likewise.
7940         * lib/hash-pjw.h (hash_pjw): Likewise.
7941         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7942         * lib/hash.c (is_prime, next_prime): Likewise.
7943         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7944         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7945         (hash_table_ok, hash_get_first, hash_string): Likewise.
7946         (compute_bucket_size): Likewise.
7947         * lib/i-ring.h (i_ring_empty): Likewise.
7948         * lib/isnan.c (isnanl): Likewise.
7949         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7950         * lib/memcasecmp.h (memcasecmp): Likewise.
7951         * lib/memchr2.h (memchr2): Likewise.
7952         * lib/memcmp2.h (memcmp2): Likewise.
7953         * lib/parse-datetime.y (lookup_zone): Likewise.
7954         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7955         [!WINDOWS_SOCKETS]: Likewise.
7956         * lib/strnlen1.h (strnlen1): Likewise.
7957         * lib/uniwidth.in.h (uc_width): Likewise.
7958         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7959         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7960         (quoting_options_from_style): Add a comment.
7961         * lib/propername.h (proper_name): Add a comment.
7962
7963 2011-11-27  Bruno Haible  <bruno@clisp.org>
7964
7965         Remove unused macros from !_LIBC code in glibc-borrowed files.
7966         * lib/fnmatch.c (STRCOLL): Remove macro.
7967         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7968         * lib/glob.c (__stat, __readdir64): Remove macros.
7969         * lib/tempname.c (__open64, __xstat64): Remove macros.
7970         Suggested by Paul Eggert.
7971
7972 2011-11-27  Bruno Haible  <bruno@clisp.org>
7973
7974         getcwd: Fix link error on MSVC 9.
7975         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7976
7977 2011-11-27  Bruno Haible  <bruno@clisp.org>
7978
7979         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7980         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7981         HAVE_OPENDIR is 0.
7982         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7983         HAVE_CLOSEDIR is 0.
7984         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7985         is 0.
7986         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7987
7988 2011-11-27  Bruno Haible  <bruno@clisp.org>
7989
7990         getcwd: Fix bug from 2011-08-17.
7991         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7992         platforms that need it.
7993         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7994         code of 4 to be a failure, not a success. This ensures that
7995         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7996
7997 2011-11-27  Bruno Haible  <bruno@clisp.org>
7998
7999         binary-io tests: Avoid test failure on mingw when libtool is used.
8000         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8001         Don't verify the size of t-bin-out1.tmp here.
8002         * tests/test-binary-io.sh: Verify it here.
8003         Reported by Simon Josefsson.
8004
8005 2011-11-26  Bruno Haible  <bruno@clisp.org>
8006
8007         Fix conflict between two instantiations of module 'unistd'.
8008         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8009         ${include_guard_prefix} also in the autoconf snippet.
8010         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8012         GNULIB_UNISTD_H_GETOPT.
8013         * modules/getopt-posix (configure.ac): Set the
8014         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8015         * modules/getopt-gnu (configure.ac): Likewise.
8016         * modules/unistd (Makefile.am): Change the substitution value of
8017         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8018         Reported by Simon Josefsson.
8019
8020 2011-11-25  Bruno Haible  <bruno@clisp.org>
8021
8022         pagealign_alloc: Doc and comments.
8023         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8024         module.
8025         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8026
8027 2011-11-25  Jim Meyering  <meyering@redhat.com>
8028
8029         test-update-copyright.sh: avoid false-positive failure
8030         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8031         around false positive failure on Cygwin/Windows.  The latter was
8032         matching erroneously-created files with names like
8033         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8034
8035 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8036
8037         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8038         * m4/valgrind-tests.m4: Check that the parameters that will be
8039         used works, not just a subset of them.  Reported by Bruno Haible
8040         <bruno@clisp.org>.
8041
8042 2011-11-24  Jim Meyering  <meyering@redhat.com>
8043
8044         test-stdalign.c: comment out long double tests
8045         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8046         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8047         error: '_Alignas' specifiers cannot reduce alignment of \
8048         'static_longdouble_alignas'.
8049
8050 2011-11-22  Jim Meyering  <meyering@redhat.com>
8051
8052         init.sh: make "compare /dev/null FILE" output more readable
8053         * tests/init.sh (compare_): Document the preferred order of arguments.
8054         (emit_diff_u_header_): New function.
8055         (compare_dev_null_): Emit a simulated diff, rather than just the
8056         contents of the unexpected file.  Suggestion from Bruno Haible.
8057
8058 2011-11-21  Jim Meyering  <meyering@redhat.com>
8059             Eric Blake  <eblake@redhat.com>
8060
8061         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8062         * tests/init.sh: Make our compare function slightly more portable.
8063         Reported by Bruno Haible in
8064         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8065
8066 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8067
8068         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8069         before using it, in code that ends up in config.h.
8070
8071 2011-11-20  Bruno Haible  <bruno@clisp.org>
8072
8073         getcwd: Work around getcwd bug on AIX 5..7.
8074         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8075         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8076         Use a different value for gl_cv_func_getcwd_path_max. Move the
8077         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8078         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8079         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8080         Define HAVE_MINIMALLY_WORKING_GETCWD.
8081         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8082         where it is not even minimally working, that is, on AIX.
8083         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8084         m4/getcwd-path-max.m4.
8085         (main): Update exit code computation.
8086         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8087         getcwd does not handle long file names.
8088
8089 2011-11-20  Bruno Haible  <bruno@clisp.org>
8090
8091         getcwd: Fix bug from 2009-09-10.
8092         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8093         like "no".
8094
8095 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8096
8097         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8098
8099 2011-11-20  Bruno Haible  <bruno@clisp.org>
8100
8101         fma tests: Avoid shadowing local variables.
8102         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8103         expected.
8104
8105 2011-11-20  Bruno Haible  <bruno@clisp.org>
8106
8107         copysignf tests: Fix.
8108         * tests/test-copysignf.c: Fix signature check.
8109
8110 2011-11-20  Bruno Haible  <bruno@clisp.org>
8111
8112         fma: Remove unused code.
8113         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8114         unused macros.
8115
8116 2011-11-20  Bruno Haible  <bruno@clisp.org>
8117
8118         sethostname: Fix doc about AIX.
8119         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8120         sethostname; it has it.
8121
8122         sethostname: Mention more portability problems.
8123         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8124         problem.
8125         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8126
8127 2011-11-19  Bruno Haible  <bruno@clisp.org>
8128
8129         Depend on module fcntl-h when AT_FDCWD is used.
8130         * modules/utimens (Depends-on): Add fcntl-h.
8131         * modules/areadlinkat (Depends-on): Likewise.
8132         * modules/areadlinkat-with-size (Depends-on): Likewise.
8133         * modules/faccessat (Depends-on): Likewise.
8134         * modules/fchmodat (Depends-on): Likewise.
8135         * modules/fchownat (Depends-on): Likewise.
8136         * modules/getcwd (Depends-on): Likewise.
8137         * modules/mkdirat (Depends-on): Likewise.
8138         * modules/mkfifoat (Depends-on): Likewise.
8139         * modules/readlinkat (Depends-on): Likewise.
8140         * modules/symlinkat (Depends-on): Likewise.
8141         * modules/dup2-tests (Depends-on): Likewise.
8142         * modules/fdutimensat-tests (Depends-on): Likewise.
8143         * modules/futimens-tests (Depends-on): Likewise.
8144
8145 2011-11-19  Bruno Haible  <bruno@clisp.org>
8146
8147         euidaccess: Update a comment.
8148         * lib/euidaccess.c: Update comment about platforms with faccessat.
8149
8150 2011-11-19  Bruno Haible  <bruno@clisp.org>
8151
8152         openat: Fix file list.
8153         * modules/openat (Files): Remove lib/at-func.c.
8154
8155 2011-11-19  Bruno Haible  <bruno@clisp.org>
8156
8157         fstatat: Simplify.
8158         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8159         gnulib should define rpl_fstatat, there is a
8160         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8161
8162 2011-11-19  Bruno Haible  <bruno@clisp.org>
8163
8164         Ensure 'inline' can be used in tests/test-utimens-common.h.
8165         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8166         * modules/futimens-tests (configure.ac): Likewise.
8167         * modules/utimens-tests (configure.ac): Likewise.
8168         * modules/utimensat-tests (configure.ac): Likewise.
8169
8170 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8171
8172         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8173         not hash_insert0.
8174         (hash_insert_if_absent): Doc fix.
8175
8176 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8177
8178         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8179
8180 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         test-getcwd: disambiguate exit status
8183         * tests/test-getcwd.c (test_long_name): Return 0..7.
8184         (main): Exit with an unambiguous exit status.  The old
8185         code yielded a mysterious mixture of two failure codes.
8186
8187         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8188         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8189         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8190         rpl_fstatat or fstatat.  This should fix the other problem
8191         reported by Kai Habel in
8192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8193         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8195         and I reproduced it on a Solaris 8 host we still have in production.
8196
8197 2011-11-18  Jim Meyering  <meyering@redhat.com>
8198
8199         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8200         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8201         Add a sentence to the comment.
8202         (hash_insert0): New function that simply calls hash_insert_if_absent.
8203         * lib/hash.h (hash_insert_if_absent): Declare it.
8204         (hash_insert0): Add deprecation attribute.
8205         (_GL_ATTRIBUTE_DEPRECATED): Define.
8206         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8207         not hash_insert0.
8208         * NEWS: Mention it, even though it's not really an incompatible change.
8209
8210 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8211
8212         openat: avoid compilation failure due to lack of <errno.h> inclusion
8213         * lib/openat.c: Include <errno.h>.
8214
8215 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8216
8217         * modules/getcwd (Depends-on): Add fdopendir.
8218         This fixes one of the two problems reported by Kai Habel in
8219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8220
8221         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8222         stdalign problem reported by Ian Beckwith in
8223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8224         * modules/crypto/gc-arcfour (Depends-on):
8225         Depend conditionally on crypto/arcfour.
8226         * modules/crypto/gc-arctwo (Depends-on):
8227         Depend conditionally on crypto/arctwo.
8228         * modules/crypto/gc-des (Depends-on):
8229         Depend conditionally on crypto/des.
8230         * modules/crypto/gc-hmac-md5 (Depends-on):
8231         Depend conditionally on crypto/hmac-md5.
8232         * modules/crypto/gc-hmac-sha1 (Depends-on):
8233         Depend conditionally on crypto/hmac-sha1.
8234         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8235         * modules/crypto/gc-md4 (Depends-on):
8236         Depend conditionally on crypto/md4.
8237         * modules/crypto/gc-md5 (Depends-on):
8238         Depend conditionally on crypto/md5.
8239         * modules/crypto/gc-rijndael (Depends-on):
8240         Depend conditionally on crypto/rijndael.
8241         * modules/crypto/gc-sha1 (Depends-on):
8242         Depend conditionally on crypto/sha1.
8243         * modules/crypto/gc-arcfour:
8244         * modules/crypto/gc-arctwo:
8245         * modules/crypto/gc-des:
8246         * modules/crypto/gc-hmac-md5:
8247         * modules/crypto/gc-hmac-sha1:
8248         * modules/crypto/gc-md2:
8249         * modules/crypto/gc-md4:
8250         * modules/crypto/gc-md5:
8251         * modules/crypto/gc-rijndael:
8252         * modules/crypto/gc-sha1:
8253         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8254         now that the conditional dependencies do the work for us.
8255
8256 2011-11-17  Jim Meyering  <meyering@redhat.com>
8257
8258         tests: factor st_ctime-comparison out of two headers
8259         * tests/test-utimens-common.h (ctime_compare): Define.
8260         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8261         * tests/test-lutimens.h (test_lutimens): Likewise.
8262         * tests/test-utimens.h (test_utimens): Likewise.
8263
8264         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8265         Invoke the test program via an init.sh-using wrapper.
8266         * tests/test-getcwd.sh: New file.
8267         * modules/getcwd-tests (Files): Add it.
8268         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8269
8270 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8271
8272         gitlog-to-changelog: support multi-author commits.
8273         The FSF cares about keeping track of all authors of patches to its
8274         projects, but Git doesn't provide obvious support for multi-author
8275         changesets. Consensus seems to be forming around the use of extra
8276         Signed-off-by inspired lines in the log message formatted as
8277         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8278         multi-author commits between version control systems.
8279         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8280         log message and output in standard ChangeLog multi-author format.
8281         Reported by Peter Rosin <peda@lysator.liu.se>
8282
8283 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8284             Bruno Haible  <bruno@clisp.org>
8285
8286         Fix some modules' file list.
8287         * modules/fstatat (Files): Add m4/lstat.m4.
8288         * modules/openat (Files): Likewise.
8289         * modules/unlinkat (Files): Likewise.
8290
8291 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8292
8293         maint.mk: fix tight-scope.mk generation in VPATH builds.
8294         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8295         reference with $(srcdir) so that the file is found correctly even
8296         when running `make syntax-check' in a VPATH build.
8297
8298 2011-11-13  Bruno Haible  <bruno@clisp.org>
8299             Jim Meyering  <meyering@redhat.com>
8300
8301         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8302         * tests/init.sh (compare): Remove "No differences encountered" or
8303         synonymous output from the 'diff' program.
8304
8305 2011-11-13  Bruno Haible  <bruno@clisp.org>
8306
8307         Makefile: Tweak indentation.
8308         * Makefile: Use tab as first character in every line that contains rule
8309         commands.
8310
8311 2011-11-13  Bruno Haible  <bruno@clisp.org>
8312
8313         Syntax check for copyright statements.
8314         * check-copyright: New file.
8315         * Makefile (sc_check_copyright): New rule.
8316
8317 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8318
8319         * build-aux/git-version-gen: Add --prefix to configure the tag
8320         match string.
8321
8322 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8323
8324         * build-aux/git-version-gen: Add --help and --version.
8325
8326 2011-11-12  Jim Meyering  <meyering@redhat.com>
8327
8328         revamp the other test-exclude?.sh scripts to use init.sh, too
8329         * tests/test-exclude1.sh: Use init.sh.
8330         * tests/test-exclude2.sh: Likewise.
8331         * tests/test-exclude3.sh: Likewise.
8332         * tests/test-exclude4.sh: Likewise.
8333         * tests/test-exclude5.sh: Likewise.
8334         * tests/test-exclude6.sh: Likewise.
8335         * tests/test-exclude7.sh: Likewise.
8336         * tests/test-exclude8.sh: Likewise.
8337         * modules/exclude-tests (Files): List init.sh.
8338
8339         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8340         These shell scripts ignored failure of the binary test-exclude,
8341         so making the latter return 77 didn't cause them to be skipped.
8342         * tests/test-exclude5.sh: Exit with test-exclude's error status
8343         when that program fails.  Revamp to use init.sh.
8344         * tests/test-exclude2.sh: Likewise.
8345
8346         test-exclude: fix a typo
8347         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8348
8349 2011-11-11  Bruno Haible  <bruno@clisp.org>
8350
8351         obstack: Fix compilation error on MSVC 9.
8352         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8353
8354 2011-11-11  Jim Meyering  <meyering@redhat.com>
8355
8356         test-exclude: skip tests rather than failing on deficient systems
8357         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8358         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8359         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8360         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8361
8362 2011-11-10  Bruno Haible  <bruno@clisp.org>
8363
8364         ptsname_r test: Avoid gcc warning on glibc systems.
8365         * tests/test-ptsname_r.c (null_ptr): New function.
8366         (test_errors): Use it.
8367
8368 2011-11-10  Bruno Haible  <bruno@clisp.org>
8369
8370         ptsname_r: Avoid compilation error on OSF/1 5.1.
8371         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8373         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8374         function is not declared or incompatibly declared.
8375         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8376         * modules/ptsname_r (Depends-on, configure.ac): Update.
8377         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8378
8379 2011-11-10  Bruno Haible  <bruno@clisp.org>
8380
8381         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8382         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8383         When cross-compiling, guess yes on all platforms except AIX.
8384         Reported by Ludovic Courtès <ludo@gnu.org>.
8385
8386 2011-11-09  Bruno Haible  <bruno@clisp.org>
8387
8388         ptsname_r tests: Fix bugs.
8389         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8390         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8391
8392 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8393
8394         fstatat: work with cross-compilation
8395         Problem reported by Ludovic Courtès in
8396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8397         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8398         "cross-compiling" and assume the bug is present.  Replace
8399         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8400         an inverted sense, to be more conservative about our assumptions.
8401         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8402
8403 2011-11-09  Bruno Haible  <bruno@clisp.org>
8404
8405         Improve MODULES.html output.
8406         * modules/mkfifoat (Description): Use the word "function".
8407         * modules/readlinkat (Description): Likewise.
8408         * modules/symlinkat (Description): Likewise.
8409
8410 2011-11-09  Eric Blake  <eblake@redhat.com>
8411
8412         ptsname_r-tests: new test module
8413         * modules/ptsname_r-tests: New module.
8414         * tests/test-ptsname_r.c: New file.
8415
8416         ptsname_r: new module
8417         * modules/ptsname_r: New module.
8418         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8419         * lib/ptsname.c (__ptsname_r): Split...
8420         * lib/ptsname_r.c: ...into new file.
8421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8422         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8423         * modules/stdlib (Makefile.am): Substitute witnesses.
8424         * lib/stdlib.in.h (ptsname_r): Declare it.
8425         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8426         * MODULES.html.sh (Misc): Likewise.
8427         * modules/ptsname (Depends-on): Alter dependency.
8428         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8429
8430 2011-11-09  Jim Meyering  <meyering@redhat.com>
8431
8432         announce-gen: be more concise when there's only one URL+tarball
8433         * build-aux/announce-gen (get_tool_versions): When you distribute
8434         only one type of tarball, combine the first two "Here are..."
8435         sections and make the key-checking grammar independent of
8436         how many tarballs there are.
8437
8438 2011-11-09  Eric Blake  <eblake@redhat.com>
8439
8440         openpty: provide a stub on mingw
8441         * lib/pty.in.h (includes): Provide forward declarations.
8442         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8443
8444         raise: fix mingw handling of SIGPIPE
8445         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8446
8447 2011-11-08  Bruno Haible  <bruno@clisp.org>
8448
8449         More conditional dependencies.
8450         * modules/faccessat (Depends-on): Add conditions.
8451         * modules/fchmodat (Depends-on): Likewise.
8452         * modules/fchownat (Depends-on): Likewise.
8453         * modules/fstatat (Depends-on): Likewise.
8454         * modules/mkfifoat (Depends-on): Likewise.
8455         * modules/readlinkat (Depends-on): Likewise.
8456         * modules/symlinkat (Depends-on): Likewise.
8457         * modules/unlinkat (Depends-on): Likewise.
8458         * modules/utimensat (Depends-on): Likewise.
8459         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8460         * modules/linkat (Depends-on): Refine the conditions.
8461         * modules/renameat (Depends-on): Likewise.
8462
8463 2011-11-08  Bruno Haible  <bruno@clisp.org>
8464
8465         faccessat: Move AC_LIBOBJ invocation to module description.
8466         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8467         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8468         invocation from here...
8469         * modules/faccessat (configure.ac): ... to here. Invoke
8470         gl_PREREQ_FACCESSAT.
8471
8472 2011-11-08  Bruno Haible  <bruno@clisp.org>
8473
8474         faccessat: Simplify autoconf macro.
8475         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8476         gl_FUNC_EUIDACCESS.
8477
8478 2011-11-08  Bruno Haible  <bruno@clisp.org>
8479
8480         renameat: Fix dependencies.
8481         * modules/renameat (Depends-on): Add stdbool.
8482
8483 2011-11-08  Bruno Haible  <bruno@clisp.org>
8484
8485         mkfifoat: Fix module description.
8486         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8487         not gl_UNISTD_MODULE_INDICATOR.
8488
8489 2011-11-08  Bruno Haible  <bruno@clisp.org>
8490
8491         fstatat: Remove unused dependency.
8492         * modules/fstatat (Depends-on): Remove fstat.
8493
8494 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8495
8496         GNUmakefile: behave when Makefile is missing.
8497         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8498
8499 2011-11-08  Bruno Haible  <bruno@clisp.org>
8500
8501         openat: Conditionalize dependencies.
8502         * lib/openat.c: Reduce the scope of some #includes.
8503         * modules/openat (Depends-on): Add conditions.
8504
8505 2011-11-07  Jim Meyering  <meyering@redhat.com>
8506
8507         maint.mk: extract GPG key ID without using a temporary file
8508         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8509         without using a temporary file.  Based on a suggestion from Werner Koch
8510         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8511
8512 2011-11-07  Eric Blake  <eblake@redhat.com>
8513
8514         grantpt: fix typo
8515         * lib/stdlib.in.h (grantpt): Check correct function.
8516
8517         maint.mk: silence new syntax check
8518         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8519
8520 2011-11-06  Bruno Haible  <bruno@clisp.org>
8521
8522         Doc about floating-point and math API.
8523         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8524         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8525
8526 2011-11-06  Bruno Haible  <bruno@clisp.org>
8527
8528         stdalign tests: Skip the test when compiled by Sun C.
8529         * tests/test-stdalign.c (main): Skip the test on Sun C.
8530
8531 2011-11-06  Bruno Haible  <bruno@clisp.org>
8532
8533         ansi-c++-opt: Complete the 2011-06-05 change.
8534         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8535         does not support namespaces, set the variable to "no", not to ":".
8536
8537 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8538
8539         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8540
8541 2011-11-06  Bruno Haible  <bruno@clisp.org>
8542
8543         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8544         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8545         (minus_zerol) [HP-UX]: New macro.
8546         (unary_minus) [HP-UX]: New function.
8547         (copysignl) [HP-UX]: Use unary_minus function.
8548
8549 2011-11-06  Bruno Haible  <bruno@clisp.org>
8550
8551         ldexp, ldexpf, ldexpl: Enhance tests.
8552         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8553         and tests/test-ldexpl.c.
8554         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8555         LDEXP, MIN_EXP, MAX_EXP): New macros.
8556         Include test-ldexp.h.
8557         (main): Just call test_function.
8558         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8559         infinity.h, nan.h.
8560         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8561         MAX_EXP): New macros.
8562         Include test-ldexp.h.
8563         (x, y): Remove variables.
8564         (main): Just call test_function.
8565         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8566         infinity.h, nan.h.
8567         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8568         MAX_EXP): New macros.
8569         Include test-ldexp.h.
8570         (x, y): Remove variables.
8571         (main): Just call test_function.
8572         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8573         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8574         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8575         (Depends-on): Add isnand-nolibm, signbit, float.
8576         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8577         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8578         (Depends-on): Add isnanf-nolibm, signbit, float.
8579
8580 2011-11-06  Bruno Haible  <bruno@clisp.org>
8581
8582         math tests: Cosmetics.
8583         * tests/test-math-c++.cc: Reorder declarations.
8584
8585 2011-11-05  Bruno Haible  <bruno@clisp.org>
8586
8587         fma*: Simplify test.
8588         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8589         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8590
8591         Tests for module 'fmal'.
8592         * modules/fmal-tests: New file.
8593         * tests/test-fmal1.c: New file.
8594         * tests/test-fmal2.c: New file.
8595
8596         New module 'fmal'.
8597         * lib/math.in.h (fmal): New declaration.
8598         * lib/fmal.c: New file.
8599         * m4/fmal.m4: New file.
8600         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8602         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8603         REPLACE_FMAL.
8604         * modules/fmal: New file.
8605         * doc/posix-functions/fmal.texi: Mention the new module and the various
8606         bugs.
8607
8608         Tests for module 'fmaf'.
8609         * modules/fmaf-tests: New file.
8610         * tests/test-fmaf1.c: New file.
8611         * tests/test-fmaf2.c: New file.
8612
8613         New module 'fmaf'.
8614         * lib/math.in.h (fmaf): New declaration.
8615         * lib/fmaf.c: New file.
8616         * m4/fmaf.m4: New file.
8617         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8619         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8620         REPLACE_FMAF.
8621         * modules/fmaf: New file.
8622         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8623         bugs.
8624
8625         Tests for module 'fma'.
8626         * modules/fma-tests: New file.
8627         * tests/test-fma1.c: New file.
8628         * tests/test-fma1.h: New file.
8629         * tests/test-fma2.c: New file.
8630         * tests/test-fma2.h: New file.
8631
8632         New module 'fma'.
8633         * lib/math.in.h (fma): New declaration.
8634         * lib/fma.c: New file.
8635         * m4/fma.m4: New file.
8636         * m4/fegetround.m4: New file.
8637         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8639         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8640         REPLACE_FMA.
8641         * modules/fma: New file.
8642         * doc/posix-functions/fma.texi: Mention the new module and the various
8643         bugs.
8644
8645         Extend gl_MATHFUNC.
8646         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8647         Support 'void' as argument type.
8648         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8649
8650 2011-11-05  Jim Meyering  <meyering@redhat.com>
8651
8652         maint.mk: also prohibit inclusion of dirent.h without use
8653         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8654
8655 2011-11-05  Bruno Haible  <bruno@clisp.org>
8656
8657         ldexpl tests: Avoid test failure on MSVC 9.
8658         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8659         value. Needed in order to enforce the conversion from a value greater
8660         than LDBL_MAX to Infinity.
8661
8662 2011-11-05  Bruno Haible  <bruno@clisp.org>
8663
8664         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8665         * modules/at-internal: New file, extracted from modules/openat.
8666         * modules/openat-h: New file.
8667         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8668         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8669         * modules/openat (Description): Add reference to POSIX function.
8670         (Files): Remove lib/openat.h, lib/openat-proc.c.
8671         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8672         intprops, unistd.
8673         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8674         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8675         gl_FCNTL_MODULE_INDICATOR.
8676         (Include): Remove unistd.h, openat.h.
8677         * modules/areadlinkat (Files): Add lib/at-func.c.
8678         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8679         openat-die, openat-h, save-cwd.
8680         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8681         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8682         openat-die, openat-h, save-cwd, unistd.
8683         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8684         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8685         openat-h, save-cwd. Remove fcntl-h, openat.
8686         * modules/fchmodat (Files): Remove lib/openat.h.
8687         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8688         openat, stdbool, unistd.
8689         * modules/fchownat (Files): Remove lib/openat.h.
8690         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8691         openat, stdbool, sys_stat.
8692         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8693         lib/openat-proc.c.
8694         (Depends-on): Add at-internal.
8695         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8696         * modules/fstatat (Files): Remove lib/openat.h.
8697         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8698         stdbool, unistd.
8699         * modules/fts (Depends-on): Add openat-h.
8700         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8701         openat.
8702         * modules/mkdirat (Files): Remove lib/openat.h.
8703         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8704         openat, stdbool, sys_stat.
8705         * modules/mkfifoat (Files): Add lib/at-func.c.
8706         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8707         openat-h, save-cwd. Remove fcntl-h, openat.
8708         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8709         * modules/readlinkat (Files): Add lib/at-func.c.
8710         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8711         openat-h, save-cwd. Remove fcntl-h, openat.
8712         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8713         openat.
8714         * modules/selinux-at (Files): Add lib/at-func.c.
8715         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8716         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8717         * modules/symlinkat (Files): Add lib/at-func.c.
8718         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8719         openat-h, save-cwd. Remove fcntl-h, openat.
8720         * modules/unlinkat (Files): Remove lib/openat.h.
8721         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8722         stdbool.
8723         * modules/utimensat (Files): Add lib/at-func.c.
8724         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8725         openat-die, openat-h, save-cwd.
8726         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8727         * modules/fdutimensat-tests (Depends-on): Add openat.
8728         * modules/fstatat-tests (Depends-on): Add openat-h.
8729         * modules/readlinkat-tests (Depends-on): Add openat.
8730         * modules/symlinkat-tests (Depends-on): Add openat.
8731
8732 2011-11-05  Bruno Haible  <bruno@clisp.org>
8733
8734         openat: Include <stdbool.h>.
8735         * lib/openat.c: Include <stdbool.h>.
8736
8737 2011-11-04  Bruno Haible  <bruno@clisp.org>
8738
8739         fchownat, renameat, unlinkat: Fix dependencies.
8740         * modules/fchownat (Depends-on): Add fstatat.
8741         * modules/renameat (Depends-on): Likewise.
8742         * modules/unlinkat (Depends-on): Likewise.
8743
8744 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8745
8746         openat: remove direct dependency on dirent
8747         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8748         and hasn't been needed ever since fdopendir was split into its own
8749         module on 2009-08-31.
8750         * modules/openat (Depends-on): Remove dirent.
8751
8752 2011-11-04  Bruno Haible  <bruno@clisp.org>
8753
8754         renameat: Optimize code size.
8755         * modules/renameat (configure.ac): Don't compile at-func2.c if
8756         REPLACE_RENAMEAT is 1.
8757
8758 2011-11-04  Bruno Haible  <bruno@clisp.org>
8759
8760         openat tests: Fix file list.
8761         * modules/openat-tests (Files): Add tests/test-open.h.
8762
8763 2011-11-04  Bruno Haible  <bruno@clisp.org>
8764
8765         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8766         * modules/fchmodat (Depends-on): Add openat-die.
8767         * modules/fchownat (Depends-on): Likewise.
8768         * modules/linkat (Depends-on): Likewise.
8769         * modules/renameat (Depends-on): Likewise.
8770         * modules/openat (Depends-on): Add dirent.
8771
8772 2011-11-04  Jim Meyering  <meyering@redhat.com>
8773
8774         at-func*.c: fix comments
8775         * lib/at-func2.c: Correct/improve first-line comment.
8776         * lib/at-func.c: Correct grammar in first-line comment.
8777
8778 2011-11-04  Bruno Haible  <bruno@clisp.org>
8779
8780         New module 'mkdirat', split off from module 'openat'.
8781         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8782         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8783         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8784         * modules/mkdirat: New file, extracted from modules/openat.
8785         * modules/openat (Files): Remove lib/mkdirat.c.
8786         (Depends-on): Remove mkdir.
8787         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8788         (Include): Remove <sys/stat.h>.
8789         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8790         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8791         tests/test-mkdir.h.
8792         (Depends-on): Remove ignore-value.
8793         (Makefile.am): Remove rules for test-mkdirat.
8794         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8795         of module 'openat'.
8796         * NEWS: Mention the change.
8797
8798 2011-11-04  Bruno Haible  <bruno@clisp.org>
8799
8800         closedir: Avoid warning on mingw.
8801         * lib/closedir.c: Include <unistd.h>.
8802
8803 2011-11-04  Bruno Haible  <bruno@clisp.org>
8804
8805         New module 'fstatat', split off from module 'openat'.
8806         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8807         defined.
8808         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8809         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8810         gl_FUNC_FSTATAT.
8811         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8812         * modules/fstatat: New file, extracted from modules/openat.
8813         * modules/openat (Files): Remove lib/fstatat.c.
8814         (Depends-on): Remove lstat.
8815         (configure.ac): Remove AC_LIBOBJ of fstatat.
8816         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8817         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8818         tests/test-lstat.h, tests/test-stat.h.
8819         (Depends-on): Remove getcwd-lgpl.
8820         (Makefile.am): Remove rules for test-fstatat.
8821         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8822         of module 'openat'.
8823         * NEWS: Mention the change.
8824         * modules/getcwd (Depends-on): Add fstatat.
8825         * modules/linkat (Depends-on): Likewise.
8826         * modules/mkfifoat-tests (Depends-on): Likewise.
8827         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8828
8829 2011-11-03  Bruno Haible  <bruno@clisp.org>
8830
8831         New module 'unlinkat', split off from module 'openat'.
8832         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8833         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8834         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8835         * modules/unlinkat: New file, extracted from modules/openat. Correct
8836         the dependency conditions.
8837         * modules/openat (Files): Remove lib/unlinkat.c.
8838         (Depends-on): Remove rmdir, unlink.
8839         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8840         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8841         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8842         tests/test-rmdir.h, tests/test-unlink.h.
8843         (Depends-on): Remove unlinkdir.
8844         (Makefile.am): Remove rules for test-unlinkat.
8845         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8846         of module 'openat'.
8847         * NEWS: Mention the change.
8848         * modules/linkat-tests (Depends-on): Add unlinkat.
8849         * modules/mkfifoat-tests (Depends-on): Likewise.
8850         * modules/readlinkat-tests (Depends-on): Likewise.
8851
8852 2011-11-02  Bruno Haible  <bruno@clisp.org>
8853
8854         New module 'fchmodat', split off from module 'openat'.
8855         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8856         defined.
8857         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8858         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8859         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8860         * modules/fchmodat: New file, extracted from modules/openat.
8861         * modules/openat (Files): Remove lib/fchmodat.c.
8862         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8863         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8864         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8865         (Makefile.am): Remove rules for test-fchmodat.
8866         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8867         of module 'openat'.
8868         * NEWS: Mention the change.
8869
8870 2011-11-02  Jim Meyering  <meyering@redhat.com>
8871
8872         putenv: indent #definition of "environ" to placate cppi
8873         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8874
8875         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8876         Git logs are often treated as immutable, because editing them
8877         changes the SHA1 checksums of all descendants.  Thus, errors in
8878         git logs tend to stay there forever.  However, when we generate
8879         a ChangeLog file -- typically for distribution -- from that git log,
8880         we can actually make corrections in the generated file.  The key
8881         lies in recording in machine-readable/applicable form the desired
8882         corrections.  See --help for description and an example.
8883         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8884         (usage): Describe it; alphabetize option descriptions.
8885         (main): Honor the new option, carefully.
8886
8887 2011-11-01  Jim Meyering  <meyering@redhat.com>
8888
8889         gitlog-to-changelog: avoid an infloop
8890         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8891         that ends up being empty.
8892
8893 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8894
8895         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8896         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8897         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8898         contains (possibly-quoted) backslashes.  This should avoid
8899         all-too-common shell bugs if COMPLICATED contains backslashes in
8900         the "wrong" places.  Reported by David Evans in
8901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8902         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8903         because we want ASCII ranges.  Is there some reason we don't use
8904         the C locale everywhere in this script?
8905         (func_module, top level): Avoid unwanted pathname expansion when
8906         $repo_url_prefix or $repo_url_suffix_repl contain shell
8907         metacharacters like '?' and '*'.
8908
8909 2011-11-01  Bruno Haible  <bruno@clisp.org>
8910
8911         fchownat: Improve description.
8912         * modules/fchownat (Description): Add link to function.
8913
8914 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8915
8916         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8917         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8919         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8920
8921 2011-11-01  Bruno Haible  <bruno@clisp.org>
8922
8923         alignof: Avoid collision with stdalign module.
8924         * lib/alignof.h (alignof): Remove macro.
8925         * NEWS: Mention the change.
8926         Reported by Paul Eggert.
8927
8928 2011-11-01  Bruno Haible  <bruno@clisp.org>
8929
8930         New module 'fchownat', split off from module 'openat'.
8931         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8932         defined.
8933         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8934         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8935         invoke gl_FUNC_FCHOWNAT.
8936         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8937         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8938         * modules/fchownat: New file, extracted from modules/openat.
8939         * modules/openat (Files): Remove lib/fchownat.c.
8940         (Depends-on): Remove lchown.
8941         (configure.ac): Remove AC_LIBOBJ of fchownat.
8942         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8943         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8944         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8945         (Depends-on): Remove mgetgroups, usleep, stat-time.
8946         (configure.ac): Remove test for getegid.
8947         (Makefile.am): Remove rules for test-fchownat.
8948         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8949         of module 'openat'.
8950         * NEWS: Mention the change.
8951
8952 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8953
8954         stdalign: port better to MSVC and to Sun C 5.11
8955         This fixes some of the problems reported by Bruno Haible in
8956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8957         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8958         shortcomings of MSVC and of Sun C 5.11.
8959         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8960         around __declspec arg.
8961         * modules/stdalign-tests (Files): Add tests/macros.h.
8962         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8963         Include macros.h, for ASSERT.
8964         (DECLARE_ALIGNED): Remove.
8965         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8966         to catch bug), and to 1 if not (simplifies the rest of the code).
8967         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8968         (CHECK_AUTO): Remove.
8969         (CHECK_ALIGNED): Check only the alignment of the static vars,
8970         since auto var alignment isn't supported by Sun C 5.11.
8971         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8972         ASSERT failures are easier to diagnose.
8973
8974 2011-10-31  Bruno Haible  <bruno@clisp.org>
8975
8976         doc about some IRIX 5.3 problems.
8977         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8978         on IRIX 5.3.
8979         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8980         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8981         5.3.
8982         * doc/posix-functions/grantpt.texi: Likewise.
8983         * doc/posix-functions/unlockpt.texi: Likewise.
8984         * doc/posix-functions/lgamma.texi: Likewise.
8985         * doc/posix-functions/nextafter.texi: Likewise.
8986         * doc/posix-functions/remainder.texi: Likewise.
8987         * doc/posix-functions/select.texi: Mention misplaced declaration on
8988         IRIX 5.3.
8989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8990
8991 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8992
8993         gitlog-to-changelog: fix git-log invocation.
8994         git-log mishandles date strings before 1970-01-01 UTC, and there is
8995         no use to specify --since=1970-01-01 by default anyway.
8996         * build-aux/gitlog-to-changelog: By default, when no --since option
8997         was given, do not specify explicit --since option to git-log.
8998
8999 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9000
9001         gitlog-to-changelog: new option --append-dot.
9002         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9003         first non-blank line of each commit message terminated with a dot.
9004
9005 2011-10-30  Bruno Haible  <bruno@clisp.org>
9006
9007         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9008         * lib/ffsl.h: Include <config.h>.
9009         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9010
9011 2011-10-30  Jim Meyering  <meyering@redhat.com>
9012
9013         GNUmakefile: reenable "make syntax-check" for most projects
9014         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9015         build-aux variable", "syntax-check" would do nothing but succeed with
9016         the "No version control files detected..." diagnostic (unless you
9017         happened to override _build-aux via cfg.mk).
9018         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9019         to precede inclusion of maint.mk.  Otherwise, these variables would
9020         be used undefined in any project that does not override the default.
9021
9022 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9023
9024         gitlog-to-changelog: treat a message with only blank lines as empty.
9025         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9026         trailing blank lines before the code that issues a warning about an
9027         empty commit message.
9028
9029 2011-10-30  Jim Meyering  <meyering@redhat.com>
9030
9031         test-parse-datetime.c: avoid new DST-related false positive test failure
9032         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9033         based on the time/date we'll convert, not the current time.
9034         Otherwise, the moment we cross a DST boundary like today's in
9035         Europe, (CEST to CET), that offset ends up being one hour off.
9036
9037 2011-10-27  Bruno Haible  <bruno@clisp.org>
9038
9039         fstat: Tweak documentation.
9040         * modules/fstat (Description): More precise description.
9041
9042 2011-10-27  Bruno Haible  <bruno@clisp.org>
9043
9044         Update documentation regarding 'largefile' module.
9045         * doc/posix-functions/fstat.texi: Tweak wording.
9046         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9047         problems with huge directories and/or small ino_t types.
9048         * doc/posix-functions/readdir.texi: Likewise.
9049         * doc/posix-functions/rewinddir.texi: Likewise.
9050
9051 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9052
9053         maint.mk: don't maintain a second build-aux variable.
9054         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9055         depends on GNUmakefile, which already maintains a cfg.mk
9056         overridable $(_build-aux) for projects with a non-standard
9057         build-aux directory location, although without the $(srcdir)
9058         prefix.  Use that variable consistently instead of introducing a
9059         second one.  Adjust all call sites.
9060
9061 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9062
9063         Add stdalign module and use it in other modules.
9064         This is based on a previous proposal by Bruno Haible
9065         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9066
9067         stdalign: new module
9068         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9069         * modules/stdalign: New files.
9070         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9071         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9072
9073         stdalign-tests: new module
9074         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9075
9076         argp: use stdalign
9077         * lib/argp-parse.c: Include <stdalign.h>.
9078         (alignof): Remove.
9079         * modules/argp (Depends-on): Add stdalign.
9080
9081         crypto libraries: use stdalign
9082         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9083         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9084         Do not include <stdlib.h> twice, in md4.c.
9085         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9086         because we are accessing a pointer's bit-pattern, not a size.
9087         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9088         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9089         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9090         * modules/crypto/sha512: Likewise.
9091
9092         sys_socket: use stdalign, not alignof
9093         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9094         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9095
9096 2011-10-27  Bruno Haible  <bruno@clisp.org>
9097
9098         raise test: Avoid a test failure on Linux/MIPS.
9099         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9100         because 99 is a valid signal on Linux/MIPS.
9101
9102 2011-10-27  Bruno Haible  <bruno@clisp.org>
9103
9104         nonblocking tests: Fix test failure on Linux/MIPS.
9105         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9106         Set to 270000.
9107
9108 2011-10-27  Bruno Haible  <bruno@clisp.org>
9109
9110         utimensat: Work around problem on Linux/hppa.
9111         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9112         values.
9113         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9114
9115 2011-10-25  Jim Meyering  <meyering@redhat.com>
9116
9117         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9118         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9119         after symbols like NULL, size_t, etc.
9120         Reported by Alfred M. Szmidt.
9121
9122         maint.mk: exempt ENODATA from a syntax-check rule
9123         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9124         from the sc_prohibit_always-defined_macros syntax-check rule.
9125         Add a comment.  See this for more details:
9126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9127
9128 2011-10-23  Jim Meyering  <meyering@redhat.com>
9129
9130         fts: close parent dir FD before returning from post-traversal fts_read
9131         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9132         unlink A, even though an FD open on A remained.  This is suboptimal
9133         (holding a file descriptor open longer than needed), but otherwise not
9134         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9135         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9136         that represents a real problem: it causes the removal of A to fail
9137         with e.g., "rm: cannot remove `A': Device or resource busy"
9138
9139         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9140         directory file descriptors.  After completing the final, FTS_DP,
9141         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9142         cache, but then proceeded to add a new FD to it via the subsequent
9143         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9144         final file descriptor would be closed only via fts_close's call to
9145         fd_ring_clear.  Now, it is usually closed earlier, via the final
9146         FTS_DP-returning fts_read call.
9147         * lib/fts.c (restore_initial_cwd): New function, converted from
9148         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9149         Update callers.
9150         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9151         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9152
9153 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9154             Bruno Haible  <bruno@clisp.org>
9155             Jim Meyering  <jim@meyering.net>
9156
9157         readme-release: improve safety of release prep instructions.
9158         * README-release: Don't git pull all branches when only master
9159         is needed for the release process.
9160         Run make maintainer-clean before changing trees and merging.
9161         Don't try to run ./configure right after git pull in case files
9162         that influence the bootstrap process have changed, move the
9163         ./configure step to after running ./bootstrap.
9164         Don't bootstrap "one last time"... it's the first time!
9165
9166 2011-10-22  Bruno Haible  <bruno@clisp.org>
9167
9168         errno, strerror-override: Support for MSVC 10.
9169         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9170         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9171         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9172         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9173         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9174         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9175         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9176         Assign values compatible with MSVC 10.
9177         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9178         New macros.
9179         (GNULIB_defined_EWINSOCK): New macro.
9180         * lib/strerror-override.c (strerror_override): Update accordingly.
9181         * lib/strerror-override.h: Likewise.
9182         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9183         longer equal to the corresponding errno value.
9184         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9185
9186 2011-10-22  Bruno Haible  <bruno@clisp.org>
9187
9188         perror: Recognize when test program crashes.
9189         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9190         strerror, set gl_cv_func_perror_works to no.
9191         Reported by Daniel Richard G. <skunk@iskunk.org>.
9192
9193         perror: Fix indentation.
9194         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9195
9196 2011-10-22  Bruno Haible  <bruno@clisp.org>
9197
9198         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9199         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9200         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9201         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9202         functions, not as a macro.
9203         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9204         macros.
9205         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9206         absence of macro.
9207         Suggested by Eric Blake.
9208         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9209
9210 2011-10-21  Bruno Haible  <bruno@clisp.org>
9211
9212         relocatable-prog-wrapper: Don't leave object files behind.
9213         * build-aux/install-reloc: Re-synchronize list of .o files to be
9214         removed with list of compilation units.
9215
9216 2011-10-20  Bruno Haible  <bruno@clisp.org>
9217
9218         openpty, posix_openpt: Remove code duplication.
9219         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9220         * lib/openpty.c: Include <stdlib.h>.
9221         (openpty): Use posix_openpt on all platforms except IRIX.
9222         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9223
9224 2011-10-20  Bruno Haible  <bruno@clisp.org>
9225
9226         unlockpt: Detect invalid argument.
9227         * lib/unlockpt.c: Include <fcntl.h>.
9228         (unlockpt): Check whether fd is valid, using fcntl().
9229         * modules/unlockpt (Depends-on): Add fcntl-h.
9230
9231 2011-10-20  Bruno Haible  <bruno@clisp.org>
9232
9233         openpty: Avoid compilation error on AIX 6.1.
9234         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9235
9236 2011-10-20  Bruno Haible  <bruno@clisp.org>
9237
9238         posix_openpt: Support for OpenBSD.
9239         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9240         (posix_openpt) [OpenBSD]: New code.
9241         * lib/grantpt.c: Include <fcntl.h>.
9242         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9243         * modules/grantpt (Depends-on): Add fcntl-h.
9244
9245 2011-10-20  Bruno Haible  <bruno@clisp.org>
9246
9247         posix_openpt test: Coding style.
9248         * tests/test-posix_openpt.c: Use GNU coding style.
9249
9250 2011-10-20  Bruno Haible  <bruno@clisp.org>
9251
9252         grantpt: Support --avoid=pt_chown.
9253         * modules/grantpt (Files): Add lib/pty-private.h.
9254
9255 2011-10-20  Bruno Haible  <bruno@clisp.org>
9256
9257         posix_openpt: Fix autoconf macro.
9258         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9259         unneeded check for _getpty.
9260
9261 2011-10-20  Bruno Haible  <bruno@clisp.org>
9262
9263         openpty: Update comments.
9264         * lib/openpty.c: Add comments about Minix.
9265
9266 2011-10-19  Eric Blake  <eblake@redhat.com>
9267
9268         openpty: relax license
9269         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9270
9271         pt_chown: use configmake to simplify build
9272         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9273
9274         ptsname and others: relax license
9275         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9276         * modules/unlockpt (License): Likewise.
9277         * modules/pt_chown (License): Likewise.
9278         * modules/ptsname (License): Likewise.
9279         * modules/ttyname_r (License): Likewise.
9280
9281 2011-10-19  Jim Meyering  <meyering@redhat.com>
9282
9283         posix_openpt: remove spurious #endif
9284         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9285
9286 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9287
9288         maint.mk: Respect $(build_aux) in web-manual rule.
9289         * top/maint.mk (web-manual): Find gen-announce script in user's
9290         $(build_aux) directory instead of hard-coding 'build-aux'.
9291
9292 2011-10-19  Bruno Haible  <bruno@clisp.org>
9293
9294         posix_openpt: Fix compilation error.
9295         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9296         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9297         Mention the openpty module as an alternative.
9298
9299 2011-10-19  Bruno Haible  <bruno@clisp.org>
9300
9301         Support for old NeXTstep 3.3 frexp().
9302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9303         execution time of the test to 5 seconds.
9304         Reported by Daniel Richard G. <skunk@iskunk.org>.
9305
9306 2011-10-19  Bruno Haible  <bruno@clisp.org>
9307
9308         Support for old NeXTstep 3.3 sed.
9309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9310         part, use /.../, not \|...|. Escape periods in the header file name.
9311         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9312         Reported by Daniel Richard G. <skunk@iskunk.org>.
9313
9314 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9315
9316         Support for old NeXTstep 3.3 gcc.
9317         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9318         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9319         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9320         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9321         * lib/regex.h (_Restrict_arr_): Likewise.
9322         * lib/regex_internal.h (re_token_t): Likewise.
9323         * lib/regexec.c (check_node_accept_bytes): Likewise.
9324         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9325
9326 2011-10-18  Eric Blake  <eblake@redhat.com>
9327
9328         posix_openpt: new module
9329         * modules/posix_openpt: New module.
9330         * m4/posix_openpt.m4: New file.
9331         * lib/posix_openpt.c: Likewise.
9332         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9333         (gl_STDLIB_H_DEFAULTS): Set defaults.
9334         * modules/stdlib (Makefile.am): Substitute macros.
9335         * lib/stdlib.in.h (posix_openpt): Declare.
9336         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9337         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9338         * modules/posix_openpt-tests: New test module.
9339         * tests/test-posix_openpt.c: New test.
9340
9341 2011-10-15  Bruno Haible  <bruno@clisp.org>
9342
9343         xstrtoll: Fix compilation failure.
9344         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9345         from lib/strtol.c.
9346         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9347         some platforms.
9348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9349
9350 2011-10-15  Bruno Haible  <bruno@clisp.org>
9351
9352         vasnprintf: Optimize bit search operation.
9353         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9355         gl_DOUBLE_EXPONENT_LOCATION.
9356         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9357         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9358         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9359         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9360         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9361         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9362         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9363         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9364         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9365
9366 2011-10-15  Bruno Haible  <bruno@clisp.org>
9367
9368         vasnprintf: Fix comments.
9369         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9370
9371 2011-10-14  Bruno Haible  <bruno@clisp.org>
9372
9373         Tests for module 'integer_length_ll'.
9374         * modules/integer_length_ll-tests: New file.
9375         * tests/test-integer_length_ll.c: New file.
9376
9377         New module 'integer_length_ll'.
9378         * lib/integer_length_ll.c: New file.
9379         * modules/integer_length_ll: New file.
9380
9381 2011-10-14  Bruno Haible  <bruno@clisp.org>
9382
9383         Tests for module 'integer_length_l'.
9384         * modules/integer_length_l-tests: New file.
9385         * tests/test-integer_length_l.c: New file.
9386
9387         New module 'integer_length_l'.
9388         * lib/integer_length_l.c: New file.
9389         * modules/integer_length_l: New file.
9390
9391 2011-10-14  Bruno Haible  <bruno@clisp.org>
9392
9393         Tests for module 'integer_length'.
9394         * modules/integer_length-tests: New file.
9395         * tests/test-integer_length.c: New file.
9396
9397         New module 'integer_length'.
9398         * lib/integer_length.h: New file.
9399         * lib/integer_length.c: New file.
9400         * modules/integer_length: New file.
9401
9402 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9403
9404         popen: Fix dependency conditions.
9405         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9406
9407 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9408
9409         perror: Fix autoconf test.
9410         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9411         <stdlib.h> and <string.h>.
9412
9413 2011-10-14  Bruno Haible  <bruno@clisp.org>
9414
9415         ffsl: Optimize on 64-bit platforms.
9416         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9417         unrolling.
9418
9419 2011-10-13  Bruno Haible  <bruno@clisp.org>
9420
9421         ffsl: Optimize on 32-bit platforms.
9422         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9423         use ffs() without a loop.
9424
9425         ffsl, ffsll: Optimize for GCC.
9426         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9427         * lib/ffsl.c (GCC_BUILTIN): New macro.
9428         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9429
9430 2011-10-13  Bruno Haible  <bruno@clisp.org>
9431
9432         ffs, bcopy, memset: Support symbol renaming via config.h.
9433         * lib/ffs.c: Include <config.h>.
9434         * lib/bcopy.c: Likewise.
9435         * lib/memset.c: Likewise.
9436
9437 2011-10-10  Bruno Haible  <bruno@clisp.org>
9438
9439         atanl: Simplify for platforms where 'long double' == 'double'.
9440         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9441         alternative implementation.
9442         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9443         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9444         * modules/atanl (Depends-on): Add atan. Update conditions.
9445
9446 2011-10-10  Bruno Haible  <bruno@clisp.org>
9447
9448         acosl: Simplify for platforms where 'long double' == 'double'.
9449         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9450         alternative implementation.
9451         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9452         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9453         * modules/acosl (Depends-on): Add acos. Update conditions.
9454
9455 2011-10-10  Bruno Haible  <bruno@clisp.org>
9456
9457         asinl: Simplify for platforms where 'long double' == 'double'.
9458         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9459         alternative implementation.
9460         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9461         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9462         * modules/asinl (Depends-on): Add asin. Update conditions.
9463
9464 2011-10-10  Bruno Haible  <bruno@clisp.org>
9465
9466         tanl: Simplify for platforms where 'long double' == 'double'.
9467         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9468         implementation.
9469         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9470         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9471         * modules/tanl (Depends-on): Add tan. Update conditions.
9472         (configure.ac): Don't compile trigl.c if
9473         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9474
9475 2011-10-10  Bruno Haible  <bruno@clisp.org>
9476
9477         cosl: Simplify for platforms where 'long double' == 'double'.
9478         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9479         implementation.
9480         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9481         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9482         * modules/cosl (Depends-on): Add cos. Update conditions.
9483         (configure.ac): Don't compile sincosl.c and trigl.c if
9484         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9485
9486 2011-10-10  Bruno Haible  <bruno@clisp.org>
9487
9488         sinl: Simplify for platforms where 'long double' == 'double'.
9489         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9490         implementation.
9491         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9492         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9493         * modules/sinl (Depends-on): Add sin. Update conditions.
9494         (configure.ac): Don't compile sincosl.c and trigl.c if
9495         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9496
9497 2011-10-10  Bruno Haible  <bruno@clisp.org>
9498
9499         logl: Simplify for platforms where 'long double' == 'double'.
9500         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9501         implementation.
9502         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9503         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9504         * modules/logl (Depends-on): Add log. Update conditions.
9505
9506 2011-10-10  Bruno Haible  <bruno@clisp.org>
9507
9508         expl: Simplify for platforms where 'long double' == 'double'.
9509         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9510         implementation.
9511         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9512         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9513         * modules/expl (Depends-on): Add exp. Update conditions.
9514
9515 2011-10-10  Bruno Haible  <bruno@clisp.org>
9516
9517         sqrtl: Simplify for platforms where 'long double' == 'double'.
9518         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9519         alternative implementation.
9520         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9521         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9522         * modules/sqrtl (Depends-on): Update conditions.
9523
9524 2011-10-10  Bruno Haible  <bruno@clisp.org>
9525
9526         ldexpl: Simplify for platforms where 'long double' == 'double'.
9527         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9528         alternative implementation.
9529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9530         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9531         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9532
9533 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9534
9535         ffsll: set correct witness
9536         * modules/ffsll (configure.ac): Fix typo.
9537
9538 2011-10-10  Bruno Haible  <bruno@clisp.org>
9539
9540         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9541         * lib/printf-frexpl.c: Include <config.h>.
9542         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9543         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9544         second time.
9545         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9546         gl_LONG_DOUBLE_VS_DOUBLE.
9547         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9548         conditions.
9549
9550 2011-10-10  Bruno Haible  <bruno@clisp.org>
9551
9552         frexpl: Simplify for platforms where 'long double' == 'double'.
9553         * lib/frexpl.c: Include <config.h>.
9554         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9555         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9556         time.
9557         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9558         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9559         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9560         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9561         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9562         conditions.
9563
9564 2011-10-10  Jim Meyering  <meyering@redhat.com>
9565
9566         test-renameat: don't leave behind a temporary file
9567         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9568           ERROR: files left in build directory after distclean:
9569           ./gltests/test-renameat.too
9570           make[1]: *** [distcleancheck] Error 1
9571         Reported by Tom G. Christensen.
9572
9573 2011-10-09  Bruno Haible  <bruno@clisp.org>
9574
9575         rint: Determine RINT_LIBM correctly on AIX 7.
9576         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9577         directly, not only through a function pointer. Also accept an optional
9578         4th argument with extra code.
9579         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9580         rintf() call by gcc when optimizing.
9581
9582         mathfunc.m4: Refactor.
9583         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9584         m4 variable.
9585
9586 2011-10-09  Bruno Haible  <bruno@clisp.org>
9587
9588         rintl: Simplify for platforms where 'long double' == 'double'.
9589         * lib/rintl.c: Include <config.h>.
9590         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9591         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9592         time.
9593         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9594         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9595         * modules/rintl (Depends-on): Add rint. Update conditions.
9596
9597 2011-10-09  Bruno Haible  <bruno@clisp.org>
9598
9599         roundl: Simplify for platforms where 'long double' == 'double'.
9600         * lib/roundl.c: Include <config.h>.
9601         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9602         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9603         time.
9604         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9605         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9606         * modules/roundl (Depends-on): Add round. Update conditions.
9607
9608 2011-10-09  Bruno Haible  <bruno@clisp.org>
9609
9610         truncl: Simplify for platforms where 'long double' == 'double'.
9611         * lib/truncl.c: Include <config.h>.
9612         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9613         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9614         time.
9615         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9616         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9617         * modules/truncl (Depends-on): Add trunc. Update conditions.
9618
9619 2011-10-09  Bruno Haible  <bruno@clisp.org>
9620
9621         ceill: Simplify for platforms where 'long double' == 'double'.
9622         * lib/ceill.c: Include <config.h>.
9623         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9624         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9625         time.
9626         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9627         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9628         * modules/ceill (Depends-on): Add ceil. Update conditions.
9629
9630 2011-10-09  Bruno Haible  <bruno@clisp.org>
9631
9632         floorl: Simplify for platforms where 'long double' == 'double'.
9633         * lib/floorl.c: Include <config.h>.
9634         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9635         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9636         time.
9637         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9638         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9639         * modules/floorl (Depends-on): Add floor. Update conditions.
9640
9641 2011-10-09  Bruno Haible  <bruno@clisp.org>
9642
9643         rint: Fix ordering constraints.
9644         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9645         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9646         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9647
9648 2011-10-09  Bruno Haible  <bruno@clisp.org>
9649
9650         copysignl: Simplify for platforms where 'long double' == 'double'.
9651         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9652         alternative.
9653         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9654         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9655         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9656
9657 2011-10-09  Bruno Haible  <bruno@clisp.org>
9658
9659         Tests for module 'rintl'.
9660         * modules/rintl-tests: New file.
9661         * tests/test-rintl.c: New file.
9662
9663         New module 'rintl'.
9664         * lib/math.in.h (rintl): New declaration.
9665         * lib/rintl.c: New file.
9666         * m4/rintl.m4: New file.
9667         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9669         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9670         * modules/rintl: New file.
9671         * tests/test-math-c++.cc: Check the declaration of rintl.
9672         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9673         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9674         * doc/posix-functions/rintl.texi: Mention the new module.
9675
9676 2011-10-09  Bruno Haible  <bruno@clisp.org>
9677
9678         Tests for module 'rintf'.
9679         * modules/rintf-tests: New file.
9680         * tests/test-rintf.c: New file.
9681
9682         New module 'rintf'.
9683         * lib/math.in.h (rintf): New declaration.
9684         * lib/rintf.c: New file.
9685         * m4/rintf.m4: New file.
9686         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9688         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9689         * modules/rintf: New file.
9690         * tests/test-math-c++.cc: Check the declaration of rintf.
9691         * doc/posix-functions/rintf.texi: Mention the new module.
9692
9693 2011-10-09  Bruno Haible  <bruno@clisp.org>
9694
9695         rint: Support for MSVC.
9696         * lib/math.in.h (rint): New declaration.
9697         * lib/rint.c: New file.
9698         * m4/rint.m4: New file.
9699         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9701         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9702         * modules/rint (Description): Fix.
9703         (Files): Add lib/rint.c, m4/rint.m4.
9704         (Depends-on): Add math.
9705         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9706         gl_MATH_MODULE_INDICATOR.
9707         * tests/test-math-c++.cc: Check the declaration of rint.
9708         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9709         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9710         * doc/posix-functions/rint.texi: Mention the replacement provided by
9711         the module.
9712
9713         rint tests: More tests.
9714         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9715         minus-zero.h, infinity.h, nan.h.
9716         (main): Skip the test if the current rounding mode is not standard. Add
9717         tests for negative numbers, minus zero, infinity, NaN.
9718         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9719         tests/nan.h.
9720         (Depends-on): Add isnand-nolibm.
9721
9722 2011-10-09  Bruno Haible  <bruno@clisp.org>
9723
9724         Tests for module 'copysignl'.
9725         * modules/copysignl-tests: New file.
9726         * tests/test-copysignl.c: New file.
9727
9728         New module 'copysignl'.
9729         * lib/math.in.h (copysignl): New declaration.
9730         * lib/copysignl.c: New file.
9731         * m4/copysignl.m4: New file.
9732         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9734         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9735         HAVE_COPYSIGNL.
9736         * modules/copysignl: New file.
9737         * tests/test-math-c++.cc: Check the declaration of copysignl.
9738         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9739         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9740         * doc/posix-functions/copysignl.texi: Mention the new module.
9741
9742 2011-10-09  Bruno Haible  <bruno@clisp.org>
9743
9744         Tests for module 'copysignf'.
9745         * modules/copysignf-tests: New file.
9746         * tests/test-copysignf.c: New file.
9747
9748         New module 'copysignf'.
9749         * lib/math.in.h (copysignf): New declaration.
9750         * lib/copysignf.c: New file.
9751         * m4/copysignf.m4: New file.
9752         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9754         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9755         HAVE_COPYSIGNF.
9756         * modules/copysignf: New file.
9757         * tests/test-math-c++.cc: Check the declaration of copysignf.
9758         * doc/posix-functions/copysignf.texi: Mention the new module.
9759
9760 2011-10-09  Bruno Haible  <bruno@clisp.org>
9761
9762         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9763         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9764         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9767         gl_SIGNAL_H_DEFAULTS.
9768
9769 2011-10-09  Bruno Haible  <bruno@clisp.org>
9770
9771         poll: Make macro safer.
9772         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9773         ac_cv_header_poll_h is not set.
9774
9775 2011-10-09  Bruno Haible  <bruno@clisp.org>
9776
9777         copysign: Provide replacement.
9778         * lib/math.in.h (copysign): New declaration.
9779         * lib/copysign.c: New file.
9780         * m4/copysign.m4: New file.
9781         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9783         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9784         HAVE_COPYSIGN.
9785         * modules/copysign (Description): Clarify.
9786         (Files): Add lib/copysign.c, m4/copysign.m4.
9787         (Depends-on): Add math, signbit.
9788         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9789         gl_MATH_MODULE_INDICATOR.
9790         * tests/test-math-c++.cc: Check the declaration of copysign.
9791         * doc/posix-functions/copysign.texi: Mention the effects of the module
9792         on Minix and MSVC.
9793
9794 2011-10-09  Bruno Haible  <bruno@clisp.org>
9795
9796         isinf: Ensure macro on AIX 5.1.
9797         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9798         macro.
9799         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9800
9801 2011-10-09  Bruno Haible  <bruno@clisp.org>
9802
9803         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9804         * modules/snprintf-posix-tests (configure.ac): Require
9805         gl_LONG_DOUBLE_VS_DOUBLE.
9806         * modules/sprintf-posix-tests (configure.ac): Likewise.
9807         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9808         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9809         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9810         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9811         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9812         tests on platforms where 'long double' is the same as 'double'.
9813         * tests/test-sprintf-posix.h (test_function): Likewise.
9814         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9815         * tests/test-vasprintf-posix.c (test_function): Likewise.
9816
9817         *printf: Fix for platforms where 'long double' == 'double'.
9818         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9819         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9820         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9821         * modules/fprintf-posix (Files): Likewise.
9822         * modules/obstack-printf-posix (Files): Likewise.
9823         * modules/snprintf-posix (Files): Likewise.
9824         * modules/sprintf-posix (Files): Likewise.
9825         * modules/vasnprintf (Files): Likewise.
9826         * modules/vasnprintf-posix (Files): Likewise.
9827         * modules/vasprintf-posix (Files): Likewise.
9828         * modules/vdprintf-posix (Files): Likewise.
9829         * modules/vfprintf-posix (Files): Likewise.
9830         * modules/vsnprintf-posix (Files): Likewise.
9831         * modules/vsprintf-posix (Files): Likewise.
9832         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9833         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9834         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9835         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9836         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9837         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9838         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9839
9840         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9841         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9842         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9843         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9844         'long double'.
9845         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9846
9847         isinf: Fix for platforms where 'long double' == 'double'.
9848         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9849         Don't blindly assume 80-bit 'long double'.
9850
9851         isfinite: Fix for platforms where 'long double' == 'double'.
9852         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9853         Don't blindly assume 80-bit 'long double'.
9854
9855         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9856         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9857         * modules/isfinite-tests (configure.ac): Require
9858         gl_LONG_DOUBLE_VS_DOUBLE.
9859         * modules/isinf-tests (configure.ac): Likewise.
9860         * modules/isnan-tests (configure.ac): Likewise.
9861         * modules/isnanl-tests (configure.ac): Likewise.
9862         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9863         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9864         tests on platforms where 'long double' is the same as 'double'.
9865         * tests/test-isinf.c (test_isinfl): Likewise.
9866         * tests/test-isnan.c (test_long_double): Likewise.
9867         * tests/test-isnanl.h (main): Likewise.
9868
9869 2011-10-08  Bruno Haible  <bruno@clisp.org>
9870
9871         Tests for module 'tanhf'.
9872         * modules/tanhf-tests: New file.
9873         * tests/test-tanhf.c: New file.
9874
9875         New module 'tanhf'.
9876         * lib/math.in.h (tanhf): New declaration.
9877         * lib/tanhf.c: New file.
9878         * m4/tanhf.m4: New file.
9879         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9881         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9882         * modules/tanhf: New file.
9883         * tests/test-math-c++.cc: Check the declaration of tanhf.
9884         * doc/posix-functions/tanhf.texi: Mention the new module.
9885
9886         tanh: Use a .m4 file.
9887         * m4/tanh.m4: New file.
9888         * modules/tanh (Files): Add it.
9889         (configure.ac): Just invoke gl_FUNC_TANH.
9890
9891 2011-10-08  Bruno Haible  <bruno@clisp.org>
9892
9893         Tests for module 'coshf'.
9894         * modules/coshf-tests: New file.
9895         * tests/test-coshf.c: New file.
9896
9897         New module 'coshf'.
9898         * lib/math.in.h (coshf): New declaration.
9899         * lib/coshf.c: New file.
9900         * m4/coshf.m4: New file.
9901         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9903         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9904         * modules/coshf: New file.
9905         * tests/test-math-c++.cc: Check the declaration of coshf.
9906         * doc/posix-functions/coshf.texi: Mention the new module.
9907
9908         cosh: Use a .m4 file.
9909         * m4/cosh.m4: New file.
9910         * modules/cosh (Files): Add it.
9911         (configure.ac): Just invoke gl_FUNC_COSH.
9912
9913 2011-10-08  Bruno Haible  <bruno@clisp.org>
9914
9915         Tests for module 'sinhf'.
9916         * modules/sinhf-tests: New file.
9917         * tests/test-sinhf.c: New file.
9918
9919         New module 'sinhf'.
9920         * lib/math.in.h (sinhf): New declaration.
9921         * lib/sinhf.c: New file.
9922         * m4/sinhf.m4: New file.
9923         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9925         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9926         * modules/sinhf: New file.
9927         * tests/test-math-c++.cc: Check the declaration of sinhf.
9928         * doc/posix-functions/sinhf.texi: Mention the new module.
9929
9930         sinh: Use a .m4 file.
9931         * m4/sinh.m4: New file.
9932         * modules/sinh (Files): Add it.
9933         (configure.ac): Just invoke gl_FUNC_SINH.
9934
9935 2011-10-08  Bruno Haible  <bruno@clisp.org>
9936
9937         Tests for module 'atan2f'.
9938         * modules/atan2f-tests: New file.
9939         * tests/test-atan2f.c: New file.
9940
9941         New module 'atan2f'.
9942         * lib/math.in.h (atan2f): New declaration.
9943         * lib/atan2f.c: New file.
9944         * m4/atan2f.m4: New file.
9945         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9947         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9948         * modules/atan2f: New file.
9949         * tests/test-math-c++.cc: Check the declaration of atan2f.
9950         * doc/posix-functions/atan2f.texi: Mention the new module.
9951
9952         atan2: Use a .m4 file.
9953         * m4/atan2.m4: New file.
9954         * modules/atan2 (Files): Add it.
9955         (configure.ac): Just invoke gl_FUNC_ATAN2.
9956
9957 2011-10-08  Bruno Haible  <bruno@clisp.org>
9958
9959         Tests for module 'atanf'.
9960         * modules/atanf-tests: New file.
9961         * tests/test-atanf.c: New file.
9962
9963         New module 'atanf'.
9964         * lib/math.in.h (atanf): New declaration.
9965         * lib/atanf.c: New file.
9966         * m4/atanf.m4: New file.
9967         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9969         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9970         * modules/atanf: New file.
9971         * tests/test-math-c++.cc: Check the declaration of atanf.
9972         * doc/posix-functions/atanf.texi: Mention the new module.
9973
9974         atan: Use a .m4 file.
9975         * m4/atan.m4: New file.
9976         * modules/atan (Files): Add it.
9977         (configure.ac): Just invoke gl_FUNC_ATAN.
9978
9979 2011-10-08  Bruno Haible  <bruno@clisp.org>
9980
9981         Tests for module 'acosf'.
9982         * modules/acosf-tests: New file.
9983         * tests/test-acosf.c: New file.
9984
9985         New module 'acosf'.
9986         * lib/math.in.h (acosf): New declaration.
9987         * lib/acosf.c: New file.
9988         * m4/acosf.m4: New file.
9989         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9991         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9992         * modules/acosf: New file.
9993         * tests/test-math-c++.cc: Check the declaration of acosf.
9994         * doc/posix-functions/acosf.texi: Mention the new module.
9995
9996         acos: Use a .m4 file.
9997         * m4/acos.m4: New file.
9998         * modules/acos (Files): Add it.
9999         (configure.ac): Just invoke gl_FUNC_ACOS.
10000
10001 2011-10-08  Bruno Haible  <bruno@clisp.org>
10002
10003         Tests for module 'asinf'.
10004         * modules/asinf-tests: New file.
10005         * tests/test-asinf.c: New file.
10006
10007         New module 'asinf'.
10008         * lib/math.in.h (asinf): New declaration.
10009         * lib/asinf.c: New file.
10010         * m4/asinf.m4: New file.
10011         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10013         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10014         * modules/asinf: New file.
10015         * tests/test-math-c++.cc: Check the declaration of asinf.
10016         * doc/posix-functions/asinf.texi: Mention the new module.
10017
10018         asin: Use a .m4 file.
10019         * m4/asin.m4: New file.
10020         * modules/asin (Files): Add it.
10021         (configure.ac): Just invoke gl_FUNC_ASIN.
10022
10023 2011-10-08  Bruno Haible  <bruno@clisp.org>
10024
10025         Tests for module 'tanf'.
10026         * modules/tanf-tests: New file.
10027         * tests/test-tanf.c: New file.
10028
10029         New module 'tanf'.
10030         * lib/math.in.h (tanf): New declaration.
10031         * lib/tanf.c: New file.
10032         * m4/tanf.m4: New file.
10033         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10035         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10036         * modules/tanf: New file.
10037         * tests/test-math-c++.cc: Check the declaration of tanf.
10038         * doc/posix-functions/tanf.texi: Mention the new module.
10039
10040         tan: Use a .m4 file.
10041         * m4/tan.m4: New file.
10042         * modules/tan (Files): Add it.
10043         (configure.ac): Just invoke gl_FUNC_TAN.
10044
10045 2011-10-08  Bruno Haible  <bruno@clisp.org>
10046
10047         Tests for module 'cosf'.
10048         * modules/cosf-tests: New file.
10049         * tests/test-cosf.c: New file.
10050
10051         New module 'cosf'.
10052         * lib/math.in.h (cosf): New declaration.
10053         * lib/cosf.c: New file.
10054         * m4/cosf.m4: New file.
10055         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10057         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10058         * modules/cosf: New file.
10059         * tests/test-math-c++.cc: Check the declaration of cosf.
10060         * doc/posix-functions/cosf.texi: Mention the new module.
10061
10062         cos: Use a .m4 file.
10063         * m4/cos.m4: New file.
10064         * modules/cos (Files): Add it.
10065         (configure.ac): Just invoke gl_FUNC_COS.
10066
10067 2011-10-08  Bruno Haible  <bruno@clisp.org>
10068
10069         Tests for module 'sinf'.
10070         * modules/sinf-tests: New file.
10071         * tests/test-sinf.c: New file.
10072
10073         New module 'sinf'.
10074         * lib/math.in.h (sinf): New declaration.
10075         * lib/sinf.c: New file.
10076         * m4/sinf.m4: New file.
10077         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10079         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10080         * modules/sinf: New file.
10081         * tests/test-math-c++.cc: Check the declaration of sinf.
10082         * doc/posix-functions/sinf.texi: Mention the new module.
10083
10084         sin: Use a .m4 file.
10085         * m4/sin.m4: New file.
10086         * modules/sin (Files): Add it.
10087         (configure.ac): Just invoke gl_FUNC_SIN.
10088
10089 2011-10-08  Bruno Haible  <bruno@clisp.org>
10090
10091         Tests for module 'powf'.
10092         * modules/powf-tests: New file.
10093         * tests/test-powf.c: New file.
10094
10095         New module 'powf'.
10096         * lib/math.in.h (powf): New declaration.
10097         * lib/powf.c: New file.
10098         * m4/powf.m4: New file.
10099         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10101         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10102         * modules/powf: New file.
10103         * tests/test-math-c++.cc: Check the declaration of powf.
10104         * doc/posix-functions/powf.texi: Mention the new module.
10105
10106         pow: Use a .m4 file.
10107         * m4/pow.m4: New file.
10108         * modules/pow (Files): Add it.
10109         (configure.ac): Just invoke gl_FUNC_POW.
10110
10111 2011-10-08  Bruno Haible  <bruno@clisp.org>
10112
10113         Tests for module 'log10f'.
10114         * modules/log10f-tests: New file.
10115         * tests/test-log10f.c: New file.
10116
10117         New module 'log10f'.
10118         * lib/math.in.h (log10f): New declaration.
10119         * lib/log10f.c: New file.
10120         * m4/log10f.m4: New file.
10121         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10123         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10124         * modules/log10f: New file.
10125         * tests/test-math-c++.cc: Check the declaration of log10f.
10126         * doc/posix-functions/log10f.texi: Mention the new module.
10127
10128         log10: Use a .m4 file.
10129         * m4/log10.m4: New file.
10130         * modules/log10 (Files): Add it.
10131         (configure.ac): Just invoke gl_FUNC_LOG10.
10132
10133 2011-10-08  Bruno Haible  <bruno@clisp.org>
10134
10135         Tests for module 'logf'.
10136         * modules/logf-tests: New file.
10137         * tests/test-logf.c: New file.
10138
10139         New module 'logf'.
10140         * lib/math.in.h (logf): New declaration.
10141         * lib/logf.c: New file.
10142         * m4/logf.m4: New file.
10143         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10145         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10146         * modules/logf: New file.
10147         * tests/test-math-c++.cc: Check the declaration of logf.
10148         * doc/posix-functions/logf.texi: Mention the new module.
10149
10150         log: Use a .m4 file.
10151         * m4/log.m4: New file.
10152         * modules/log (Files): Add it.
10153         (configure.ac): Just invoke gl_FUNC_LOG.
10154
10155 2011-10-08  Bruno Haible  <bruno@clisp.org>
10156
10157         Tests for module 'expf'.
10158         * modules/expf-tests: New file.
10159         * tests/test-expf.c: New file.
10160
10161         New module 'expf'.
10162         * lib/math.in.h (expf): New declaration.
10163         * lib/expf.c: New file.
10164         * m4/expf.m4: New file.
10165         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10167         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10168         * modules/expf: New file.
10169         * tests/test-math-c++.cc: Check the declaration of expf.
10170         * doc/posix-functions/expf.texi: Mention the new module.
10171
10172         exp: Use a .m4 file.
10173         * m4/exp.m4: New file.
10174         * modules/exp (Files): Add it.
10175         (configure.ac): Just invoke gl_FUNC_EXP.
10176
10177 2011-10-08  Bruno Haible  <bruno@clisp.org>
10178
10179         Tests for module 'sqrtf'.
10180         * modules/sqrtf-tests: New file.
10181         * tests/test-sqrtf.c: New file.
10182
10183         New module 'sqrtf'.
10184         * lib/math.in.h (sqrtf): New declaration.
10185         * lib/sqrtf.c: New file.
10186         * m4/sqrtf.m4: New file.
10187         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10189         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10190         * modules/sqrtf: New file.
10191         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10192         * doc/posix-functions/sqrtf.texi: Mention the new module.
10193
10194 2011-10-08  Bruno Haible  <bruno@clisp.org>
10195
10196         Tests: Avoid link failures w.r.t. libintl.
10197         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10198         $(LIBINTL).
10199         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10200         $(LIBINTL).
10201         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10202         against $(LIBINTL).
10203         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10204         $(LIBINTL).
10205         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10206         $(LIBINTL).
10207         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10208
10209 2011-10-08  Bruno Haible  <bruno@clisp.org>
10210
10211         pow tests: Defeat compiler optimizations.
10212         * tests/test-pow.c (main): Assign arguments to x and y before use.
10213
10214 2011-10-08  Bruno Haible  <bruno@clisp.org>
10215
10216         gnulib-tool: Improve last commit.
10217         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10218         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10219         ignore dependencies that are not among the modules list.
10220
10221 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10222
10223         gnulib-tool: don't follow dependencies to avoided modules
10224         This fixes a bug that is related to the previous one.
10225         * gnulib-tool (func_modules_transitive_closure)
10226         (func_emit_autoconf_snippets):
10227         Check whether a dependency is acceptable before using it.
10228         (--extract-dependencies): Report an error if --avoid is also used,
10229         since this combination of options is not yet supported.
10230
10231         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10232         Problem reported by Peter Dyballa in
10233         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10234         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10235         when echoing "$condition".
10236
10237 2011-10-07  Bruno Haible  <bruno@clisp.org>
10238
10239         Fix documentation about math functions on MacOS X.
10240         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10241         MacOS X 10.5.
10242         * doc/posix-functions/fdim.texi: Likewise.
10243         * doc/posix-functions/feclearexcept.texi: Likewise.
10244         * doc/posix-functions/fegetenv.texi: Likewise.
10245         * doc/posix-functions/fegetround.texi: Likewise.
10246         * doc/posix-functions/feholdexcept.texi: Likewise.
10247         * doc/posix-functions/feraiseexcept.texi: Likewise.
10248         * doc/posix-functions/fesetenv.texi: Likewise.
10249         * doc/posix-functions/fesetround.texi: Likewise.
10250         * doc/posix-functions/fetestexcept.texi: Likewise.
10251         * doc/posix-functions/feupdateenv.texi: Likewise.
10252         * doc/posix-functions/fmax.texi: Likewise.
10253         * doc/posix-functions/fmin.texi: Likewise.
10254         * doc/posix-functions/log2.texi: Likewise.
10255         * doc/posix-functions/modff.texi: Likewise.
10256         * doc/posix-functions/nan.texi: Likewise.
10257         * doc/posix-functions/nanf.texi: Likewise.
10258         * doc/posix-functions/nextafterf.texi: Likewise.
10259         * doc/posix-functions/remquo.texi: Likewise.
10260
10261 2011-10-07  Bruno Haible  <bruno@clisp.org>
10262
10263         modff: Drop assumption about library that defines modff.
10264         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10265         AC_CHECK_FUNCS.
10266         * modules/modff (Files): Add m4/mathfunc.m4.
10267
10268 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10269
10270         raise tests: Avoid a GCC warning.
10271         * tests/test-raise.c (handler): Use _Noreturn.
10272
10273 2011-10-07  Bruno Haible  <bruno@clisp.org>
10274
10275         Tests for module 'ldexpf'.
10276         * modules/ldexpf-tests: New file.
10277         * tests/test-ldexpf.c: New file.
10278
10279         New module 'ldexpf'.
10280         * lib/math.in.h (ldexpf): New declaration.
10281         * lib/ldexpf.c: New file.
10282         * m4/ldexpf.m4: New file.
10283         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10285         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10286         * modules/ldexpf: New file.
10287         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10288         * doc/posix-functions/ldexpf.texi: Mention the new module.
10289
10290 2011-10-06  Bruno Haible  <bruno@clisp.org>
10291
10292         frexpf: Work around problems on IRIX and mingw.
10293         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10295         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10296         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10297         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10298         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10299         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10300
10301 2011-10-06  Bruno Haible  <bruno@clisp.org>
10302
10303         fabsf: Drop assumption about library that defines fabsf.
10304         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10305         AC_CHECK_FUNCS.
10306         * modules/fabsf (Files): Add m4/mathfunc.m4.
10307
10308 2011-10-06  Bruno Haible  <bruno@clisp.org>
10309
10310         frexpf: Drop assumption about library that defines frexpf.
10311         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10312         'int *', 'float *', 'long double *', 'float', 'long double'.
10313         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10314         AC_CHECK_FUNCS.
10315         * modules/frexpf (Files): Add m4/mathfunc.m4.
10316
10317         Tests for module 'frexpf'.
10318         * modules/frexpf-tests: New file.
10319         * tests/test-frexpf.c: New file.
10320
10321         New module 'frexpf'.
10322         * lib/math.in.h (frexpf): New declaration.
10323         * lib/frexpf.c: New file.
10324         * m4/frexpf.m4: New file.
10325         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10327         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10328         * modules/frexpf: New file.
10329         * tests/test-math-c++.cc: Check the declaration of frexpf.
10330         * doc/posix-functions/frexpf.texi: Mention the new module.
10331
10332 2011-10-06  Bruno Haible  <bruno@clisp.org>
10333
10334         math: Sort function declarations of math.in.h.
10335         * lib/math.in.h (frexp, logb): Move declarations.
10336
10337 2011-10-05  Bruno Haible  <bruno@clisp.org>
10338
10339         Tests for module 'modff'.
10340         * modules/modff-tests: New file.
10341         * tests/test-modff.c: New file.
10342
10343         New module 'modff'.
10344         * lib/math.in.h (modff): New declaration.
10345         * lib/modff.c: New file.
10346         * m4/modff.m4: New file.
10347         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10349         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10350         * modules/modff: New file.
10351         * tests/test-math-c++.cc: Check the declaration of modff.
10352         * doc/posix-functions/modff.texi: Mention the new module.
10353
10354         modf tests: Make test sharper.
10355         * tests/test-modf.c (main): Strengthen upper bound.
10356
10357         modf: Use a .m4 file.
10358         * m4/modf.m4: New file.
10359         * modules/modf (Files): Add it.
10360         (configure.ac): Just invoke gl_FUNC_MODF.
10361
10362 2011-10-05  Bruno Haible  <bruno@clisp.org>
10363
10364         Tests for module 'fmodf'.
10365         * modules/fmodf-tests: New file.
10366         * tests/test-fmodf.c: New file.
10367
10368         New module 'fmodf'.
10369         * lib/math.in.h (fmodf): New declaration.
10370         * lib/fmodf.c: New file.
10371         * m4/fmodf.m4: New file.
10372         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10374         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10375         * modules/fmodf: New file.
10376         * tests/test-math-c++.cc: Check the declaration of fmodf.
10377         * doc/posix-functions/fmodf.texi: Mention the new module.
10378
10379         fmod: Use a .m4 file.
10380         * m4/fmod.m4: New file.
10381         * modules/fmod (Files): Add it.
10382         (configure.ac): Just invoke gl_FUNC_FMOD.
10383
10384 2011-10-05  Bruno Haible  <bruno@clisp.org>
10385
10386         Tests for module 'fabsf'.
10387         * modules/fabsf-tests: New file.
10388         * tests/test-fabsf.c: New file.
10389
10390         New module 'fabsf'.
10391         * lib/math.in.h (fabsf): New declaration.
10392         * lib/fabsf.c: New file.
10393         * m4/fabsf.m4: New file.
10394         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10396         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10397         * modules/fabsf: New file.
10398         * tests/test-math-c++.cc: Check the declaration of fabsf.
10399         * doc/posix-functions/fabsf.texi: Mention the new module.
10400
10401         fabs: Use a .m4 file.
10402         * m4/fabs.m4: New file.
10403         * modules/fabs (Files): Add it.
10404         (configure.ac): Just invoke gl_FUNC_FABS.
10405
10406 2011-10-05  Jim Meyering  <meyering@redhat.com>
10407
10408         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10409         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10410         ls -lL regression introduced in coreutils-8.12, it does so at the
10411         cost of an additional stat call in the common case.  Besides, now
10412         that the kernel change that prompted commit 95f7c57f has been reverted
10413         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10414         we have no use for commit 95f7c57f, "file-has-acl: use
10415         acl_extended_file_nofollow if available".
10416
10417 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10418
10419         file-has-acl: revert unintended change in behavior of ls -L
10420         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10421         derived from...
10422         (file_has_acl): ...code here.  Call it.
10423         This problem was introduced with 2011-07-22 commit 95f7c57f,
10424         "file-has-acl: use acl_extended_file_nofollow if available".
10425         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10426
10427 2011-10-03  Bruno Haible  <bruno@clisp.org>
10428
10429         poll: Avoid link errors on MSVC.
10430         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10431         * modules/poll (Depends-on): Add sockets.
10432         (Link): New section.
10433         * NEWS: Mention the change.
10434         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10435         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10436         $(LIB_POLL) instead of $(LIBSOCKET).
10437
10438 2011-10-03  Bruno Haible  <bruno@clisp.org>
10439
10440         sys_select tests: Fix link error on MSVC 9.
10441         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10442         with $(LIB_SELECT) instead of $(LIBSOCKET).
10443
10444 2011-10-03  Bruno Haible  <bruno@clisp.org>
10445
10446         sys_select: Fix compilation error on mingw.
10447         * lib/sys_select.in.h: On native Windows, include <io.h>.
10448
10449 2011-10-03  Bruno Haible  <bruno@clisp.org>
10450
10451         wmemset: Support for MSVC.
10452         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10453         whether wmemset() exists.
10454
10455 2011-10-03  Bruno Haible  <bruno@clisp.org>
10456
10457         wmemmove: Support for MSVC.
10458         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10459         whether wmemmove() exists.
10460
10461 2011-10-03  Bruno Haible  <bruno@clisp.org>
10462
10463         wmemcpy: Support for MSVC.
10464         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10465         whether wmemcpy() exists.
10466
10467 2011-10-03  Bruno Haible  <bruno@clisp.org>
10468
10469         wmemcmp: Support for MSVC.
10470         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10471         whether wmemcmp() exists.
10472
10473 2011-10-03  Bruno Haible  <bruno@clisp.org>
10474
10475         wmemchr: Support for MSVC.
10476         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10477         whether wmemchr() exists.
10478
10479 2011-10-03  Bruno Haible  <bruno@clisp.org>
10480
10481         glthread/*, strsignal: Support for MSVC.
10482         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10483         including <winsock.h> on MSVC 9.
10484         * lib/glthread/lock.h: Likewise.
10485         * lib/glthread/thread.h: Likewise.
10486         * lib/glthread/tls.h: Likewise.
10487         * lib/glthread/yield.h: Likewise.
10488         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10489         if HAVE_UNISTD_H is false.
10490         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10491
10492 2011-10-03  Bruno Haible  <bruno@clisp.org>
10493
10494         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10495         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10496         Set to 100000.
10497
10498 2011-10-03  Bruno Haible  <bruno@clisp.org>
10499
10500         acl: Fix specification.
10501         * lib/file-has-acl.c (file_has_acl): Fix specification.
10502
10503 2011-10-03  Bruno Haible  <bruno@clisp.org>
10504
10505         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10506         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10507         (compute_curr_prefix, shared_library_fullname,
10508         find_shared_library_fullname, get_shared_library_fullname, relocate):
10509         Use it together with PIC && INSTALLDIR.
10510         Reported by <jojelino@gmail.com>
10511         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10512
10513 2011-10-01  Jim Meyering  <meyering@redhat.com>
10514
10515         maint.mk: adjust a release-related rule not to require use of gzip
10516         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10517         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10518         projects that build only .tar.xz files.  Also fix an erroneous test.
10519
10520         test-linkat: don't leave behind a temporary file
10521         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10522         Otherwise, coreutils' "make distcheck" would fail with this:
10523           Only in /c/cu/tests/torture/coreutils/test/\
10524             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10525           make[2]: *** [my-distcheck] Error 1
10526
10527         float, math: add omitted file
10528         * lib/itold.c: Add file, required for yesterday's float change.
10529
10530 2011-10-01  Bruno Haible  <bruno@clisp.org>
10531
10532         isinf: Fix for OpenBSD/x86.
10533         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10534         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10535         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10536
10537 2011-10-01  Bruno Haible  <bruno@clisp.org>
10538
10539         isfinite: Fix syntax error in configure test.
10540         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10541
10542         isfinite: Fix typo.
10543         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10544         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10545
10546 2011-10-01  Bruno Haible  <bruno@clisp.org>
10547
10548         nonblocking tests: Fix test failure on Linux/IA-64.
10549         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10550         Set to 270000.
10551
10552 2011-10-01  Bruno Haible  <bruno@clisp.org>
10553
10554         mkfifoat tests: Fix a test failure on mingw.
10555         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10556         with error ENOSYS.
10557
10558 2011-09-30  Bruno Haible  <bruno@clisp.org>
10559
10560         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10561         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10562         'long double'. Set REPLACE_ITOLD.
10563         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10564         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10565         * lib/itold.c: New file.
10566         * modules/float (Files): Add lib/itold.c.
10567         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10568         (Makefile.am): Substitute REPLACE_ITOLD.
10569         * modules/math (Depends-on): Add float.
10570         (Makefile.am): Substitute REPLACE_ITOLD.
10571         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10572         * doc/posix-headers/math.texi: Likewise.
10573         * doc/posix-functions/logl.texi: Likewise.
10574
10575 2011-09-30  Bruno Haible  <bruno@clisp.org>
10576
10577         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10578         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10579         Set to 140000.
10580
10581 2011-09-30  Bruno Haible  <bruno@clisp.org>
10582
10583         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10584         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10585         invocation, say "right after AC_PROG_CC_STDC", not "right after
10586         AC_PROG_CC".
10587         Reported by Gary V. Vaughan <gary@gnu.org>.
10588
10589 2011-09-30  Bruno Haible  <bruno@clisp.org>
10590
10591         Centralize C99 requirement.
10592         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10593         * modules/stdarg (configure.ac-early): Invoke it instead of
10594         AC_PROG_CC_STDC.
10595         Reported by Gary V. Vaughan and Paul Eggert.
10596
10597 2011-09-29  Bruno Haible  <bruno@clisp.org>
10598
10599         float: Fix LDBL_MAX value on Linux/PowerPC.
10600         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10601         on Linux/PowerPC.
10602         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10603         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10604         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10605         platform.
10606         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10607
10608 2011-09-29  Bruno Haible  <bruno@clisp.org>
10609
10610         doc: Improve doc about gl_EARLY.
10611         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10612         AC_PROG_CC_STDC invocation.
10613         Reported by Gary V. Vaughan <gary@gnu.org>.
10614
10615 2011-09-28  Bruno Haible  <bruno@clisp.org>
10616
10617         fgetc, fputc, fread, fwrite tests: Fix link error.
10618         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10619         on non-MSVC platforms.
10620         * tests/test-fputc.c (main): Likewise.
10621         * tests/test-fread.c (main): Likewise.
10622         * tests/test-fwrite.c (main): Likewise.
10623         Reported by Jim Meyering.
10624
10625 2011-09-27  Bruno Haible  <bruno@clisp.org>
10626
10627         fputc, fwrite tests: Avoid test failure on MSVC.
10628         * tests/test-fgetc.c: Include msvc-inval.h.
10629         (main): Invoke gl_msvc_inval_ensure_handler.
10630         * tests/test-fputc.c: Include msvc-inval.h.
10631         (main): Invoke gl_msvc_inval_ensure_handler.
10632         * tests/test-fread.c: Include msvc-inval.h.
10633         (main): Invoke gl_msvc_inval_ensure_handler.
10634         * tests/test-fwrite.c: Include msvc-inval.h.
10635         (main): Invoke gl_msvc_inval_ensure_handler.
10636         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10637         * modules/fputc-tests (Depends-on): Likewise.
10638         * modules/fread-tests (Depends-on): Likewise.
10639         * modules/fwrite-tests (Depends-on): Likewise.
10640
10641 2011-09-27  Bruno Haible  <bruno@clisp.org>
10642
10643         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10644         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10645         (raise): Remove older, duplicated declaration.
10646         (_gl_raise_SIGPIPE): New declaration.
10647         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10648         (rpl_raise): Remove function.
10649         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10650         a gnulib-defined SIGPIPE here.
10651         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10652         'sigprocmask' has detected missing signal-blocking and the module
10653         'sigpipe' is enabled.
10654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10655
10656 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10657
10658         base64-tests: avoid memory leak
10659         * tests/test-base64.c (main): Plug memory leak.
10660
10661         base32: new module
10662         * modules/base32: New module.
10663         * lib/base32.c: New file.
10664         * lib/base32.h: Likewise.
10665         * m4/base32.m4: Likewise.
10666         * modules/base32-tests: New test.
10667         * tests/test-base32.c: Likewise.
10668         * MODULES.html.sh (Misc): Mention it.
10669
10670 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10671
10672         gnulib: use more-standard license notice wording
10673         * gnulib-tool (func_emit_copyright_notice): When emitting a
10674         license notice into a file, use the standard wording as suggested
10675         by the current information for GNU maintainers, except say "file"
10676         rather than "program".  The new wording gives a license version
10677         number, which addresses an issue raised by Glenn Morris in
10678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10679         * m4/onceonly.m4: Use that same wording here, too.
10680
10681         dup2: minor simplification
10682         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10683         as lib/dup2.c no longer uses 'inline'.
10684
10685 2011-09-25  Bruno Haible  <bruno@clisp.org>
10686
10687         strings: Fix compilation error on MSVC.
10688         * lib/strings.in.h: Include <stddef.h> for size_t.
10689
10690 2011-09-25  Bruno Haible  <bruno@clisp.org>
10691
10692         fflush et al.: Document limitation on MSVC.
10693         * doc/posix-functions/fflush.texi: Document possible crash in handling
10694         mode other than DEFAULT_HANDLING.
10695         * doc/posix-functions/fgetc.texi: Likewise.
10696         * doc/posix-functions/fputc.texi: Likewise.
10697         * doc/posix-functions/fread.texi: Likewise.
10698         * doc/posix-functions/fwrite.texi: Likewise.
10699
10700 2011-09-25  Bruno Haible  <bruno@clisp.org>
10701
10702         msvc-inval: Allow three invalid parameter handling modes.
10703         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10704         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10705         macros.
10706         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10707         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10708         SANE_LIBRARY_HANDLING as a no-op.
10709         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10710         <stdlib.h>.
10711         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10712
10713 2011-09-25  Bruno Haible  <bruno@clisp.org>
10714
10715         msvc-inval: Make handler multithread-safe.
10716         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10717         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10718         declarations.
10719         (gl_msvc_inval_current): New declaration.
10720         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10721         Operate on the structure returned by gl_msvc_inval_current().
10722         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10723         Remove varaiables.
10724         (tls_index, tls_initialized): New variables.
10725         (not_per_thread): New variable.
10726         (gl_msvc_inval_current): New function.
10727         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10728         returned by gl_msvc_inval_current().
10729
10730 2011-09-25  Bruno Haible  <bruno@clisp.org>
10731
10732         msvc-inval: Install handler globally.
10733         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10734         !_MSC_VER.
10735         (gl_msvc_invalid_parameter_handler): Remove declaration.
10736         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10737         declarations.
10738         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10739         Install the handler globally, don't uninstall it.
10740         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10741         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10742         currently valid, call RaiseException instead.
10743         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10744         for !_MSC_VER.
10745
10746 2011-09-25  Bruno Haible  <bruno@clisp.org>
10747
10748         strerror_r-posix: Fix for MSVC 9.
10749         * lib/strerror_r.c (local_snprintf): New function.
10750         (snprintf): Define to local_snprintf, not to _snprintf.
10751
10752 2011-09-25  Bruno Haible  <bruno@clisp.org>
10753
10754         ftruncate: Support for MSVC 9.
10755         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10756         (chsize_nothrow): New function.
10757         (chsize): Redefine as a macro.
10758         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10759         * modules/ftruncate (Depends-on): Add msvc-inval.
10760
10761 2011-09-25  Bruno Haible  <bruno@clisp.org>
10762
10763         New module 'fstat'.
10764         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10765         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10766         * lib/fchdir.c (rpl_fstat): Remove function.
10767         * m4/fstat.m4: New file.
10768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10769         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10770         declared.
10771         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10772         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10773         * modules/fstat: New file.
10774         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10775         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10776         is set.
10777         * doc/posix-functions/fstat.texi: Mention the new module and the
10778         problem on MSVC.
10779         * NEWS: Mention the change.
10780         * modules/acl (Depends-on): Add fstat.
10781         * modules/chdir-safer (Depends-on): Likewise.
10782         * modules/chown (Depends-on): Likewise.
10783         * modules/copy-file (Depends-on): Likewise.
10784         * modules/fchdir (Depends-on): Likewise.
10785         * modules/fdopendir (Depends-on): Likewise.
10786         * modules/fopen (Depends-on): Likewise.
10787         * modules/fts (Depends-on): Likewise.
10788         * modules/getcwd (Depends-on): Likewise.
10789         * modules/isapipe (Depends-on): Likewise.
10790         * modules/linkat (Depends-on): Likewise.
10791         * modules/lseek (Depends-on): Likewise.
10792         * modules/mkdir-p (Depends-on): Likewise.
10793         * modules/open (Depends-on): Likewise.
10794         * modules/openat (Depends-on): Likewise.
10795         * modules/read-file (Depends-on): Likewise.
10796         * modules/renameat (Depends-on): Likewise.
10797         * modules/utimens (Depends-on): Likewise.
10798
10799 2011-09-25  Bruno Haible  <bruno@clisp.org>
10800
10801         linkat: Fix compilation on MSVC 9.
10802         * lib/linkat.c: Don't include <stdint.h>.
10803
10804 2011-09-25  Bruno Haible  <bruno@clisp.org>
10805
10806         fclose: Support for MSVC 9.
10807         * lib/fclose.c: Include msvc-inval.h.
10808         (fclose_nothrow): New function.
10809         (rpl_fclose): Use it.
10810         * modules/fclose (Depends-on): Add msvc-inval.
10811         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10812
10813 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10814
10815         dup2: minor simplifications
10816         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10817         that it's a performance win.
10818         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10819         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10820
10821 2011-09-24  Jim Meyering  <meyering@redhat.com>
10822
10823         test-futimens: avoid a warning from gcc -Wshadow
10824         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10825         to avoid a shadowing warning.
10826
10827 2011-09-24  Bruno Haible  <bruno@clisp.org>
10828
10829         fdopen: Support for MSVC 9.
10830         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10831         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10832         * lib/fdopen.c: Include msvc-inval.h.
10833         (fdopen_nothrow): New function.
10834         (rpl_fdopen): Use it.
10835         * modules/fdopen (Depends-on): Add msvc-inval.
10836         * modules/fclose-tests (Depends-on): Add fdopen.
10837         * modules/fflush-tests (Depends-on): Likewise.
10838         * modules/fgetc-tests (Depends-on): Likewise.
10839         * modules/fputc-tests (Depends-on): Likewise.
10840         * modules/fread-tests (Depends-on): Likewise.
10841         * modules/freopen-tests (Depends-on): Likewise.
10842         * modules/fseeko-tests (Depends-on): Likewise.
10843         * modules/ftello-tests (Depends-on): Likewise.
10844         * modules/fwrite-tests  (Depends-on): Likewise.
10845         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10846
10847 2011-09-24  Bruno Haible  <bruno@clisp.org>
10848
10849         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10850         * modules/fgetc-tests (Depends-on): Add unistd.
10851         * modules/fputc-tests (Depends-on): Likewise.
10852         * modules/fread-tests (Depends-on): Likewise.
10853         * modules/fwrite-tests (Depends-on): Likewise.
10854
10855 2011-09-24  Bruno Haible  <bruno@clisp.org>
10856
10857         dup: Simplify autoconf test.
10858         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10859         on gl_MSVC_INVAL's result.
10860
10861 2011-09-24  Bruno Haible  <bruno@clisp.org>
10862
10863         Tests for function fwrite().
10864         * modules/fwrite-tests: New file.
10865         * tests/test-fwrite.c: New file.
10866         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10867
10868         Tests for function fread().
10869         * modules/fread-tests: New file.
10870         * tests/test-fread.c: New file.
10871         * modules/stdio-tests (Depends-on): Add fread-tests.
10872
10873         Activate fputc tests.
10874         * modules/stdio-tests (Depends-on): Add fputc-tests.
10875
10876         Enhance fgetc, fputc tests.
10877         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10878         * tests/test-fputc.c (main): Likewise.
10879
10880 2011-09-24  Bruno Haible  <bruno@clisp.org>
10881
10882         write: Support for MSVC 9.
10883         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10884         is not 1.
10885         * lib/write.c (write_nothrow): New function.
10886         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10887         not 1. Use write_nothrow.
10888         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10889         invalid parameter handler.
10890         (gl_PREREQ_WRITE): New macro.
10891         * modules/write (Depends-on): Add msvc-inval.
10892         (configure.ac): Invoke gl_PREREQ_WRITE.
10893         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10894
10895 2011-09-24  Bruno Haible  <bruno@clisp.org>
10896
10897         read: Fix last commit.
10898         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10899
10900 2011-09-24  Bruno Haible  <bruno@clisp.org>
10901
10902         dup2: Fix last commit.
10903         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10904         (rpl_dup2): Disable fcntl workaround on native Windows.
10905
10906         sigprocmask: Make code safer.
10907         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10908         section that changes macro definitions for this compilation unit.
10909
10910 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10911
10912         dup2: clarify by coalescing Windows-specific material
10913         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10914         "msvc-nothrow.h"' to the Windows-specific section, so that the
10915         Emacs source need not contain these include files.
10916         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10917         Windows-specific fixes into this function rather than just the
10918         nothrow fix, as this shortens and clarifies the code.  Always
10919         define as a function, as that's a bit cleaner than having it be
10920         sometimes a function and sometimes a macro.
10921         (rpl_dup2): Move the Windows-specific stuff out of here and into
10922         ms_windows_dup2.  Don't protect the Haiku-related fix with
10923         "#if !defined __linux__", as the same code also works around
10924         a Linux kernel bug, and it doesn't add any system calls on any
10925         platform.  Add comment about FreeBSD 6.1.
10926
10927         sigprocmask: move #include directive
10928         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10929         Windows-specific section, so that the Emacs source need not
10930         contain msvc-inval.h.
10931
10932 2011-09-23  Bruno Haible  <bruno@clisp.org>
10933
10934         read: Support for MSVC 9.
10935         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10936         is not 1.
10937         * lib/read.c (read_nothrow): New function.
10938         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10939         read_nothrow.
10940         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10941         invalid parameter handler.
10942         (gl_PREREQ_READ): New macro.
10943         * modules/read (Depends-on): Add msvc-inval.
10944         (configure.ac): Invoke gl_PREREQ_READ.
10945         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10946
10947 2011-09-23  Bruno Haible  <bruno@clisp.org>
10948
10949         close: Support for MSVC 9.
10950         * lib/close.c: Include <errno.h>, msvc-inval.h.
10951         (close_nothrow): New function.
10952         (rpl_close): Use it.
10953         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10954         invalid parameter handler.
10955         * modules/close (Depends-on): Add msvc-inval.
10956         * modules/dup2-tests (Depends-on): Add close.
10957         * modules/dup3-tests (Depends-on): Likewise.
10958         * modules/fcntl-tests (Depends-on): Likewise.
10959         * modules/spawn-pipe-tests (Depends-on): Likewise.
10960         * modules/unistd-safer-tests (Depends-on): Likewise.
10961         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10962
10963 2011-09-23  Bruno Haible  <bruno@clisp.org>
10964
10965         New module 'dup'.
10966         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10967         Allow replacement.
10968         * lib/dup.c: New file.
10969         * lib/fchdir.c (rpl_dup): Remove function.
10970         * m4/dup.m4: New file.
10971         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10972         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10974         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10975         * modules/dup: New file.
10976         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10977         'dup' module is in use.
10978         * modules/fdopendir (Depends-on): Add dup.
10979         * modules/fdutimensat-tests (Depends-on): Likewise.
10980         * modules/fts (Depends-on): Likewise.
10981         * modules/futimens-tests (Depends-on): Likewise.
10982         * modules/posix_spawnp-tests (Depends-on): Likewise.
10983         * modules/unistd-safer-tests (Depends-on): Likewise.
10984         * modules/utimens-tests (Depends-on): Likewise.
10985         * doc/posix-functions/dup.texi: Mention the new module and the problem
10986         on MSVC.
10987
10988 2011-09-23  Bruno Haible  <bruno@clisp.org>
10989
10990         getdtablesize: Support for MSVC 9.
10991         * lib/getdtablesize.c: Include msvc-inval.h.
10992         (_setmaxstdio_nothrow): New function.
10993         (_setmaxstdio): Redefine it.
10994         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10995         * modules/getdtablesize (Depends-on): Add msvc-inval.
10996         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10997
10998 2011-09-23  Bruno Haible  <bruno@clisp.org>
10999
11000         signal-h: Rename from signal.
11001         * modules/signal-h: Renamed from modules/signal.
11002         * modules/pthread_sigmask (Depends-on): Update.
11003         * modules/raise (Depends-on): Likewise.
11004         * modules/sigaction (Depends-on): Likewise.
11005         * modules/sigpipe (Depends-on): Likewise.
11006         * modules/sigprocmask (Depends-on): Likewise.
11007         * modules/sys_select (Depends-on): Likewise.
11008         * modules/signal-h-tests: Renamed from modules/signal-tests.
11009         (Files, Depends-on, Makefile.am): Update.
11010         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11011         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11012         (Files, Makefile.am): Update.
11013         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11014         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11015         * modules/signal: New placeholder file.
11016         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11017         * doc/posix-headers/signal.texi: Update.
11018         * NEWS: Mention the change.
11019
11020 2011-09-23  Bruno Haible  <bruno@clisp.org>
11021
11022         sigprocmask: Avoid crashes through signal() on MSVC 9.
11023         * lib/sigprocmask.c: Include msvc-inval.h.
11024         (signal_nothrow): New function.
11025         (signal): Redefine it.
11026         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11027         * modules/sigprocmask (Depends-on): Add msvc-inval.
11028         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11029
11030 2011-09-23  Bruno Haible  <bruno@clisp.org>
11031
11032         Tests for module 'raise'.
11033         * modules/raise-tests: New file.
11034         * tests/test-raise.c: New file.
11035
11036         raise: Support for MSVC.
11037         * lib/signal.in.h (raise): New declaration.
11038         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11039         for native Windows platforms.
11040         * m4/raise.m4: New file.
11041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11042         HAVE_RAISE, REPLACE_RAISE.
11043         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11044         REPLACE_RAISE.
11045         * modules/raise (Status, Notice): Remove fields.
11046         (Files): Add m4/raise.m4.
11047         (Depends-on): Add signal, msvc-inval.
11048         (configure.ac): Use the common idioms.
11049         (Maintainer): Add me.
11050         * tests/test-signal-c++.cc: Check the signature of raise.
11051         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11052
11053 2011-09-23  Bruno Haible  <bruno@clisp.org>
11054
11055         pipe2: Fix compilation on pre-C99 compilers.
11056         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11057
11058 2011-09-23  Bruno Haible  <bruno@clisp.org>
11059
11060         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11061         * lib/msvc-nothrow.h: New file.
11062         * lib/msvc-nothrow.c: New file.
11063         * m4/msvc-nothrow.m4: New file.
11064         * modules/msvc-nothrow: New file.
11065         * lib/dup2.c: Include msvc-nothrow.h.
11066         (rpl_dup2): No need to protect _get_osfhandle call here.
11067         * lib/accept4.c: Include msvc-nothrow.h.
11068         * lib/error.c: Likewise.
11069         * lib/fcntl.c: Likewise.
11070         * lib/lseek.c: Likewise.
11071         * lib/nonblocking.c: Likewise.
11072         * lib/poll.c: Likewise.
11073         * lib/read.c: Likewise.
11074         * lib/select.c: Likewise.
11075         * lib/sockets.h: Likewise.
11076         * lib/sockets.c: Likewise.
11077         * lib/stdio-read.c: Likewise.
11078         * lib/stdio-write.c: Likewise.
11079         * lib/write.c: Likewise.
11080         * lib/w32sock.h: Likewise.
11081         * lib/w32spawn.h: Likewise.
11082         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11083         * lib/fsync.c: Likewise.
11084         * lib/isapipe.c: Likewise.
11085         * modules/dup2 (Depends-on): Add msvc-nothrow.
11086         * modules/accept4 (Depends-on): Likewise.
11087         * modules/error (Depends-on): Likewise.
11088         * modules/fcntl (Depends-on): Likewise.
11089         * modules/lseek (Depends-on): Likewise.
11090         * modules/nonblocking (Depends-on): Likewise.
11091         * modules/poll (Depends-on): Likewise.
11092         * modules/read (Depends-on): Likewise.
11093         * modules/select (Depends-on): Likewise.
11094         * modules/sockets (Depends-on): Likewise.
11095         * modules/sigpipe (Depends-on): Likewise.
11096         * modules/write (Depends-on): Likewise.
11097         * modules/accept (Depends-on): Likewise.
11098         * modules/bind (Depends-on): Likewise.
11099         * modules/connect (Depends-on): Likewise.
11100         * modules/gethostname (Depends-on): Likewise.
11101         * modules/getpeername (Depends-on): Likewise.
11102         * modules/getsockname (Depends-on): Likewise.
11103         * modules/getsockopt (Depends-on): Likewise.
11104         * modules/ioctl (Depends-on): Likewise.
11105         * modules/listen (Depends-on): Likewise.
11106         * modules/recv (Depends-on): Likewise.
11107         * modules/recvfrom (Depends-on): Likewise.
11108         * modules/send (Depends-on): Likewise.
11109         * modules/sendto (Depends-on): Likewise.
11110         * modules/setsockopt (Depends-on): Likewise.
11111         * modules/shutdown (Depends-on): Likewise.
11112         * modules/socket (Depends-on): Likewise.
11113         * modules/execute (Depends-on): Likewise.
11114         * modules/spawn-pipe (Depends-on): Likewise.
11115         * modules/flock (Depends-on): Likewise.
11116         * modules/fsync (Depends-on): Likewise.
11117         * modules/isapipe (Depends-on): Likewise.
11118         * tests/test-cloexec.c: Include msvc-nothrow.h.
11119         * tests/test-dup-safer.c: Likewise.
11120         * tests/test-dup2.c: Likewise.
11121         * tests/test-dup3.c: Likewise.
11122         * tests/test-fcntl.c: Likewise.
11123         * tests/test-pipe.c: Likewise.
11124         * tests/test-pipe2.c: Likewise.
11125         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11126         * modules/unistd-safer-tests (Depends-on): Likewise.
11127         * modules/dup2-tests (Depends-on): Likewise.
11128         * modules/dup3-tests (Depends-on): Likewise.
11129         * modules/fcntl-tests (Depends-on): Likewise.
11130         * modules/pipe-posix-tests (Depends-on): Likewise.
11131         * modules/pipe2-tests (Depends-on): Likewise.
11132
11133 2011-09-23  Bruno Haible  <bruno@clisp.org>
11134
11135         dup2: Make code more maintainable.
11136         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11137         (rpl_dup2): Use it.
11138         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11139         * modules/dup2 (configure.ac): Invoke it.
11140         Reported by Paul Eggert.
11141
11142 2011-09-23  Bruno Haible  <bruno@clisp.org>
11143
11144         msvc-inval: Fix compilation error.
11145         * lib/msvc-inval.h: Include <excpt.h>.
11146
11147 2011-09-23  Bruno Haible  <bruno@clisp.org>
11148
11149         mkdir: Tweak for MSVC 9.
11150         * lib/sys_stat.in.h: Update comments.
11151         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11152
11153         Tests for module 'chdir'.
11154         * modules/chdir-tests: New file.
11155         * tests/test-chdir.c: New file.
11156
11157         New module 'chdir'.
11158         * modules/chdir: New file.
11159         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11160         (chdir): New declaration.
11161         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11162         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11163         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11164         * tests/test-unistd-c++.cc: Check signature of chdir.
11165         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11166         * modules/chdir-long (Depends-on): Add chdir.
11167         * modules/fchdir (Depends-on): Likewise.
11168         * modules/rename (Depends-on): Likewise.
11169         * modules/savewd (Depends-on): Likewise.
11170
11171         rmdir: Support for mingw, MSVC 9.
11172         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11173         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11174
11175         getcwd: Tweak for MSVC 9.
11176         * lib/unistd.in.h: Update comments.
11177         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11178
11179 2011-09-22  Bruno Haible  <bruno@clisp.org>
11180
11181         strerror_r-posix: Avoid a link error on MSVC.
11182         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11183         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11184
11185 2011-09-22  Bruno Haible  <bruno@clisp.org>
11186
11187         select: Avoid link errors on MSVC.
11188         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11189         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11190         * modules/pselect (Link): Likewise.
11191         * NEWS: Mention the change.
11192         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11193         test-select-stdin against $(LIB_SELECT).
11194         * modules/pselect-tests (Makefile.am): Link test-pselect against
11195         $(LIB_SELECT).
11196
11197 2011-09-22  Bruno Haible  <bruno@clisp.org>
11198
11199         select: Avoid compilation error on MSVC.
11200         * lib/select.c: Don't include <stdbool.h>.
11201
11202 2011-09-21  Bruno Haible  <bruno@clisp.org>
11203
11204         Consolidate all uses of PATH_MAX in *.m4 files.
11205         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11206         macros.
11207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11208         and gl_PATHMAX_SNIPPET.
11209         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11210         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11211         * modules/chdir-long (Files): Add m4/pathmax.m4.
11212         * modules/getcwd (Files): Likewise.
11213
11214 2011-09-21  Bruno Haible  <bruno@clisp.org>
11215
11216         ftruncate: Un-deprecate, concentrate on Win32 support.
11217         * modules/ftruncate (Status, Notice): Remove sections.
11218         (Depends-on): Add largefile.
11219         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11220         non-mingw platforms.
11221         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11222         include <io.h>.
11223         * modules/perror-tests (Depends-on): Add ftruncate.
11224         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11225         'ftruncate' module.
11226
11227 2011-09-21  Bruno Haible  <bruno@clisp.org>
11228
11229         Add dependencies to new dirent related modules.
11230         * modules/opendir (Depends-on): Add closedir.
11231         * modules/getcwd (Depends-on): Add opendir, closedir.
11232         * modules/dirent-safer-tests (Depends-on): Likewise.
11233         * modules/fdopendir-tests (Depends-on): Likewise.
11234         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11235         * modules/renameat-tests (Depends-on): Likewise.
11236
11237 2011-09-21  Bruno Haible  <bruno@clisp.org>
11238
11239         opendir: Avoid compilation error on mingw.
11240         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11241         * modules/opendir (Depends-on): Add unistd.
11242
11243 2011-09-21  Bruno Haible  <bruno@clisp.org>
11244
11245         ftruncate tests: Avoid a test failure on mingw.
11246         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11247
11248 2011-09-21  Bruno Haible  <bruno@clisp.org>
11249
11250         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11251         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11252         native Windows.
11253
11254 2011-09-21  Bruno Haible  <bruno@clisp.org>
11255
11256         New module 'fdopen'.
11257         * lib/stdio.in.h (fdopen): New declaration.
11258         * lib/fdopen.c: New file.
11259         * m4/fdopen.m4: New file.
11260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11261         REPLACE_FDOPEN.
11262         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11263         REPLACE_FDOPEN.
11264         * modules/fdopen: New file.
11265         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11266         * tests/test-stdio-c++.cc: Check signature of fdopen.
11267         * doc/posix-functions/fdopen.texi: Mention the new module.
11268
11269 2011-09-21  Bruno Haible  <bruno@clisp.org>
11270
11271         unlockpt tests: Avoid test failure on NetBSD 5.1.
11272         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11273         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11274
11275 2011-09-21  Bruno Haible  <bruno@clisp.org>
11276
11277         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11278         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11279         * tests/test-getlogin_r.c (main): Likewise.
11280
11281 2011-09-20  Bruno Haible  <bruno@clisp.org>
11282
11283         time tests: Don't require pid_t.
11284         * doc/posix-headers/time.texi: Revert last change.
11285         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11286         * tests/test-time.c: Comment out the check for pid_t.
11287
11288 2011-09-20  Bruno Haible  <bruno@clisp.org>
11289
11290         fsync tests: Avoid a test failure on mingw.
11291         * tests/test-fsync.c (main): Allow a failure with EIO.
11292
11293 2011-09-20  Bruno Haible  <bruno@clisp.org>
11294
11295         euidaccess: Update comments.
11296         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11297
11298 2011-09-20  Bruno Haible  <bruno@clisp.org>
11299
11300         Ensure EBADF returns for socket functions on mingw.
11301         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11302         descriptor is invalid.
11303         * lib/bind.c (rpl_bind): Likewise.
11304         * lib/connect.c (rpl_connect): Likewise.
11305         * lib/getpeername.c (rpl_getpeername): Likewise.
11306         * lib/getsockname.c (rpl_getsockname): Likewise.
11307         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11308         * lib/listen.c (rpl_listen): Likewise.
11309         * lib/recv.c (rpl_recv): Likewise.
11310         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11311         * lib/send.c (rpl_send): Likewise.
11312         * lib/sendto.c (rpl_sendto): Likewise.
11313         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11314         * lib/shutdown.c (rpl_shutdown): Likewise.
11315
11316 2011-09-20  Bruno Haible  <bruno@clisp.org>
11317
11318         select tests: EBADF tests.
11319         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11320         test_bad_fd): New functions.
11321         (test_function): Invoke also test_bad_fd.
11322
11323 2011-09-20  Bruno Haible  <bruno@clisp.org>
11324
11325         Tests for module 'posix_spawn_file_actions_addopen.
11326         * modules/posix_spawn_file_actions_addopen-tests: New file.
11327         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11328
11329         Tests for module 'posix_spawn_file_actions_adddup2'.
11330         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11331         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11332
11333         Tests for module 'posix_spawn_file_actions_addclose'.
11334         * modules/posix_spawn_file_actions_addclose-tests: New file.
11335         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11336
11337 2011-09-20  Bruno Haible  <bruno@clisp.org>
11338
11339         Tests for module 'unlockpt'.
11340         * modules/unlockpt-tests: New file.
11341         * tests/test-unlockpt.c: New file.
11342         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11343
11344         Tests for module 'grantpt'.
11345         * modules/grantpt-tests: New file.
11346         * tests/test-grantpt.c: New file.
11347         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11348
11349 2011-09-20  Bruno Haible  <bruno@clisp.org>
11350
11351         freopen tests: EBADF tests.
11352         * tests/test-freopen.c: Include errno.h, unistd.h.
11353         (main): Add tests for EBADF, commented out for the moment.
11354
11355         fclose tests: EBADF tests.
11356         * tests/test-fclose.c (main): Add tests for EBADF.
11357
11358         fflush tests: EBADF tests.
11359         * tests/test-fflush.c: Include errno.h, macros.h.
11360         (main): Add tests for EBADF.
11361
11362         ftello tests: EBADF tests.
11363         * tests/test-ftello4.sh: New file.
11364         * tests/test-ftello4.c: New file.
11365         * modules/ftello-tests (Files): Add them.
11366         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11367
11368         fseeko tests: EBADF tests.
11369         * tests/test-fseeko4.sh: New file.
11370         * tests/test-fseeko4.c: New file.
11371         * modules/fseeko-tests (Files): Add them.
11372         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11373
11374         Tests for function fputc().
11375         * modules/fputc-tests: New file.
11376         * tests/test-fputc.c: New file.
11377         * modules/stdio-tests (Depends-on): Add fputc-tests.
11378
11379         Tests for function fgetc().
11380         * modules/fgetc-tests: New file.
11381         * tests/test-fgetc.c: New file.
11382         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11383
11384         Tests for function fdopen().
11385         * modules/fdopen-tests: New file.
11386         * tests/test-fdopen.c: New file.
11387         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11388
11389         Tests for module 'vdprintf'.
11390         * modules/vdprintf-tests: New file.
11391         * tests/test-vdprintf.c: New file.
11392
11393         Tests for module 'dprintf'.
11394         * modules/dprintf-tests: New file.
11395         * tests/test-dprintf.c: New file.
11396
11397 2011-09-20  Bruno Haible  <bruno@clisp.org>
11398
11399         Tests for module 'ioctl'.
11400         * modules/ioctl-tests: New file.
11401         * tests/test-ioctl.c: New file.
11402
11403 2011-09-20  Bruno Haible  <bruno@clisp.org>
11404
11405         fcntl tests: EBADF tests.
11406         * tests/test-fcntl.c (main): Add more tests for EBADF.
11407
11408 2011-09-20  Bruno Haible  <bruno@clisp.org>
11409
11410         utimensat tests: EBADF tests.
11411         * tests/test-utimensat.c (main): Add tests for EBADF.
11412
11413         renameat tests: EBADF tests.
11414         * tests/test-renameat.c (main): Add tests for EBADF.
11415
11416         mkfifoat tests: EBADF tests.
11417         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11418
11419         readlinkat tests: EBADF tests.
11420         * tests/test-readlinkat.c (main): Add tests for EBADF.
11421
11422         symlinkat tests: EBADF tests.
11423         * tests/test-symlinkat.c (main): Add tests for EBADF.
11424
11425         linkat tests: EBADF tests.
11426         * tests/test-linkat.c (main): Add tests for EBADF.
11427
11428         Tests for module 'faccessat'.
11429         * modules/faccessat-tests: New file.
11430         * tests/test-faccessat.c: New file.
11431
11432         fdopendir tests: EBADF tests.
11433         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11434
11435         openat tests: EBADF tests.
11436         * tests/test-fchownat.c (main): Add tests for EBADF.
11437         * tests/test-fstatat.c (main): Likewise.
11438         * tests/test-mkdirat.c (main): Likewise.
11439         * tests/test-openat.c (main): Likewise.
11440         * tests/test-unlinkat.c (main): Likewise.
11441         * tests/test-fchmodat.c: New file.
11442         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11443         (Makefile.am): Also run 'test-fchmodat'.
11444
11445 2011-09-20  Bruno Haible  <bruno@clisp.org>
11446
11447         utimens, futimens, fdutimensat tests: EBADF tests.
11448         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11449
11450         Tests for function fstat().
11451         * modules/fstat-tests: New file.
11452         * tests/test-fstat.c: New file.
11453         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11454
11455 2011-09-20  Bruno Haible  <bruno@clisp.org>
11456
11457         test-ttyname_r tests: EBADF tests.
11458         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11459
11460         Tests for module 'isatty'.
11461         * modules/isatty-tests: New file.
11462         * tests/test-isatty.c: New file.
11463
11464         Tests for module 'write'.
11465         * modules/write-tests: New file.
11466         * tests/test-write.c: New file.
11467
11468         Tests for module 'read'.
11469         * modules/read-tests: New file.
11470         * tests/test-read.c: New file.
11471
11472         pwrite tests: EBADF tests.
11473         * tests/test-pwrite.c (main): Add tests for EBADF.
11474
11475         pread tests: EBADF tests.
11476         * tests/test-pread.c (main): Add tests for EBADF.
11477
11478         lseek tests: EBADF tests.
11479         * tests/test-lseek.c (main): Add more tests for EBADF.
11480
11481         Tests for module 'ftruncate'.
11482         * modules/ftruncate-tests: New file.
11483         * tests/test-ftruncate.sh: New file.
11484         * tests/test-ftruncate.c: New file.
11485
11486         fsync tests: EBADF tests.
11487         * tests/test-fsync.c (main): Add more tests for EBADF.
11488
11489         fdatasync tests: EBADF tests.
11490         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11491
11492         Tests for module 'fchown'.
11493         * modules/fchown-tests: New file.
11494         * tests/test-fchown.c: New file.
11495
11496         Tests for module 'fchmod'.
11497         * modules/fchmod-tests: New file.
11498         * tests/test-fchmod.c: New file.
11499
11500         fchdir tests: EBADF tests.
11501         * tests/test-fchdir.c (main): Add more tests for EBADF.
11502
11503         dup2 tests: EBADF tests.
11504         * tests/test-dup2.c (main): Add more tests for EBADF.
11505
11506         Tests for module 'dup'.
11507         * modules/dup-tests: New file.
11508         * tests/test-dup.c: New file.
11509
11510         Tests for module 'close'.
11511         * modules/close-tests: New file.
11512         * tests/test-close.c: New file.
11513
11514 2011-09-20  Bruno Haible  <bruno@clisp.org>
11515
11516         Tests for module 'shutdown'.
11517         * modules/shutdown-tests: New file.
11518         * tests/test-shutdown.c: New file.
11519
11520         Tests for module 'setsockopt'.
11521         * modules/setsockopt-tests: New file.
11522         * tests/test-setsockopt.c: New file.
11523
11524         Tests for module 'sendto'.
11525         * modules/sendto-tests: New file.
11526         * tests/test-sendto.c: New file.
11527
11528         Tests for module 'send'.
11529         * modules/send-tests: New file.
11530         * tests/test-send.c: New file.
11531
11532         Tests for module 'recvfrom'.
11533         * modules/recvfrom-tests: New file.
11534         * tests/test-recvfrom.c: New file.
11535
11536         Tests for module 'recv'.
11537         * modules/recv-tests: New file.
11538         * tests/test-recv.c: New file.
11539
11540         Tests for module 'listen'.
11541         * modules/listen-tests: New file.
11542         * tests/test-listen.c: New file.
11543
11544         Tests for module 'getsockopt'.
11545         * modules/getsockopt-tests: New file.
11546         * tests/test-getsockopt.c: New file.
11547
11548         Tests for module 'getsockname'.
11549         * modules/getsockname-tests: New file.
11550         * tests/test-getsockname.c: New file.
11551
11552         Tests for module 'getpeername'.
11553         * modules/getpeername-tests: New file.
11554         * tests/test-getpeername.c: New file.
11555
11556         Tests for module 'connect'.
11557         * modules/connect-tests: New file.
11558         * tests/test-connect.c: New file.
11559
11560         Tests for module 'bind'.
11561         * modules/bind-tests: New file.
11562         * tests/test-bind.c: New file.
11563
11564         accept4 tests: Fix for native Windows.
11565         * tests/test-accept4.c: Include sockets.h.
11566         (main): Invoke gl_sockets_startup.
11567         * modules/accept4-tests (Depends-on): Add sockets.
11568
11569         accept tests: Fix for native Windows.
11570         * tests/test-accept.c: Include sockets.h.
11571         (main): Invoke gl_sockets_startup.
11572         * modules/accept-tests (Depends-on): Add sockets.
11573
11574 2011-09-19  Bruno Haible  <bruno@clisp.org>
11575
11576         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11577         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11578         do...while(0).
11579         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11580         Suggested by Paul Eggert.
11581
11582 2011-09-19  Bruno Haible  <bruno@clisp.org>
11583
11584         sched: Ensure pid_t is defined.
11585         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11586         not define pid_t.
11587         * lib/sched.in.h: Include <sys/types.h>.
11588         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11590
11591 2011-09-19  Bruno Haible  <bruno@clisp.org>
11592
11593         msvc-inval: Ensure the entire expansion is a single statement.
11594         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11595         of braces.
11596
11597 2011-09-19  Jim Meyering  <meyering@redhat.com>
11598
11599         tests: use printf, not echo in init.sh's warn_ function
11600         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11601         misbehave when given strings containing a backslash or starting
11602         with e.g., -n.  James Youngman suggested setting IFS.
11603
11604 2011-09-19  Eric Blake  <eblake@redhat.com>
11605
11606         futimens: enhance test
11607         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11608         closed non-negative fd.
11609
11610         date: accept 'hence' as opposite of 'ago'
11611         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11612         * tests/test-parse-datetime.c (main): Enhance test.
11613         Suggested by Jesse Wilson.
11614
11615 2011-09-19  Jim Meyering  <meyering@redhat.com>
11616
11617         getcwd: don't fail in a deep directory on a system without openat
11618         Before this change, getcwd would fail when called from a directory
11619         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11620         the non-openat implementation used "..", "../..", "../../..", etc.
11621         to access ancestor directories.  With too many, that string would
11622         be longer than PATH_MAX.
11623         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11624         using gnulib's openat replacement.
11625         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11626         we're using the replacement function.
11627
11628 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11629
11630         maint.mk: avoid warnings from perl about missing files
11631         * top/maint.mk (def_sym_regex): Ignore files listed in
11632         $(gl_other_headers_) that do not exist, say because a project
11633         does not use a corresponding module.
11634
11635 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11636
11637         stat: use pathmax.h only if needed
11638         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11639         This is better for Emacs, which does not have a mingw port and
11640         therefore can avoid the pathmax module.
11641
11642         utimens: remove dependency on dup2
11643         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11644         to work around the Linux kernel bug.
11645         * modules/utimens (Depends-on): Remove dup2.
11646
11647 2011-09-18  Bruno Haible  <bruno@clisp.org>
11648
11649         inet_ntop, inet_pton: Look for it also in libresolv.
11650         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11651         libnsl, search for it in libresolv.
11652         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11653         Needed on Solaris 7.
11654
11655 2011-09-18  Bruno Haible  <bruno@clisp.org>
11656
11657         accept, accept4 tests: Avoid link error on Solaris.
11658         * modules/accept-tests (Makefile.am): Link test-accept against
11659         $(LIBSOCKET).
11660         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11661         $(LIBSOCKET).
11662
11663         accept4: Avoid link error on Solaris.
11664         * modules/accept4 (Link): New section.
11665
11666         socket functions: Avoid link errors on Solaris.
11667         * modules/accept (Depends-on): Add socketlib.
11668         (Link): New section.
11669         * modules/bind (Depends-on): Add socketlib.
11670         (Link): New section.
11671         * modules/connect (Depends-on): Add socketlib.
11672         (Link): New section.
11673         * modules/getpeername (Depends-on): Add socketlib.
11674         (Link): New section.
11675         * modules/getsockname (Depends-on): Add socketlib.
11676         (Link): New section.
11677         * modules/getsockopt (Depends-on): Add socketlib.
11678         (Link): New section.
11679         * modules/listen (Depends-on): Add socketlib.
11680         (Link): New section.
11681         * modules/recv (Depends-on): Add socketlib.
11682         (Link): New section.
11683         * modules/recvfrom (Depends-on): Add socketlib.
11684         (Link): New section.
11685         * modules/send (Depends-on): Add socketlib.
11686         (Link): New section.
11687         * modules/sendto (Depends-on): Add socketlib.
11688         (Link): New section.
11689         * modules/setsockopt (Depends-on): Add socketlib.
11690         (Link): New section.
11691         * modules/shutdown (Depends-on): Add socketlib.
11692         (Link): New section.
11693         * modules/socket (Depends-on): Add socketlib.
11694         (Link): New section.
11695
11696 2011-09-18  Bruno Haible  <bruno@clisp.org>
11697
11698         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11699         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11700         than 5 seconds.
11701         * modules/ptsname-tests (configure.ac): Test for alarm.
11702
11703 2011-09-18  Bruno Haible  <bruno@clisp.org>
11704
11705         posix_spawn_file_actions_add*: Fix module dependencies.
11706         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11707         posix_spawn_file_actions_init.
11708         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11709         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11710
11711 2011-09-18  Bruno Haible  <bruno@clisp.org>
11712
11713         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11714         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11715         * tests/test-renameat.c (main): Likewise.
11716
11717 2011-09-18  Bruno Haible  <bruno@clisp.org>
11718
11719         Tests for module 'accept4'.
11720         * modules/accept4-tests: New file.
11721         * tests/test-accept4.c: New file.
11722
11723 2011-09-18  Bruno Haible  <bruno@clisp.org>
11724
11725         Tests for module 'accept'.
11726         * modules/accept-tests: New file.
11727         * tests/test-accept.c: New file.
11728
11729 2011-09-18  Bruno Haible  <bruno@clisp.org>
11730
11731         dup2: Support for MSVC.
11732         * lib/dup2.c: Include msvc-inval.h.
11733         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11734         _get_osfhandle calls.
11735         * modules/dup2 (Depends-on): Add msvc-inval.
11736         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11737
11738         New module 'msvc-inval'.
11739         * lib/msvc-inval.h: New file.
11740         * lib/msvc-inval.c: New file.
11741         * m4/msvc-inval.m4: New file.
11742         * modules/msvc-inval: New file.
11743
11744 2011-09-17  Bruno Haible  <bruno@clisp.org>
11745
11746         Tests for module 'pclose'.
11747         * modules/pclose-tests: New file.
11748
11749         New module 'pclose'.
11750         * lib/stdio.in.h (pclose): New declaration.
11751         * lib/pclose.c: New file.
11752         * m4/pclose.m4: New file.
11753         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11754         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11755         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11756         * modules/pclose: New file.
11757         * modules/popen-tests (Depends-on): Add pclose.
11758         * modules/popen-safer-tests (Depends-on): Likewise.
11759         * doc/posix-functions/pclose.texi: Mention the new module.
11760
11761 2011-09-17  Bruno Haible  <bruno@clisp.org>
11762
11763         popen: Support for MSVC.
11764         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11765         * lib/popen.c (popen): Provide alternate definition for native Windows.
11766         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11768         * modules/popen (Depends-on, configure.ac): Update condition.
11769         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11770         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11771         fixed.
11772
11773 2011-09-17  Bruno Haible  <bruno@clisp.org>
11774
11775         isnanl, isnand, isnanf: Work around MSVC bug.
11776         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11777
11778 2011-09-17  Bruno Haible  <bruno@clisp.org>
11779
11780         sys_socket tests: Fix recent mistake.
11781         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11782
11783 2011-09-17  Bruno Haible  <bruno@clisp.org>
11784
11785         putenv: Support for MSVC.
11786         * modules/putenv (Depends-on): Add environ.
11787         * lib/putenv.c (environ): Disable declaration.
11788         * lib/unistd.in.h: Update comment.
11789
11790 2011-09-17  Bruno Haible  <bruno@clisp.org>
11791
11792         math: Avoid macro redefinition warnings on MSVC.
11793         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11794         Undefine before redefining.
11795
11796 2011-09-17  Bruno Haible  <bruno@clisp.org>
11797
11798         doc: Mention functions which are declared as macros.
11799         * doc/posix-functions/*[fl].texi: Mention that some functions are
11800         defined as macros with arguments only.
11801
11802 2011-09-17  Bruno Haible  <bruno@clisp.org>
11803
11804         Add dependencies to new dirent related modules.
11805         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11806         * modules/fts (Depends-on): Likewise.
11807         * modules/glob (Depends-on): Likewise.
11808         * modules/savedir (Depends-on): Likewise.
11809         * modules/scandir (Depends-on): Likewise.
11810         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11811         * modules/fdopendir (Depends-on): Add opendir.
11812
11813 2011-09-17  Bruno Haible  <bruno@clisp.org>
11814
11815         inet_pton: Support for MSVC on Windows Vista or newer.
11816         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11817         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11818         HAVE_DECL_INET_PTON is defined.
11819         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11820         On platforms with <winsock2.h>, test whether inet_pton is declared in
11821         <ws2tcpip.h>. If so, arrange to replace it.
11822         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11823         REPLACE_INET_PTON.
11824         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11825         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11826         (Depends-on, configure.ac): Update condition.
11827         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11828
11829 2011-09-17  Bruno Haible  <bruno@clisp.org>
11830
11831         inet_ntop: Support for MSVC on Windows Vista or newer.
11832         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11833         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11834         HAVE_DECL_INET_NTOP is defined.
11835         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11836         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11837         <ws2tcpip.h>. If so, arrange to replace it.
11838         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11839         REPLACE_INET_NTOP.
11840         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11841         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11842         (Depends-on, configure.ac): Update condition.
11843         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11844
11845 2011-09-16  Eric Blake  <eblake@redhat.com>
11846
11847         test-fsync: yet another enhancement
11848         * tests/test-fsync.c (main): Also test behavior on read-only text
11849         file.
11850
11851 2011-09-16  Bruno Haible  <bruno@clisp.org>
11852
11853         Enhance fsync, fdatasync tests.
11854         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11855         * tests/test-fdatasync.c (main): Likewise.
11856
11857 2011-09-16  Bruno Haible  <bruno@clisp.org>
11858
11859         Support for MSVC compiler: Ensure mode_t gets defined.
11860         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11861         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11863         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11864         * tests/test-fcntl-h.c: Check that mode_t is defined.
11865         * tests/test-sys_stat.c: Likewise.
11866         * tests/test-sys_types.c: Likewise.
11867         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11868         * doc/posix-headers/sys_stat.texi: Likewise.
11869         * doc/posix-headers/sys_types.texi: Likewise.
11870
11871 2011-09-16  Bruno Haible  <bruno@clisp.org>
11872
11873         sys_stat: Support for MSVC.
11874         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11875         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11876         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11877         MSVC.
11878
11879 2011-09-16  Bruno Haible  <bruno@clisp.org>
11880
11881         Support for MSVC compiler: Ensure off_t gets defined.
11882         * lib/unistd.in.h: Include <sys/types.h>.
11883         * tests/test-fcntl-h.c: Check that off_t is defined.
11884         * tests/test-sys_stat.c: Likewise.
11885         * tests/test-sys_types.c: Likewise.
11886
11887 2011-09-16  Eric Blake  <eblake@redhat.com>
11888
11889         fdatasync: port to Solaris
11890         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11891         * modules/fdatasync (Link): Document it.
11892         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11893
11894         fdatasync: port to MacOS X 10.7
11895         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11896         declared.
11897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11898         * modules/unistd (Makefile.am): Substitute it.
11899         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11900         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11901
11902         fdatasync: minor improvements
11903         * modules/fdatasync (Depends-on): Add condition for fsync.
11904         * lib/fdatasync.c (fdatasync): Add comment.
11905         * tests/test-unistd-c++.cc: Test fdatasync.
11906
11907         unistd: update refs to newer POSIX
11908         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11909         Suggested by Bruno Haible.
11910
11911         fdatasync: new module
11912         * modules/fsync (Description): Document difference to fdatasync.
11913         * modules/fdatasync: New module.
11914         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11915         * lib/fdatasync.c (fdatasync): Likewise.
11916         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11917         defaults.
11918         * modules/unistd (Makefile.am): Set witnesses.
11919         * lib/unistd.in.h (fdatasync): Declare.
11920         * MODULES.html.sh: Document it.
11921         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11922         * modules/fdatasync-tests: New test.
11923         * tests/test-fdatasync.c: Likewise.
11924
11925 2011-09-16  Eric Blake  <eblake@redhat.com>
11926
11927         test-fsync: enhance tests
11928         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11929         * tests/test-fsync.c (main): Enhance test.
11930
11931 2011-09-15  Bruno Haible  <bruno@clisp.org>
11932
11933         Support for MSVC compiler: Ensure ssize_t gets defined.
11934         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11935         * doc/posix-headers/stdio.texi: Likewise.
11936         * modules/stdio (Depends-on): Add ssize_t.
11937         * modules/sys_socket (Depends-on): Likewise.
11938         * modules/sys_types (Depends-on): Likewise.
11939         * modules/sys_uio (Depends-on): Likewise.
11940         * modules/unistd (Depends-on): Likewise.
11941         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11942         * tests/test-sys_types.c: Check that ssize_t is defined.
11943
11944 2011-09-14  Bruno Haible  <bruno@clisp.org>
11945
11946         Avoid using #, the m4 comment starter character, near brackets.
11947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11948         delimiter character in sed expressions.
11949         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11950         Suggested by Eric Blake.
11951
11952         Properly quote AC_CHECK_DECLS' 4th argument.
11953         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11954         argument.
11955         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11956         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11958         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11959         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11960         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11962         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11963         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11964         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11965         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11966         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11967         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11968         * m4/isinf.m4 (gl_ISINF): Likewise.
11969         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11970         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11972         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11974         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11975         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11976         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11977         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11978         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11979         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11980         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11982         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11984         Reported by Eric Blake.
11985
11986         Properly quote AC_CHECK_DECL's 4th argument.
11987         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11988         argument.
11989         * m4/argp.m4 (gl_ARGP): Likewise.
11990         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11991         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11992         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11993         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11994         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11995         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11996         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11997         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11999         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12000         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12001         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12002         Reported by Eric Blake.
12003
12004 2011-09-14  Eric Blake  <eblake@redhat.com>
12005
12006         opendir: avoid compile warning
12007         * lib/opendir.c (includes): Always include errno.h.
12008         Reported by Tatsuro MATSUOKA.
12009
12010 2011-09-14  Jim Meyering  <meyering@redhat.com>
12011
12012         maint.mk: sc_tight_scope: propagate failure from sub-make
12013         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12014         Reported by Martin von Gagern.
12015
12016 2011-09-13  Bruno Haible  <bruno@clisp.org>
12017
12018         tempname: Support for MSVC.
12019         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12020         MSVC.
12021         * modules/tempname (Depends-on): Add fcntl-h.
12022
12023 2011-09-13  Bruno Haible  <bruno@clisp.org>
12024
12025         sys_time: Support for MSVC.
12026         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12027         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12028         include <winsock2.h>.
12029         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12030         function declarations that collide with POSIX.
12031         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12032         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12033
12034 2011-09-13  Bruno Haible  <bruno@clisp.org>
12035
12036         stat: Support for MSVC.
12037         * lib/stat.c: Include pathmax.h.
12038         * modules/stat (Depends-on): Add pathmax.
12039
12040         pathmax: Support for native Windows.
12041         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12042
12043 2011-09-12  Bruno Haible  <bruno@clisp.org>
12044
12045         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12046         * lib/dirent.in.h (struct dirent): New type.
12047         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12048         DT_WHT): New macros.
12049         (DIR): New type.
12050         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12051         (readdir, rewinddir): New declarations.
12052         * lib/dirent-private.h: New file.
12053         * lib/opendir.c: New file.
12054         * lib/readdir.c: New file.
12055         * lib/rewinddir.c: New file.
12056         * lib/closedir.c: New file.
12057         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12058         * m4/opendir.m4: New file.
12059         * m4/readdir.m4: New file.
12060         * m4/rewinddir.m4: New file.
12061         * m4/closedir.m4: New file.
12062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12063         REPLACE_CLOSEDIR here.
12064         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12065         readdir, rewinddir are declared.
12066         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12067         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12068         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12069         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12070         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12071         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12072         * modules/opendir: New file.
12073         * modules/readdir: New file.
12074         * modules/rewinddir: New file.
12075         * modules/closedir: New file.
12076         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12077         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12078         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12079         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12080         * NEWS: Mention the 'fchdir' change.
12081
12082 2011-09-11  Bruno Haible  <bruno@clisp.org>
12083
12084         asm-underscore.m4: Support for MSVC.
12085         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12086         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12087
12088 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12089
12090         Doc about crypt functions.
12091         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12092         needing for _GNU_SOURCE to get crypt.
12093         * doc/posix-functions/encrypt.texi: Likewise.
12094         * doc/posix-functions/setkey.texi: Likewise.
12095
12096 2011-09-11  Bruno Haible  <bruno@clisp.org>
12097
12098         doc: Update regarding MSVC 9.
12099         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12100         tested".
12101         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12102         * doc/posix-headers/*.texi: Likewise.
12103         * doc/pastposix-functions/*.texi: Likewise.
12104         * doc/glibc-functions/*.texi: Likewise.
12105         * doc/glibc-headers/*.texi: Likewise.
12106
12107 2011-09-11  Bruno Haible  <bruno@clisp.org>
12108
12109         unistd et al.: Don't assume <unistd.h> exists.
12110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12111         does not exist.
12112         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12113         exist. But include <stdlib.h>.
12114         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12115         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12116         symlink() does not exist.
12117         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12118         include <io.h> instead.
12119         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12121         include <direct.h> instead.
12122         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12123         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12124         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12125         <io.h> instead.
12126         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12127         correctly if the system does not have hard links.
12128         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12129         <direct.h> instead.
12130         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12131         it when looking for function declarations.
12132         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12133         <direct.h> and <io.h> instead.
12134         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12135
12136 2011-09-11  Bruno Haible  <bruno@clisp.org>
12137
12138         strcase: Support for MSVC.
12139         * modules/strcase (Status, Notice): Remove obsoletion mark.
12140         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12141         * doc/posix-functions/strncasecmp.texi: Likewise.
12142
12143         strings: Don't assume <strings.h> exists.
12144         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12145         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12146         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12147         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12148
12149 2011-09-11  Bruno Haible  <bruno@clisp.org>
12150
12151         dirent: Don't assume <dirent.h> exists.
12152         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12153         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12154         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12155         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12156
12157 2011-09-11  Bruno Haible  <bruno@clisp.org>
12158
12159         Fix wint_t on MSVC.
12160         * lib/wchar.in.h (wint_t): On MSVC, override it.
12161         * lib/wctype.in.h (wint_t): Likewise.
12162         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12163         MSVC.
12164         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12165         * doc/posix-headers/wctype.texi: Likewise.
12166
12167 2011-09-11  Bruno Haible  <bruno@clisp.org>
12168
12169         sys_types: Fix typo.
12170         * lib/sys_types.in.h: Fix typo in comment.
12171         Reported by Paul Eggert.
12172
12173         Support for MSVC compiler: Ensure size_t gets defined.
12174         * modules/strings (Depends-on): Add 'sys_types'.
12175         * modules/sys_uio (Depends-on): Likewise.
12176         * lib/sys_uio.in.h: Update comment.
12177
12178         C++ tests for module 'sys_types'.
12179         * modules/sys_types-c++-tests: New file.
12180         * tests/test-sys_types-c++.cc: New file.
12181
12182         Tests for module 'sys_types'.
12183         * modules/sys_types-tests: New file.
12184         * tests/test-sys_types.c: New file.
12185
12186         New module 'sys_types'.
12187         * lib/sys_types.in.h: New file.
12188         * m4/sys_types_h.m4: New file.
12189         * modules/sys_types: New file.
12190         * doc/posix-headers/sys_types.texi: Mention the new module and the
12191         size_t problem on MSVC 9.
12192
12193 2011-09-11  Bruno Haible  <bruno@clisp.org>
12194
12195         Support for MSVC compiler: Avoid division by a literal 0.
12196         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12198         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12199         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12200         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12201         * tests/infinity.h: New file.
12202         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12203         on MSVC.
12204         * tests/test-ceilf1.c: Include infinity.h.
12205         (main): Use Infinityf.
12206         * tests/test-ceil1.c: Include infinity.h.
12207         (main): Use Infinityd.
12208         * tests/test-ceill.c: Include infinity.h.
12209         (main): Use Infinityl.
12210         * tests/test-dprintf-posix.c: Include infinity.h.
12211         (test_function): Use Infinityd.
12212         * tests/test-floorf1.c: Include infinity.h.
12213         (main): Use Infinityf.
12214         * tests/test-floor1.c: Include infinity.h.
12215         (main): Use Infinityd.
12216         * tests/test-floorl.c: Include infinity.h.
12217         (main): Use Infinityl.
12218         * tests/test-fprintf-posix.c: Include infinity.h.
12219         (test_function): Use Infinityd.
12220         * tests/test-frexp.c: Include infinity.h.
12221         (main): Use Infinityd.
12222         * tests/test-frexpl.c: Include infinity.h.
12223         (main): Use Infinityl.
12224         * tests/test-isfinite.c: Include infinity.h.
12225         (test_isfinitef): Use Infinityf.
12226         (test_isfinited): Use Infinityd.
12227         (test_isfinitel): Use Infinityl.
12228         * tests/test-isinf.c: Include infinity.h.
12229         (test_isinff): Use Infinityf.
12230         (test_isinfd): Use Infinityd.
12231         (test_isinfl): Use Infinityl.
12232         * tests/test-isnan.c: Include infinity.h.
12233         (test_float): Use Infinityf.
12234         (test_double): Use Infinityd.
12235         (test_long_double): Use Infinityl.
12236         * tests/test-isnanf.h: Include infinity.h.
12237         (main): Use Infinityf.
12238         * tests/test-isnand.h: Include infinity.h.
12239         (main): Use Infinityd.
12240         * tests/test-isnanl.h: Include infinity.h.
12241         (main): Use Infinityl.
12242         * tests/test-ldexpl.c: Include infinity.h.
12243         (main): Use Infinityl.
12244         * tests/test-printf-posix.h: Include infinity.h.
12245         (test_function): Use Infinityd.
12246         * tests/test-roundf1.c: Include infinity.h.
12247         (main): Use Infinityf.
12248         * tests/test-round1.c: Include infinity.h.
12249         (main): Use Infinityd.
12250         * tests/test-roundl.c: Include infinity.h.
12251         (main): Use Infinityl.
12252         * tests/test-signbit.c: Include infinity.h.
12253         (test_signbitf): Use Infinityf.
12254         (test_signbitd): Use Infinityd.
12255         (test_signbitl): Use Infinityl.
12256         * tests/test-snprintf-posix.h: Include infinity.h.
12257         (test_function): Use Infinityd, Infinityl.
12258         * tests/test-sprintf-posix.h: Include infinity.h.
12259         (test_function): Use Infinityd, Infinityl.
12260         * tests/test-truncf1.c: Include infinity.h.
12261         (main): Use Infinityf.
12262         * tests/test-trunc1.c: Include infinity.h.
12263         (main): Use Infinityd.
12264         * tests/test-truncl.c: Include infinity.h.
12265         (main): Use Infinityl.
12266         * tests/test-vasnprintf-posix.c: Include infinity.h.
12267         (test_function): Use Infinityd, Infinityl.
12268         * tests/test-vasprintf-posix.c: Include infinity.h.
12269         (test_function): Use Infinityd, Infinityl.
12270         * modules/ceilf-tests (Files): Add tests/infinity.h.
12271         * modules/ceil-tests (Files): Likewise.
12272         * modules/ceill-tests (Files): Likewise.
12273         * modules/dprintf-posix-tests (Files): Likewise.
12274         * modules/floorf-tests (Files): Likewise.
12275         * modules/floor-tests (Files): Likewise.
12276         * modules/floorl-tests (Files): Likewise.
12277         * modules/fprintf-posix-tests (Files): Likewise.
12278         * modules/frexp-tests (Files): Likewise.
12279         * modules/frexp-nolibm-tests (Files): Likewise.
12280         * modules/frexpl-tests (Files): Likewise.
12281         * modules/frexpl-nolibm-tests (Files): Likewise.
12282         * modules/isfinite-tests (Files): Likewise.
12283         * modules/isinf-tests (Files): Likewise.
12284         * modules/isnan-tests (Files): Likewise.
12285         * modules/isnanf-tests (Files): Likewise.
12286         * modules/isnanf-nolibm-tests (Files): Likewise.
12287         * modules/isnand-tests (Files): Likewise.
12288         * modules/isnand-nolibm-tests (Files): Likewise.
12289         * modules/isnanl-tests (Files): Likewise.
12290         * modules/isnanl-nolibm-tests (Files): Likewise.
12291         * modules/ldexpl-tests (Files): Likewise.
12292         * modules/printf-posix-tests (Files): Likewise.
12293         * modules/roundf-tests (Files): Likewise.
12294         * modules/round-tests (Files): Likewise.
12295         * modules/roundl-tests (Files): Likewise.
12296         * modules/signbit-tests (Files): Likewise.
12297         * modules/snprintf-posix-tests (Files): Likewise.
12298         * modules/sprintf-posix-tests (Files): Likewise.
12299         * modules/truncf-tests (Files): Likewise.
12300         * modules/trunc-tests (Files): Likewise.
12301         * modules/truncl-tests (Files): Likewise.
12302         * modules/vasnprintf-posix-tests (Files): Likewise.
12303         * modules/vasprintf-posix-tests (Files): Likewise.
12304         * modules/vdprintf-posix-tests (Files): Likewise.
12305         * modules/vfprintf-posix-tests (Files): Likewise.
12306         * modules/vprintf-posix-tests (Files): Likewise.
12307         * modules/vsnprintf-posix-tests (Files): Likewise.
12308         * modules/vsprintf-posix-tests (Files): Likewise.
12309         * modules/xprintf-posix-tests (Files): Likewise.
12310
12311 2011-09-11  Bruno Haible  <bruno@clisp.org>
12312
12313         Ensure pid_t gets defined.
12314         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12315         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12316         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12317         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12318         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12319         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12320         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12322         * tests/test-fcntl-h.c: Check that pid_t is defined.
12323         * tests/test-sched.c: Likewise.
12324         * tests/test-termios.c: Likewise.
12325         * tests/test-time.c: Likewise.
12326         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12327         * doc/posix-headers/signal.texi: Likewise.
12328         * doc/posix-headers/sys_types.texi: Likewise.
12329         * doc/posix-headers/time.texi: Likewise.
12330
12331 2011-09-11  Bruno Haible  <bruno@clisp.org>
12332
12333         acl: Fix compilation on Solaris 10 (older version).
12334         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12335         of ACE_EVERYONE.
12336         * lib/set-mode-acl.c (qset_acl): Likewise.
12337         Reported by Christian Jullien <eligis@orange.fr>.
12338
12339 2011-09-10  Bruno Haible  <bruno@clisp.org>
12340
12341         iconv, unsetenv: Add support for MSVC compiler.
12342         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12343         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12344
12345 2011-09-10  Bruno Haible  <bruno@clisp.org>
12346
12347         *printf: Add support for MSVC compiler.
12348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12349         handles the exception caused by the %n directive. When cross-compiling,
12350         guess no on native Windows.
12351         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12352         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12353         emulate it through vsnprintf.
12354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12355         * doc/posix-functions/dprintf.texi: Update documentation regarding
12356         MSVC 9.
12357         * doc/posix-functions/fprintf.texi: Likewise.
12358         * doc/posix-functions/printf.texi: Likewise.
12359         * doc/posix-functions/snprintf.texi: Likewise.
12360         * doc/posix-functions/sprintf.texi: Likewise.
12361         * doc/posix-functions/swprintf.texi: Likewise.
12362         * doc/posix-functions/vdprintf.texi: Likewise.
12363         * doc/posix-functions/vfprintf.texi: Likewise.
12364         * doc/posix-functions/vprintf.texi: Likewise.
12365         * doc/posix-functions/vsnprintf.texi: Likewise.
12366         * doc/posix-functions/vsprintf.texi: Likewise.
12367         * doc/glibc-functions/asprintf.texi: Likewise.
12368         * doc/glibc-functions/obstack_printf.texi: Likewise.
12369         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12370         * doc/glibc-functions/vasprintf.texi: Likewise.
12371
12372 2011-09-10  Bruno Haible  <bruno@clisp.org>
12373
12374         nocrash: Add support for native Windows.
12375         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12376
12377 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12378             Bruno Haible  <bruno@clisp.org>
12379
12380         absolute-header, include-next: Add support for MSVC compiler.
12381         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12382         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12383         directory separator in #line directives.
12384         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12385         recognize also backslash as directory separator in #line directives.
12386
12387 2011-09-08  Jim Meyering  <meyering@redhat.com>
12388
12389         maint.mk: mark the post-release commit log with "maint: " prefix
12390         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12391         one-line commit-log summary.
12392
12393 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12394             Bruno Haible  <bruno@clisp.org>
12395
12396         Doc about crypt functions.
12397         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12398         systems.
12399         * doc/posix-functions/encrypt.texi: Likewise.
12400         * doc/posix-functions/setkey.texi: Likewise.
12401
12402 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12403
12404         * lib/gc.h: Fix copyright header.
12405
12406 2011-09-07  Bruno Haible  <bruno@clisp.org>
12407
12408         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12410         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12411
12412 2011-09-07  Bruno Haible  <bruno@clisp.org>
12413
12414         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12415         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12416         * lib/freopen.c: Likewise.
12417         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12418         * lib/lstat.c: Likewise.
12419         * lib/stat.c: Likewise.
12420         * lib/open.c: Use different syntax for include of <fcntl.h>.
12421         * lib/openat.c: Include fcntl.h again, explicitly.
12422
12423 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12424
12425         parse-datetime: document the newly accepted format
12426         * doc/parse-datetime.texi (Combined date and time of day items):
12427         New section.
12428
12429 2011-09-06  Bruno Haible  <bruno@clisp.org>
12430
12431         acl: Fix a test failure on newer Solaris 10 with ZFS.
12432         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12433         ENOSYS as no ACL.
12434         Reported by Jim Meyering.
12435
12436 2011-09-06  Bruno Haible  <bruno@clisp.org>
12437
12438         acl: Update for AIX >= 5.3 with NFS.
12439         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12440         ENOSYS as no ACL.
12441
12442         acl: Fix a test failure on AIX >= 5.3 with NFS.
12443         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12444         as no ACL.
12445
12446 2011-09-06  Bruno Haible  <bruno@clisp.org>
12447
12448         acl: Fix a test failure on IRIX 6.5 with NFS.
12449         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12450         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12451         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12452         * lib/copy-acl.c (qcopy_acl): Likewise.
12453
12454 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12455
12456         openat: port to AIX 7.1 with large files
12457         AIX 7.1 does a "#define openat open64at" if large files are in use,
12458         so we can't simply #undef openat.  Use the orig_openat trick (similar
12459         to orig_open in lib/open.c) to work around the problem.  Problem
12460         reported by Kevin Brott for GNU tar, in the thread containing
12461         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12462         * lib/openat.c (__need_system_fcntl_h): Define first.
12463         Include <fcntl.h> and <sys/types.h> before undefining.
12464         (orig_openat) [HAVE_OPENAT]: New inline function.
12465         (openat) [HAVE_OPENAT]: Do not undef.
12466         (rpl_openat): Use orig_openat, not openat.
12467
12468 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12469             Bruno Haible  <bruno@clisp.org>
12470
12471         acl: Avoid errors on NonStop Kernel.
12472         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12473         ENOTSUP errors.
12474
12475 2011-09-05  Bruno Haible  <bruno@clisp.org>
12476
12477         acl: Clean up Solaris code.
12478         * lib/acl-internal.h: Remove no-op #if.
12479         * lib/file-has-acl.c: Likewise.
12480         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12481         * lib/copy-acl.c (qcopy_acl): Likewise.
12482
12483 2011-09-05  Bruno Haible  <bruno@clisp.org>
12484
12485         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12486         binaries built on the original Solaris 10.
12487         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12488         trivial.
12489
12490 2011-09-05  Bruno Haible  <bruno@clisp.org>
12491
12492         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12493         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12494         10.
12495         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12496         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12497         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12498         instead of acl_get, facl_get, acl_set, facl_set.
12499
12500 2011-09-05  Bruno Haible  <bruno@clisp.org>
12501
12502         copy-file: Try unit tests on more file systems.
12503         * tests/test-copy-file-1.sh: New file.
12504         * tests/test-copy-file-2.sh: New file.
12505         * modules/copy-file-tests (Files): Add them.
12506         (Makefile.am): Add them to TESTS.
12507
12508         acl: Try unit tests on more file systems.
12509         * tests/test-file-has-acl-1.sh: New file.
12510         * tests/test-file-has-acl-2.sh: New file.
12511         * tests/test-set-mode-acl-1.sh: New file.
12512         * tests/test-set-mode-acl-2.sh: New file.
12513         * tests/test-copy-acl-1.sh: New file.
12514         * tests/test-copy-acl-2.sh: New file.
12515         * modules/acl-tests (Files): Add them.
12516         (Makefile.am): Add them to TESTS.
12517
12518 2011-09-04  Bruno Haible  <bruno@clisp.org>
12519
12520         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12521         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12522         10.
12523         (OLD_ALLOW, OLD_DENY): New macros.
12524         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12525         ACE_ACCESS_ALLOWED_ACE_TYPE.
12526         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12527         ACE_ACCESS_DENIED_ACE_TYPE.
12528         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12529         (NEW_ACE_EXECUTE): Fix value.
12530         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12531         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12532         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12533         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12534         NEW_ACE_SYNCHRONIZE): New macros.
12535         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12536         instead of acl_fromtext, acl_set, facl_set.
12537         Fixes a coreutils/tests/cp/perm failure.
12538
12539 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12540
12541         openat: test for fstatat (..., 0) bug
12542         Further testing with tar suggests that fstatat (..., 0)
12543         does not work in general, on AIX 7.1; see
12544         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12545         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12546         replacement fstatat (which is what older AIX releases were using
12547         anyway).
12548         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12549         use is now changed to orig_fstatat.  This was probably the right
12550         thing to do anyway.
12551         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12552         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12553         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12554         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12555         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12556         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12557         if the bug is found.
12558
12559         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12560         This tests for another fstatat bug on AIX 7.1:
12561         fstatat (AT_FDCWD, ..., 0) does not work.  See
12562         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12563         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12564         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12565         (rpl_fstatat): Adjust so that it works around either (or both)
12566         bugs if present.
12567         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12568
12569 2011-09-03  Karl Berry  <karl@gnu.org>
12570
12571         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12572         in index entries.
12573
12574 2011-09-02  Bruno Haible  <bruno@clisp.org>
12575
12576         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12577         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12578         values of AR, ARFLAGS, RANLIB.
12579         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12580
12581 2011-09-02  Bruno Haible  <bruno@clisp.org>
12582
12583         Find 'ar' program that fits with --host argument.
12584         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12585
12586 2011-09-02  Bruno Haible  <bruno@clisp.org>
12587
12588         tests: init.sh: Support any non-GNU diff.
12589         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12590         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12591         Solaris 8.
12592
12593 2011-09-02  Bruno Haible  <bruno@clisp.org>
12594
12595         tests: init.sh: work also with any non-GNU diff that supports -u
12596         * tests/init.sh: Relax check for diff -u support.
12597         Rather than checking for GNU diff via --version, simply check
12598         for support for -u itself.  Useful at least on OpenBSD 4.9,
12599         AIX 7.1, IRIX 6.5, and Solaris 10.
12600
12601 2011-09-01  Bruno Haible  <bruno@clisp.org>
12602
12603         strtoimax, strtoumax: Document problem on HP-UX 11.
12604         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12605         * doc/posix-functions/strtoumax.texi: Likewise.
12606
12607 2011-09-01  Bruno Haible  <bruno@clisp.org>
12608
12609         strtoumax: Avoid link error on OSF/1 with DTK cc.
12610         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12611         defined as a function.
12612         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12613         strtoumax is defined, not whether it is declared.
12614
12615 2011-09-01  Bruno Haible  <bruno@clisp.org>
12616
12617         strtoimax: Avoid link error on OSF/1 with DTK cc.
12618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12619         defined as a function.
12620         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12621         strtoimax is defined, not whether it is declared.
12622
12623 2011-09-01  Bruno Haible  <bruno@clisp.org>
12624
12625         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12626         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12627         as a function.
12628         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12629         whether it is declared.
12630
12631 2011-09-01  Bruno Haible  <bruno@clisp.org>
12632
12633         imaxabs: Avoid link error on OSF/1 with DTK cc.
12634         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12635         as a function.
12636         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12637         whether it is declared.
12638
12639 2011-09-01  Bruno Haible  <bruno@clisp.org>
12640
12641         Tests for module 'strtoumax'.
12642         * modules/strtoumax-tests: New file.
12643         * tests/test-strtoumax.c: New file.
12644
12645         Tests for module 'strtoimax'.
12646         * modules/strtoimax-tests: New file.
12647         * tests/test-strtoimax.c: New file.
12648
12649         Tests for module 'imaxdiv'.
12650         * modules/imaxdiv-tests: New file.
12651         * tests/test-imaxdiv.c: New file.
12652
12653         Tests for module 'imaxabs'.
12654         * modules/imaxabs-tests: New file.
12655         * tests/test-imaxabs.c: New file.
12656
12657 2011-09-01  Bruno Haible  <bruno@clisp.org>
12658
12659         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12660         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12661         pthread_create.
12662
12663 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12664
12665         openat: work around AIX 7.1 fstatat issue
12666         This should fix the problem that was not properly fixed
12667         in the previous change, dated 2011-08-30.
12668         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12669         __need_system_stat_h defined.
12670         (orig_fstatat) [HAVE_FSTATAT]: New function.
12671         (rpl_fstatat): Go back to the old way of doing things,
12672         except call orig_fstatat instead of fstatat.
12673         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12674         Remove unnecessary check whether fstatat fills in st_size etc.
12675
12676 2011-09-01  Bruno Haible  <bruno@clisp.org>
12677
12678         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12679         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12680         just include the system's header.
12681
12682 2011-08-31  Jim Meyering  <meyering@redhat.com>
12683
12684         tests: avoid spurious assertion failure in test-float.c on ppc64
12685         * tests/test-float.c (test_long_double): Comment out an assertion,
12686         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12687         with gcc-4.4.4.
12688
12689         maint: indent with spaces, not TABs
12690         I need to get in the habit of running gnulib's "make check".
12691         Both of these would have been caught.
12692         * m4/largefile.m4: Indent with spaces, not TABs.
12693         * lib/parse-datetime.y (iso_8601_time): Likewise.
12694         Spotted by Pádraig Brady.
12695
12696         test-parse-datetime.c: accommodate a relatively strict gcc warning
12697         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12698         to avoid a warning from gcc's -Werror=missing-declarations.
12699         Insert a few spaces-before-funcall-parenthesis.
12700
12701 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12702
12703         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12704         The parser now accepts ISO 8601 date-time strings with "T" as the
12705         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12706         with a space between the date and time strings.  Now it also parses
12707         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12708         variants like "2004-02-29T16:21:42.333-07:00"
12709         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12710         of day representation using the 'T' separator character.
12711         * doc/parse-datetime.texi (General date syntax): replace use of
12712         deprecated --iso-8601 option with --rfc-3339 in example of date
12713         command output formats that can be parsed.
12714         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12715         lib/parse-datetime.y.
12716         (gmt_offset): New function.
12717         (main): Add additional test cases to validate ISO8601 extended
12718         date and time of day parsing.
12719
12720 2011-08-31  Bruno Haible  <bruno@clisp.org>
12721
12722         freopen: Documentation.
12723         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12724         name.
12725         Reported by Claudio Bley <claudio.bley@gmail.com>.
12726
12727 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12728
12729         freopen: Don't crash if the filename argument is NULL.
12730         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12731         NULL.
12732
12733 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12734
12735         openat: work around AIX 7.1 fstatat bug
12736         Problem reported by Kevin Brott for GNU tar, in the thread containing
12737         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12738         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12739         FSTATAT_ST_SIZE_ETC_BROKEN.
12740         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12741         rpl_fstatat.
12742         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12743         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12744         AC_CHECK_FUNCS_ONCE for fstatat.
12745         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12746         fchmodat, mkdirat, openat and unlinkat.
12747
12748 2011-08-30  Bruno Haible  <bruno@clisp.org>
12749
12750         Avoid endless recursions if config.h includes some header files.
12751         * lib/fopen.c (__need_FILE): Define already before including config.h.
12752         * lib/freopen.c (__need_FILE): Likewise.
12753         * lib/open.c (__need_system_fcntl_h): Likewise.
12754         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12755         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12756         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12757
12758 2011-08-25  Karl Berry  <karl@gnu.org>
12759
12760         * config/srclist.txt (ylwrap): new try.
12761         * build-aux/ylwrap: new file.
12762
12763 2011-08-23  Bruno Haible  <bruno@clisp.org>
12764
12765         tmpdir: Use a good default directory on native Windows.
12766         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12767         (P_tmpdir): Default to _P_tmpdir on native Windows.
12768         (path_search): On native Windows, try the value returned by GetTempPath
12769         before trying P_tmpdir.
12770         * modules/tmpdir (Depends-on): Add pathmax.
12771         Suggested by John Darrington <john@darrington.wattle.id.au>.
12772
12773 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12774
12775         doc: fix typo in README-release
12776         * top/README-release: Capitalize first word of a sentence.
12777
12778 2011-08-19  Jim Meyering  <meyering@redhat.com>
12779
12780         fts: do not exhaust memory when processing million-entry directories
12781         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12782         directory would require about 256*N bytes of memory.  Thus, it was
12783         easy to construct a directory too large to be processed by any of
12784         those tools.  With this change, fts' maximum memory utilization is
12785         now limited to around 30MB.
12786         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12787         (fts_read): When we've processed the final entry (i.e., when
12788         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12789         using the parent entry to read any remaining entries.  Dispatch
12790         depending on what fts_build returns:
12791         - NULL+stop, aka failure: stop
12792         - NULL otherwise: move up in the dir hierarchy
12793         - non-NULL: handle this new entry
12794         (fts_build): Declare and use new local, continue_readdir.
12795         Prepare to be called from fts_read, when the entries
12796         from a partially-read directory have just been exhausted.
12797         In that case, we'll skip the opendir and instead use the parent's
12798         fts_dirp and derive dir_fd from that.
12799         Finally, in the readdir loop, if we read max_entries entries,
12800         exit the loop ensuring *not* to call closedir.  This is required
12801         so that fts_dirp can be reused on a subsequent call.
12802         Prompted by Ben England's report of memory exhaustion in find
12803         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12804
12805         maint: fts: move decl of `dp' down into while loop; split a long line
12806         * lib/fts.c (fts_build): No semantic change.
12807
12808         fts: add/use new struct member, fts_dirp
12809         We are about to use this to manage any directory with
12810         too many entries to read all of them into memory at once.
12811         To do that, we'll need to save the DIR* pointer in each
12812         affected FTSENT struct.
12813         * lib/fts_.h: Include <dirent.h>.
12814         (struct FTSENT) [fts_dirp]: New member.
12815         * lib/fts.c (closedir_and_clear): Define.
12816         Use it in place of closedir so that we are sure to
12817         clear the new fts_dirp member when done with it.
12818         (fts_alloc): Initialize the new member.
12819         (fts_lfree): Free, if needed.
12820
12821         maint: fts: give __opendir2 a new parameter and rename
12822         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12823         than surreptitiously using sole caller's "dir_fd".
12824         (fts_opendir): Rename from __opendir2.
12825
12826         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12827         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12828
12829         maint: fts.c: correct off-by-one indentation
12830         * lib/fts.c (fts_build): Correct indentation, change style
12831         of a couple of block comments, and bracing style.
12832
12833         maint: fts.c: move __opendir2 #define "up" out of function body
12834         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12835
12836         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12837         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12838         out for a long time and besides was useful only on BSD systems.
12839
12840 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12841
12842         regex: port to Stratus OpenVOS
12843         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12844         define to empty, rather than attempting nonportable optimizations.
12845         Problem reported by Paul Green in:
12846         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12847         and fix suggested by Eric Blake in:
12848         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12849
12850 2011-08-17  Eric Blake  <eblake@redhat.com>
12851
12852         getcwd: fix test failures on mingw
12853         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12854         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12855         test if long directory cannot be created, and allow mingw errno.
12856
12857         getcwd-lgpl: fix m4 to match relaxed test for BSD
12858         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12859         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12860         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12861         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12862         signature problem.
12863
12864         getcwd: fix compilation on mingw64
12865         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12866         getcwd.
12867         Reported by Marc-André Lureau.
12868
12869         pipe2: silence compiler warning
12870         * lib/pipe2.c (pipe2): Hide label if it is not used.
12871
12872 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12873
12874         relocatable-prog: fix link error
12875         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12876         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12877         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12878         into modules/relocatable-lib without noticing that
12879         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12880         also needs to build relocatable.c.
12881
12882 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12883
12884         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12886         shell code: it contained a 'break' that was not in a loop.
12887         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12888         via a shell-language loop; this may have been true in old Autoconf
12889         versions, but it's not true in Autoconf 2.68.  I found this bug
12890         when testing coreutils git on Solaris 8, whose shell complains
12891         about the syntax error.
12892
12893 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12894
12895         * lib/base64.c: Fix comment to reference RFC 4648.
12896         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12897         <gvtulder@gmail.com>.
12898
12899 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12900
12901         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12902
12903         po/Makefile.in.in: fix make -q problem
12904         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12905         rule, since there's no file named 'check-macro-version' and its
12906         use as a file breaks make -q.
12907         (all): Don't depend on check-macro-version.
12908         (CHECK_MACRO_VERSION): New macro.
12909         (stamp-po): Use it.
12910
12911         configmake: fix make -q problem
12912         * modules/configmake (configmake.h): Update configmake.h's time stamp
12913         even if the file does not change.  Otherwise, 'make -q' fails.
12914         Problem reported by Simon Josefsson in
12915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12916
12917 2011-08-11  Jim Meyering  <meyering@redhat.com>
12918
12919         git-version-gen: correct the advice in a comment
12920         * build-aux/git-version-gen: Correct comment.
12921         Don't recommend to list .tarball-version in .gitignore.
12922
12923 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12924
12925         base64: fix off-by-one buffer size bug
12926         Problem and (trivial) fix reported by Gijs van Tulder in
12927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12928         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12929         * tests/test-base64.c (main): Catch the bug.
12930
12931 2011-08-10  Eric Blake  <eblake@redhat.com>
12932
12933         closein: correct comments
12934         * lib/closein.c (close_stdin): Improve comments.
12935
12936 2011-08-09  Bruno Haible  <bruno@clisp.org>
12937
12938         More tests for 'fseeko'.
12939         * tests/test-fseeko3.c: New file, from Eric Blake.
12940         * tests/test-fseeko3.sh: New file.
12941         * modules/fseeko-tests (Files): Add them.
12942         (TESTS): Add test-fseeko3.sh.
12943         (check_PROGRAMS): Add test-fseeko3.
12944
12945 2011-08-09  Eric Blake  <eblake@redhat.com>
12946
12947         fseeko: remove unneeded hack
12948         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12949
12950         fseeko: fix bug on glibc
12951         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12952         Reported by John W. Eaton.
12953
12954 2011-08-08  Bruno Haible  <bruno@clisp.org>
12955
12956         unictype/base: Fix interoperability with preinstalled libunistring.
12957         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12958         Reported by Simon Josefsson.
12959
12960 2011-08-08  Bruno Haible  <bruno@clisp.org>
12961
12962         iswblank: Detect declaration correctly.
12963         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12964         AC_CHECK_DECLS invocation.
12965
12966 2011-08-08  Bruno Haible  <bruno@clisp.org>
12967
12968         tcgetsid: Detect declaration correctly.
12969         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12970         AC_CHECK_DECLS invocation.
12971         Reported by Simon Josefsson.
12972
12973 2011-08-08  Eric Blake  <eblake@redhat.com>
12974
12975         largefile: fix typo that regressed large file support
12976         * modules/largefile (configure.ac-early): Fix section name.
12977
12978 2011-08-06  Karl Berry  <karl@gnu.org>
12979
12980         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12981         a separate module.
12982
12983 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12984
12985         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12986         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12987         get prototype for free.
12988
12989 2011-08-04  Bruno Haible  <bruno@clisp.org>
12990
12991         Tests for module 'pathmax'.
12992         * modules/pathmax-tests: New file.
12993         * tests/test-pathmax.c: New file.
12994
12995         canonicalize-lgpl: Support larger filenames on the Hurd.
12996         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12997         Reported by Paul Eggert.
12998
12999         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13000         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13001         * lib/chdir-long.h: Include pathmax.h.
13002         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13003         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13004         (PATH_MAX): Remove code that is done by pathmax.h.
13005         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13006         * lib/tmpfile.c: Add a comment.
13007         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13008         * modules/chdir-long (Depends-on): Add pathmax.
13009         * modules/getcwd (Depends-on): Add pathmax.
13010         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13011         is not defined.
13012         * doc/posix-headers/limits.texi: Mention the pathmax module.
13013         * NEWS: Mention the change.
13014
13015 2011-08-02  Bruno Haible  <bruno@clisp.org>
13016
13017         pthread_sigmask: Actually use results of gl_THREADLIB.
13018         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13019         gl_THREADLIB, not gl_[]THREADLIB.
13020         Reported by Eric Blake.
13021
13022 2011-08-02  Jim Meyering  <meyering@redhat.com>
13023
13024         maint.mk: relax the default _gl_TS_function_match regexp
13025         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13026         space between function name and "(" in an "extern" declaration.
13027         That would fail to match a decl with no space there: extern void foo();
13028
13029 2011-07-31  Iain Nicol  <iain@thenicols.net>
13030
13031         git-version-gen: document that EXTRA_DIST must include .version
13032         * build-aux/git-version-gen: In the how-to-use comment, document
13033         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13034         will fail when run from an unpacked distribution tarball.
13035
13036 2011-08-01  Bruno Haible  <bruno@clisp.org>
13037
13038         wctype-h: Fix last change.
13039         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13040         REPLACE_TOWLOWER to 0.
13041         Reported by Sam Steingold <sds@gnu.org>.
13042
13043 2011-07-31  Bruno Haible  <bruno@clisp.org>
13044
13045         frexpl: Update autoconf test.
13046         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13047         according to changes of 2011-06-20.
13048
13049 2011-07-31  Bruno Haible  <bruno@clisp.org>
13050
13051         sys_utsname: Add support for Minix.
13052         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13053         <sys/utsname.h>.
13054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13055         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13056
13057 2011-07-31  Bruno Haible  <bruno@clisp.org>
13058
13059         strings: Add support for Minix.
13060         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13062         * doc/posix-headers/strings.texi: Document the Minix problem.
13063
13064 2011-07-31  Bruno Haible  <bruno@clisp.org>
13065
13066         wctype-h: Add support for Minix.
13067         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13068         REPLACE_TOWLOWER.
13069         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13070         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13071         REPLACE_ISWCNTRL.
13072
13073 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13074
13075         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13076         This is a performance improvement for 64-bit hosts: it causes the
13077         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13078
13079 2011-07-31  Bruno Haible  <bruno@clisp.org>
13080
13081         stdioext: Add support for Minix.
13082         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13083         * lib/fpurge.c (fpurge): Likewise.
13084         * lib/freadahead.c (freadahead): Likewise.
13085         * lib/freadable.c (freadable): Likewise.
13086         * lib/freading.c (freading): Likewise.
13087         * lib/freadptr.c (freadptr): Likewise.
13088         * lib/freadseek.c (freadptrinc): Likewise.
13089         * lib/fseeko.c (rpl_fseeko): Likewise.
13090         * lib/fseterr.c (fseterr): Likewise.
13091         * lib/fwritable.c (fwritable): Likewise.
13092         * lib/fwriting.c (fwriting): Likewise.
13093         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13094         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13095
13096 2011-07-31  Bruno Haible  <bruno@clisp.org>
13097
13098         errno: Port to Minix.
13099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13100         ECONNABORTED are defined.
13101         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13102         GNULIB_defined_ECONNABORTED): New macros.
13103         * lib/strerror-override.h (strerror_override): Test also
13104         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13105         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13106         ECONNABORTED.
13107         * doc/posix-headers/errno.texi: Mention the Minix problem.
13108
13109 2011-07-31  Bruno Haible  <bruno@clisp.org>
13110
13111         Work around declaration collisions on Minix.
13112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13113         defined, set REPLACE_MBSINIT.
13114         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13115         defined, set REPLACE_MBRTOWC.
13116         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13117         set REPLACE_MBRLEN.
13118         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13119         defined, set REPLACE_MBSRTOWCS.
13120         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13121         defined, set REPLACE_WCRTOMB.
13122         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13123         defined, set REPLACE_WCSRTOMBS.
13124
13125 2011-07-31  Bruno Haible  <bruno@clisp.org>
13126
13127         Add support for Minix with ACK compiler.
13128         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13129         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13130         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13131
13132 2011-07-31  Bruno Haible  <bruno@clisp.org>
13133
13134         Documentation about Minix.
13135         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13136         * doc/glibc-headers/*.texi: Likewise.
13137         * doc/posix-functions/*.texi: Likewise.
13138         * doc/glibc-functions/*.texi: Likewise.
13139
13140 2011-07-31  Bruno Haible  <bruno@clisp.org>
13141
13142         snippet/warn-on-use: Fix indentation.
13143         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13144
13145 2011-07-25  Jim Meyering  <meyering@redhat.com>
13146
13147         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13148         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13149         commands.
13150
13151 2011-07-27  Jim Meyering  <meyering@redhat.com>
13152
13153         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13154         * top/maint.mk (gl_extract_significant_defines_): Now that
13155         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13156         gnulib/lib/signal.in.h, and now that we recommend to
13157         define-if-undefined those two symbols in application code,
13158         we must filter them out of the "significant" list.
13159         This avoids a "make syntax-check" failure in coreutils.
13160
13161 2011-07-26  Eric Blake  <eblake@redhat.com>
13162
13163         warnings: add comments about previous patch
13164         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13165         * m4/include_next.m4: Likewise.
13166         * m4/warn-on-use.m4: Likewise.
13167         * m4/warnings.m4: Likewise, and simplify use.
13168         Suggested by Stefano Lattarini.
13169
13170         include-next, warnings: support older autoconf
13171         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13172         AS_VAR_PUSHDEF in a way that works with older autoconf.
13173         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13174         Reported by Daniel P. Berrange.
13175
13176 2011-07-25  Bruno Haible  <bruno@clisp.org>
13177
13178         fseek, ftell: Fix doc.
13179         * doc/posix-functions/fseek.texi: Reword statement about
13180         AC_SYS_LARGEFILE.
13181         * doc/posix-functions/ftell.texi: Likewise.
13182
13183 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13184             Bruno Haible  <bruno@clisp.org>
13185
13186         Add dependencies to the 'largefile' module.
13187         * modules/fopen (Depends-on): Add 'largefile'.
13188         * modules/freopen (Depends-on): Likewise.
13189         * modules/fseeko (Depends-on): Likewise.
13190         * modules/ftello (Depends-on): Likewise.
13191         * modules/glob (Depends-on): Likewise.
13192         * modules/lseek (Depends-on): Likewise.
13193         * modules/lstat (Depends-on): Likewise.
13194         * modules/mkostemp (Depends-on): Likewise.
13195         * modules/mkostemps (Depends-on): Likewise.
13196         * modules/mkstemp (Depends-on): Likewise.
13197         * modules/mkstemps (Depends-on): Likewise.
13198         * modules/open (Depends-on): Likewise.
13199         * modules/openat (Depends-on): Likewise.
13200         * modules/pread (Depends-on): Likewise.
13201         * modules/pwrite (Depends-on): Likewise.
13202         * modules/scandir (Depends-on): Likewise.
13203         * modules/stat (Depends-on): Likewise.
13204         * modules/tmpfile (Depends-on): Likewise.
13205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13206         since the containing module now depends on the largefile module.
13207         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13208         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13209         off_t is fixed by gnulib.
13210         * doc/posix-functions/freopen.texi: Likewise.
13211         * doc/posix-functions/fseeko.texi: Likewise.
13212         * doc/posix-functions/fstatat.texi: Likewise.
13213         * doc/posix-functions/ftello.texi: Likewise.
13214         * doc/posix-functions/glob.texi: Likewise.
13215         * doc/posix-functions/lseek.texi: Likewise.
13216         * doc/posix-functions/lstat.texi: Likewise.
13217         * doc/posix-functions/mkstemp.texi: Likewise.
13218         * doc/posix-functions/open.texi: Likewise.
13219         * doc/posix-functions/openat.texi: Likewise.
13220         * doc/posix-functions/pread.texi: Likewise.
13221         * doc/posix-functions/pwrite.texi: Likewise.
13222         * doc/posix-functions/scandir.texi: Likewise.
13223         * doc/posix-functions/stat.texi: Likewise.
13224         * doc/posix-functions/tmpfile.texi: Likewise.
13225         * doc/glibc-functions/mkostemp.texi: Likewise.
13226         * doc/glibc-functions/mkostemps.texi: Likewise.
13227         * doc/glibc-functions/mkstemps.texi: Likewise.
13228
13229 2011-07-25  Bruno Haible  <bruno@clisp.org>
13230
13231         fcntl: Move AC_LIBOBJ invocation to module description.
13232         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13233         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13234
13235         fcntl: Remove call-in from fchdir.m4.
13236         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13238
13239         dup3: Remove potential call-in from fchdir.m4.
13240         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13242
13243         dup2: Move AC_LIBOBJ invocation to module description.
13244         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13245         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13246         Don't invoke AC_LIBOBJ.
13247         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13248
13249         dup2: Remove call-in from fchdir.m4.
13250         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13252
13253         fclose: Move AC_LIBOBJ invocation to module description.
13254         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13255         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13256         to 1.
13257         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13258
13259         fclose: Remove call-in from close.m4.
13260         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13261         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13262
13263         close: Move AC_LIBOBJ invocation to module description.
13264         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13265         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13266         1.
13267         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13268
13269         close: Remove call-in from fchdir.m4.
13270         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13272
13273         open: Move AC_LIBOBJ invocation to module description.
13274         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13275         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13276         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13277
13278         open: Remove call-in from fchdir.m4.
13279         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13281
13282         fchdir: Start to remove gl_REPLACE_* idiom.
13283         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13284         (gl_FUNC_FCHDIR): Invoke it.
13285
13286 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13287
13288         * lib/ftell.c (ftell): Comment out cast.
13289
13290         close: use gl_REPLACE_FCLOSE only if defined
13291         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13292         is defined.  The close module doesn't depend on the fclose module
13293         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13295         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13296
13297 2011-07-24  Jim Meyering  <meyering@redhat.com>
13298
13299         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13300         * tests/test-select.h (test_function): Declare as "static".
13301
13302 2011-07-24  Bruno Haible  <bruno@clisp.org>
13303
13304         doc: Mention the effects of AC_SYS_LARGEFILE.
13305         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13306         on this function.
13307         * doc/posix-functions/aio_error.texi: Likewise.
13308         * doc/posix-functions/aio_fsync.texi: Likewise.
13309         * doc/posix-functions/aio_read.texi: Likewise.
13310         * doc/posix-functions/aio_return.texi: Likewise.
13311         * doc/posix-functions/aio_suspend.texi: Likewise.
13312         * doc/posix-functions/aio_write.texi: Likewise.
13313         * doc/posix-functions/fgetpos.texi: Likewise.
13314         * doc/posix-functions/fopen.texi: Likewise.
13315         * doc/posix-functions/freopen.texi: Likewise.
13316         * doc/posix-functions/fsetpos.texi: Likewise.
13317         * doc/posix-functions/fstatvfs.texi: Likewise.
13318         * doc/posix-functions/ftruncate.texi: Likewise.
13319         * doc/posix-functions/ftw.texi: Likewise.
13320         * doc/posix-functions/getrlimit.texi: Likewise.
13321         * doc/posix-functions/glob.texi: Likewise.
13322         * doc/posix-functions/lio_listio.texi: Likewise.
13323         * doc/posix-functions/lockf.texi: Likewise.
13324         * doc/posix-functions/mkstemp.texi: Likewise.
13325         * doc/posix-functions/mmap.texi: Likewise.
13326         * doc/posix-functions/nftw.texi: Likewise.
13327         * doc/posix-functions/openat.texi: Likewise.
13328         * doc/posix-functions/opendir.texi: Likewise.
13329         * doc/posix-functions/posix_fadvise.texi: Likewise.
13330         * doc/posix-functions/posix_fallocate.texi: Likewise.
13331         * doc/posix-functions/pread.texi: Likewise.
13332         * doc/posix-functions/pwrite.texi: Likewise.
13333         * doc/posix-functions/readdir.texi: Likewise.
13334         * doc/posix-functions/readdir_r.texi: Likewise.
13335         * doc/posix-functions/rewinddir.texi: Likewise.
13336         * doc/posix-functions/scandir.texi: Likewise.
13337         * doc/posix-functions/seekdir.texi: Likewise.
13338         * doc/posix-functions/setrlimit.texi: Likewise.
13339         * doc/posix-functions/statvfs.texi: Likewise.
13340         * doc/posix-functions/telldir.texi: Likewise.
13341         * doc/posix-functions/tmpfile.texi: Likewise.
13342         * doc/posix-functions/truncate.texi: Likewise.
13343         * doc/glibc-functions/fallocate.texi: Likewise.
13344         * doc/glibc-functions/fstatfs.texi: Likewise.
13345         * doc/glibc-functions/fts_children.texi: Likewise.
13346         * doc/glibc-functions/fts_read.texi: Likewise.
13347         * doc/glibc-functions/getdirentries.texi: Likewise.
13348         * doc/glibc-functions/mkostemp.texi: Likewise.
13349         * doc/glibc-functions/mkostemps.texi: Likewise.
13350         * doc/glibc-functions/mkstemps.texi: Likewise.
13351         * doc/glibc-functions/preadv.texi: Likewise.
13352         * doc/glibc-functions/pwritev.texi: Likewise.
13353         * doc/glibc-functions/sendfile.texi: Likewise.
13354         * doc/glibc-functions/statfs.texi: Likewise.
13355
13356 2011-07-24  Bruno Haible  <bruno@clisp.org>
13357
13358         doc: Fix typo.
13359         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13360
13361 2011-07-24  Bruno Haible  <bruno@clisp.org>
13362
13363         doc: Mention fsusage.
13364         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13365
13366 2011-07-24  Bruno Haible  <bruno@clisp.org>
13367
13368         doc: Mention new glibc headers and functions.
13369         * doc/glibc-headers/gshadow.texi: New file.
13370         * doc/glibc-functions/endsgent.texi: New file.
13371         * doc/glibc-functions/fgetsgent.texi: New file.
13372         * doc/glibc-functions/fgetsgent_r.texi: New file.
13373         * doc/glibc-functions/getsgent.texi: New file.
13374         * doc/glibc-functions/getsgent_r.texi: New file.
13375         * doc/glibc-functions/getsgnam.texi: New file.
13376         * doc/glibc-functions/getsgnam_r.texi: New file.
13377         * doc/glibc-functions/putsgent.texi: New file.
13378         * doc/glibc-functions/setsgent.texi: New file.
13379         * doc/glibc-functions/sgetsgent.texi: New file.
13380         * doc/glibc-functions/sgetsgent_r.texi: New file.
13381         * doc/glibc-functions/malloc_info.texi: New file.
13382         * doc/glibc-functions/preadv.texi: New file.
13383         * doc/glibc-functions/pwritev.texi: New file.
13384         * doc/glibc-functions/register_printf_modifier.texi: New file.
13385         * doc/glibc-functions/register_printf_specifier.texi: New file.
13386         * doc/glibc-functions/register_printf_type.texi: New file.
13387         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13388         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13389         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13390         * doc/glibc-functions/pthread_getname_np.texi: New file.
13391         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13392         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13393         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13394         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13395         * doc/glibc-functions/pthread_setname_np.texi: New file.
13396         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13397         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13398         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13399         * doc/glibc-functions/qsort_r.texi: New file.
13400         * doc/glibc-functions/quick_exit.texi: New file.
13401         * doc/glibc-functions/syncfs.texi: New file.
13402         * doc/gnulib.texi: Include them.
13403         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13404         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13405         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13406         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13407         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13408         * doc/glibc-functions/execvpe.texi: Likewise.
13409
13410 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13411
13412         ftell: don't include <unistd.h>
13413         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13414         guaranteed to define off_t, and the ftell module depends on the
13415         stdio module.
13416
13417         ftell: do not assume wraparound signed arithmetic
13418         * lib/ftell.c: Include <limits.h>.
13419         (ftell): Don't assume wraparound signed arithmetic.
13420
13421 2011-07-24  Bruno Haible  <bruno@clisp.org>
13422
13423         close: No longer depend on module 'fclose'.
13424         * modules/close (Depends-on): Remove fclose.
13425         * NEWS: Mention the change.
13426         Suggested by Sam Steingold <sds@gnu.org>.
13427
13428 2011-07-24  Bruno Haible  <bruno@clisp.org>
13429
13430         fsusage: Enable large volume support on AIX >= 5.2.
13431         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13432         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13433         instead of STAT_STATVFS.
13434         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13435
13436         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13438         f_blocks field only on MacOS X.
13439
13440         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13442         * modules/fsusage (Depends-on): Add largefile.
13443
13444 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         * README: Modernize discussion of signed integers.
13447         Assuming overflow wraparound is no longer safe.
13448         Mention ones' complement and signed magnitude.
13449
13450 2011-07-22  Bruno Haible  <bruno@clisp.org>
13451
13452         select tests, pselect tests: Refactor.
13453         * tests/test-select.h: New file, extracted from tests/test-select.c.
13454         (select_fn): New type.
13455         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13456         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13457         test_pipe): Add my_select argument.
13458         (test_function): Renamed from main. Add my_select argument.
13459         * tests/test-select.c: Move most code to tests/test-select.h. Include
13460         test-select.h.
13461         * modules/select-tests (Files): Add tests/test-select.h.
13462         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13463         (my_select, main): New functions.
13464         * modules/pselect-tests (Files): Add tests/test-select.h,
13465         tests/macros.h, tests/signature.h.
13466         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13467         (configure.ac): Check for <sys/wait.h>.
13468
13469 2011-07-22  Bruno Haible  <bruno@clisp.org>
13470
13471         sys_select tests: Check the signature of FD_*.
13472         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13473         signature tests from here...
13474         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13475         here.
13476         * modules/sys_select-tests (Files): Add tests/signature.h.
13477
13478 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13479
13480         largefile: new module, replacing large-inode
13481         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13482         * MODULES.html.sh: Add largefile, remove large-inode.
13483         * modules/largefile, m4/largefile.m4: New files.
13484         * modules/large-inode, m4/large-inode.m4: Remove.
13485
13486         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13488         implementations that use only 32 bits to count blocks.
13489         On typical hosts with 1024-byte blocks, this fails with file
13490         systems as small as 4 TiB.  Problem reported by Herb Wartens
13491         <http://debbugs.gnu.org/9140> and this should also fix a similar
13492         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13493
13494         large-inode: New module
13495         * MODULES.html.sh: Add it.
13496         * modules/large-inode, m4/large-inode.m4: New files.
13497
13498         extensions: Enable extensions on MacOS X 10.5 and later.
13499         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13500
13501 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13502
13503         file-has-acl: use acl_extended_file_nofollow if available
13504         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13505         (acl_extended_file): New macro.
13506         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13507         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13508
13509 2011-07-21  Bruno Haible  <bruno@clisp.org>
13510
13511         Declare system functions in a way that works with C++.
13512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13513         declare fdopendir as extern "C".
13514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13515         declare frexpl as extern "C".
13516         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13517         declare gai_strerror as extern "C".
13518         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13519         programs, declare gai_strerror as extern "C".
13520         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13521         declare getlogin_r as extern "C".
13522         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13523         as extern "C".
13524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13525         declare ldexpl as extern "C".
13526         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13527         as extern "C".
13528         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13529         program, declare getmntinfo as extern "C".
13530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13531         stpncpy as extern "C".
13532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13533         program, declare __xpg_strerror_r as extern "C".
13534         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13535         strndup as extern "C".
13536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13537         declare memset and bzero as extern "C".
13538         Reported by Sam Steingold <sds@gnu.org>.
13539
13540 2011-07-12  Jim Meyering  <meyering@redhat.com>
13541
13542         maint.mk: prohibit inclusion of "verify.h" without use
13543         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13544
13545 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13546
13547         timer-time: A new module to check for timer_settime()
13548         * m4/timer_time.m4: Check for the posix function.
13549         * modules/timer-time: Add the new module.
13550         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13551         Mention it.
13552
13553 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13554             Bruno Haible  <bruno@clisp.org>
13555
13556         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13558         not defined, assume POSIX threads and look for pthread_sigmask in
13559         $LIBS, without changing $CPPFLAGS.
13560
13561 2011-07-19  Bruno Haible  <bruno@clisp.org>
13562
13563         strstr: Update cross-compilation guess.
13564         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13565         CPUs, guess no, in view of glibc
13566         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13567         Suggested by Eric Blake. Reported by Reuben Thomas.
13568
13569 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13570
13571         getopt-gnu: suppress core dumps from detection code
13572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13573         to suppress core dumps that may well occur on glibc systems.
13574         * modules/getopt-gnu: Depend on nocrash.
13575
13576 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13577
13578         pthread_sigmask: ensure usleep is declared
13579         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13580         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13581
13582 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13583
13584         doc: Document NonStop portability issues.
13585         * doc/posix-functions/sigaction.texi (sigaction):
13586         * doc/posix-headers/signal.texi (signal.h):
13587         Document NonStop.  See Joachim Schmitz in
13588         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13589
13590 2011-07-15  Bruno Haible  <bruno@clisp.org>
13591
13592         ffsl, ffsll: Avoid unportable behaviour.
13593         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13594
13595 2011-07-15  Bruno Haible  <bruno@clisp.org>
13596
13597         ffs: More tests.
13598         * tests/test-ffs.c (NBITS): New macro.
13599         (main): Add more tests.
13600         * tests/test-ffsl.c (NBITS): New macro.
13601         (main): Add more tests.
13602         * tests/test-ffsll.c (NBITS): New macro.
13603         (main): Add more tests.
13604
13605 2011-07-15  Eric Blake  <eblake@redhat.com>
13606
13607         ffsl, ffsll: new modules
13608         * modules/ffsl: New file.
13609         * modules/ffsll: Likewise.
13610         * m4/ffsl.m4: Likewise.
13611         * m4/ffsll.m4: Likewise.
13612         * lib/ffsl.c: Likewise.
13613         * lib/ffsl.h: Likewise.
13614         * lib/ffsll.c: Likewise.
13615         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13616         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13617         * modules/string (Makefile.am): Substitute witnesses.
13618         * lib/strings.in.h (ffsl, ffsll): Declare.
13619         * modules/ffsl-tests: New test file.
13620         * modules/ffsll-tests: Likewise.
13621         * tests/test-ffsl.c: Likewise.
13622         * tests/test-ffsll.c: Likewise.
13623         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13624         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13625         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13626
13627         ffs: fix m4 prerequisite
13628         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13629
13630         ffs: avoid undefined behavior
13631         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13632         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13633         Reported by Bruno Haible.
13634
13635 2011-07-12  Bruno Haible  <bruno@clisp.org>
13636
13637         pthread_sigmask: Rely on module 'threadlib'.
13638         * modules/pthread_sigmask (Depends-on): Add threadlib.
13639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13640         is defined.
13641
13642 2011-07-12  Bruno Haible  <bruno@clisp.org>
13643
13644         regex: Depend on module 'strcase'.
13645         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13646
13647 2011-07-12  Jim Meyering  <meyering@redhat.com>
13648
13649         warn-on-use: fix typo in file name
13650         * modules/snippet/warn-on-use (Files): Correct file name:
13651         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13652
13653 2011-07-12  Bruno Haible  <bruno@clisp.org>
13654
13655         strings: Document module.
13656         * doc/posix-headers/strings.texi: Mention module 'strings'.
13657
13658 2011-07-12  Bruno Haible  <bruno@clisp.org>
13659
13660         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13661         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13662         (Files, Makefile.am): Update.
13663         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13664         * modules/stdlib (Depends-on): Update.
13665
13666 2011-07-12  Bruno Haible  <bruno@clisp.org>
13667
13668         * NEWS: Mention the changes.
13669
13670         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13671         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13672         (Files, Makefile.am): Update.
13673         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13674         * modules/arpa_inet (Depends-on): Update.
13675         * modules/ctype (Depends-on): Update.
13676         * modules/dirent (Depends-on): Update.
13677         * modules/fcntl-h (Depends-on): Update.
13678         * modules/glob (Depends-on): Update.
13679         * modules/iconv-h (Depends-on): Update.
13680         * modules/inttypes-incomplete (Depends-on): Update.
13681         * modules/langinfo (Depends-on): Update.
13682         * modules/locale (Depends-on): Update.
13683         * modules/math (Depends-on): Update.
13684         * modules/netdb (Depends-on): Update.
13685         * modules/poll-h (Depends-on): Update.
13686         * modules/pty (Depends-on): Update.
13687         * modules/search (Depends-on): Update.
13688         * modules/signal (Depends-on): Update.
13689         * modules/spawn (Depends-on): Update.
13690         * modules/stdio (Depends-on): Update.
13691         * modules/stdlib (Depends-on): Update.
13692         * modules/string (Depends-on): Update.
13693         * modules/strings (Depends-on): Update.
13694         * modules/sys_file (Depends-on): Update.
13695         * modules/sys_ioctl (Depends-on): Update.
13696         * modules/sys_select (Depends-on): Update.
13697         * modules/sys_socket (Depends-on): Update.
13698         * modules/sys_stat (Depends-on): Update.
13699         * modules/sys_time (Depends-on): Update.
13700         * modules/sys_times (Depends-on): Update.
13701         * modules/sys_utsname (Depends-on): Update.
13702         * modules/sys_wait (Depends-on): Update.
13703         * modules/termios (Depends-on): Update.
13704         * modules/time (Depends-on): Update.
13705         * modules/unistd (Depends-on): Update.
13706         * modules/wchar (Depends-on): Update.
13707         * modules/wctype-h (Depends-on): Update.
13708         * MODULES.html.sh (Support for building libraries and executables):
13709         Update.
13710
13711         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13712         * modules/snippet/unused-parameter: Renamed from
13713         modules/unused-parameter.
13714         (Files, Makefile.am): Update.
13715         * build-aux/snippet/unused-parameter.h: Renamed from
13716         build-aux/unused-parameter.h.
13717         * modules/selinux-h (Depends-on): Update.
13718         * modules/unistr/base (Depends-on): Update.
13719         * MODULES.html.sh (Core language properties): Update.
13720
13721         Rename module 'link-warning' to 'snippet/link-warning'.
13722         * modules/snippet/link-warning: Renamed from modules/link-warning.
13723         (Files, Makefile.am): Update.
13724         * build-aux/snippet/link-warning.h: Renamed from
13725         build-aux/link-warning.h.
13726         * MODULES.html.sh (Support for building libraries and executables):
13727         Update.
13728
13729         Rename module 'c++defs' to 'snippet/c++defs'.
13730         * modules/snippet/c++defs: Renamed from modules/c++defs.
13731         (Files, Makefile.am): Update.
13732         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13733         * modules/arpa_inet (Depends-on): Update.
13734         * modules/ctype (Depends-on): Update.
13735         * modules/dirent (Depends-on): Update.
13736         * modules/fcntl-h (Depends-on): Update.
13737         * modules/glob (Depends-on): Update.
13738         * modules/iconv-h (Depends-on): Update.
13739         * modules/langinfo (Depends-on): Update.
13740         * modules/locale (Depends-on): Update.
13741         * modules/math (Depends-on): Update.
13742         * modules/netdb (Depends-on): Update.
13743         * modules/poll-h (Depends-on): Update.
13744         * modules/pty (Depends-on): Update.
13745         * modules/search (Depends-on): Update.
13746         * modules/signal (Depends-on): Update.
13747         * modules/spawn (Depends-on): Update.
13748         * modules/stdio (Depends-on): Update.
13749         * modules/stdlib (Depends-on): Update.
13750         * modules/string (Depends-on): Update.
13751         * modules/strings (Depends-on): Update.
13752         * modules/sys_ioctl (Depends-on): Update.
13753         * modules/sys_select (Depends-on): Update.
13754         * modules/sys_socket (Depends-on): Update.
13755         * modules/sys_stat (Depends-on): Update.
13756         * modules/sys_time (Depends-on): Update.
13757         * modules/sys_wait (Depends-on): Update.
13758         * modules/termios (Depends-on): Update.
13759         * modules/time (Depends-on): Update.
13760         * modules/unistd (Depends-on): Update.
13761         * modules/wchar (Depends-on): Update.
13762         * modules/wctype-h (Depends-on): Update.
13763
13764         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13765         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13766         (Files, Makefile.am): Update.
13767         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13768         * modules/argv-iter (Depends-on): Update.
13769         * modules/arpa_inet (Depends-on): Update.
13770         * modules/dirent (Depends-on): Update.
13771         * modules/fcntl-h (Depends-on): Update.
13772         * modules/fnmatch (Depends-on): Update.
13773         * modules/getopt-posix (Depends-on): Update.
13774         * modules/glob (Depends-on): Update.
13775         * modules/iconv-h (Depends-on): Update.
13776         * modules/inttypes-incomplete (Depends-on): Update.
13777         * modules/locale (Depends-on): Update.
13778         * modules/math (Depends-on): Update.
13779         * modules/netdb (Depends-on): Update.
13780         * modules/search (Depends-on): Update.
13781         * modules/signal (Depends-on): Update.
13782         * modules/spawn (Depends-on): Update.
13783         * modules/stdio (Depends-on): Update.
13784         * modules/stdlib (Depends-on): Update.
13785         * modules/string (Depends-on): Update.
13786         * modules/strings (Depends-on): Update.
13787         * modules/sys_socket (Depends-on): Update.
13788         * modules/sys_stat (Depends-on): Update.
13789         * modules/sys_time (Depends-on): Update.
13790         * modules/sys_times (Depends-on): Update.
13791         * modules/sys_utsname (Depends-on): Update.
13792         * modules/time (Depends-on): Update.
13793         * modules/unistd (Depends-on): Update.
13794         * modules/wchar (Depends-on): Update.
13795         * MODULES.html.sh (Support for building libraries and executables):
13796         Update.
13797
13798 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         Improvements on _Noreturn and related modules.
13801
13802         modules/_Exit-tests: test _Noreturn too
13803         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13804         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13805         (main): Use them.
13806
13807         stdnoreturn, stdnoreturn-tests: remove modules
13808         They're not needed here and a bit premature for use elsewhere.  See
13809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13810         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13811         * tests/test-stdnoreturn.c: Remove files.
13812         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13813         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13814         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13815         and using noreturn.
13816         * modules/openat, modules/sigpipe-die, modules/xalloc:
13817         * modules/xmemdup0, modules/xstrtol:
13818         Remove dependency on stdnoreturn.
13819
13820         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13821         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13822         Reparenthesize to avoid GCC warning.
13823         Support Microsoft's syntax.
13824         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13825
13826         _Noreturn-tests: remove module
13827         * modules/_Noreturn-tests: Remove.
13828         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13829         * tests/test-_Noreturn.c: Remove.
13830         * tests/test-stdnoreturn.c: Merge from the old
13831         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13832
13833 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13834
13835         _Noreturn, stdnoreturn, and related modules.
13836
13837         * top/maint.mk: Adjust to new noreturn support.
13838         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13839         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13840
13841         xalloc: use stdnoreturn.h
13842         * lib/xalloc.h: Include <stdnoreturn.h>.
13843         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13844         * modules/xalloc (Depends-on): Add stdnoreturn.
13845
13846         xstrtol: use stdnoreturn.h
13847         * lib/xstrtol.h: Include <stdnoreturn.h>.
13848         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13849         * modules/xstrtol (Depends-on): Add stdnoreturn.
13850
13851         xmemdup0: use stdnoreturn.h
13852         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13853         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13854         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13855
13856         sigpipe-die: use stdnoreturn.h
13857         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13858         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13859         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13860
13861         openat: use stdnoreturn.h
13862         * lib/openat.h: Include <stdnoreturn.h>.
13863         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13864         * modules/openat (Depends-on): Add stdnoreturn.
13865
13866         * lib/openat-die.c (openat_save_fail): Modernize comment.
13867
13868         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13869
13870         * lib/glthread/thread.h: Modernize comment.
13871
13872         obstack: use _Noreturn
13873         * lib/obstack.c (__attribute__): Remove macro.
13874         (print_and_abort): Use _Noreturn.
13875
13876         c-stack: use _Noreturn
13877         * lib/c-stack.c (die, overflow_handler, segv_handler):
13878         Use _Noreturn rather than __attribute__((noreturn)).
13879
13880         argmatch-tests, exclude_tests: use _Noreturn
13881         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13882         Remove.
13883         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13884
13885         stdlib: use _Noreturn
13886         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13887         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13888         * modules/stdlib (Depends-on): Add _Noreturn.
13889         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13890
13891         stdnoreturn-tests: new module
13892         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13893
13894         stdnoreturn: new module
13895         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13896         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13897
13898         _Noreturn-tests: new module
13899         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13900
13901         _Noreturn: new module
13902         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13903         New section, mentioning it.
13904         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13905
13906         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13907
13908 2011-07-11  Eric Blake  <eblake@redhat.com>
13909
13910         ffs: new module
13911         * modules/ffs: New file.
13912         * m4/ffs.m4: Likewise.
13913         * lib/ffs.c: Likewise.
13914         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13915         * modules/strings (Makefile.am): Substitute witness.
13916         (Depends-on): Add c++defs.
13917         * lib/strings.in.h (ffs): Declare.
13918         * modules/ffs-tests: New test file.
13919         * tests/test-ffs.c: Test new module.
13920         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13921         * doc/posix-functions/ffs.texi (ffs): Likewise.
13922
13923         regex: avoid compiler warning
13924         * lib/regex.c (includes): Include <strings.h>, for use of
13925         strcasecmp in regcomp.c.
13926         Reported by Joachim Schmitz.
13927
13928 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13929
13930         stdint: respect system's intmax_t if INTMAX_MAX
13931         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13932         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13933         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13934         long but int64_t is long long, and where we will clash with the
13935         system intmax_t if we override it.  See
13936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13937         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13938         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13939         similarly for UINTMAX_C.
13940
13941 2011-07-08  Bruno Haible  <bruno@clisp.org>
13942
13943         pthread_sigmask tests: Avoid a compiler warning.
13944         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13945         non-zero.
13946
13947         sigprocmask tests: A better way to avoid a compiler warning.
13948         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13949         (main): Complain if system() returns non-zero.
13950         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13951
13952 2011-07-08  Bruno Haible  <bruno@clisp.org>
13953
13954         pthread_sigmask: Work around IRIX bug.
13955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13956         bug.
13957         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13958         there may be unblocked pending signals.
13959         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13960
13961 2011-07-08  Bruno Haible  <bruno@clisp.org>
13962
13963         pthread_sigmask: Work around Cygwin bug.
13964         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13965         bug.
13966         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13967         the system's pthread_sigmask function.
13968         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13969
13970 2011-07-08  Bruno Haible  <bruno@clisp.org>
13971
13972         pthread_sigmask: Work around bug in single-threaded implementation.
13973         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13974         FreeBSD, HP-UX, Solaris bug.
13975         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13976         * lib/pthread_sigmask.c: Include <stddef.h>.
13977         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13978         the system's pthread_sigmask function.
13979         * modules/pthread_sigmask (configure.ac): Invoke
13980         gl_PREREQ_PTHREAD_SIGMASK.
13981         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13982         HP-UX, Solaris.
13983
13984 2011-07-08  Eric Blake  <eblake@redhat.com>
13985
13986         test-sigprocmask: avoid compiler warning
13987         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13988         * tests/test-sigprocmask.c (main): Use it to silence warning.
13989         Reported by Jim Meyering.
13990
13991         test-snprintf: avoid compiler warning
13992         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13993         * tests/test-vsnprintf.c (main): Likewise.
13994         Reported by Jim Meyering.
13995
13996 2011-07-08  Bruno Haible  <bruno@clisp.org>
13997
13998         Tests for module 'pthread_sigmask'.
13999         * modules/pthread_sigmask-tests: New file.
14000         * tests/test-pthread_sigmask1.c: New file, based on
14001         tests/test-sigprocmask.c.
14002         * tests/test-pthread_sigmask2.c: New file.
14003
14004 2011-07-08  Jim Meyering  <meyering@redhat.com>
14005
14006         test-getopt.h: avoid warning about an unused variable
14007         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14008
14009 2011-07-07  Jim Meyering  <meyering@redhat.com>
14010
14011         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14012         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14013         now that it no longer contains leading TABs.
14014         Remove unused "url=FIXME" statement.
14015
14016 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14019         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14020         When gl_THREADLIB is not in use, assume that the POSIX sematics
14021         are desired.  This is better for Emacs, which uses POSIX semantics
14022         on GNUish and/or POSIXish platforms, and does not use threads at
14023         all otherwise.
14024
14025         pthread_sigmask: fix typo when testing for libraries
14026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14027         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14028
14029 2011-07-08  Eric Blake  <eblake@redhat.com>
14030
14031         fts: introduce FTS_NOATIME
14032         * lib/fts_.h (FTS_NOATIME): New bit flag.
14033         (FTS_OPTIONMASK): Adjust.
14034         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14035         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14036
14037 2011-07-08  Bruno Haible  <bruno@clisp.org>
14038
14039         Tests for module 'thread'.
14040         * modules/thread-tests: New file.
14041         * tests/test-thread_self.c: New file.
14042         * tests/test-thread_create.cc: New file.
14043
14044 2011-07-08  Bruno Haible  <bruno@clisp.org>
14045
14046         thread: Avoid gcc warnings when using gl_thread_self().
14047         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14048         'void *'.
14049         (gl_thread_self_pointer): Update.
14050
14051 2011-07-07  Bruno Haible  <bruno@clisp.org>
14052
14053         signal-c++-tests: Check declaration of pthread_sigmask.
14054         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14055         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14056         $(LIB_PTHREAD_SIGMASK).
14057
14058 2011-07-07  Bruno Haible  <bruno@clisp.org>
14059
14060         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14061         * lib/signal.in.h (pthread_sigmask): Override if
14062         REPLACE_PTHREAD_SIGMASK is 1.
14063         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14064         REPLACE_PTHREAD_SIGMASK.
14065         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14066         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14067         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14068         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14069         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14070
14071 2011-07-07  Bruno Haible  <bruno@clisp.org>
14072
14073         pthread_sigmask: Ensure declaration in <signal.h>.
14074         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14075         include <pthread.h>.
14076         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14077         problem.
14078
14079 2011-07-07  Bruno Haible  <bruno@clisp.org>
14080
14081         pthread_sigmask: Document the module.
14082         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14083
14084 2011-07-07  Bruno Haible  <bruno@clisp.org>
14085
14086         pthread_sigmask: Follow gnulib conventions.
14087         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14088         gl_PTHREAD_SIGMASK.
14089         * modules/pthread_sigmask (configure.ac): Update.
14090
14091 2011-07-07  Bruno Haible  <bruno@clisp.org>
14092
14093         pthread_sigmask: Make declaration C++ safe.
14094         * lib/signal.in.h: In two special conditions, just do an #include_next.
14095         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14096         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14097         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14098         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14099         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14100         not REPLACE_PTHREAD_MASK.
14101         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14102         not REPLACE_PTHREAD_MASK.
14103         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14104
14105 2011-07-07  Bruno Haible  <bruno@clisp.org>
14106
14107         pthread_sigmask: Fix return value.
14108         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14109         * lib/pthread_sigmask.c: New file.
14110         * modules/pthread_sigmask (Files): Add it.
14111         (configure.ac): Invoke AC_LIBOBJ.
14112
14113 2011-07-07  Eric Blake  <eblake@redhat.com>
14114
14115         getopt: more portable argv creation
14116         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14117         const, use char arrays rather than strings.
14118         Suggested by Paul Eggert.
14119
14120 2011-07-07  Bruno Haible  <bruno@clisp.org>
14121
14122         Tests for module 'sigprocmask'.
14123         * modules/sigprocmask-tests: New file.
14124         * tests/test-sigprocmask.c: New file.
14125
14126 2011-07-07  Bruno Haible  <bruno@clisp.org>
14127
14128         float tests: Tweak.
14129         * tests/test-float.c (main): Tweak skip message.
14130
14131 2011-07-07  Eric Blake  <eblake@redhat.com>
14132
14133         getopt: avoid compiler warning during configure
14134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14135         assigning string literals to non-const pointer.
14136
14137         getopt-gnu: avoid crash in glibc getopt
14138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14139         * tests/test-getopt.h (test_getopt): Enhance test.
14140         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14141         * doc/posix-functions/getopt.texi (getopt): Document it.
14142         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14143         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14144         Likewise.
14145
14146 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14147
14148         getopt: handle W; without long options in getopt [BZ #12922]
14149         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14150         but no long options are defined, just return 'W'.
14151
14152 2011-07-07  Bruno Haible  <bruno@clisp.org>
14153
14154         Avoid literal tabs.
14155         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14156         variable containing a tab instead of a literal tab.
14157         Reported by Jim Meyering.
14158
14159 2011-07-07  Bruno Haible  <bruno@clisp.org>
14160
14161         Comments.
14162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14163
14164 2011-07-06  Bruno Haible  <bruno@clisp.org>
14165
14166         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14167         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14168         <winsock2.h>.
14169         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14170         lib/sys_socket.in.h.
14171         (close, gethostname): Hide declarations from <winsock2.h>.
14172         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14173         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14174         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14175         (select): Don't override if gnulib's <sys/select.h> was already
14176         included.
14177         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14178         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14179         setsockopt, shutdown, select): Tweak indentation.
14180
14181 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14184         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14185         in an application that does not use the sys_select module.
14186
14187 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14188
14189         poll: do not return 0 on timeout=-1
14190         * lib/poll.c: Loop with yield if no events occured
14191
14192 2011-07-06  Eric Blake  <eblake@redhat.com>
14193
14194         pthread_sigmask: always replace when not using pthread
14195         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14196         replacement when using some threading other than pthread.  Fix
14197         logic bug.
14198
14199 2011-07-06  Bruno Haible  <bruno@clisp.org>
14200
14201         Comments.
14202         * m4/printf.m4: Update comments about mingw.
14203
14204 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14205
14206         sys_select: define sigset_t more portably
14207         * lib/sys_select.in.h: Always include <sys/types.h>, since
14208         we now need sigset_t and mingw defines it there.
14209         Include <signal.h> before split inclusion guard, to avoid
14210         mishaps on Solaris, whose <signal.h> eventually includes us.
14211         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14212         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14213         which come from ...
14214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14215         gl_CHECK_TYPE_SIGSET_T.
14216         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14217         does the real work.
14218         * modules/sys_select (Depends-on): Add 'signal'.
14219
14220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14221         Suggested by Bruno Haible.
14222
14223         pselect: Use pthread_sigmask, not sigprocmask.
14224         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14225         multithreaded apps better than sigprocmask does.
14226         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14227         sigprocmask directly.
14228
14229 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14232         Don't #undef,  since we don't need any underlying pselect.
14233         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14234         (Depends-on): Add select.
14235         (Link): Add $(LIBSOCKET).
14236         These changes suggested by Bruno Haible.
14237
14238         pselect: document better
14239         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14240         * doc/posix-functions/pselect.texi (pselect): Document new module.
14241
14242         pthread_sigmask: new module
14243         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14244         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14245         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14246         This is done only as a macro; I don't know how well that'll
14247         work for C++.  Move <sys/types.h> include before the include_next,
14248         to avoid mishap on Solaris.
14249         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14250         * modules/signal (Makefile.am): Substitute the check's results.
14251         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14252
14253         test-pselect: new module
14254         * modules/pselect-tests, tests/test-pselect.c: New files.
14255         * tests/test-select.c, tests/test-sys_select-c++.cc:
14256         If TEST_PSELECT is defined, test pselect instead of testing select.
14257
14258         * tests/test-sys_select.c (sigset_t): Test for it, too.
14259         Suggested by Bruno Haible.
14260
14261 2011-07-05  Eric Blake  <eblake@redhat.com>
14262
14263         snprintf: guarantee %1$d, for libintl
14264         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14265         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14266         * doc/posix-functions/snprintf.texi (snprintf): Update.
14267         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14268         * tests/test-snprintf.c (main): Enhance test.
14269         * tests/test-vsnprintf.c (main): Likewise.
14270
14271 2011-07-05  Jim Meyering  <meyering@redhat.com>
14272
14273         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14274         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14275         per Bruno's request, to accommodate this idiom (no space after "#")
14276         even when the function is inside an #if block:
14277         char *
14278         gets (char *s)
14279         #undef gets
14280         {
14281           ...
14282         }
14283
14284 2011-07-04  Jim Meyering  <meyering@redhat.com>
14285
14286         maint: indent with spaces, not TABs, and add a rule to check this
14287         * tests/test-userspec.c: Indent with spaces, not TABs.
14288         * tests/test-argp.c: Likewise.
14289         * tests/test-c-stack2.sh: Likewise.
14290         * tests/test-parse-duration.sh: Likewise
14291         * m4/strtod.m4: Likewise.
14292         * m4/alloca.m4: Likewise.
14293         * m4/pselect.m4: Likewise.
14294         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14295
14296 2011-07-03  Jim Meyering  <meyering@redhat.com>
14297
14298         maint.mk: correct omissions in prohibit_argmatch_without_use check
14299         This rule would mistakenly report that argmatch.h is included without
14300         use even when both the argmatch and invalid_arg macro were used.
14301         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14302         of argmatch and invalid_arg.
14303
14304 2011-07-03  Bruno Haible  <bruno@clisp.org>
14305
14306         Comments about EINTR.
14307         * lib/safe-read.h: Explain the purpose of this module.
14308         * lib/safe-write.h: Likewise.
14309         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14310         module.
14311         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14312         module.
14313         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14314
14315 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14316
14317         xnanosleep: Rewrite to use new dtotimespec module.
14318         It has the conversion code that used to be in xnanosleep.
14319         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14320         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14321         (TIME_T_MAX): Remove.
14322         (xnanosleep): Rewrite in terms of dtotimespec.
14323         * modules/xnanosleep (Depends-on): Add dtotimespec.
14324         Remove intprops, stdbool.
14325
14326         timespec-add, timespec-sub: new modules
14327         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14328         * lib/timespec-add.c, lib/timespec-sub.c:
14329         * modules/timespec-add, modules/timespec-sub: New files.
14330
14331         dtotimespec: new module
14332         * lib/timespec.h (dtotimespec): New decl.
14333         * lib/dtotimespec.c, modules/dtotimespec: New files.
14334
14335         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14336
14337         pselect: new module
14338         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14339         (pselect): New decls.
14340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14341         since the standard pselect decl uses 'restrict'.
14342         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14343         HAVE_PSELECT, REPLACE_PSELECT.
14344         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14345         HAVE_PSELECT, REPLACE_PSELECT.
14346         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14347
14348         sys_select: don't depend on sys_socket
14349         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14351         This fix works on GNU and GNU-like platforms, but has not been tested
14352         on native Windows.
14353         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14355         gl_HEADER_SYS_SOCKET.
14356         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14357         gl_PREREQ_SYS_H_WINSOCK2.
14358
14359 2011-06-29  Eric Blake  <eblake@redhat.com>
14360
14361         pipe2: fix C89 compile problem
14362         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14363         Reported by Bruno Haible.
14364
14365         pipe, pipe2: don't corrupt fd on error
14366         * lib/pipe.c (pipe): Leave fd unchanged on error.
14367         * lib/pipe2.c (pipe2): Likewise.
14368         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14369         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14370
14371 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14372
14373         mmap-anon: do not use regular expressions inadvertently
14374         * m4/mmap-anon.m4: Remove trailing period from strings sought
14375         in the output.
14376
14377 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14378
14379         nanosleep: fix integer overflow problem
14380         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14381         arithmetic wraps around on overflow.
14382
14383         nanosleep: simplify carrying
14384         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14385         first call to the underyling nanosleep, not for the last one.
14386         This doesn't fix any bugs, but it simplifies the computation of
14387         the remaining delay.  Found while auditing integer overflow issues.
14388
14389         dup2: remove test for existence of fcntl
14390         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14391         "#if HAVE_FCNTL", in the configure-time test program.
14392         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14393         and therefore speeds up "configure" a bit.  Found while
14394         adding the dup2 module to Emacs.
14395
14396 2011-06-24  Eric Blake  <eblake@redhat.com>
14397
14398         maint.mk: enhance useless header checks
14399         * top/maint.mk (_sc_header_without_use): Check both include
14400         styles.
14401         (sc_prohibit_assert_without_use)
14402         (sc_prohibit_close_stream_without_use)
14403         (sc_prohibit_getopt_without_use)
14404         (sc_prohibit_quotearg_without_use)
14405         (sc_prohibit_quote_without_use)
14406         (sc_prohibit_long_options_without_use)
14407         (sc_prohibit_inttostr_without_use)
14408         (sc_prohibit_ignore_value_without_use)
14409         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14410         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14411         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14412         (sc_prohibit_hash_pjw_without_use)
14413         (sc_prohibit_safe_read_without_use)
14414         (sc_prohibit_argmatch_without_use)
14415         (sc_prohibit_canonicalize_without_use)
14416         (sc_prohibit_root_dev_ino_without_use)
14417         (sc_prohibit_openat_without_use)
14418         (sc_prohibit_c_ctype_without_use)
14419         (sc_prohibit_signal_without_use)
14420         (sc_prohibit_stdio--_without_use)
14421         (sc_prohibit_stdio-safer_without_use)
14422         (sc_prohibit_strings_without_use)
14423         (sc_prohibit_intprops_without_use)
14424         (sc_prohibit_stddef_without_use)
14425         (sc_prohibit_xfreopen_without_use): Update clients.
14426
14427 2011-06-24  Jim Meyering  <meyering@redhat.com>
14428
14429         syntax-check: keep one maint.mk rule in sync with its header
14430         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14431         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14432         I prefer to avoid temporary files here, so use <(...), but that
14433         is not supported by /bin/sh, so...
14434         (SHELL): Define to /bin/bash.
14435
14436 2011-06-24  Eric Blake  <eblake@redhat.com>
14437
14438         maint.mk: update sc_prohibit_intprops_without_use
14439         * top/maint.mk (_intprops_names): Match recent changes.
14440
14441 2011-06-24  Bruno Haible  <bruno@clisp.org>
14442
14443         strerror-override: No-op tweak.
14444         * lib/strerror-override.h (strerror_override): Reorder conditions,
14445         for consistency with lib/strerror-override.c.
14446
14447 2011-06-23  Eric Blake  <eblake@redhat.com>
14448
14449         maint.mk: test further PATH_MAX issues
14450         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14451         (sc_prohibit_path_max_allocation): ...and also test alloca.
14452         Suggested by Jim Meyering.
14453
14454 2011-06-22  Eric Blake  <eblake@redhat.com>
14455
14456         maint.mk: add syntax-check to avoid char[PATH_MAX]
14457         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14458
14459         stat: be robust to PATH_MAX definition
14460         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14461         * modules/stat (Depends-on): Add verify.
14462
14463         link: work around IRIX bug
14464         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14465         * lib/link.c (rpl_link): Work around it.
14466         * tests/test-link.h (test_link): Enhance test.
14467         * doc/posix-functions/link.texi (link): Document the bug.
14468
14469         getopt: silence clang warning
14470         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14471         dereference.
14472         Reported by Gustavo Martin Domato.
14473
14474 2011-06-22  Jim Meyering  <meyering@redhat.com>
14475
14476         bootstrap: do not insert a blank line into each .gitignore file
14477         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14478
14479 2011-06-21  Eric Blake  <eblake@redhat.com>
14480
14481         perror: test for output mismatch
14482         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14483         perror on IRIX.
14484
14485         strerror_r: fix OpenBSD behavior on out-of-range
14486         * lib/strerror_r.c (strerror_r): Always use maximal string.
14487         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14488
14489         strerror_r: fix OpenBSD behavior on 0
14490         * lib/strerror-override.c (strerror_override): Also override 0
14491         when needed.
14492         * lib/strerror-override.h (strerror_override): Likewise.
14493         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14494         earlier.
14495         * lib/strerror_r.c (strerror_r): Likewise.
14496         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14497         behavior...
14498         (gl_FUNC_STRERROR_0): ...into new macro.
14499         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14500         is overridden.
14501         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14502         * modules/strerror-override (Files): Add strerror.m4.
14503         (configure.ac): Also provide override for 0 when needed.
14504         * doc/posix-functions/strerror.texi (strerror): Document this.
14505         * doc/posix-functions/perror.texi (perror): Likewise.
14506
14507         perror: adjust array size
14508         * modules/perror (Depends-on): Add strerror-override.
14509         * lib/perror.c (perror): Use it to avoid magic number.
14510
14511         strerror-override: reduce size
14512         * lib/strerror-override.c (strerror_override): Use fewer lines.
14513
14514 2011-06-20  Bruno Haible  <bruno@clisp.org>
14515
14516         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14517         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14518
14519 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14520
14521         alloca: port to compilers that can optimize like GCC 4.6.0
14522         * lib/alloca.c (find_stack_direction): New signature, taken from
14523         Autoconf git.  This works with GCC 4.6.0.  This code should never
14524         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14525         be used with other compilers that optimize as well as GCC 4.6.0 does.
14526         (alloca): Adjust to new signature.
14527         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14528         New macro, which patches Autoconf in a similar way.
14529
14530         c-stack: stop worrying about stack direction
14531         * lib/c-stack.c (find_stack_direction): Remove.
14532         (segv_handler): Don't worry about stack direction growth, as it's
14533         too much of a pain to configure this correctly, given how compilers
14534         are optimizing-away our stack-growth detection code.  Instead, assume
14535         that any access to just before or just after the stack is OK.
14536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14537         Don't require AC_FUNC_ALLOCA; no longer needed.
14538
14539 2011-06-20  Eric Blake  <eblake@redhat.com>
14540
14541         test-stat: don't allocate PATH_MAX bytes
14542         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14543         PATH_MAX-sized buffer.
14544         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14545         * modules/stat-tests (Depends-on): Likewise.
14546         * tests/test-fstatat.c (includes): Drop pathmax.h.
14547         * tests/test-stat.c (includes): Likewise.
14548         Reported by Bruno Haible.
14549
14550 2011-06-20  Bruno Haible  <bruno@clisp.org>
14551
14552         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14553         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14554         * lib/float.c: New file.
14555         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14556         REPLACE_FLOAT_LDBL.
14557         * modules/float (Files): Add lib/float.c.
14558         (configure.ac): Invoke AC_LIBOBJ.
14559         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14560
14561 2011-06-20  Bruno Haible  <bruno@clisp.org>
14562
14563         Tests for module 'float'.
14564         * modules/float-tests: New file.
14565         * tests/test-float.c: New file.
14566
14567 2011-06-19  Bruno Haible  <bruno@clisp.org>
14568
14569         isinf: Coding style.
14570         * lib/isinf.c: Use GNU coding style.
14571
14572 2011-06-19  Bruno Haible  <bruno@clisp.org>
14573
14574         linkat test: Avoid test failure on AIX 7.1.
14575         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14576         * tests/test-link.h (test_link): Likewise.
14577
14578 2011-06-19  Bruno Haible  <bruno@clisp.org>
14579
14580         pread test: Avoid test failure on OpenBSD 4.9.
14581         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14582
14583 2011-06-19  Bruno Haible  <bruno@clisp.org>
14584
14585         sprintf-posix: Fix test failure on AIX 7.1.
14586         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14587         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14588         on AIX.
14589         * doc/posix-functions/fprintf.texi: Likewise.
14590         * doc/posix-functions/printf.texi: Likewise.
14591         * doc/posix-functions/snprintf.texi: Likewise.
14592         * doc/posix-functions/sprintf.texi: Likewise.
14593         * doc/posix-functions/vdprintf.texi: Likewise.
14594         * doc/posix-functions/vfprintf.texi: Likewise.
14595         * doc/posix-functions/vprintf.texi: Likewise.
14596         * doc/posix-functions/vsnprintf.texi: Likewise.
14597         * doc/posix-functions/vsprintf.texi: Likewise.
14598
14599 2011-06-19  Bruno Haible  <bruno@clisp.org>
14600
14601         roundl-ieee: Fix test failure on AIX 7.1.
14602         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14603         * doc/posix-functions/roundl.texi: Mention problem with negative
14604         arguments.
14605
14606 2011-06-19  Bruno Haible  <bruno@clisp.org>
14607
14608         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14609         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14610         * doc/posix-functions/round.texi: Mention problem with negative
14611         arguments.
14612         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14613
14614 2011-06-19  Bruno Haible  <bruno@clisp.org>
14615
14616         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14617         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14618         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14619         * doc/posix-functions/roundf.texi: Mention problem with negative
14620         arguments.
14621         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14622
14623 2011-06-19  Bruno Haible  <bruno@clisp.org>
14624
14625         ceilf-ieee: Work around bug on MacOS X 10.5.
14626         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14627
14628         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14629         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14630         IEEE compliant, avoid compiler optimizations.
14631         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14632         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14633         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14634         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14635         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14636         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14637         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14638         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14639         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14640         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14641
14642 2011-06-19  Bruno Haible  <bruno@clisp.org>
14643
14644         ceilf-ieee: Work around bug on AIX 7.1.
14645         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14646         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14647
14648 2011-06-19  Bruno Haible  <bruno@clisp.org>
14649
14650         ceil-ieee: Work around bug on AIX 7.1.
14651         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14652         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14653
14654 2011-06-18  Bruno Haible  <bruno@clisp.org>
14655
14656         fsync test: Avoid test failure on MacOS X and AIX.
14657         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14658         EINVAL.
14659
14660 2011-06-18  Bruno Haible  <bruno@clisp.org>
14661
14662         openat, fdopendir tests: Fix link errors.
14663         * modules/openat-tests (Depends-on): Add progname.
14664         * modules/fdopendir-tests (Depends-on): Likewise.
14665         * tests/test-fchownat.c: Include progname.h.
14666         (main): Call set_program_name.
14667         * tests/test-fstatat.c: Include progname.h.
14668         (main): Call set_program_name.
14669         * tests/test-mkdirat.c: Include progname.h.
14670         (main): Call set_program_name.
14671         * tests/test-openat.c: Include progname.h.
14672         (main): Call set_program_name.
14673         * tests/test-unlinkat.c: Include progname.h.
14674         (main): Call set_program_name.
14675         * tests/test-fdopendir.c: Include progname.h.
14676         (main): Call set_program_name.
14677
14678 2011-06-18  Bruno Haible  <bruno@clisp.org>
14679
14680         Doc update.
14681         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14682         HP-UX.
14683         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14684
14685 2011-06-18  Bruno Haible  <bruno@clisp.org>
14686
14687         getcwd tests: Avoid compilation error on HP-UX 11.31.
14688         * modules/getcwd-tests (Depends-on): Add pathmax.
14689         * tests/test-getcwd.c: Include pathmax.h.
14690
14691 2011-06-18  Bruno Haible  <bruno@clisp.org>
14692
14693         isfinite, isinf: Fix link error on AIX 6 and 7.
14694         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14695         needed, also test the macro with a 'float' argument.
14696         * m4/isinf.m4 (gl_ISINF): Likewise.
14697
14698 2011-06-18  Bruno Haible  <bruno@clisp.org>
14699
14700         getloadavg: Don't clobber LIBS. Regression from previous commit.
14701         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14702         AC_CHECK_LIB from here...
14703         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14704         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14705         gl_func_getloadavg_done.
14706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14707
14708 2011-06-18  Bruno Haible  <bruno@clisp.org>
14709
14710         clean-temp: Improve documentation.
14711         * lib/clean-temp.h: Explain better how to use this module.
14712         Reported by John Darrington <john@darrington.wattle.id.au>.
14713
14714 2011-06-17  Bruno Haible  <bruno@clisp.org>
14715
14716         pread, pwrite: Avoid cc warning on AIX.
14717         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14718         (pwrite): Likewise.
14719
14720 2011-06-17  Bruno Haible  <bruno@clisp.org>
14721
14722         spawn-pipe tests: Fix link error.
14723         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14725
14726 2011-06-17  Bruno Haible  <bruno@clisp.org>
14727
14728         Tests: Remove unnecessary dependency.
14729         * modules/canonicalize-tests (Depends-on): Remove progname.
14730         * modules/chown-tests (Depends-on): Likewise.
14731         * modules/dirname-tests (Depends-on): Likewise.
14732         * modules/fdopendir-tests (Depends-on): Likewise.
14733         * modules/fdutimensat-tests (Depends-on): Likewise.
14734         * modules/hash-tests (Depends-on): Likewise.
14735         * modules/lchown-tests (Depends-on): Likewise.
14736         * modules/linkat-tests (Depends-on): Likewise.
14737         * modules/renameat-tests (Depends-on): Likewise.
14738         * modules/spawn-pipe-tests (Depends-on): Likewise.
14739         * modules/utimensat-tests (Depends-on): Likewise.
14740
14741 2011-06-17  Bruno Haible  <bruno@clisp.org>
14742
14743         spawn-pipe tests: Fix link error.
14744         * tests/test-spawn-pipe-child.c: Undefine fflush.
14745
14746 2011-06-17  Bruno Haible  <bruno@clisp.org>
14747
14748         Fix tests link errors.
14749         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14750         * modules/chown-tests (Makefile.am): Don't link test-chown with
14751         LIBINTL.
14752         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14753         LIBINTL.
14754         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14755         LIBINTL.
14756         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14757         LIBINTL.
14758
14759 2011-06-16  Bruno Haible  <bruno@clisp.org>
14760
14761         crypto/gc-sha1: Fix recent regression.
14762         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14763         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14764
14765         crypto/gc-md5: Fix recent regression.
14766         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14767
14768         crypto/gc-md4: Fix recent regression.
14769         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14770         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14771
14772         crypto/gc-arctwo: Fix recent regression.
14773         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14774         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14775
14776         crypto/gc-rijndael: Fix recent regression.
14777         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14778         (configure.ac): Invoke AC_LIBOBJ here.
14779         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14781
14782         crypto/gc-hmac-sha1: Fix recent regression.
14783         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14784         (configure.ac): Invoke AC_LIBOBJ here.
14785         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14787
14788         crypto/gc-hmac-md5: Fix recent regression.
14789         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14790         (configure.ac): Invoke AC_LIBOBJ here.
14791         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14793
14794         crypto/gc-des: Fix recent regression.
14795         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14796         (configure.ac): Invoke AC_LIBOBJ here.
14797         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14799
14800         crypto/gc-arcfour: Fix recent regression.
14801         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14802         (configure.ac): Invoke AC_LIBOBJ here.
14803         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14805
14806 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14807
14808         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14809         After the 2011-05-21 change, this macro requires
14810         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14811         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14812
14813 2011-06-16  Bruno Haible  <bruno@clisp.org>
14814
14815         fprintftime: Move AC_LIBOBJ invocations to module description.
14816         * m4/fprintftime.m4: Remove file.
14817         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14818         (configure.ac): Remove gl_FPRINTFTIME call.
14819         (Makefile.am): Augment lib_SOURCES.
14820         Reported by Jim Meyering.
14821
14822 2011-06-16  Bruno Haible  <bruno@clisp.org>
14823
14824         tmpfile-safer: Finish 2011-05-23 commit.
14825         * m4/stdio-safer.m4: Really remove file.
14826         Reported by Jim Meyering.
14827
14828 2011-06-16  Bruno Haible  <bruno@clisp.org>
14829
14830         syntax-check: Fix typo.
14831         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14832         printf-posix.m4.
14833         Reported by Jim Meyering.
14834
14835 2011-06-13  Jim Meyering  <meyering@redhat.com>
14836
14837         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14838         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14839
14840 2011-05-23  Bruno Haible  <bruno@clisp.org>
14841
14842         yesno: Move AC_LIBOBJ invocations to module description.
14843         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14844         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14845
14846 2011-05-23  Bruno Haible  <bruno@clisp.org>
14847
14848         xstrtol: Move AC_LIBOBJ invocations to module description.
14849         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14850         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14851
14852 2011-05-23  Bruno Haible  <bruno@clisp.org>
14853
14854         xstrtold: Move AC_LIBOBJ invocations to module description.
14855         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14856         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14857
14858 2011-05-23  Bruno Haible  <bruno@clisp.org>
14859
14860         xstrtod: Move AC_LIBOBJ invocations to module description.
14861         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14862         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14863
14864 2011-05-23  Bruno Haible  <bruno@clisp.org>
14865
14866         xnanosleep: Move AC_LIBOBJ invocations to module description.
14867         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14868         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14869
14870 2011-05-23  Bruno Haible  <bruno@clisp.org>
14871
14872         xgetcwd: Move AC_LIBOBJ invocations to module description.
14873         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14874         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14875
14876 2011-05-23  Bruno Haible  <bruno@clisp.org>
14877
14878         xalloc: Move AC_LIBOBJ invocations to module description.
14879         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14880         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14881
14882 2011-05-23  Bruno Haible  <bruno@clisp.org>
14883
14884         write-any-file: Move AC_LIBOBJ invocations to module description.
14885         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14886         invocation.
14887         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14888
14889 2011-05-23  Bruno Haible  <bruno@clisp.org>
14890
14891         utimens: Move AC_LIBOBJ invocations to module description.
14892         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14893         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14894
14895 2011-05-23  Bruno Haible  <bruno@clisp.org>
14896
14897         utimecmp: Move AC_LIBOBJ invocations to module description.
14898         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14899         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14900
14901 2011-05-23  Bruno Haible  <bruno@clisp.org>
14902
14903         userspec: Move AC_LIBOBJ invocations to module description.
14904         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14905         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14906
14907 2011-05-23  Bruno Haible  <bruno@clisp.org>
14908
14909         unlinkdir: Move AC_LIBOBJ invocations to module description.
14910         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14911         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14912
14913 2011-05-23  Bruno Haible  <bruno@clisp.org>
14914
14915         unistd-safer: Move AC_LIBOBJ invocations to module description.
14916         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14917         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14918
14919 2011-05-23  Bruno Haible  <bruno@clisp.org>
14920
14921         tempname: Move AC_LIBOBJ invocations to module description.
14922         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14923         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14924
14925 2011-05-23  Bruno Haible  <bruno@clisp.org>
14926
14927         strftime: Move AC_LIBOBJ invocations to module description.
14928         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14929         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14930
14931 2011-05-23  Bruno Haible  <bruno@clisp.org>
14932
14933         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14934         * m4/stdlib-safer.m4: Remove file.
14935         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14936         (configure.ac): Remove gl_STDLIB_SAFER call.
14937         (Makefile.am): Augment lib_SOURCES.
14938
14939 2011-05-23  Bruno Haible  <bruno@clisp.org>
14940
14941         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14942         * m4/stdio-safer.m4: Remove file.
14943         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14944         (configure.ac): Remove gl_TMPFILE_SAFER call.
14945         (Makefile.am): Augment lib_SOURCES.
14946
14947 2011-05-23  Bruno Haible  <bruno@clisp.org>
14948
14949         popen-safer: Move AC_LIBOBJ invocations to module description.
14950         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14951         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14952         (configure.ac): Remove gl_POPEN_SAFER call.
14953         (Makefile.am): Augment lib_SOURCES.
14954
14955 2011-05-23  Bruno Haible  <bruno@clisp.org>
14956
14957         freopen-safer: Move AC_LIBOBJ invocations to module description.
14958         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14959         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14960         (configure.ac): Remove gl_FREOPEN_SAFER call.
14961         (Makefile.am): Augment lib_SOURCES.
14962
14963 2011-05-23  Bruno Haible  <bruno@clisp.org>
14964
14965         fopen-safer: Move AC_LIBOBJ invocations to module description.
14966         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14967         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14968         (configure.ac): Remove gl_FOPEN_SAFER call.
14969         (Makefile.am): Augment lib_SOURCES.
14970
14971 2011-05-23  Bruno Haible  <bruno@clisp.org>
14972
14973         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14974         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14975         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14976
14977 2011-05-23  Bruno Haible  <bruno@clisp.org>
14978
14979         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14980         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14981         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14982
14983 2011-05-23  Bruno Haible  <bruno@clisp.org>
14984
14985         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14986         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14987         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14988
14989 2011-05-23  Bruno Haible  <bruno@clisp.org>
14990
14991         settime: Move AC_LIBOBJ invocations to module description.
14992         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14993         * modules/settime (Makefile.am): Augment lib_SOURCES.
14994
14995 2011-05-23  Bruno Haible  <bruno@clisp.org>
14996
14997         savedir: Move AC_LIBOBJ invocations to module description.
14998         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14999         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15000
15001 2011-05-23  Bruno Haible  <bruno@clisp.org>
15002
15003         save-cwd: Move AC_LIBOBJ invocations to module description.
15004         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15005         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15006
15007 2011-05-23  Bruno Haible  <bruno@clisp.org>
15008
15009         same: Move AC_LIBOBJ invocations to module description.
15010         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15011         * modules/same (Makefile.am): Augment lib_SOURCES.
15012
15013 2011-05-23  Bruno Haible  <bruno@clisp.org>
15014
15015         safe-write: Move AC_LIBOBJ invocations to module description.
15016         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15017         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15018         instead of gl_SAFE_WRITE.
15019         (Makefile.am): Augment lib_SOURCES.
15020
15021 2011-05-23  Bruno Haible  <bruno@clisp.org>
15022
15023         safe-read: Move AC_LIBOBJ invocations to module description.
15024         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15025         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15026         of gl_SAFE_READ.
15027         (Makefile.am): Augment lib_SOURCES.
15028
15029 2011-05-23  Bruno Haible  <bruno@clisp.org>
15030
15031         safe-alloc: Move AC_LIBOBJ invocations to module description.
15032         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15033         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15034
15035 2011-05-23  Bruno Haible  <bruno@clisp.org>
15036
15037         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15038         * m4/rijndael.m4: Remove file.
15039         * modules/crypto/rijndael (Files): Remove it.
15040         (configure.ac): Remove gl_RIJNDAEL call.
15041         (Makefile.am): Augment lib_SOURCES.
15042
15043 2011-05-23  Bruno Haible  <bruno@clisp.org>
15044
15045         readtokens: Move AC_LIBOBJ invocations to module description.
15046         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15047         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15048
15049 2011-05-23  Bruno Haible  <bruno@clisp.org>
15050
15051         read-file: Move AC_LIBOBJ invocations to module description.
15052         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15053         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15054         of gl_FUNC_READ_FILE.
15055         (Makefile.am): Augment lib_SOURCES.
15056
15057 2011-05-23  Bruno Haible  <bruno@clisp.org>
15058
15059         quotearg: Move AC_LIBOBJ invocations to module description.
15060         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15061         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15062
15063 2011-05-23  Bruno Haible  <bruno@clisp.org>
15064
15065         quote: Move AC_LIBOBJ invocations to module description.
15066         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15067         * modules/quote (Makefile.am): Augment lib_SOURCES.
15068
15069 2011-05-23  Bruno Haible  <bruno@clisp.org>
15070
15071         posixver: Move AC_LIBOBJ invocations to module description.
15072         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15073         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15074
15075 2011-05-23  Bruno Haible  <bruno@clisp.org>
15076
15077         posixtm: Move AC_LIBOBJ invocations to module description.
15078         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15079         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15080
15081 2011-05-23  Bruno Haible  <bruno@clisp.org>
15082
15083         physmem: Move AC_LIBOBJ invocations to module description.
15084         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15085         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15086
15087 2011-05-23  Bruno Haible  <bruno@clisp.org>
15088
15089         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15090         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15091         invocation.
15092         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15093
15094 2011-05-23  Bruno Haible  <bruno@clisp.org>
15095
15096         mpsort: Move AC_LIBOBJ invocations to module description.
15097         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15098         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15099
15100 2011-05-23  Bruno Haible  <bruno@clisp.org>
15101
15102         modechange: Move AC_LIBOBJ invocations to module description.
15103         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15104         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15105
15106 2011-05-23  Bruno Haible  <bruno@clisp.org>
15107
15108         mkdir-p: Move AC_LIBOBJ invocations to module description.
15109         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15110         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15111
15112 2011-05-23  Bruno Haible  <bruno@clisp.org>
15113
15114         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15115         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15116         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15117
15118 2011-05-23  Bruno Haible  <bruno@clisp.org>
15119
15120         mgetgroups: Move AC_LIBOBJ invocations to module description.
15121         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15122         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15123
15124 2011-05-23  Bruno Haible  <bruno@clisp.org>
15125
15126         memxor: Move AC_LIBOBJ invocations to module description.
15127         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15128         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15129
15130 2011-05-23  Bruno Haible  <bruno@clisp.org>
15131
15132         memcoll: Move AC_LIBOBJ invocations to module description.
15133         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15134         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15135
15136 2011-05-23  Bruno Haible  <bruno@clisp.org>
15137
15138         memcasecmp: Move AC_LIBOBJ invocations to module description.
15139         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15140         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15141
15142 2011-05-23  Bruno Haible  <bruno@clisp.org>
15143
15144         crypto/md5: Move AC_LIBOBJ invocations to module description.
15145         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15146         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15147
15148 2011-05-23  Bruno Haible  <bruno@clisp.org>
15149
15150         crypto/md4: Move AC_LIBOBJ invocations to module description.
15151         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15152         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15153
15154 2011-05-23  Bruno Haible  <bruno@clisp.org>
15155
15156         crypto/md2: Move AC_LIBOBJ invocations to module description.
15157         * m4/md2.m4: Remove file.
15158         * modules/crypto/md2 (Files): Remove it.
15159         (configure.ac): Remove gl_MD2 call.
15160         (Makefile.am): Augment lib_SOURCES.
15161
15162 2011-05-23  Bruno Haible  <bruno@clisp.org>
15163
15164         long-options: Move AC_LIBOBJ invocations to module description.
15165         * m4/long-options.m4: Remove file.
15166         * modules/long-options (Files): Remove it.
15167         (configure.ac): Remove gl_LONG_OPTIONS call.
15168         (Makefile.am): Augment lib_SOURCES.
15169
15170 2011-05-23  Bruno Haible  <bruno@clisp.org>
15171
15172         i-ring: Move AC_LIBOBJ invocations to module description.
15173         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15174         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15175
15176 2011-05-23  Bruno Haible  <bruno@clisp.org>
15177
15178         idcache: Move AC_LIBOBJ invocations to module description.
15179         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15180         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15181
15182 2011-05-23  Bruno Haible  <bruno@clisp.org>
15183
15184         human: Move AC_LIBOBJ invocations to module description.
15185         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15186         * modules/human (Makefile.am): Augment lib_SOURCES.
15187
15188 2011-05-23  Bruno Haible  <bruno@clisp.org>
15189
15190         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15191         * m4/hmac-sha1.m4: Remove file.
15192         * modules/crypto/hmac-sha1 (Files): Remove it.
15193         (configure.ac): Remove gl_HMAC_SHA1 call.
15194         (Makefile.am): Augment lib_SOURCES.
15195
15196 2011-05-23  Bruno Haible  <bruno@clisp.org>
15197
15198         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15199         * m4/hmac-md5.m4: Remove file.
15200         * modules/crypto/hmac-md5 (Files): Remove it.
15201         (configure.ac): Remove gl_HMAC_MD5 call.
15202         (Makefile.am): Augment lib_SOURCES.
15203
15204 2011-05-23  Bruno Haible  <bruno@clisp.org>
15205
15206         hash: Move AC_LIBOBJ invocations to module description.
15207         * m4/hash.m4: Remove file.
15208         * modules/hash (Files): Remove it.
15209         (configure.ac): Remove gl_HASH call.
15210         (Makefile.am): Augment lib_SOURCES.
15211
15212 2011-05-23  Bruno Haible  <bruno@clisp.org>
15213
15214         hard-locale: Move AC_LIBOBJ invocations to module description.
15215         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15216         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15217
15218 2011-05-23  Bruno Haible  <bruno@clisp.org>
15219
15220         getugroups: Move AC_LIBOBJ invocations to module description.
15221         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15222         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15223
15224 2011-05-23  Bruno Haible  <bruno@clisp.org>
15225
15226         gettime: Move AC_LIBOBJ invocations to module description.
15227         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15228         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15229
15230 2011-05-23  Bruno Haible  <bruno@clisp.org>
15231
15232         getndelim2: Move AC_LIBOBJ invocations to module description.
15233         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15234         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15235
15236 2011-05-23  Bruno Haible  <bruno@clisp.org>
15237
15238         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15239         * m4/gc-pbkdf2-sha1.m4: Remove file.
15240         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15241         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15242         (Makefile.am): Augment lib_SOURCES.
15243
15244 2011-05-23  Bruno Haible  <bruno@clisp.org>
15245
15246         fts: Move AC_LIBOBJ invocations to module description.
15247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15248         * modules/fts (configure.ac): ... to here.
15249
15250 2011-05-23  Bruno Haible  <bruno@clisp.org>
15251
15252         file-type: Move AC_LIBOBJ invocations to module description.
15253         * m4/file-type.m4: Remove file.
15254         * modules/file-type (Files): Remove it.
15255         (configure.ac): Remove gl_FILE_TYPE call.
15256         (Makefile.am): Augment lib_SOURCES.
15257
15258 2011-05-23  Bruno Haible  <bruno@clisp.org>
15259
15260         filenamecat*: Respect rules for use of AC_LIBOBJ.
15261         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15262         Remove AC_LIBOBJ invocation.
15263         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15264         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15265
15266 2011-05-23  Bruno Haible  <bruno@clisp.org>
15267
15268         filemode: Move AC_LIBOBJ invocations to module description.
15269         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15270         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15271
15272 2011-05-23  Bruno Haible  <bruno@clisp.org>
15273
15274         openat-safer: Move AC_LIBOBJ invocations to module description.
15275         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15276         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15277
15278 2011-05-23  Bruno Haible  <bruno@clisp.org>
15279
15280         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15281         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15282         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15283
15284 2011-05-23  Bruno Haible  <bruno@clisp.org>
15285
15286         exclude: Move AC_LIBOBJ invocations to module description.
15287         * m4/exclude.m4: Remove file.
15288         * modules/exclude (Files): Remove it.
15289         (configure.ac): Remove gl_EXCLUDE call.
15290         (Makefile.am): Augment lib_SOURCES.
15291
15292 2011-05-23  Bruno Haible  <bruno@clisp.org>
15293
15294         dirname*: Respect rules for use of AC_LIBOBJ.
15295         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15296         invocations.
15297         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15298         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         dirent-safer: Move AC_LIBOBJ invocations to module description.
15303         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15304         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         crypto/des: Move AC_LIBOBJ invocations to module description.
15309         * m4/des.m4: Remove file.
15310         * modules/crypto/des (Files): Remove it.
15311         (configure.ac): Remove gl_DES call.
15312         (Makefile.am): Augment lib_SOURCES.
15313
15314 2011-05-23  Bruno Haible  <bruno@clisp.org>
15315
15316         cycle-check: Move AC_LIBOBJ invocations to module description.
15317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15318         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15319
15320 2011-05-23  Bruno Haible  <bruno@clisp.org>
15321
15322         c-strtold: Move AC_LIBOBJ invocations to module description.
15323         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15324         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15325
15326 2011-05-23  Bruno Haible  <bruno@clisp.org>
15327
15328         c-strtod: Move AC_LIBOBJ invocations to module description.
15329         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15330         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15331
15332 2011-05-23  Bruno Haible  <bruno@clisp.org>
15333
15334         crc: Move AC_LIBOBJ invocations to module description.
15335         * m4/crc.m4: Remove file.
15336         * modules/crc (Files): Remove it.
15337         (configure.ac): Remove gl_CRC call.
15338         (Makefile.am): Augment lib_SOURCES.
15339
15340 2011-05-23  Bruno Haible  <bruno@clisp.org>
15341
15342         close-stream: Move AC_LIBOBJ invocations to module description.
15343         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15344         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15345
15346 2011-05-23  Bruno Haible  <bruno@clisp.org>
15347
15348         closeout: Move AC_LIBOBJ invocations to module description.
15349         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15350         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15351
15352 2011-05-23  Bruno Haible  <bruno@clisp.org>
15353
15354         closein: Move AC_LIBOBJ invocations to module description.
15355         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15356         * modules/closein (Makefile.am): Augment lib_SOURCES.
15357
15358 2011-05-23  Bruno Haible  <bruno@clisp.org>
15359
15360         cloexec: Move AC_LIBOBJ invocations to module description.
15361         * m4/cloexec.m4: Remove file.
15362         * modules/cloexec (Files): Remove it.
15363         (configure.ac): Remove gl_CLOEXEC call.
15364         (Makefile.am): Augment lib_SOURCES.
15365
15366 2011-05-23  Bruno Haible  <bruno@clisp.org>
15367
15368         check-version: Move AC_LIBOBJ invocations to module description.
15369         * m4/check-version.m4: Remove file.
15370         * modules/check-version (Files): Remove it.
15371         (configure.ac): Remove gl_CHECK_VERSION call.
15372         (Makefile.am): Augment lib_SOURCES.
15373
15374 2011-05-23  Bruno Haible  <bruno@clisp.org>
15375
15376         chdir-safer: Move AC_LIBOBJ invocations to module description.
15377         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15378         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15379
15380 2011-05-23  Bruno Haible  <bruno@clisp.org>
15381
15382         canonicalize: Move AC_LIBOBJ invocations to module description.
15383         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15384         AC_LIBOBJ invocation.
15385         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15386
15387 2011-05-23  Bruno Haible  <bruno@clisp.org>
15388
15389         canon-host: Move AC_LIBOBJ invocations to module description.
15390         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15391         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15392         instead of gl_CANON_HOST.
15393         (Makefile.am): Augment lib_SOURCES.
15394
15395 2011-05-23  Bruno Haible  <bruno@clisp.org>
15396
15397         backupfile: Move AC_LIBOBJ invocations to module description.
15398         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15399         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15400
15401 2011-05-23  Bruno Haible  <bruno@clisp.org>
15402
15403         argmatch: Move AC_LIBOBJ invocations to module description.
15404         * m4/argmatch.m4: Remove file.
15405         * modules/argmatch (Files): Remove it.
15406         (configure.ac): Remove gl_ARGMATCH call.
15407         (Makefile.am): Augment lib_SOURCES.
15408
15409 2011-05-23  Bruno Haible  <bruno@clisp.org>
15410
15411         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15412         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15413         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15414
15415 2011-05-23  Bruno Haible  <bruno@clisp.org>
15416
15417         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15418         * m4/arcfour.m4: Remove file.
15419         * modules/crypto/arcfour (Files): Remove it.
15420         (configure.ac): Remove gl_ARCFOUR call.
15421         (Makefile.am): Augment lib_SOURCES.
15422
15423 2011-05-22  Bruno Haible  <bruno@clisp.org>
15424
15425         write: Move AC_LIBOBJ invocations to module description.
15426         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15427         * modules/write (configure.ac): ... to here.
15428
15429 2011-05-22  Bruno Haible  <bruno@clisp.org>
15430
15431         wmemset: Move AC_LIBOBJ invocations to module description.
15432         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15433         here...
15434         * modules/wmemset (configure.ac): ... to here.
15435
15436 2011-05-22  Bruno Haible  <bruno@clisp.org>
15437
15438         wmemmove: Move AC_LIBOBJ invocations to module description.
15439         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15440         here...
15441         * modules/wmemmove (configure.ac): ... to here.
15442
15443 2011-05-22  Bruno Haible  <bruno@clisp.org>
15444
15445         wmemcpy: Move AC_LIBOBJ invocations to module description.
15446         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15447         here...
15448         * modules/wmemcpy (configure.ac): ... to here.
15449
15450 2011-05-22  Bruno Haible  <bruno@clisp.org>
15451
15452         wmemcmp: Move AC_LIBOBJ invocations to module description.
15453         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15454         here...
15455         * modules/wmemcmp (configure.ac): ... to here.
15456
15457 2011-05-22  Bruno Haible  <bruno@clisp.org>
15458
15459         wmemchr: Move AC_LIBOBJ invocations to module description.
15460         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15461         here...
15462         * modules/wmemchr (configure.ac): ... to here.
15463
15464 2011-05-22  Bruno Haible  <bruno@clisp.org>
15465
15466         wcswidth: Move AC_LIBOBJ invocations to module description.
15467         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15468         here...
15469         * modules/wcswidth (configure.ac): ... to here.
15470
15471 2011-05-22  Bruno Haible  <bruno@clisp.org>
15472
15473         wcwidth: Respect rules for use of AC_LIBOBJ.
15474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15475         invocation from here...
15476         * modules/wcwidth (configure.ac): ... to here.
15477         (Depends-on): Update conditions.
15478
15479 2011-05-22  Bruno Haible  <bruno@clisp.org>
15480
15481         wctype: Move AC_LIBOBJ invocations to module description.
15482         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15483         invocation from here...
15484         * modules/wctype (configure.ac): ... to here.
15485         (Depends-on): Update conditions.
15486
15487 2011-05-22  Bruno Haible  <bruno@clisp.org>
15488
15489         wctrans: Move AC_LIBOBJ invocations to module description.
15490         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15491         invocation from here...
15492         * modules/wctrans (configure.ac): ... to here.
15493
15494 2011-05-22  Bruno Haible  <bruno@clisp.org>
15495
15496         wctomb: Move AC_LIBOBJ invocations to module description.
15497         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15498         invocations from here...
15499         * modules/wctomb (configure.ac): ... to here.
15500
15501 2011-05-22  Bruno Haible  <bruno@clisp.org>
15502
15503         wctob: Move AC_LIBOBJ invocations to module description.
15504         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15505         gl_PREREQ_WCTOB invocations from here...
15506         * modules/wctob (configure.ac): ... to here.
15507         (Depends-on): Update conditions.
15508
15509 2011-05-22  Bruno Haible  <bruno@clisp.org>
15510
15511         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15512         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15513         here...
15514         * modules/wcsxfrm (configure.ac): ... to here.
15515
15516 2011-05-22  Bruno Haible  <bruno@clisp.org>
15517
15518         wcstok: Move AC_LIBOBJ invocations to module description.
15519         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15520         * modules/wcstok (configure.ac): ... to here.
15521
15522 2011-05-22  Bruno Haible  <bruno@clisp.org>
15523
15524         wcsstr: Move AC_LIBOBJ invocations to module description.
15525         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15526         * modules/wcsstr (configure.ac): ... to here.
15527
15528 2011-05-22  Bruno Haible  <bruno@clisp.org>
15529
15530         wcsspn: Move AC_LIBOBJ invocations to module description.
15531         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15532         * modules/wcsspn (configure.ac): ... to here.
15533
15534 2011-05-22  Bruno Haible  <bruno@clisp.org>
15535
15536         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15537         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15538         gl_PREREQ_WCSRTOMBS invocations from here...
15539         * modules/wcsrtombs (configure.ac): ... to here.
15540
15541 2011-05-22  Bruno Haible  <bruno@clisp.org>
15542
15543         wcsrchr: Move AC_LIBOBJ invocations to module description.
15544         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15545         here...
15546         * modules/wcsrchr (configure.ac): ... to here.
15547
15548 2011-05-22  Bruno Haible  <bruno@clisp.org>
15549
15550         wcspbrk: Move AC_LIBOBJ invocations to module description.
15551         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15552         here...
15553         * modules/wcspbrk (configure.ac): ... to here.
15554
15555 2011-05-22  Bruno Haible  <bruno@clisp.org>
15556
15557         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15558         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15559         gl_PREREQ_WCSNRTOMBS invocations from here...
15560         * modules/wcsnrtombs (configure.ac): ... to here.
15561
15562 2011-05-22  Bruno Haible  <bruno@clisp.org>
15563
15564         wcsnlen: Move AC_LIBOBJ invocations to module description.
15565         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15566         here...
15567         * modules/wcsnlen (configure.ac): ... to here.
15568
15569 2011-05-22  Bruno Haible  <bruno@clisp.org>
15570
15571         wcsncpy: Move AC_LIBOBJ invocations to module description.
15572         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15573         here...
15574         * modules/wcsncpy (configure.ac): ... to here.
15575
15576 2011-05-22  Bruno Haible  <bruno@clisp.org>
15577
15578         wcsncmp: Move AC_LIBOBJ invocations to module description.
15579         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15580         here...
15581         * modules/wcsncmp (configure.ac): ... to here.
15582
15583 2011-05-22  Bruno Haible  <bruno@clisp.org>
15584
15585         wcsncat: Move AC_LIBOBJ invocations to module description.
15586         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15587         here...
15588         * modules/wcsncat (configure.ac): ... to here.
15589
15590 2011-05-22  Bruno Haible  <bruno@clisp.org>
15591
15592         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15593         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15594         from here...
15595         * modules/wcsncasecmp (configure.ac): ... to here.
15596
15597 2011-05-22  Bruno Haible  <bruno@clisp.org>
15598
15599         wcslen: Move AC_LIBOBJ invocations to module description.
15600         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15601         * modules/wcslen (configure.ac): ... to here.
15602
15603 2011-05-22  Bruno Haible  <bruno@clisp.org>
15604
15605         wcsdup: Move AC_LIBOBJ invocations to module description.
15606         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15607         * modules/wcsdup (configure.ac): ... to here.
15608
15609 2011-05-22  Bruno Haible  <bruno@clisp.org>
15610
15611         wcscspn: Move AC_LIBOBJ invocations to module description.
15612         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15613         here...
15614         * modules/wcscspn (configure.ac): ... to here.
15615
15616 2011-05-22  Bruno Haible  <bruno@clisp.org>
15617
15618         wcscpy: Move AC_LIBOBJ invocations to module description.
15619         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15620         * modules/wcscpy (configure.ac): ... to here.
15621
15622 2011-05-22  Bruno Haible  <bruno@clisp.org>
15623
15624         wcscoll: Move AC_LIBOBJ invocations to module description.
15625         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15626         here...
15627         * modules/wcscoll (configure.ac): ... to here.
15628
15629 2011-05-22  Bruno Haible  <bruno@clisp.org>
15630
15631         wcscmp: Move AC_LIBOBJ invocations to module description.
15632         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15633         * modules/wcscmp (configure.ac): ... to here.
15634
15635 2011-05-22  Bruno Haible  <bruno@clisp.org>
15636
15637         wcschr: Move AC_LIBOBJ invocations to module description.
15638         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15639         * modules/wcschr (configure.ac): ... to here.
15640
15641 2011-05-22  Bruno Haible  <bruno@clisp.org>
15642
15643         wcscat: Move AC_LIBOBJ invocations to module description.
15644         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15645         * modules/wcscat (configure.ac): ... to here.
15646
15647 2011-05-22  Bruno Haible  <bruno@clisp.org>
15648
15649         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15650         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15651         here...
15652         * modules/wcscasecmp (configure.ac): ... to here.
15653
15654 2011-05-22  Bruno Haible  <bruno@clisp.org>
15655
15656         wcrtomb: Move AC_LIBOBJ invocations to module description.
15657         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15658         invocations from here...
15659         * modules/wcrtomb (configure.ac): ... to here.
15660
15661 2011-05-22  Bruno Haible  <bruno@clisp.org>
15662
15663         wcpncpy: Move AC_LIBOBJ invocations to module description.
15664         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15665         here...
15666         * modules/wcpncpy (configure.ac): ... to here.
15667
15668 2011-05-22  Bruno Haible  <bruno@clisp.org>
15669
15670         wcpcpy: Move AC_LIBOBJ invocations to module description.
15671         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15672         * modules/wcpcpy (configure.ac): ... to here.
15673
15674 2011-05-22  Bruno Haible  <bruno@clisp.org>
15675
15676         waitpid: Move AC_LIBOBJ invocations to module description.
15677         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15678         invocation from here...
15679         * modules/waitpid (configure.ac): ... to here.
15680
15681 2011-05-22  Bruno Haible  <bruno@clisp.org>
15682
15683         utimensat: Move AC_LIBOBJ invocations to module description.
15684         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15685         here...
15686         * modules/utimensat (configure.ac): ... to here.
15687
15688 2011-05-22  Bruno Haible  <bruno@clisp.org>
15689
15690         usleep: Move AC_LIBOBJ invocations to module description.
15691         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15692         here...
15693         * modules/usleep (configure.ac): ... to here.
15694
15695 2011-05-22  Bruno Haible  <bruno@clisp.org>
15696
15697         unlockpt: Move AC_LIBOBJ invocations to module description.
15698         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15699         gl_PREREQ_UNLOCKPT invocations from here...
15700         * modules/unlockpt (configure.ac): ... to here.
15701
15702 2011-05-22  Bruno Haible  <bruno@clisp.org>
15703
15704         unlink: Respect rules for use of AC_LIBOBJ.
15705         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15706         * modules/unlink (configure.ac): ... to here.
15707
15708 2011-05-22  Bruno Haible  <bruno@clisp.org>
15709
15710         uname: Move AC_LIBOBJ invocations to module description.
15711         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15713         here...
15714         * modules/uname (configure.ac): ... to here.
15715
15716 2011-05-22  Bruno Haible  <bruno@clisp.org>
15717
15718         ttyname_r: Move AC_LIBOBJ invocations to module description.
15719         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15720         gl_PREREQ_TTYNAME_R invocations from here...
15721         * modules/ttyname_r (configure.ac): ... to here.
15722
15723 2011-05-22  Bruno Haible  <bruno@clisp.org>
15724
15725         tsearch: Move AC_LIBOBJ invocations to module description.
15726         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15727         invocations from here...
15728         * modules/tsearch (configure.ac): ... to here.
15729
15730 2011-05-22  Bruno Haible  <bruno@clisp.org>
15731
15732         towctrans: Move AC_LIBOBJ invocations to module description.
15733         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15734         AC_LIBOBJ invocation from here...
15735         * modules/towctrans (configure.ac): ... to here.
15736
15737 2011-05-22  Bruno Haible  <bruno@clisp.org>
15738
15739         tmpfile: Move AC_LIBOBJ invocations to module description.
15740         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15741         invocations from here...
15742         * modules/tmpfile (configure.ac): ... to here.
15743
15744 2011-05-22  Bruno Haible  <bruno@clisp.org>
15745
15746         times: Move AC_LIBOBJ invocations to module description.
15747         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15748         * modules/times (configure.ac): ... to here.
15749
15750 2011-05-22  Bruno Haible  <bruno@clisp.org>
15751
15752         time_r: Move AC_LIBOBJ invocations to module description.
15753         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15754         invocations from here...
15755         * modules/time_r (configure.ac): ... to here.
15756
15757 2011-05-22  Bruno Haible  <bruno@clisp.org>
15758
15759         timegm: Move AC_LIBOBJ invocations to module description.
15760         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15761         invocations from here...
15762         * modules/timegm (configure.ac): ... to here.
15763
15764 2011-05-22  Bruno Haible  <bruno@clisp.org>
15765
15766         tcgetsid: Move AC_LIBOBJ invocations to module description.
15767         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15768         and gl_PREREQ_TCGETSID invocations from here...
15769         * modules/tcgetsid (configure.ac): ... to here.
15770         (Depends-on): Update conditions.
15771
15772 2011-05-22  Bruno Haible  <bruno@clisp.org>
15773
15774         symlinkat: Move AC_LIBOBJ invocations to module description.
15775         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15776         here...
15777         * modules/symlinkat (configure.ac): ... to here.
15778
15779 2011-05-22  Bruno Haible  <bruno@clisp.org>
15780
15781         symlink: Move AC_LIBOBJ invocations to module description.
15782         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15783         here...
15784         * modules/symlink (configure.ac): ... to here.
15785
15786 2011-05-22  Bruno Haible  <bruno@clisp.org>
15787
15788         strverscmp: Move AC_LIBOBJ invocations to module description.
15789         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15791         from here...
15792         * modules/strverscmp (configure.ac): ... to here.
15793
15794 2011-05-22  Bruno Haible  <bruno@clisp.org>
15795
15796         strtok_r: Move AC_LIBOBJ invocations to module description.
15797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15798         and gl_PREREQ_STRTOK_R invocations from here...
15799         * modules/strtok_r (configure.ac): ... to here.
15800         (Depends-on): Update conditions.
15801
15802 2011-05-22  Bruno Haible  <bruno@clisp.org>
15803
15804         strtoumax: Move AC_LIBOBJ invocations to module description.
15805         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15807         from here...
15808         * modules/strtoumax (configure.ac): ... to here.
15809
15810 2011-05-22  Bruno Haible  <bruno@clisp.org>
15811
15812         strtoimax: Move AC_LIBOBJ invocations to module description.
15813         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15815         from here...
15816         * modules/strtoimax (configure.ac): ... to here.
15817
15818 2011-05-22  Bruno Haible  <bruno@clisp.org>
15819
15820         strtoull: Move AC_LIBOBJ invocations to module description.
15821         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15823         from here...
15824         * modules/strtoull (configure.ac): ... to here.
15825
15826 2011-05-22  Bruno Haible  <bruno@clisp.org>
15827
15828         strtoll: Move AC_LIBOBJ invocations to module description.
15829         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15831         here...
15832         * modules/strtoll (configure.ac): ... to here.
15833
15834 2011-05-22  Bruno Haible  <bruno@clisp.org>
15835
15836         strtoul: Move AC_LIBOBJ invocations to module description.
15837         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15838         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15839         * modules/strtoul (configure.ac): ... to here.
15840
15841 2011-05-22  Bruno Haible  <bruno@clisp.org>
15842
15843         strtol: Move AC_LIBOBJ invocations to module description.
15844         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15845         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15846         * modules/strtol (configure.ac): ... to here.
15847
15848 2011-05-22  Bruno Haible  <bruno@clisp.org>
15849
15850         strtod: Move AC_LIBOBJ invocations to module description.
15851         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15852         invocations from here...
15853         * modules/strtod (configure.ac): ... to here.
15854
15855 2011-05-22  Bruno Haible  <bruno@clisp.org>
15856
15857         strstr*: Move AC_LIBOBJ invocations to module description.
15858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15859         invocations from here...
15860         * modules/strstr-simple (configure.ac): ... to here.
15861         * modules/strstr (configure.ac): ... and here.
15862
15863 2011-05-22  Bruno Haible  <bruno@clisp.org>
15864
15865         strsignal: Move AC_LIBOBJ invocations to module description.
15866         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15867         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15868         * modules/strsignal (configure.ac): ... to here.
15869         (Depends-on): Update conditions.
15870
15871 2011-05-22  Bruno Haible  <bruno@clisp.org>
15872
15873         strsep: Move AC_LIBOBJ invocations to module description.
15874         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15876         here...
15877         * modules/strsep (configure.ac): ... to here.
15878
15879 2011-05-22  Bruno Haible  <bruno@clisp.org>
15880
15881         strptime: Move AC_LIBOBJ invocations to module description.
15882         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15883         gl_PREREQ_STRPTIME invocations from here...
15884         * modules/strptime (configure.ac): ... to here.
15885
15886 2011-05-22  Bruno Haible  <bruno@clisp.org>
15887
15888         strpbrk: Move AC_LIBOBJ invocations to module description.
15889         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15891         here...
15892         * modules/strpbrk (configure.ac): ... to here.
15893
15894 2011-05-22  Bruno Haible  <bruno@clisp.org>
15895
15896         strnlen: Move AC_LIBOBJ invocations to module description.
15897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15898         invocations from here...
15899         * modules/strnlen (configure.ac): ... to here.
15900
15901 2011-05-22  Bruno Haible  <bruno@clisp.org>
15902
15903         strndup: Move AC_LIBOBJ invocations to module description.
15904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15905         invocations from here...
15906         * modules/strndup (configure.ac): ... to here.
15907         (Depends-on): Update conditions.
15908
15909 2011-05-22  Bruno Haible  <bruno@clisp.org>
15910
15911         strncat: Move AC_LIBOBJ invocations to module description.
15912         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15913         invocations from here...
15914         * modules/strncat (configure.ac): ... to here.
15915
15916 2011-05-22  Bruno Haible  <bruno@clisp.org>
15917
15918         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15919         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15920         invocations from here...
15921         * modules/strdup (configure.ac): ... to here.
15922         * modules/strdup-posix (configure.ac): ... and here.
15923
15924 2011-05-22  Bruno Haible  <bruno@clisp.org>
15925
15926         strcspn: Move AC_LIBOBJ invocations to module description.
15927         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15929         here...
15930         * modules/strcspn (configure.ac): ... to here.
15931
15932 2011-05-22  Bruno Haible  <bruno@clisp.org>
15933
15934         strchrnul: Move AC_LIBOBJ invocations to module description.
15935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15936         gl_PREREQ_STRCHRNUL invocations from here...
15937         * modules/strchrnul (configure.ac): ... to here.
15938
15939 2011-05-22  Bruno Haible  <bruno@clisp.org>
15940
15941         strcasestr*: Move AC_LIBOBJ invocations to module description.
15942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15943         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15944         * modules/strcasestr-simple (configure.ac): ... to here.
15945         * modules/strcasestr (configure.ac): ... and here.
15946
15947 2011-05-22  Bruno Haible  <bruno@clisp.org>
15948
15949         strcase: Move AC_LIBOBJ invocations to module description.
15950         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15951         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15952         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15953         gl_PREREQ_STRNCASECMP invocations from here...
15954         * modules/strcase (configure.ac): ... to here.
15955
15956 2011-05-22  Bruno Haible  <bruno@clisp.org>
15957
15958         stpncpy: Move AC_LIBOBJ invocations to module description.
15959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15960         here...
15961         * modules/stpncpy (configure.ac): ... to here.
15962
15963 2011-05-22  Bruno Haible  <bruno@clisp.org>
15964
15965         stpcpy: Move AC_LIBOBJ invocations to module description.
15966         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15967         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15968         here...
15969         * modules/stpcpy (configure.ac): ... to here.
15970
15971 2011-05-21  Bruno Haible  <bruno@clisp.org>
15972
15973         stat: Move AC_LIBOBJ invocations to module description.
15974         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15975         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15976         here...
15977         * modules/stat (configure.ac): ... to here.
15978
15979 2011-05-21  Bruno Haible  <bruno@clisp.org>
15980
15981         sleep: Move AC_LIBOBJ invocations to module description.
15982         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15983         * modules/sleep (configure.ac): ... to here.
15984
15985 2011-05-21  Bruno Haible  <bruno@clisp.org>
15986
15987         signbit: Move AC_LIBOBJ invocations to module description.
15988         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15989         * modules/signbit (configure.ac): ... to here.
15990
15991 2011-05-21  Bruno Haible  <bruno@clisp.org>
15992
15993         sigprocmask: Move AC_LIBOBJ invocations to module description.
15994         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15995         gl_PREREQ_SIGPROMASK invocations from here...
15996         * modules/sigprocmask (configure.ac): ... to here.
15997
15998 2011-05-21  Bruno Haible  <bruno@clisp.org>
15999
16000         sigaction: Move AC_LIBOBJ invocations to module description.
16001         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16002         gl_PREREQ_SIGACTION invocations from here...
16003         * modules/sigaction (configure.ac): ... to here.
16004
16005 2011-05-21  Bruno Haible  <bruno@clisp.org>
16006
16007         sig2str: Move AC_LIBOBJ invocations to module description.
16008         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16010         here...
16011         * modules/sig2str (configure.ac): ... to here.
16012
16013 2011-05-21  Bruno Haible  <bruno@clisp.org>
16014
16015         setlocale: Move AC_LIBOBJ invocations to module description.
16016         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16017         gl_PREREQ_SETLOCALE invocations from here...
16018         * modules/setlocale (configure.ac): ... to here.
16019
16020 2011-05-21  Bruno Haible  <bruno@clisp.org>
16021
16022         unsetenv: Move AC_LIBOBJ invocations to module description.
16023         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16024         and gl_PREREQ_UNSETENV invocations from here...
16025         * modules/unsetenv (configure.ac): ... to here.
16026         (Depends-on): Update.
16027
16028 2011-05-21  Bruno Haible  <bruno@clisp.org>
16029
16030         setenv: Move AC_LIBOBJ invocations to module description.
16031         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16032         here...
16033         * modules/setenv (configure.ac): ... to here.
16034
16035 2011-05-21  Bruno Haible  <bruno@clisp.org>
16036
16037         selinux-h: Move AC_LIBOBJ invocations to module description.
16038         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16039         AC_LIBOBJ invocation from here...
16040         * modules/selinux-h (configure.ac): ... to here.
16041
16042 2011-05-21  Bruno Haible  <bruno@clisp.org>
16043
16044         select: Respect rules for use of AC_LIBOBJ.
16045         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16046         here...
16047         * modules/select (configure.ac): ... to here.
16048
16049 2011-05-21  Bruno Haible  <bruno@clisp.org>
16050
16051         scandir: Move AC_LIBOBJ invocations to module description.
16052         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16053         invocations from here...
16054         * modules/scandir (configure.ac): ... to here.
16055
16056 2011-05-21  Bruno Haible  <bruno@clisp.org>
16057
16058         rpmatch: Move AC_LIBOBJ invocations to module description.
16059         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16061         here...
16062         * modules/rpmatch (configure.ac): ... to here.
16063
16064 2011-05-21  Bruno Haible  <bruno@clisp.org>
16065
16066         rmdir: Respect rules for use of AC_LIBOBJ.
16067         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16068         * modules/rmdir (configure.ac): ... to here.
16069
16070 2011-05-21  Bruno Haible  <bruno@clisp.org>
16071
16072         renameat: Move AC_LIBOBJ invocations to module description.
16073         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16074         here...
16075         * modules/renameat (configure.ac): ... to here.
16076
16077 2011-05-21  Bruno Haible  <bruno@clisp.org>
16078
16079         rename: Respect rules for use of AC_LIBOBJ.
16080         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16081         here...
16082         * modules/rename (configure.ac): ... to here.
16083
16084 2011-05-21  Bruno Haible  <bruno@clisp.org>
16085
16086         remove: Move AC_LIBOBJ invocations to module description.
16087         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16088         here...
16089         * modules/remove (configure.ac): ... to here.
16090
16091 2011-05-21  Bruno Haible  <bruno@clisp.org>
16092
16093         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16094         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16095         macro.
16096         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16097         * modules/relocatable-lib (configure.ac): ... to here.
16098         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16099         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16100
16101 2011-05-21  Bruno Haible  <bruno@clisp.org>
16102
16103         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16104         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16105         here...
16106         * modules/relocatable-prog (configure.ac): ... to here.
16107
16108 2011-05-21  Bruno Haible  <bruno@clisp.org>
16109
16110         regex: Move AC_LIBOBJ invocations to module description.
16111         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16112         invocations from here...
16113         * modules/regex (configure.ac): ... to here.
16114
16115 2011-05-21  Bruno Haible  <bruno@clisp.org>
16116
16117         realloc-*: Move AC_LIBOBJ invocations to module description.
16118         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16119         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16120         AC_LIBOBJ invocations from here...
16121         * modules/realloc-gnu (configure.ac): ... to here.
16122         * modules/realloc-posix (configure.ac): ... and here.
16123
16124 2011-05-21  Bruno Haible  <bruno@clisp.org>
16125
16126         readutmp: Move AC_LIBOBJ invocations to module description.
16127         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16128         * modules/readutmp (configure.ac): ... to here.
16129
16130 2011-05-21  Bruno Haible  <bruno@clisp.org>
16131
16132         readlinkat: Move AC_LIBOBJ invocations to module description.
16133         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16134         here...
16135         * modules/readlinkat (configure.ac): ... to here.
16136
16137 2011-05-21  Bruno Haible  <bruno@clisp.org>
16138
16139         readlink: Move AC_LIBOBJ invocations to module description.
16140         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16141         gl_PREREQ_READLINK invocations from here...
16142         * modules/readlink (configure.ac): ... to here.
16143
16144 2011-05-21  Bruno Haible  <bruno@clisp.org>
16145
16146         readline: Move AC_LIBOBJ invocations to module description.
16147         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16148         gl_PREREQ_READLINE invocations from here...
16149         * modules/readline (configure.ac): ... to here.
16150
16151 2011-05-21  Bruno Haible  <bruno@clisp.org>
16152
16153         read: Move AC_LIBOBJ invocations to module description.
16154         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16155         * modules/read (configure.ac): ... to here.
16156
16157 2011-05-21  Bruno Haible  <bruno@clisp.org>
16158
16159         rawmemchr: Move AC_LIBOBJ invocations to module description.
16160         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16162         from here...
16163         * modules/rawmemchr (configure.ac): ... to here.
16164
16165 2011-05-21  Bruno Haible  <bruno@clisp.org>
16166
16167         random_r: Move AC_LIBOBJ invocations to module description.
16168         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16169         gl_PREREQ_RANDOM_R invocations from here...
16170         * modules/random_r (configure.ac): ... to here.
16171
16172 2011-05-21  Bruno Haible  <bruno@clisp.org>
16173
16174         pwrite: Move AC_LIBOBJ invocations to module description.
16175         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16176         * modules/pwrite (configure.ac): ... to here.
16177
16178 2011-05-21  Bruno Haible  <bruno@clisp.org>
16179
16180         putenv: Move AC_LIBOBJ invocations to module description.
16181         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16182         * modules/putenv (configure.ac): ... to here.
16183
16184 2011-05-21  Bruno Haible  <bruno@clisp.org>
16185
16186         login_tty: Move AC_LIBOBJ invocations to module description.
16187         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16188         * modules/login_tty (configure.ac): ... to here.
16189
16190 2011-05-21  Bruno Haible  <bruno@clisp.org>
16191
16192         openpty: Move AC_LIBOBJ invocations to module description.
16193         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16194         * modules/openpty (configure.ac): ... to here.
16195
16196 2011-05-21  Bruno Haible  <bruno@clisp.org>
16197
16198         forkpty: Move AC_LIBOBJ invocations to module description.
16199         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16200         * modules/forkpty (configure.ac): ... to here.
16201
16202 2011-05-21  Bruno Haible  <bruno@clisp.org>
16203
16204         ptsname: Move AC_LIBOBJ invocations to module description.
16205         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16206         invocations from here...
16207         * modules/ptsname (configure.ac): ... to here.
16208
16209 2011-05-21  Bruno Haible  <bruno@clisp.org>
16210
16211         pread: Move AC_LIBOBJ invocations to module description.
16212         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16213         * modules/pread (configure.ac): ... to here.
16214
16215 2011-05-21  Bruno Haible  <bruno@clisp.org>
16216
16217         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16218         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16219         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16220         * modules/posix_spawn (configure.ac): ... to here.
16221         * modules/posix_spawnp (configure.ac): ... and here.
16222
16223 2011-05-21  Bruno Haible  <bruno@clisp.org>
16224
16225         popen: Move AC_LIBOBJ invocations to module description.
16226         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16227         invocations from here...
16228         * modules/popen (configure.ac): ... to here.
16229
16230 2011-05-21  Bruno Haible  <bruno@clisp.org>
16231
16232         poll: Move AC_LIBOBJ invocations to module description.
16233         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16234         invocations from here...
16235         * modules/poll (configure.ac): ... to here.
16236
16237 2011-05-21  Bruno Haible  <bruno@clisp.org>
16238
16239         pipe-posix: Move AC_LIBOBJ invocations to module description.
16240         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16241         * modules/pipe-posix (configure.ac): ... to here.
16242
16243 2011-05-21  Bruno Haible  <bruno@clisp.org>
16244
16245         openat: Respect rules for use of AC_LIBOBJ.
16246         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16247         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16248         * modules/openat (configure.ac): ... to here.
16249
16250 2011-05-21  Bruno Haible  <bruno@clisp.org>
16251
16252         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16253         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16254         invocation from here...
16255         * modules/obstack-printf (configure.ac): ... to here.
16256         * modules/obstack-printf-posix (configure.ac): ... and here.
16257
16258 2011-05-21  Bruno Haible  <bruno@clisp.org>
16259
16260         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16261         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16262         from here...
16263         * modules/nl_langinfo (configure.ac): ... to here.
16264
16265 2011-05-21  Bruno Haible  <bruno@clisp.org>
16266
16267         nanosleep: Move AC_LIBOBJ invocations to module description.
16268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16269         gl_PREREQ_NANOSLEEP invocations from here...
16270         * modules/nanosleep (configure.ac): ... to here.
16271
16272 2011-05-21  Bruno Haible  <bruno@clisp.org>
16273
16274         mountlist: Move AC_LIBOBJ invocations to module description.
16275         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16276         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16277         * modules/mountlist (configure.ac): ... to here.
16278
16279 2011-05-21  Bruno Haible  <bruno@clisp.org>
16280
16281         mktime: Respect rules for use of AC_LIBOBJ.
16282         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16283         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16284         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16285         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16286         * modules/mktime (configure.ac): ... to here.
16287         * modules/mktime-internal (configure.ac): ... and here.
16288         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16289
16290 2011-05-21  Bruno Haible  <bruno@clisp.org>
16291
16292         mkstemps: Move AC_LIBOBJ invocations to module description.
16293         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16294         here...
16295         * modules/mkstemps (configure.ac): ... to here.
16296
16297 2011-05-21  Bruno Haible  <bruno@clisp.org>
16298
16299         mkstemp: Move AC_LIBOBJ invocations to module description.
16300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16301         gl_PREREQ_MKSTEMP invocations from here...
16302         * modules/mkstemp (configure.ac): ... to here.
16303
16304 2011-05-21  Bruno Haible  <bruno@clisp.org>
16305
16306         mkostemps: Move AC_LIBOBJ invocations to module description.
16307         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16308         here...
16309         * modules/mkostemps (configure.ac): ... to here.
16310
16311 2011-05-21  Bruno Haible  <bruno@clisp.org>
16312
16313         mkostemp: Move AC_LIBOBJ invocations to module description.
16314         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16315         gl_PREREQ_MKOSTEMP invocations from here...
16316         * modules/mkostemp (configure.ac): ... to here.
16317
16318 2011-05-21  Bruno Haible  <bruno@clisp.org>
16319
16320         mknod: Move AC_LIBOBJ invocations to module description.
16321         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16322         * modules/mknod (configure.ac): ... to here.
16323
16324 2011-05-21  Bruno Haible  <bruno@clisp.org>
16325
16326         mkfifoat: Move AC_LIBOBJ invocations to module description.
16327         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16328         here...
16329         * modules/mkfifoat (configure.ac): ... to here.
16330
16331 2011-05-21  Bruno Haible  <bruno@clisp.org>
16332
16333         mkfifo: Respect rules for use of AC_LIBOBJ.
16334         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16335         here...
16336         * modules/mkfifo (configure.ac): ... to here.
16337
16338 2011-05-21  Bruno Haible  <bruno@clisp.org>
16339
16340         mkdtemp: Move AC_LIBOBJ invocations to module description.
16341         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16342         invocations from here...
16343         * modules/mkdtemp (configure.ac): ... to here.
16344
16345 2011-05-21  Bruno Haible  <bruno@clisp.org>
16346
16347         mkdir: Move AC_LIBOBJ invocations to module description.
16348         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16349         * modules/mkdir (configure.ac): ... to here.
16350
16351 2011-05-21  Bruno Haible  <bruno@clisp.org>
16352
16353         memset: Move AC_LIBOBJ invocations to module description.
16354         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16355         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16356         here...
16357         * modules/memset (configure.ac): ... to here.
16358
16359 2011-05-21  Bruno Haible  <bruno@clisp.org>
16360
16361         memrchr: Move AC_LIBOBJ invocations to module description.
16362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16364         here...
16365         * modules/memrchr (configure.ac): ... to here.
16366
16367 2011-05-21  Bruno Haible  <bruno@clisp.org>
16368
16369         mempcpy: Move AC_LIBOBJ invocations to module description.
16370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16372         here...
16373         * modules/mempcpy (configure.ac): ... to here.
16374
16375 2011-05-21  Bruno Haible  <bruno@clisp.org>
16376
16377         memmove: Move AC_LIBOBJ invocations to module description.
16378         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16380         here...
16381         * modules/memmove (configure.ac): ... to here.
16382
16383 2011-05-21  Bruno Haible  <bruno@clisp.org>
16384
16385         memmem*: Move AC_LIBOBJ invocations to module description.
16386         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16387         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16388         here...
16389         (gl_FUNC_MEMMEM): ... and here...
16390         * modules/memmem-simple (configure.ac): ... to here.
16391         * modules/memmem (configure.ac): ... and here.
16392
16393 2011-05-21  Bruno Haible  <bruno@clisp.org>
16394
16395         memcpy: Move AC_LIBOBJ invocations to module description.
16396         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16398         here...
16399         * modules/memcpy (configure.ac): ... to here.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         memcmp: Simplify autoconf macro.
16404         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16405         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16406         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16407
16408 2011-05-21  Bruno Haible  <bruno@clisp.org>
16409
16410         memcmp: Move AC_LIBOBJ invocations to module description.
16411         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16412         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16413         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16414         * modules/memcmp (configure.ac): ... to here.
16415         (Depends-on): Update conditions.
16416
16417 2011-05-21  Bruno Haible  <bruno@clisp.org>
16418
16419         memchr: Respect rules for use of AC_LIBOBJ.
16420         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16421         invocations from here...
16422         * modules/memchr (configure.ac): ... to here.
16423
16424 2011-05-21  Bruno Haible  <bruno@clisp.org>
16425
16426         mbtowc: Move AC_LIBOBJ invocations to module description.
16427         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16428         invocations from here...
16429         * modules/mbtowc (configure.ac): ... to here.
16430
16431 2011-05-21  Bruno Haible  <bruno@clisp.org>
16432
16433         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16434         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16435         gl_PREREQ_MBSRTOWCS invocations from here...
16436         * modules/mbsrtowcs (configure.ac): ... to here.
16437
16438 2011-05-21  Bruno Haible  <bruno@clisp.org>
16439
16440         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16441         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16442         gl_PREREQ_MBSNRTOWCS invocations from here...
16443         * modules/mbsnrtowcs (configure.ac): ... to here.
16444
16445 2011-05-21  Bruno Haible  <bruno@clisp.org>
16446
16447         mbsinit: Move AC_LIBOBJ invocations to module description.
16448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16449         invocations from here...
16450         * modules/mbsinit (configure.ac): ... to here.
16451
16452 2011-05-21  Bruno Haible  <bruno@clisp.org>
16453
16454         mbrlen: Move AC_LIBOBJ invocations to module description.
16455         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16456         invocations from here...
16457         * modules/mbrlen (configure.ac): ... to here.
16458
16459 2011-05-21  Bruno Haible  <bruno@clisp.org>
16460
16461         mbrtowc: Respect rules for use of AC_LIBOBJ.
16462         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16463         invocations from here...
16464         * modules/mbrtowc (configure.ac): ... to here.
16465
16466 2011-05-21  Bruno Haible  <bruno@clisp.org>
16467
16468         malloc-*: Move AC_LIBOBJ invocations to module description.
16469         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16470         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16471         AC_LIBOBJ invocations from here...
16472         * modules/malloc-gnu (configure.ac): ... to here.
16473         * modules/malloc-posix (configure.ac): ... and here.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         lstat, openat: Respect rules for use of AC_LIBOBJ.
16478         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16480         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16481         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16482         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16483         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16484         here.
16485         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16486
16487 2011-05-21  Bruno Haible  <bruno@clisp.org>
16488
16489         lseek: Move AC_LIBOBJ invocations to module description.
16490         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16491         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16492         * modules/lseek (configure.ac): ... to here.
16493
16494 2011-05-21  Bruno Haible  <bruno@clisp.org>
16495
16496         linkat: Move AC_LIBOBJ invocations to module description.
16497         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16498         here...
16499         * modules/linkat (configure.ac): ... to here.
16500
16501 2011-05-21  Bruno Haible  <bruno@clisp.org>
16502
16503         link: Respect rules for use of AC_LIBOBJ.
16504         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16505         * modules/link (configure.ac): ... to here.
16506
16507 2011-05-21  Bruno Haible  <bruno@clisp.org>
16508
16509         lchown: Move AC_LIBOBJ invocations to module description.
16510         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16511         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16512         * modules/lchown (configure.ac): ... to here.
16513
16514 2011-05-21  Bruno Haible  <bruno@clisp.org>
16515
16516         iswctype: Move AC_LIBOBJ invocations to module description.
16517         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16518         here...
16519         * modules/iswctype (configure.ac): ... to here.
16520
16521 2011-05-21  Bruno Haible  <bruno@clisp.org>
16522
16523         iswblank: Move AC_LIBOBJ invocations to module description.
16524         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16525         here...
16526         * modules/iswblank (configure.ac): ... to here.
16527
16528 2011-05-21  Bruno Haible  <bruno@clisp.org>
16529
16530         atanl: Move AC_LIBOBJ invocations to module description.
16531         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16532         * modules/atanl (configure.ac): ... to here.
16533
16534 2011-05-21  Bruno Haible  <bruno@clisp.org>
16535
16536         acosl: Move AC_LIBOBJ invocations to module description.
16537         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16538         * modules/acosl (configure.ac): ... to here.
16539
16540 2011-05-21  Bruno Haible  <bruno@clisp.org>
16541
16542         asinl: Respect rules for use of AC_LIBOBJ.
16543         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16544         * modules/asinl (configure.ac): ... to here.
16545
16546 2011-05-21  Bruno Haible  <bruno@clisp.org>
16547
16548         tanl: Move AC_LIBOBJ invocations to module description.
16549         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16550         * modules/tanl (configure.ac): ... to here.
16551
16552 2011-05-21  Bruno Haible  <bruno@clisp.org>
16553
16554         cosl: Move AC_LIBOBJ invocations to module description.
16555         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16556         * modules/cosl (configure.ac): ... to here.
16557
16558 2011-05-21  Bruno Haible  <bruno@clisp.org>
16559
16560         sinl: Move AC_LIBOBJ invocations to module description.
16561         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16562         * modules/sinl (configure.ac): ... to here.
16563
16564 2011-05-21  Bruno Haible  <bruno@clisp.org>
16565
16566         logl: Move AC_LIBOBJ invocations to module description.
16567         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16568         * modules/logl (configure.ac): ... to here.
16569
16570 2011-05-21  Bruno Haible  <bruno@clisp.org>
16571
16572         expl: Move AC_LIBOBJ invocations to module description.
16573         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16574         * modules/expl (configure.ac): ... to here.
16575
16576 2011-05-21  Bruno Haible  <bruno@clisp.org>
16577
16578         roundl: Move AC_LIBOBJ invocations to module description.
16579         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16580         * modules/roundl (configure.ac): ... to here.
16581
16582 2011-05-21  Bruno Haible  <bruno@clisp.org>
16583
16584         round: Move AC_LIBOBJ invocations to module description.
16585         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16586         * modules/round (configure.ac): ... to here.
16587
16588 2011-05-21  Bruno Haible  <bruno@clisp.org>
16589
16590         roundf: Move AC_LIBOBJ invocations to module description.
16591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16592         * modules/roundf (configure.ac): ... to here.
16593
16594 2011-05-21  Bruno Haible  <bruno@clisp.org>
16595
16596         truncl: Move AC_LIBOBJ invocations to module description.
16597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16598         * modules/truncl (configure.ac): ... to here.
16599
16600 2011-05-21  Bruno Haible  <bruno@clisp.org>
16601
16602         trunc: Move AC_LIBOBJ invocations to module description.
16603         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16604         * modules/trunc (configure.ac): ... to here.
16605
16606 2011-05-21  Bruno Haible  <bruno@clisp.org>
16607
16608         truncf: Move AC_LIBOBJ invocations to module description.
16609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16610         * modules/truncf (configure.ac): ... to here.
16611
16612 2011-05-21  Bruno Haible  <bruno@clisp.org>
16613
16614         ceill: Move AC_LIBOBJ invocations to module description.
16615         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16616         * modules/ceill (configure.ac): ... to here.
16617
16618 2011-05-21  Bruno Haible  <bruno@clisp.org>
16619
16620         ceil: Move AC_LIBOBJ invocations to module description.
16621         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16622         * modules/ceil (configure.ac): ... to here.
16623
16624 2011-05-21  Bruno Haible  <bruno@clisp.org>
16625
16626         ceilf: Move AC_LIBOBJ invocations to module description.
16627         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16628         * modules/ceilf (configure.ac): ... to here.
16629
16630 2011-05-21  Bruno Haible  <bruno@clisp.org>
16631
16632         floorl: Respect rules for use of AC_LIBOBJ.
16633         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16634         * modules/floorl (configure.ac): ... to here.
16635
16636 2011-05-21  Bruno Haible  <bruno@clisp.org>
16637
16638         floor: Respect rules for use of AC_LIBOBJ.
16639         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16640         * modules/floor (configure.ac): ... to here.
16641
16642 2011-05-21  Bruno Haible  <bruno@clisp.org>
16643
16644         floorf: Move AC_LIBOBJ invocations to module description.
16645         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16646         * modules/floorf (configure.ac): ... to here.
16647
16648 2011-05-20  Bruno Haible  <bruno@clisp.org>
16649
16650         sqrtl: Respect rules for use of AC_LIBOBJ.
16651         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16652         * modules/sqrtl (configure.ac): ... to here.
16653
16654 2011-05-20  Bruno Haible  <bruno@clisp.org>
16655
16656         ldexpl: Respect rules for use of AC_LIBOBJ.
16657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16658         * modules/ldexpl (configure.ac): ... to here.
16659
16660 2011-05-20  Bruno Haible  <bruno@clisp.org>
16661
16662         frexpl*: Respect rules for use of AC_LIBOBJ.
16663         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16664         invocation from here...
16665         * modules/frexpl (configure.ac): ... to here.
16666         * modules/frexpl-nolibm (configure.ac): ... and here.
16667
16668 2011-05-20  Bruno Haible  <bruno@clisp.org>
16669
16670         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16671         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16672         invocation from here...
16673         * modules/frexp (configure.ac): ... to here.
16674         * modules/frexp-nolibm (configure.ac): ... and here.
16675
16676 2011-05-20  Bruno Haible  <bruno@clisp.org>
16677
16678         isnan: Respect rules for use of AC_LIBOBJ.
16679         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16680         invocations here.
16681         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16682         REPLACE_ISNAN.
16683         * modules/isnand (configure.ac): Likewise.
16684         * modules/isnanl (configure.ac): Likewise.
16685
16686 2011-05-20  Bruno Haible  <bruno@clisp.org>
16687
16688         isnanl*: Respect rules for use of AC_LIBOBJ.
16689         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16690         invocation from here...
16691         * modules/isnanl (configure.ac): ... to here.
16692         * modules/isnanl-nolibm (configure.ac): ... and here.
16693
16694 2011-05-20  Bruno Haible  <bruno@clisp.org>
16695
16696         isnand*: Move AC_LIBOBJ invocations to module description.
16697         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16698         invocation from here...
16699         * modules/isnand (configure.ac): ... to here.
16700         * modules/isnand-nolibm (configure.ac): ... and here.
16701
16702 2011-05-20  Bruno Haible  <bruno@clisp.org>
16703
16704         isnanf*: Move AC_LIBOBJ invocations to module description.
16705         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16706         invocation from here...
16707         * modules/isnanf (configure.ac): ... to here.
16708         * modules/isnanf-nolibm (configure.ac): ... and here.
16709
16710 2011-05-20  Bruno Haible  <bruno@clisp.org>
16711
16712         isnan*: Separate the AC_LIBOBJ invocations.
16713         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16714         AC_LIBOBJ invocation.
16715         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16716         here.
16717         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16718         AC_LIBOBJ invocation.
16719         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16720         here.
16721         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16722         AC_LIBOBJ invocation.
16723         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16724         here.
16725         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16726
16727 2011-05-08  Bruno Haible  <bruno@clisp.org>
16728
16729         isinf: Move AC_LIBOBJ invocations to module description.
16730         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16731         * modules/isinf (configure.ac): ... to here.
16732
16733 2011-05-08  Bruno Haible  <bruno@clisp.org>
16734
16735         isfinite: Move AC_LIBOBJ invocations to module description.
16736         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16737         * modules/isfinite (configure.ac): ... to here.
16738
16739 2011-05-08  Bruno Haible  <bruno@clisp.org>
16740
16741         isblank: Move AC_LIBOBJ invocations to module description.
16742         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16743         here...
16744         * modules/isblank (configure.ac): ... to here.
16745
16746 2011-05-08  Bruno Haible  <bruno@clisp.org>
16747
16748         isapipe: Move AC_LIBOBJ invocations to module description.
16749         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16750         gl_PREREQ_ISAPIPE invocations from here...
16751         * modules/isapipe (configure.ac): ... to here.
16752         (Depends-on): Update condition.
16753
16754 2011-05-08  Bruno Haible  <bruno@clisp.org>
16755
16756         ioctl: Move AC_LIBOBJ invocations to module description.
16757         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16758         invocations from here...
16759         * modules/ioctl (configure.ac): ... to here.
16760         (Depends-on): Update condition.
16761
16762 2011-05-08  Bruno Haible  <bruno@clisp.org>
16763
16764         imaxdiv: Move AC_LIBOBJ invocations to module description.
16765         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16766         invocations from here...
16767         * modules/imaxdiv (configure.ac): ... to here.
16768
16769 2011-05-08  Bruno Haible  <bruno@clisp.org>
16770
16771         imaxabs: Move AC_LIBOBJ invocations to module description.
16772         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16773         invocations from here...
16774         * modules/imaxabs (configure.ac): ... to here.
16775
16776 2011-05-08  Bruno Haible  <bruno@clisp.org>
16777
16778         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16780         AC_LIBOBJ invocations from here...
16781         * modules/getaddrinfo (configure.ac): ... to here.
16782         (Depends-on): Add conditions.
16783
16784 2011-05-08  Bruno Haible  <bruno@clisp.org>
16785
16786         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16787         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16788         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16789         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16790         (gl_PREREQ_INET_PTON): ... from here.
16791         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16792         gl_PREREQ_INET_PTON here.
16793         (Depends-on): Update condition.
16794
16795 2011-05-08  Bruno Haible  <bruno@clisp.org>
16796
16797         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16799         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16800         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16801         (gl_PREREQ_INET_NTOP): ... from here.
16802         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16803         gl_PREREQ_INET_NTOP here.
16804         (Depends-on): Update condition.
16805
16806 2011-05-08  Bruno Haible  <bruno@clisp.org>
16807
16808         iconv_open: Move AC_LIBOBJ invocations to module description.
16809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16810         AC_LIBOBJ invocations from here...
16811         * modules/iconv_open (configure.ac): ... to here.
16812
16813 2011-05-08  Bruno Haible  <bruno@clisp.org>
16814
16815         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16816         If module 'iconv_open' is among the main modules and module
16817         'iconv_open-utf' is among the tests dependencies, then
16818         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16819         return the special iconv_t values. Therefore iconv() and iconv_close()
16820         must support these special iconv_t values, already in lib, not only in
16821         tests.
16822         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16823         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16824         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16825         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16826         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16827         (Depends-on): Add the dependencies of iconv_open-utf.
16828         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16829         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16830         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16831
16832 2011-05-08  Bruno Haible  <bruno@clisp.org>
16833
16834         group-member: Move AC_LIBOBJ invocations to module description.
16835         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16836         gl_PREREQ_GROUP_MEMBER invocations from here...
16837         * modules/group-member (configure.ac): ... to here.
16838
16839 2011-05-08  Bruno Haible  <bruno@clisp.org>
16840
16841         grantpt: Move AC_LIBOBJ invocations to module description.
16842         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16843         invocations from here...
16844         * modules/grantpt (configure.ac): ... to here.
16845
16846 2011-05-08  Bruno Haible  <bruno@clisp.org>
16847
16848         glob: Move AC_LIBOBJ invocations to module description.
16849         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16850         from here...
16851         * modules/glob (configure.ac): ... to here.
16852
16853 2011-05-08  Bruno Haible  <bruno@clisp.org>
16854
16855         getusershell: Move AC_LIBOBJ invocations to module description.
16856         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16857         Move AC_LIBOBJ invocation from here...
16858         * modules/getusershell (configure.ac): ... to here.
16859         (Depends-on): Update condition.
16860
16861 2011-05-08  Bruno Haible  <bruno@clisp.org>
16862
16863         gettimeofday: Move AC_LIBOBJ invocations to module description.
16864         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16865         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16866         gl_PREREQ_GETTIMEOFDAY invocations from here...
16867         * modules/gettimeofday (configure.ac): ... to here.
16868
16869 2011-05-08  Bruno Haible  <bruno@clisp.org>
16870
16871         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16872         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16873         just gl_FUNC_TZSET.
16874         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16875         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16877         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16878
16879 2011-05-08  Bruno Haible  <bruno@clisp.org>
16880
16881         getsubopt: Move AC_LIBOBJ invocations to module description.
16882         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16883         gl_PREREQ_GETSUBOPT invocations from here...
16884         * modules/getsubopt (configure.ac): ... to here.
16885
16886 2011-05-08  Bruno Haible  <bruno@clisp.org>
16887
16888         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16889         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16890         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16891         * modules/getpass-gnu (configure.ac): ... to here.
16892
16893 2011-05-08  Bruno Haible  <bruno@clisp.org>
16894
16895         getpass: Move AC_LIBOBJ invocations to module description.
16896         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16897         gl_PREREQ_GETPASS invocations from here...
16898         * modules/getpass (configure.ac): ... to here.
16899
16900 2011-05-08  Bruno Haible  <bruno@clisp.org>
16901
16902         getpagesize: Move AC_LIBOBJ invocations to module description.
16903         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16904         from here...
16905         * modules/getpagesize (configure.ac): ... to here.
16906
16907 2011-05-08  Bruno Haible  <bruno@clisp.org>
16908
16909         getopt: Move AC_LIBOBJ invocations to module description.
16910         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16911         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16912         invocations from here...
16913         * modules/getopt-gnu (configure.ac): ... to here.
16914         * modules/getopt-posix (configure.ac): ... and here.
16915         (Depends-on): Update condition.
16916
16917 2011-05-08  Bruno Haible  <bruno@clisp.org>
16918
16919         getopt, argp: Respect rules for use of AC_LIBOBJ.
16920         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16921         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16922         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16923         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16924
16925 2011-05-08  Bruno Haible  <bruno@clisp.org>
16926
16927         getlogin_r: Move AC_LIBOBJ invocations to module description.
16928         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16929         gl_PREREQ_GETLOGIN_R invocations from here...
16930         * modules/getlogin_r (configure.ac): ... to here.
16931
16932 2011-05-08  Bruno Haible  <bruno@clisp.org>
16933
16934         getlogin: Move AC_LIBOBJ invocations to module description.
16935         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16936         here...
16937         * modules/getlogin (configure.ac): ... to here.
16938
16939 2011-05-08  Bruno Haible  <bruno@clisp.org>
16940
16941         getloadavg: Move AC_LIBOBJ invocations to module description.
16942         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16943         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16944         * modules/getloadavg (configure.ac): ... to here.
16945
16946 2011-05-08  Bruno Haible  <bruno@clisp.org>
16947
16948         gethrxtime: Move AC_LIBOBJ invocations to module description.
16949         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16950         LIB_GETHRXTIME from here...
16951         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16952         invocations from here...
16953         * modules/gethrxtime (configure.ac): ... to here.
16954
16955 2011-05-08  Bruno Haible  <bruno@clisp.org>
16956
16957         gethostname: Move AC_LIBOBJ invocations to module description.
16958         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16959         gl_PREREQ_GETHOSTNAME invocations from here...
16960         * modules/gethostname (configure.ac): ... to here.
16961
16962 2011-05-08  Bruno Haible  <bruno@clisp.org>
16963
16964         getgroups: Move AC_LIBOBJ invocations to module description.
16965         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16966         here...
16967         * modules/getgroups (configure.ac): ... to here.
16968
16969 2011-05-08  Bruno Haible  <bruno@clisp.org>
16970
16971         getdtablesize: Move AC_LIBOBJ invocations to module description.
16972         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16973         invocation from here...
16974         * modules/getdtablesize (configure.ac): ... to here.
16975
16976 2011-05-08  Bruno Haible  <bruno@clisp.org>
16977
16978         getdomainname: Move AC_LIBOBJ invocations to module description.
16979         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16980         gl_PREREQ_GETDOMAINNAME invocations from here...
16981         * modules/getdomainname (configure.ac): ... to here.
16982
16983 2011-05-08  Bruno Haible  <bruno@clisp.org>
16984
16985         getline: Move AC_LIBOBJ invocations to module description.
16986         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16987         invocations from here...
16988         * modules/getline (configure.ac): ... to here.
16989
16990 2011-05-08  Bruno Haible  <bruno@clisp.org>
16991
16992         getline: Simplify.
16993         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16994         It's already handled through the module dependency.
16995
16996 2011-05-08  Bruno Haible  <bruno@clisp.org>
16997
16998         getdelim: Move AC_LIBOBJ invocations to module description.
16999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17000         and gl_PREREQ_GETDELIM invocations from here...
17001         * modules/getdelim (configure.ac): ... to here.
17002         (Depends-on): Fix condition.
17003
17004 2011-05-08  Bruno Haible  <bruno@clisp.org>
17005
17006         getcwd: Move AC_LIBOBJ invocations to module description.
17007         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17008         invocations from here...
17009         * modules/getcwd (configure.ac): ... to here.
17010
17011 2011-05-08  Bruno Haible  <bruno@clisp.org>
17012
17013         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17014         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17015         here...
17016         * modules/getcwd-lgpl (configure.ac): ... to here.
17017
17018 2011-05-07  Bruno Haible  <bruno@clisp.org>
17019
17020         crypto/gc: Move AC_LIBOBJ invocations to module description.
17021         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17022         * modules/crypto/gc (configure.ac): ... to here.
17023
17024 2011-05-07  Bruno Haible  <bruno@clisp.org>
17025
17026         fwriting: Move AC_LIBOBJ invocations to module description.
17027         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17028         here...
17029         * modules/fwriting (configure.ac): ... to here.
17030
17031 2011-05-07  Bruno Haible  <bruno@clisp.org>
17032
17033         fwritable: Move AC_LIBOBJ invocations to module description.
17034         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17035         here...
17036         * modules/fwritable (configure.ac): ... to here.
17037
17038 2011-05-07  Bruno Haible  <bruno@clisp.org>
17039
17040         futimens: Move AC_LIBOBJ invocations to module description.
17041         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17042         here...
17043         * modules/futimens (configure.ac): ... to here.
17044
17045 2011-05-07  Bruno Haible  <bruno@clisp.org>
17046
17047         ftruncate: Move AC_LIBOBJ invocations to module description.
17048         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17049         gl_PREREQ_FTRUNCATE invocations from here...
17050         * modules/ftruncate (configure.ac): ... to here.
17051
17052 2011-05-07  Bruno Haible  <bruno@clisp.org>
17053
17054         fsync: Move AC_LIBOBJ invocations to module description.
17055         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17056         invocations from here...
17057         * modules/fsync (configure.ac): ... to here.
17058
17059 2011-05-07  Bruno Haible  <bruno@clisp.org>
17060
17061         fsusage: Move AC_LIBOBJ invocations to module description.
17062         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17063         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17064         * modules/fsusage (configure.ac): ... to here.
17065
17066 2011-05-07  Bruno Haible  <bruno@clisp.org>
17067
17068         freopen: Move AC_LIBOBJ invocations to module description.
17069         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17070         invocations from here...
17071         * modules/freopen (configure.ac): ... to here.
17072
17073 2011-05-07  Bruno Haible  <bruno@clisp.org>
17074
17075         free: Move AC_LIBOBJ invocations to module description.
17076         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17077         invocations from here...
17078         * modules/free (configure.ac): ... to here.
17079
17080 2011-05-07  Bruno Haible  <bruno@clisp.org>
17081
17082         freadable: Move AC_LIBOBJ invocations to module description.
17083         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17084         here...
17085         * modules/freadable (configure.ac): ... to here.
17086
17087 2011-05-07  Bruno Haible  <bruno@clisp.org>
17088
17089         fpurge: Move AC_LIBOBJ invocations to module description.
17090         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17091         invocations from here...
17092         * modules/fpurge (configure.ac): ... to here.
17093
17094 2011-05-07  Bruno Haible  <bruno@clisp.org>
17095
17096         fpending: Move AC_LIBOBJ invocations to module description.
17097         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17098         gl_FUNC_FPENDING.
17099         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17100         invocations from here...
17101         * modules/fpending (configure.ac): ... to here.
17102
17103 2011-05-07  Bruno Haible  <bruno@clisp.org>
17104
17105         fopen: Move AC_LIBOBJ invocations to module description.
17106         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17107         invocations from here...
17108         * modules/fopen (configure.ac): ... to here.
17109
17110 2011-05-07  Bruno Haible  <bruno@clisp.org>
17111
17112         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17113         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17114         gl_FUNC_FNMATCH_POSIX.
17115         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17116         invocations from here...
17117         * modules/fnmatch (configure.ac): ... to here.
17118         * modules/fnmatch-gnu (configure.ac): ... and here.
17119
17120 2011-05-07  Bruno Haible  <bruno@clisp.org>
17121
17122         flock: Move AC_LIBOBJ invocations to module description.
17123         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17124         invocations from here...
17125         * modules/flock (configure.ac): ... to here.
17126
17127 2011-05-07  Bruno Haible  <bruno@clisp.org>
17128
17129         fileblocks: Move AC_LIBOBJ invocations to module description.
17130         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17131         gl_PREREQ_FILEBLOCKS invocations from here...
17132         * modules/fileblocks (configure.ac): ... to here.
17133
17134 2011-05-06  Bruno Haible  <bruno@clisp.org>
17135
17136         fflush: Move AC_LIBOBJ invocations to module description.
17137         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17138         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17139         invocations from here...
17140         * modules/fflush (configure.ac): ... to here.
17141
17142 2011-05-06  Bruno Haible  <bruno@clisp.org>
17143
17144         fdopendir: Move AC_LIBOBJ invocations to module description.
17145         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17146         here...
17147         * modules/fdopendir (configure.ac): ... to here.
17148         (Depends-on): Improve conditions.
17149
17150 2011-05-06  Bruno Haible  <bruno@clisp.org>
17151
17152         _Exit: Move AC_LIBOBJ invocations to module description.
17153         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17154         invocations from here...
17155         * modules/_Exit (configure.ac): ... to here.
17156
17157 2011-05-21  Bruno Haible  <bruno@clisp.org>
17158
17159         euidaccess: Respect rules for use of AC_LIBOBJ.
17160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17162         from here...
17163         * modules/euidaccess (configure.ac): ... to here.
17164
17165 2011-05-06  Bruno Haible  <bruno@clisp.org>
17166
17167         error: Move AC_LIBOBJ invocations to module description.
17168         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17169         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17170         invocations from here...
17171         * modules/error (configure.ac): ... to here.
17172
17173 2011-05-06  Bruno Haible  <bruno@clisp.org>
17174
17175         duplocale: Move AC_LIBOBJ invocations to module description.
17176         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17177         gl_PREREQ_DUPLOCALE invocations from here...
17178         * modules/duplocale (configure.ac): ... to here.
17179
17180 2011-05-05  Bruno Haible  <bruno@clisp.org>
17181
17182         dirfd: Move AC_LIBOBJ invocations to module description.
17183         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17184         gl_FUNC_DIRFD.
17185         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17186         here...
17187         * modules/dirfd (configure.ac): ... to here.
17188         (Depends-on): Fix condition.
17189
17190 2011-05-05  Bruno Haible  <bruno@clisp.org>
17191
17192         chown: Respect rules for use of AC_LIBOBJ.
17193         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17194         * modules/chown (configure.ac): ... to here.
17195
17196 2011-05-05  Bruno Haible  <bruno@clisp.org>
17197
17198         chdir-long: Move AC_LIBOBJ invocations to module description.
17199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17200         gl_PREREQ_CHDIR_LONG invocations from here...
17201         * modules/chdir-long (configure.ac): ... to here.
17202
17203 2011-05-05  Bruno Haible  <bruno@clisp.org>
17204
17205         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17206         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17207         from here...
17208         * modules/canonicalize-lgpl (configure.ac): ... to here.
17209
17210 2011-05-05  Bruno Haible  <bruno@clisp.org>
17211
17212         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17213         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17214         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17215         REPLACE_CALLOC.
17216         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17217         * modules/calloc-gnu (configure.ac): Likewise.
17218
17219 2011-05-05  Bruno Haible  <bruno@clisp.org>
17220
17221         btowc: Move AC_LIBOBJ invocations to module description.
17222         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17223         invocations from here...
17224         * modules/btowc (configure.ac): ... to here.
17225
17226 2011-05-21  Bruno Haible  <bruno@clisp.org>
17227
17228         atexit: Move AC_LIBOBJ invocations to module description.
17229         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17231         here...
17232         * modules/atexit (configure.ac): ... to here.
17233
17234 2011-05-05  Bruno Haible  <bruno@clisp.org>
17235
17236         atoll: Move AC_LIBOBJ invocations to module description.
17237         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17238         invocations from here...
17239         * modules/atoll (configure.ac): ... to here.
17240
17241 2011-05-05  Bruno Haible  <bruno@clisp.org>
17242
17243         argz: Move AC_LIBOBJ invocations to module description.
17244         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17245         * modules/argz (configure.ac): ... to here.
17246
17247 2011-05-05  Bruno Haible  <bruno@clisp.org>
17248
17249         alphasort: Move AC_LIBOBJ invocations to module description.
17250         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17251         gl_PREREQ_ALPHASORT invocations from here...
17252         * modules/alphasort (configure.ac): ... to here.
17253
17254 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17255
17256         verify: new macro verify_expr; verify_true deprecated
17257         * NEWS: Mention this.
17258         * doc/verify.texi (Compile-time Assertions): Document this.
17259         * lib/verify.h (verify_true): Deprecate.
17260         (verify_expr): New macro.
17261         * tests/test-verify.c (function): Test verify_expr.
17262
17263 2011-06-14  Jim Meyering  <meyering@redhat.com>
17264
17265         init.sh: give more portable redirection-related advice in a comment
17266         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17267         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17268         for lots of discussion.  Stefano Lattarini suggested the solution
17269         of putting "9>&2" after the command.  Reported by Bruno Haible.
17270
17271 2011-06-13  Bruno Haible  <bruno@clisp.org>
17272
17273         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17274         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17275         'none'.
17276
17277 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17278
17279         ftoastr: use strtof only if HAVE_STRTOF
17280         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17282         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17283         * modules/ftoastr (configure.ac): Check for strtof.
17284
17285 2011-06-13  Bruno Haible  <bruno@clisp.org>
17286
17287         gnulib-tool: Addendum to 2011-06-08 commit.
17288         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17289         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17290
17291 2011-06-13  Bruno Haible  <bruno@clisp.org>
17292
17293         fseeko: Provide a non-inline replacement of fseek().
17294         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17295         * modules/fseeko (Depends-on): Add fseek.
17296         * modules/fseek (License): Change to LGPLv2+.
17297
17298 2011-06-13  Bruno Haible  <bruno@clisp.org>
17299
17300         ftello: Provide a non-inline replacement of ftell().
17301         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17302         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17303         not have ftello() (such as on mingw).
17304         * modules/ftello (Depends-on): Add ftell.
17305         * modules/ftell (License): Change to LGPLv2+.
17306
17307 2011-05-07  Bruno Haible  <bruno@clisp.org>
17308
17309         ftell: Move AC_LIBOBJ invocations to module description.
17310         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17311         * modules/ftell (configure.ac): ... to here.
17312
17313 2011-05-07  Bruno Haible  <bruno@clisp.org>
17314
17315         ftello: Respect rules for use of AC_LIBOBJ.
17316         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17317         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17318         here...
17319         * modules/ftello (configure.ac): ... to here.
17320
17321 2011-05-07  Bruno Haible  <bruno@clisp.org>
17322
17323         fseeko: Simplify.
17324         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17325         (gl_FUNC_FSEEKO): Inline it here.
17326
17327 2011-05-07  Bruno Haible  <bruno@clisp.org>
17328
17329         fseek: Move AC_LIBOBJ invocations to module description.
17330         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17331         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17332         * modules/fseek (configure.ac): ... to here.
17333
17334 2011-05-07  Bruno Haible  <bruno@clisp.org>
17335
17336         fseek: Respect rules for use of AC_LIBOBJ.
17337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17338         here...
17339         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17340
17341 2011-05-07  Bruno Haible  <bruno@clisp.org>
17342
17343         fseeko: Respect rules for use of AC_LIBOBJ.
17344         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17345         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17346         here...
17347         * modules/fseeko (configure.ac): ... to here.
17348
17349 2011-06-13  Bruno Haible  <bruno@clisp.org>
17350
17351         gnulib-tool: Allow comments in the 'Depends-on' section.
17352         * doc/gnulib.texi (Module description): Mention comment syntax in the
17353         Depends-on section.
17354         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17355
17356 2011-06-13  Bruno Haible  <bruno@clisp.org>
17357
17358         file-set.h: guard __attibute__ use, now that it's not always defined
17359         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17360         versions that support it.  This fixes a coreutils build failure with
17361         the vendor cc on HP-UX 11.31.
17362
17363 2011-06-12  Bruno Haible  <bruno@clisp.org>
17364
17365         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17366         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17367         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17368         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17369         (acl, aclsort): New declarations.
17370         (aclv_nontrivial): New declaration.
17371         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17372         (file_has_acl): Read also the second kind of HP-UX ACLs.
17373         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17374         kind of HP-UX ACLs if the first kind fails.
17375         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17376         second kind of HP-UX ACLs.
17377         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17378         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17379         agree.
17380         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17381         hpuxjfs.
17382         Handle hpuxjfs.
17383         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17384         hpuxjfs.
17385         Handle hpuxjfs.
17386         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17387         (func_test_same_acls): Use both lsacl and getacl.
17388         Handle hpuxjfs.
17389         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17390         (func_test_same_acls): Use both lsacl and getacl.
17391         Handle hpuxjfs.
17392
17393 2011-06-12  Bruno Haible  <bruno@clisp.org>
17394
17395         acl: Complete the 2010-08-10 fix.
17396         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17397         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17398         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17399         explicitly.
17400         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17401         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17402
17403 2011-06-12  Bruno Haible  <bruno@clisp.org>
17404
17405         spawn-pipe tests: Comments.
17406         * tests/test-spawn-pipe-child.c (main): Update comment.
17407         Reported by James Youngman <jay@gnu.org>.
17408
17409 2011-06-11  James Youngman  <jay@gnu.org>
17410
17411         New module 'stat-size'.
17412         * modules/stat-size: New module.  Provides macros for accessing
17413         file size information in instances of struct stat.  Depends on the
17414         fileblocks module because it calls st_blocks.
17415         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17416         * doc/gnulib.texi: Include stat-size.texi.
17417         * doc/stat-size.texi: Documentation for this module.
17418         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17419         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17420         AC_STRUCT_ST_BLOCKS.
17421
17422 2011-06-09  Bruno Haible  <bruno@clisp.org>
17423
17424         thread: Support pthreads-win32.
17425         * lib/glthread/thread.h (gl_thread_self): Define differently on
17426         pthreads-win32.
17427         (gl_null_thread): New declaration.
17428         (gl_thread_self_pointer): New macro.
17429         * lib/glthread/thread.c (gl_null_thread): New constant.
17430         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17431         gl_thread_self.
17432         * tests/test-tls.c: Likewise.
17433         Suggested by Paul Eggert. Reported by Eric Blake.
17434
17435 2011-06-09  Bruno Haible  <bruno@clisp.org>
17436
17437         thread: Fix confusion between NULL and 0.
17438         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17439         Reported by Paul Eggert.
17440
17441 2011-06-09  Bruno Haible  <bruno@clisp.org>
17442
17443         spawn-pipe tests: Avoid test failure on HP-UX 11.
17444         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17445         is closed.
17446
17447 2011-06-09  Bruno Haible  <bruno@clisp.org>
17448
17449         acl tests: Fix compilation error on HP-UX 11.
17450         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17451
17452 2011-06-09  Bruno Haible  <bruno@clisp.org>
17453
17454         rmdir: Avoid test failure on HP-UX 10.20.
17455         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17456         EEXIST.
17457
17458 2011-06-08  Eric Blake  <eblake@redhat.com>
17459
17460         perror: fix test on mingw
17461         * modules/perror-tests (Depends-on): Add dup2.
17462
17463         strerror_r-posix: fix on MacOS
17464         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17465         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17466         logic bug.
17467         * lib/strerror_r.c (strerror_r): Fix the bug.
17468         * lib/strerror.c (strerror): Likewise.
17469         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17470         problem.
17471         * doc/posix-functions/strerror.texi (strerror): Likewise.
17472         * doc/posix-functions/perror.texi (perror): Likewise.
17473         * tests/test-strerror.c (main): Enhance test.
17474         * tests/test-strerror_r.c (main): Likewise.
17475
17476 2011-06-08  Bruno Haible  <bruno@clisp.org>
17477
17478         gnulib-tool: Better isolation between different gnulib-tool invocations.
17479         * gnulib-tool: New option --witness-c-macro.
17480         (witness_c_macro): New variable.
17481         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17482         AM_CPPFLAGS define it as a C macro.
17483         (func_emit_tests_Makefile_am): Likewise.
17484         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17485         read it from there.
17486         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17487         m4_define, not AC_DEFUN.
17488         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17489         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17490         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17491         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17492         s|...|...|, to substitute the values of the GNULIB_* module indicator
17493         variables.
17494         * modules/dirent (Makefile.am): Likewise.
17495         * modules/fcntl-h (Makefile.am): Likewise.
17496         * modules/iconv-h (Makefile.am): Likewise.
17497         * modules/langinfo (Makefile.am): Likewise.
17498         * modules/locale (Makefile.am): Likewise.
17499         * modules/math (Makefile.am): Likewise.
17500         * modules/netdb (Makefile.am): Likewise.
17501         * modules/poll-h (Makefile.am): Likewise.
17502         * modules/pty (Makefile.am): Likewise.
17503         * modules/search (Makefile.am): Likewise.
17504         * modules/signal (Makefile.am): Likewise.
17505         * modules/spawn (Makefile.am): Likewise.
17506         * modules/stdio (Makefile.am): Likewise.
17507         * modules/stdlib (Makefile.am): Likewise.
17508         * modules/string (Makefile.am): Likewise.
17509         * modules/sys_ioctl (Makefile.am): Likewise.
17510         * modules/sys_select (Makefile.am): Likewise.
17511         * modules/sys_socket (Makefile.am): Likewise.
17512         * modules/sys_stat (Makefile.am): Likewise.
17513         * modules/sys_times (Makefile.am): Likewise.
17514         * modules/sys_utsname (Makefile.am): Likewise.
17515         * modules/sys_wait (Makefile.am): Likewise.
17516         * modules/termios (Makefile.am): Likewise.
17517         * modules/time (Makefile.am): Likewise.
17518         * modules/unistd (Makefile.am): Likewise.
17519         * modules/wchar (Makefile.am): Likewise.
17520
17521 2011-06-08  Eric Blake  <eblake@redhat.com>
17522
17523         strerror: simplify replacement
17524         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17525         * modules/strerror (configure.ac): No prereqs needed here...
17526         * modules/strerror-override (configure.ac): ...but this needs it.
17527         (Files): Add file for needed prereq macro.
17528
17529 2011-06-08  Bruno Haible  <bruno@clisp.org>
17530
17531         strerror_r-posix: Tweaks.
17532         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17533         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17535         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17536         (gl_FUNC_STRERROR_R): ... to here.
17537         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17538
17539 2011-06-07  Eric Blake  <eblake@redhat.com>
17540
17541         perror: document fixed bugs
17542         * doc/posix-functions/perror.texi (perror): Document recent
17543         patches.
17544
17545 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17546
17547         stat-time: get_stat_birthtime failure is better-defined
17548         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17549         return a timestamp whose tv_sec and tv_nsec values are both -1.
17550         Previously, the spec said only that the tv_nsec value was negative.
17551         This upward-compatible change simplifies GNU tar a bit.
17552
17553 2011-06-07  Eric Blake  <eblake@redhat.com>
17554
17555         strerror_r-posix: work around cygwin 1.7.9
17556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17557         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17558         bug without replacing strerror_r.
17559         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17560         strerror_r is buggy, but without requiring strerror_r compilation.
17561         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17562
17563         test-perror: relax test to ignore cygwin bug
17564         * tests/test-perror2.c (main): Relax test on requiring detection
17565         of stream errors, and use unbuffered stream.
17566         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17567         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17568         * doc/posix-functions/fputc.texi (fputc): Likewise.
17569         * doc/posix-functions/fputs.texi (fputs): Likewise.
17570         * doc/posix-functions/fputws.texi (fputws): Likewise.
17571         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17572         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17573         * doc/posix-functions/getopt.texi (getopt): Likewise.
17574         * doc/posix-functions/perror.texi (perror): Likewise.
17575         * doc/posix-functions/printf.texi (printf): Likewise.
17576         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17577         * doc/posix-functions/psignal.texi (psignal): Likewise.
17578         * doc/posix-functions/putc.texi (putc): Likewise.
17579         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17580         Likewise.
17581         * doc/posix-functions/putchar.texi (putchar): Likewise.
17582         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17583         Likewise.
17584         * doc/posix-functions/puts.texi (puts): Likewise.
17585         * doc/posix-functions/putwc.texi (putwc): Likewise.
17586         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17587         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17588         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17589         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17590         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17591         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17592         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17593         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17594
17595 2011-05-22  Bruno Haible  <bruno@clisp.org>
17596
17597         strerror: Move AC_LIBOBJ invocations to module description.
17598         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17599         gl_PREREQ_STRERROR invocations from here...
17600         * modules/strerror (configure.ac): ... to here.
17601
17602 2011-05-21  Bruno Haible  <bruno@clisp.org>
17603
17604         perror: Use common idiom.
17605         * modules/perror (configure.ac): Reorder statements.
17606
17607 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17608
17609         tests: fix usage message in 'mktempd_'
17610         * tests/init.sh (mktempd_): In the usage message, use literal
17611         'mktempd_', not '$ME' (which is even undefined), as the name of
17612         the subroutine.
17613
17614 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17615
17616         tests init: new function 'fatal_', for hard errors
17617         Before this patch, the only way offered by tests/init.sh to
17618         properly signal a hard error was the `framework_failure_'
17619         function.  But the error message issued by that function,
17620         as its name would suggest, refers to a set-up failure in the
17621         testsuite, while hard errors can obviously also be due to
17622         other reasons.  The best way to fix this inconsistency is to
17623         introduce a new function with a more general error message.
17624         * tests/init.sh (fatal_): New function.
17625
17626 2011-06-06  Eric Blake  <eblake@redhat.com>
17627
17628         canonicalize-lgpl: use common idiom
17629         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17630         over newer POSIX -Rf.
17631         Reported by Bruno Haible.
17632
17633         canonicalize-lgpl: work around AIX realpath bug
17634         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17635         * doc/posix-functions/realpath.texi (realpath): Document it.
17636         Reported by Bruno Haible.
17637
17638         strerror: work around FreeBSD bug
17639         * lib/strerror.c (strerror): Special case 0.
17640         Reported by Bruno Haible.
17641
17642         strerror-override: avoid bloating errno module
17643         * modules/errno (Files, configure.ac): Move replacement strings...
17644         * modules/strerror-override: ...to new module.
17645         * modules/strerror (Depends-on): Add strerror-override.
17646         * modules/strerror_r-posix (Depends-on): Likewise.
17647         * MODULES.html.sh: Document new module.
17648         Reported by Bruno Haible.
17649
17650 2011-06-06  Bruno Haible  <bruno@clisp.org>
17651
17652         spawn-pipe tests: Rename program.
17653         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17654         * tests/test-spawn-pipe-child.c: Update comment.
17655         * tests/test-spawn-pipe.sh: Update.
17656         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17657
17658         spawn-pipe tests: Link the child program only against libc.
17659         * tests/test-spawn-pipe-child.c: New file, extracted from
17660         tests/test-spawn-pipe.c.
17661         (main): Expect only one argument.
17662         (is_open): New function, copied from tests/test-pipe.c.
17663         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17664         (child_main): Remove function.
17665         (test_pipe): Pass only one argument to the child program.
17666         (main): Remove child process code. Expect the child program's name as
17667         first argument.
17668         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17669         argument.
17670         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17671         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17672         test-spawn-pipe-child against no libraries.
17673
17674 2011-06-06  Bruno Haible  <bruno@clisp.org>
17675
17676         careadlinkat: Avoid mismatch between ssize_t and int.
17677         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17678         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17679
17680 2011-06-06  Jim Meyering  <meyering@redhat.com>
17681
17682         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17683         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17684         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17685
17686 2011-06-05  Bruno Haible  <bruno@clisp.org>
17687
17688         ansi-c++-opt: Interoperability with libtool.
17689         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17690         set the variable to "no", not to ":".
17691         * NEWS: Mention the change.
17692
17693 2011-06-05  Bruno Haible  <bruno@clisp.org>
17694
17695         acl: Fix test failure on AIX 7.
17696         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17697         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17698
17699 2011-06-05  Bruno Haible  <bruno@clisp.org>
17700
17701         pipe-filter-ii: Fix test failure on AIX and IRIX.
17702         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17703         with EAGAIN, retry with a smaller buffer size.
17704
17705 2011-06-05  Bruno Haible  <bruno@clisp.org>
17706
17707         localename: Fix link dependencies.
17708         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17709         * modules/localename-tests (Makefile.am): Link test-localename with
17710         $(LIBTHREAD).
17711
17712 2011-06-05  Bruno Haible  <bruno@clisp.org>
17713
17714         error: Avoid gcc warning.
17715         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17716
17717 2011-06-05  Bruno Haible  <bruno@clisp.org>
17718
17719         unsetenv: Avoid gcc warning.
17720         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17721
17722 2011-06-05  Bruno Haible  <bruno@clisp.org>
17723
17724         setenv: Avoid gcc warning.
17725         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17726
17727 2011-06-05  Bruno Haible  <bruno@clisp.org>
17728
17729         sys_select: Ensure memset is declared also on AIX 7.
17730         * lib/sys_select.in.h: Include <string.h> also on AIX.
17731         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17732         self-contained also on AIX 7.1.
17733
17734 2011-06-04  Jim Meyering  <meyering@redhat.com>
17735
17736         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17737         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17738         function name, "error".
17739         (_gl_translatable_diag_func_re): New configurable variable.
17740
17741 2011-06-04  Bruno Haible  <bruno@clisp.org>
17742
17743         getopt: Avoid gcc warning.
17744         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17745
17746 2011-06-04  Bruno Haible  <bruno@clisp.org>
17747
17748         strerror_r: Fix comments.
17749         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17750         commit.
17751
17752 2011-06-04  Bruno Haible  <bruno@clisp.org>
17753
17754         perror: Fix compilation error.
17755         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17756         Undefine fprintf, not sprintf.
17757         * modules/perror (Depends-on): Remove intprops, verify.
17758
17759 2011-06-04  Bruno Haible  <bruno@clisp.org>
17760
17761         setlocale: Enable replacement on Cygwin 1.5.
17762         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17763         Cygwin 1.5.x.
17764         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17765         LC_CTYPE category also exists on Cygwin 1.5.x.
17766
17767 2011-06-04  Bruno Haible  <bruno@clisp.org>
17768
17769         strerror-override: Don't disable symbol renamings.
17770         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17771         * lib/strerror-override.c: Include config.h.
17772         (strerror_override): Don't undefine.
17773
17774 2011-06-03  Bruno Haible  <bruno@clisp.org>
17775
17776         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17777         * lib/localename.h: Update copyright header.
17778         * lib/localename.c: Likewise.
17779         * lib/relocatable.h: Likewise.
17780         * lib/relocatable.c: Likewise.
17781
17782 2011-06-02  Bruno Haible  <bruno@clisp.org>
17783
17784         doc: Fix a module name.
17785         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17786
17787 2011-06-02  Bruno Haible  <bruno@clisp.org>
17788
17789         pipe2: Remove dependency on 'nonblocking' module.
17790         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17791         O_NONBLOCK is defined by gnulib.
17792         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17793         is zero.
17794         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17795         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17796         defined by gnulib.
17797         (get_nonblocking_flag): New function.
17798         (main): Test O_NONBLOCK flag only if it is nonzero.
17799         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17800
17801 2011-06-03  Jim Meyering  <meyering@redhat.com>
17802
17803         maint: three new prohibit-header-without-use rules
17804         Prohibit use of cloexec.h, posixver.h, same.h without use.
17805         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17806         (sc_prohibit_posixver_without_use): Likewise.
17807         (sc_prohibit_same_without_use): Likewise.
17808
17809 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         allocator: 'die' routine is now given requested size
17812         * lib/allocator.h (struct allocator.die): New size arg.
17813         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17814         If the actual problem is an ssize_t limitation, not a size_t or
17815         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17816
17817 2011-06-01  Eric Blake  <eblake@redhat.com>
17818
17819         strerror: drop strerror_r dependency
17820         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17821         * lib/strerror-override.c (strerror_override): ...to new file.
17822         * lib/strerror-override.h: Add prototype.
17823         * lib/strerror-impl.h: Delete.
17824         * lib/strerror.c (strerror): New implementation.
17825         * modules/errno (Files): Add new files.
17826         (configure.ac): Compile new file as appropriate.
17827         * modules/strerror (Files): Drop unused file.
17828         (Depends-on): Drop strerror_r-posix.
17829         * MODULES.html.sh: Document strerror_r-posix.
17830         Requested by Sam Steingold.
17831
17832         perror: call strerror_r directly
17833         * modules/perror (Files): Drop strerror-impl.h.
17834         * lib/perror.c (perror): Use our own stack buffer, rather than
17835         calling a wrapper that uses static storage.
17836         * doc/posix-functions/perror.texi (perror): Document a limitation
17837         of our replacement.
17838
17839         strerror_r: fix includes for FreeBSD
17840         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17841         since we use abort on some platforms.
17842         Reported by Matthias Bolte.
17843
17844 2011-05-31  Bruno Haible  <bruno@clisp.org>
17845
17846         Fix link errors in tests: openat-die uses gettext-h.
17847         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17848         against $(LIBINTL).
17849         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17850         against $(LIBINTL).
17851         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17852         $(LIBINTL).
17853         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17854         against $(LIBINTL).
17855         * modules/linkat-tests (Makefile.am): Link test-linkat against
17856         $(LIBINTL).
17857         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17858         $(LIBINTL).
17859         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17860         against $(LIBINTL).
17861         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17862         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17863         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17864         $(LIBINTL).
17865         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17866         $(LIBINTL).
17867         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17868         $(LIBINTL).
17869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17870
17871 2011-05-31  Bruno Haible  <bruno@clisp.org>
17872
17873         Fix link errors in tests: wait-process uses gettext-h.
17874         * modules/nonblocking-pipe-tests (Makefile.am): Set
17875         test_nonblocking_pipe_main_LDADD.
17876         * modules/nonblocking-socket-tests (Makefile.am): Link
17877         test-nonblocking-socket-main against $(LIBINTL).
17878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17879
17880 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17881
17882         assert-h: work around 'verify' incompatibility
17883         * lib/verify.h: Use @...@ directives, not ifdef.
17884         * modules/assert-h (assert.h): Implement the directives.
17885         (assert.h): Substitute the symbol-prefix more consistently.
17886
17887 2011-05-29  Jim Meyering  <meyering@redhat.com>
17888
17889         trim: remove three superfluous assignments
17890         * lib/trim.c (trim2): Remove three superfluous assignments
17891         and correct brace positioning.
17892
17893 2011-05-29  Bruno Haible  <bruno@clisp.org>
17894
17895         wctype-h: Avoid namespace pollution on Solaris 2.6.
17896         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17897         identifiers.
17898         * doc/posix-headers/wctype.texi: Mention the problem.
17899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17900
17901 2011-05-28  Jim Meyering  <meyering@redhat.com>
17902
17903         parse-datetime.y: accommodate -Wstrict-overflow
17904         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17905         placate -Wstrict-overflow.
17906
17907         trim: avoid a warning from -O2 -Wstrict-overflow
17908         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17909
17910 2011-05-29  Bruno Haible  <bruno@clisp.org>
17911
17912         gnulib-tool: Fix bug in yesterday's commit.
17913         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17914         twice.
17915
17916 2011-05-29  Bruno Haible  <bruno@clisp.org>
17917
17918         Allow multiple gnulib generated include files to be combined.
17919         * gnulib-tool (func_compute_include_guard_prefix): New function.
17920         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17921         ${gl_include_guard_prefix} references.
17922         (func_import, func_create_testdir): Invoke
17923         func_compute_include_guard_prefix.
17924         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17925         * lib/ctype.in.h: Likewise.
17926         * lib/dirent.in.h: Likewise.
17927         * lib/errno.in.h: Likewise.
17928         * lib/fcntl.in.h: Likewise.
17929         * lib/float.in.h: Likewise.
17930         * lib/getopt.in.h: Likewise.
17931         * lib/iconv.in.h: Likewise.
17932         * lib/langinfo.in.h: Likewise.
17933         * lib/locale.in.h: Likewise.
17934         * lib/math.in.h: Likewise.
17935         * lib/netdb.in.h: Likewise.
17936         * lib/netinet_in.in.h: Likewise.
17937         * lib/poll.in.h: Likewise.
17938         * lib/pthread.in.h: Likewise.
17939         * lib/pty.in.h: Likewise.
17940         * lib/sched.in.h: Likewise.
17941         * lib/se-selinux.in.h: Likewise.
17942         * lib/search.in.h: Likewise.
17943         * lib/signal.in.h: Likewise.
17944         * lib/spawn.in.h: Likewise.
17945         * lib/stdarg.in.h: Likewise.
17946         * lib/stddef.in.h: Likewise.
17947         * lib/stdint.in.h: Likewise.
17948         * lib/stdio.in.h: Likewise.
17949         * lib/stdlib.in.h: Likewise.
17950         * lib/string.in.h: Likewise.
17951         * lib/strings.in.h: Likewise.
17952         * lib/sys_file.in.h: Likewise.
17953         * lib/sys_ioctl.in.h: Likewise.
17954         * lib/sys_select.in.h: Likewise.
17955         * lib/sys_socket.in.h: Likewise.
17956         * lib/sys_stat.in.h: Likewise.
17957         * lib/sys_time.in.h: Likewise.
17958         * lib/sys_times.in.h: Likewise.
17959         * lib/sys_uio.in.h: Likewise.
17960         * lib/sys_utsname.in.h: Likewise.
17961         * lib/sys_wait.in.h: Likewise.
17962         * lib/sysexits.in.h: Likewise.
17963         * lib/termios.in.h: Likewise.
17964         * lib/time.in.h: Likewise.
17965         * lib/unistd.in.h: Likewise.
17966         * lib/wchar.in.h: Likewise.
17967         * lib/wctype.in.h: Likewise.
17968         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17969         * modules/ctype (Makefile.am): Likewise.
17970         * modules/dirent (Makefile.am): Likewise.
17971         * modules/errno (Makefile.am): Likewise.
17972         * modules/fcntl-h (Makefile.am): Likewise.
17973         * modules/float (Makefile.am): Likewise.
17974         * modules/getopt-posix (Makefile.am): Likewise.
17975         * modules/iconv-h (Makefile.am): Likewise.
17976         * modules/langinfo (Makefile.am): Likewise.
17977         * modules/locale (Makefile.am): Likewise.
17978         * modules/math (Makefile.am): Likewise.
17979         * modules/netdb (Makefile.am): Likewise.
17980         * modules/netinet_in (Makefile.am): Likewise.
17981         * modules/poll-h (Makefile.am): Likewise.
17982         * modules/pthread (Makefile.am): Likewise.
17983         * modules/pty (Makefile.am): Likewise.
17984         * modules/sched (Makefile.am): Likewise.
17985         * modules/search (Makefile.am): Likewise.
17986         * modules/selinux-h (Makefile.am): Likewise.
17987         * modules/signal (Makefile.am): Likewise.
17988         * modules/spawn (Makefile.am): Likewise.
17989         * modules/stdarg (Makefile.am): Likewise.
17990         * modules/stddef (Makefile.am): Likewise.
17991         * modules/stdint (Makefile.am): Likewise.
17992         * modules/stdio (Makefile.am): Likewise.
17993         * modules/stdlib (Makefile.am): Likewise.
17994         * modules/string (Makefile.am): Likewise.
17995         * modules/strings (Makefile.am): Likewise.
17996         * modules/sys_file (Makefile.am): Likewise.
17997         * modules/sys_ioctl (Makefile.am): Likewise.
17998         * modules/sys_select (Makefile.am): Likewise.
17999         * modules/sys_socket (Makefile.am): Likewise.
18000         * modules/sys_stat (Makefile.am): Likewise.
18001         * modules/sys_time (Makefile.am): Likewise.
18002         * modules/sys_times (Makefile.am): Likewise.
18003         * modules/sys_uio (Makefile.am): Likewise.
18004         * modules/sys_utsname (Makefile.am): Likewise.
18005         * modules/sys_wait (Makefile.am): Likewise.
18006         * modules/sysexits (Makefile.am): Likewise.
18007         * modules/termios (Makefile.am): Likewise.
18008         * modules/time (Makefile.am): Likewise.
18009         * modules/unistd (Makefile.am): Likewise.
18010         * modules/wchar (Makefile.am): Likewise.
18011         * modules/wctype-h (Makefile.am): Likewise.
18012         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18013
18014 2011-05-29  Bruno Haible  <bruno@clisp.org>
18015
18016         assert-h: Allow multiple gnulib generated replacements to coexist.
18017         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18018
18019 2011-05-29  Bruno Haible  <bruno@clisp.org>
18020
18021         argp: Allow coexistence with strerror_r-posix module.
18022         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18023         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18024         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18025         not the glibc signature.
18026
18027 2011-05-28  Bruno Haible  <bruno@clisp.org>
18028
18029         gnulib-tool: Alternative structure of testdirs, similar to --import.
18030         * gnulib-tool: New option --single-configure.
18031         (func_usage): Document it.
18032         (single_configure): New variable.
18033         (func_modules_transitive_closure_separately,
18034         func_modules_transitive_closure_separately,
18035         func_determine_use_libtests, func_modules_add_dummy_separately,
18036         func_modules_to_filelist_separately): New functions, extracted from
18037         func_import.
18038         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18039         (func_import): Use the new functions.
18040         (func_create_testdir): Set final_modules. Handle $single_configure =
18041         true case.
18042
18043 2011-05-28  Bruno Haible  <bruno@clisp.org>
18044
18045         getloadavg: Remove an unreliable safety check.
18046         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18047         getloadavg.c is in place.
18048         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18049         Reported by Sam Steingold <sds@gnu.org>.
18050
18051 2011-05-28  Bruno Haible  <bruno@clisp.org>
18052
18053         doc: Cleanup yet another file produced by texinfo.tex.
18054         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18055
18056 2011-05-28  Bruno Haible  <bruno@clisp.org>
18057
18058         Finish the conditional dependencies mechanism.
18059         * gnulib-tool: New option --no-conditional-dependencies.
18060         (func_usage): Document it. Don't mark --conditional-dependencies as
18061         experimental.
18062         (cond_dependencies): The possible values can now be true, false, empty.
18063         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18064         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18065         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18066
18067 2011-05-28  Bruno Haible  <bruno@clisp.org>
18068
18069         doc: Use a recent texinfo.tex.
18070         * doc/Makefile (tex_opts): New variable.
18071         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18072
18073 2011-05-28  Jim Meyering  <meyering@redhat.com>
18074
18075         intprops.h: adjust comment to match code change
18076         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18077         only once, it *may* have side effects.  Also fix an unrelated typo.
18078         (_GL_INT_SIGNED): Likewise.
18079
18080 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18081
18082         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18083
18084 2011-05-26  Bruno Haible  <bruno@clisp.org>
18085
18086         mbsrchr: Avoid collision with system function on Interix.
18087         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18088         Reported by Markus Duft <mduft@gentoo.org>.
18089
18090 2011-05-15  James Youngman  <jay@gnu.org>
18091
18092         getopt: for ambiguous options, enumerate the possibilities.
18093         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18094         the ambiguous options when an ambiguous prefix is given. This was
18095         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18096         glibc change was
18097         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18098
18099 2011-05-25  Eric Blake  <eblake@redhat.com>
18100
18101         getcwd: work around mingw bug
18102         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18103         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18104         Reported by Matthias Bolte.
18105
18106 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18107
18108         test-intprops: disable -Wtype-limits diagnostics
18109         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18110         diagnostics.  Otherwise, the integer overflow macros generate many
18111         diagnostics.  Reported by Jim Meyering in
18112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18113
18114         intprops: shorten, to pacify gcc -Woverlength-strings
18115         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18116         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18117         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18118         likely to run afoul of C compiler limits for string constant lengths.
18119         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18120
18121 2011-05-24  Eric Blake  <eblake@redhat.com>
18122
18123         docs: document recently fixed glibc printf bug
18124         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18125         * doc/posix-functions/printf.texi (printf): Likewise.
18126         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18127         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18128
18129         closein-tests: convert to init.sh
18130         * modules/closein-tests (Files): Add init.sh
18131         * tests/test-closein.sh Use it.
18132
18133         yesno-tests: convert to init.sh
18134         * modules/yesno-tests (Files): Add init.sh.
18135         * tests/test-yesno.sh: Use it.
18136
18137         atexit-tests: ensure reliable exit status
18138         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18139         Reported by Bruno Haible.
18140
18141 2011-05-24  Bruno Haible  <bruno@clisp.org>
18142
18143         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18144         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18145         gl_PREREQ_STRERROR_R invocations from here...
18146         * modules/strerror_r-posix (configure.ac): ... to here.
18147
18148 2011-05-24  Eric Blake  <eblake@redhat.com>
18149
18150         strerror_r: fix missing header
18151         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18152
18153         strerror_r: fix AIX test failures
18154         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18155         ERANGE failure.
18156
18157         strerror_r: fix Solaris test failures
18158         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18159         failures.
18160         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18161
18162         strerror_r: enforce POSIX recommendations
18163         * lib/strerror_r.c (safe_copy): New helper method.
18164         (strerror_r): Guarantee a non-empty string.
18165         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18166         recent POSIX rulings and to match our strerror guarantees.
18167         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18168
18169 2011-05-24  Jim Meyering  <meyering@redhat.com>
18170
18171         test-perror2.c: avoid warning about unused variable
18172         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18173
18174 2011-05-24  Eric Blake  <eblake@redhat.com>
18175
18176         perror: avoid spurious test failure on HP-UX
18177         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18178
18179         tests: fix logic bug in init.sh
18180         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18181         shell.
18182
18183 2011-05-24  Jim Meyering  <meyering@redhat.com>
18184
18185         utimensat: do not reference an out-of-scope buffer
18186         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18187         declared in an inner scope, yet "times" would be dereferenced outside
18188         the scope in which "ts" was valid.
18189         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18190         of ts[2] "out/up", so that the use of aliased "times" (via
18191         "times = ts;") does not end up referencing an out-of-scope "ts"
18192
18193         opendir-safer.c: don't clobber errno; don't close negative FD
18194         * lib/opendir-safer.c (opendir_safer):
18195         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18196         file descriptor, and more importantly, don't clobber the
18197         offending errno value with EINVAL.  Before, upon failure
18198         of dup_safer, we would pass the negative file descriptor to
18199         fdopendir, which would clobber errno.
18200
18201 2011-05-23  Bruno Haible  <bruno@clisp.org>
18202
18203         idcache: Fix module description.
18204         * modules/idcache (Include): Set to "idcache.h".
18205
18206 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18207
18208         gnulib-tool: fix portability problem with MacOS sed
18209         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18210         before the "}".  Problem reported by Leo in
18211         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18212         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18213         sed_extract_condition1, sed_extract_condition2.
18214
18215 2011-05-23  Bruno Haible  <bruno@clisp.org>
18216
18217         hash: Simplify autoconf macro.
18218         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18219
18220 2011-05-23  Bruno Haible  <bruno@clisp.org>
18221
18222         getugroups: Fix module description.
18223         * modules/getugroups (Include): Set to "getugroups.h".
18224
18225 2011-05-23  Bruno Haible  <bruno@clisp.org>
18226
18227         linkat: Simplify autoconf macro.
18228         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18229
18230 2011-05-23  Bruno Haible  <bruno@clisp.org>
18231             Eric Blake  <eblake@redhat.com>
18232
18233         linkat, renameat: Update dependencies.
18234         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18235         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18236         symlinkat.
18237
18238 2011-05-23  Jim Meyering  <meyering@redhat.com>
18239
18240         maint.mk: more tight_scope improvements
18241         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18242         (_gl_TS_headers): Define only in if-0'd block.
18243         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18244         sometimes we must *not* use it.  Adjust uses accordingly.
18245         (sc_tight_scope): Use much simpler grep-based test to determine
18246         whether we skip this rule.
18247
18248         maint.mk: generalize/improve the tight-scope rule
18249         * top/maint.mk: Emit a warning when the test is skipped.
18250         (_gl_TS_dir): Add $(srcdir)/ prefix.
18251         (_gl_TS_function_match): Simplify, rather than trying
18252         to enumerate common types.  Otherwise, it would fail to match an
18253         "extern unsigned char const *" declaration in idutils.
18254         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18255         a way to support use of that type of macro.
18256         (_gl_TS_var_match): Simplify regexp.
18257         (_gl_TS_obj_files): New configurable variable.
18258         (_gl_TS_headers): Likewise.
18259
18260 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18261
18262         verify: fix bug when gnulib <assert.h> is also included
18263         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18264         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18265         Perhaps there's a better way, but this fixes the immediate problem.
18266         Problem reported by Bruno Haible in
18267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18268
18269 2011-05-22  Bruno Haible  <bruno@clisp.org>
18270
18271         xgetcwd: Simplify autoconf macro.
18272         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18273
18274 2011-05-22  Bruno Haible  <bruno@clisp.org>
18275
18276         New module 'mktime-internal'.
18277         * modules/mktime-internal: New file.
18278         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18279         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18280         mktime_internal as a C macro if libc has __mktime_internal.
18281         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18282         conditions.
18283         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18284
18285 2011-05-22  Bruno Haible  <bruno@clisp.org>
18286
18287         timegm: Correct mktime replacement statements.
18288         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18289         defining mktime as a C macro. This completes a 2009-07-28 commit.
18290
18291 2011-05-22  Bruno Haible  <bruno@clisp.org>
18292
18293         timegm: Simplify autoconf macro.
18294         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18295
18296 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18297
18298         clock-time: change to LGPLv2+.
18299         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18300         BSD-like but we have no mark for that; this is good enough for now.
18301
18302 2011-05-21  Bruno Haible  <bruno@clisp.org>
18303
18304         strerror_r: Fix comments.
18305         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18306
18307 2011-05-21  Bruno Haible  <bruno@clisp.org>
18308
18309         relocatable-prog-wrapper: Fix possible link error.
18310         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18311         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18312         (gl_FUNC_SETENV): ... to here.
18313         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18314         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18315
18316 2011-05-21  Bruno Haible  <bruno@clisp.org>
18317
18318         relocatable-prog-wrapper: Assume strerror() exists.
18319         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18320         m4/strerror.m4.
18321         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18322         * lib/relocwrapper.c: Remove mention of strerror module.
18323         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18325         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18326         C macro.
18327
18328 2011-05-21  Bruno Haible  <bruno@clisp.org>
18329
18330         select: Simplify replacement idiom.
18331         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18332         Win32 platforms.
18333         * lib/sys_select.in.h (select): Simplify accordingly.
18334         * modules/select (Depends-on): Likewise.
18335
18336 2011-05-21  Bruno Haible  <bruno@clisp.org>
18337
18338         mkdir-p: Simplify autoconf macro.
18339         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18340         gl_FUNC_LCHOWN.
18341
18342 2011-05-21  Eric Blake  <eblake@redhat.com>
18343
18344         strerror_r: avoid clobbering strerror on cygwin
18345         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18346         fall back instead to sys_errlist.
18347         * modules/strerror (configure.ac): Add witness.
18348         * tests/test-strerror_r.c (main): Enhance test.
18349         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18350         * tests/test-perror2.c (main): Free memory before exit.
18351
18352 2011-05-21  Bruno Haible  <bruno@clisp.org>
18353
18354         mkdtemp: Use gnulib naming conventions.
18355         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18356         * modules/mkdtemp (configure.ac): Update.
18357
18358 2011-05-20  Eric Blake  <eblake@redhat.com>
18359
18360         strerror_r: avoid corrupting errno on Solaris
18361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18362         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18363
18364         strerror_r: avoid compiler warning
18365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18366
18367         strerror_r: simplify AIX code
18368         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18369
18370         test-perror: avoid spurious failure on FreeBSD
18371         * modules/perror-tests (Depends-on): Add strerror, now that
18372         strerror_r no longer pulls it in.
18373
18374 2011-05-20  Bruno Haible  <bruno@clisp.org>
18375
18376         strerror_r-posix: Remove unused dependencies.
18377         * modules/strerror_r-posix (Depends-on): Remove strerror.
18378         Reported by Eric Blake.
18379
18380 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18381
18382         intprops: remove assumption about A|B representation
18383         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18384         is a valid integer if both A and B are.  Although this is true for
18385         all known practical hosts, the C standard doesn't guarantee it,
18386         and the code need not assume it.  Also, this change may work around
18387         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18389
18390 2011-05-20  Eric Blake  <eblake@redhat.com>
18391
18392         perror: work around FreeBSD bug
18393         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18394         is broken.  Move AC_LIBOBJ...
18395         * modules/perror (configure.ac): Here.
18396         * doc/posix-functions/perror.texi (perror): Document this.
18397         * tests/test-perror2.c (main): Enhance test.
18398
18399         test-perror: check for strerror interactions
18400         * tests/macros.h (STREQ): Add macro.
18401         * modules/perror-tests (Files): Add second test.
18402         * tests/test-perror2.c (main): New file.
18403         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18404
18405         test-perror: rewrite to use init script
18406         * modules/perror-tests (Files): Add init.sh.
18407         * tests/test-perror.sh: Use temporary directory.
18408
18409 2011-05-20  Jim Meyering  <meyering@redhat.com>
18410
18411         maint: replace misused "a" with "an"
18412         * doc/intprops.texi: "a integer"
18413         * doc/regex.texi: "a explanation"
18414         * lib/alignof.h: "a object"
18415         * lib/argmatch.h: "a explanation"
18416         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18417         * lib/stdint.in.h: "a integer"
18418         * lib/userspec.c: "a owner"
18419         * doc/gnulib.texi: Fix "a idea", and reword.
18420
18421 2011-05-19  Jim Meyering  <meyering@redhat.com>
18422
18423         maint: correct misuse of "a" and "an"
18424         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18425         * lib/argp-help.c: "an docum...": s/an/a/
18426         * lib/argp-parse.c: "An vector": s/An/A/
18427         * lib/execute.c: "an native": s/an/a/
18428         * lib/spawn-pipe.c: Likewise.
18429         * lib/gc.h: "an Gc_rc": s/an/a/
18430         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18431         * lib/fts.c: "an stat.st_dev": s/an/a/
18432
18433 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18434
18435         intprops-tests: work around HP-UX 11.23 cc bug with constants
18436         * tests/test-intprops.c (VERIFY): New macro.
18437         (main): Use it, instead of verify, to work around the compiler bug; see
18438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18439
18440         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18441         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18442         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18443         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18444         (_GL_REMAINDER_OVERFLOW): Use it.
18445
18446         intprops-tests: revert unsigned part of previous change
18447         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18448         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18449         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18451
18452 2011-05-19  Bruno Haible  <bruno@clisp.org>
18453
18454         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18455         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18456         strerror_r() returned without filling the buffer.
18457         Reported by Eric Blake.
18458
18459 2011-05-19  Eric Blake  <eblake@redhat.com>
18460
18461         strerror_r: guarantee unchanged errno
18462         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18463         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18464         failure.
18465         * tests/test-strerror_r.c (main): Enhance test.
18466
18467 2011-05-19  Bruno Haible  <bruno@clisp.org>
18468
18469         strerror_r: Reorder #if blocks.
18470         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18471         for consistency with the previous commit.
18472
18473 2011-05-19  Bruno Haible  <bruno@clisp.org>
18474
18475         perror: Avoid clobbering the strerror buffer when possible.
18476         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18477         * lib/strerror.c: Include it.
18478         * modules/strerror (Files): Add lib/strerror-impl.h.
18479         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18480         (my_strerror): New function, defined through lib/strerror-impl.h.
18481         (perror): Use it instead of strerror.
18482         * modules/perror (Files): Add lib/strerror-impl.h.
18483         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18484
18485 2011-05-19  Eric Blake  <eblake@redhat.com>
18486
18487         strerror_r: fix on newer cygwin
18488         * lib/strerror_r.c (strerror_r): Cygwin now has
18489         __xpg_strerror_r, use it.
18490
18491 2011-05-19  Bruno Haible  <bruno@clisp.org>
18492
18493         strerror_r: Avoid clobbering the strerror buffer when possible.
18494         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18495         (sys_nerr, sys_errlist): New declarations.
18496         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18497         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18498         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18499
18500 2011-05-19  Bruno Haible  <bruno@clisp.org>
18501
18502         strerror_r: Fix test failure on mingw.
18503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18504         EXTEND_STRERROR_R.
18505         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18506         macros from errno.in.h instead.
18507
18508 2011-05-19  Eric Blake  <eblake@redhat.com>
18509
18510         strerror: relax test for Solaris
18511         * tests/test-strerror.c (main): Permit Solaris behavior.
18512         * tests/test-strerror_r.c (main): Likewise.
18513
18514         strerror: enforce POSIX ruling on strerror(0)
18515         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18517         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18518         * doc/posix-functions/strerror.texi (strerror): Document it.
18519         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18520         * tests/test-strerror.c (main): Strengthen test.
18521         * tests/test-strerror_r.c (main): Likewise.
18522
18523 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18524
18525         intprop-tests: port to older and more-pedantic compilers
18526         * modules/intprops-tests (Files): Add tests/macros.h.
18527         * tests/test-intprops.c: Include macros.h.
18528         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18529         it's no longer documented to expand to an integer constant expression.
18530         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18531         argument is floating point, as it's no longer documented to expand
18532         to an integer constant expression in that case.
18533         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18534         compiler bugs reported by Bruno Haible.  See
18535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18536         (U0, U1): New constants, to work around the same bugs.  Also,
18537         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18538
18539         intprops: work around C compiler bugs
18540         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18541         bug in Sun C 5.11 2010/08/13 and other compilers; see
18542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18543
18544         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18545         * doc/intprops.texi (Integer Type Determination): Fix
18546         documentation for TYPE_IS_INTEGER: it returns an constant
18547         expression, not an integer constant expression.  Fix doc for
18548         TYPE_SIGNED: it returns an integer constant expression only if its
18549         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18550         hardly worth documented that way....)
18551
18552 2011-05-18  Bruno Haible  <bruno@clisp.org>
18553
18554         strerror_r: Avoid clobbering the strerror buffer when possible.
18555         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18556         Handle gnulib defined errno values here. When strerror() returns NULL
18557         or an empty string, return EINVAL.
18558         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18559         gnulib defined errno values here.
18560         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18561
18562 2011-05-18  Eric Blake  <eblake@redhat.com>
18563
18564         fnmatch: avoid compiler warning
18565         * lib/fnmatch_loop.c (FCT): Use correct type.
18566         Reported by Matthias Bolte.
18567
18568 2011-05-13  Jim Meyering  <meyering@redhat.com>
18569
18570         maint.mk: three new prohibit_<HDR>_without_use rules
18571         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18572         (sc_prohibit_stdio-safer_without_use): Likewise.
18573         (sc_prohibit_xfreopen_without_use): Likewise.
18574
18575 2011-05-17  Jim Meyering  <meyering@redhat.com>
18576
18577         announce-gen: fail if the NEWS delta is empty
18578         If there's nothing noteworthy in NEWS, then either you forgot
18579         or you shouldn't be releasing.
18580         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18581
18582 2011-05-17  Pádraig Brady <P@draigBrady.com>
18583
18584         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18585         reserved symbols starting with double underscore from the check.
18586
18587 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18588
18589         intprops: add doc
18590         * doc/intprops.texi: New file, documenting intprops.
18591         * doc/gnulib.texi (Particular Modules): Include it.
18592
18593         verify: add doc to gnulib manual and fix example
18594         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18595         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18596         (Compile-time Assertions): Fix example so it can't overflow.
18597
18598 2011-05-17  Jim Meyering  <meyering@redhat.com>
18599
18600         warnings.m4: don't usurp save_CPPFLAGS variable name
18601         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18602
18603         doc: fix typo
18604         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18605
18606 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18607             Bruno Haible  <bruno@clisp.org>
18608
18609         doc: Tweak recent change.
18610         * README (Portability guidelines): Tweak new text.
18611         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18612         Interix 6.1.
18613
18614 2011-05-16  Eric Blake  <eblake@redhat.com>
18615
18616         inttypes: avoid autoconf warning
18617         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18618         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18619
18620 2011-05-16  Sam Steingold <sds@gnu.org>
18621         and Eric Blake  <eblake@redhat.com>
18622
18623         vc-list-files: accept multiple directory operands
18624         * build-aux/vc-list-files: Iterate over all remaining operands.
18625
18626 2011-05-16  Bruno Haible  <bruno@clisp.org>
18627
18628         Fix confusion regarding deprecated modules.
18629         * modules/calloc (Status, Notice): Mark module as deprecated, not
18630         obsolete.
18631         * modules/fnmatch-posix (Status, Notice): Likewise.
18632         * modules/getdate (Status, Notice): Likewise.
18633         * modules/getopt (Status, Notice): Likewise.
18634         * modules/malloc (Status, Notice): Likewise.
18635         * modules/pipe (Status, Notice): Likewise.
18636         * modules/realloc (Status, Notice): Likewise.
18637         * modules/rename-dest-slash (Status, Notice): Likewise.
18638         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18639         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18640         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18641         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18642         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18643
18644 2011-05-16  Bruno Haible  <bruno@clisp.org>
18645
18646         doc: List the target platforms.
18647         * doc/gnulib-intro.texi (Target Platforms): New section.
18648         * doc/gnulib.texi (Introduction): Update menu.
18649         * README (Portability guidelines): Refer to the new section. Update
18650         statement about oldest supported environment. Remove rationale why
18651         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18652         unportable C89 function.
18653         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18654         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18655
18656 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18657
18658         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18659
18660 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18661
18662         intprops-tests: new module
18663         * modules/intprops-tests, tests/test-intprops.c: New files.
18664
18665         intprops: add safe, portable integer overflow checking
18666         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18667         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18668         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18669         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18670         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18671         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18672         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18673         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18674         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18675         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18676         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18677
18678 2011-05-12  James Youngman  <jay@gnu.org>
18679
18680         Add a test for glibc's Bugzilla bug #12378.
18681         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18682         doesn't allow the literal matching of a lone "[" (which is
18683         required by POSIX).
18684         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18685
18686 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18687
18688         Sync glibc change fixing Bugzilla bug #12378.
18689         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18690         beginning and fall back to matching as normal character if the
18691         string ends before the matching ']' is found.  This is what POSIX
18692         requires.
18693
18694 2011-05-13  Eric Blake  <eblake@redhat.com>
18695
18696         getcwd-lgpl: relax test for FreeBSD
18697         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18698         issue.
18699         * tests/test-getcwd-lgpl.c (main): Relax test.
18700         Reported by Matthias Bolte.
18701
18702 2011-05-11  Eric Blake  <eblake@redhat.com>
18703
18704         test-fflush: silence compiler warning
18705         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18706
18707 2011-05-11  Bruno Haible  <bruno@clisp.org>
18708
18709         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18710         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18711         * modules/canonicalize (Depends-on): Add 'nocrash'.
18712         * modules/canonicalize-lgpl (Depends-on): Likewise.
18713         * doc/posix-functions/realpath.texi: Update platforms list.
18714         Reported by Ryan Schmidt <ryandesign@macports.org>.
18715
18716 2011-05-11  Bruno Haible  <bruno@clisp.org>
18717
18718         group-member: Declare function in <unistd.h>.
18719         * lib/unistd.in.h (group_member): New declaration.
18720         * lib/group-member.h: Remove file.
18721         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18722         * tests/test-unistd-c++.cc: Check signature of group_member.
18723         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18724         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18725         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18726         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18727         HAVE_GROUP_MEMBER.
18728         * modules/group-member (Files): Remove lib/group-member.h.
18729         (Depends-on): Add unistd. Specify conditions.
18730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18731         (Include): Change to <unistd.h>.
18732         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18733         HAVE_GROUP_MEMBER.
18734         * NEWS: Mention the change.
18735         * lib/euidaccess.c: Don't include group-member.h.
18736
18737 2011-05-11  Bruno Haible  <bruno@clisp.org>
18738
18739         group-member: Document module.
18740         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18741         module.
18742
18743 2011-05-11  Bruno Haible  <bruno@clisp.org>
18744
18745         fclose: Fix mistake earlier today.
18746         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18747
18748 2011-05-11  Eric Blake  <eblake@redhat.com>
18749
18750         fclose: preserve fflush errors
18751         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18752         Reported by Jim Meyering.
18753
18754         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18755         * build-aux/bootstrap (check_versions): When no specific version
18756         is required, merely check that the app produces an exit status
18757         that indicates its existence.
18758
18759         maint.mk: drop redundant check
18760         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18761         the same but better.
18762
18763 2011-05-11  Bruno Haible  <bruno@clisp.org>
18764
18765         fclose: Fix possible link error.
18766         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18767         unregister_shadow_fd. Improve comments.
18768         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18769         Eric Blake.
18770
18771 2011-05-11  Jim Meyering  <meyering@redhat.com>
18772
18773         maint.mk: improve "can not" detection and generalize rule name
18774         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18775         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18776         Use the same technique as in sc_prohibit_doubled_word, so that
18777         we recognize "can not" also when the words are separated by a newline.
18778         Suggested by Eric Blake.
18779         (perl_filename_lineno_text_): Define.  Factored out of...
18780         (prohibit_doubled_word_): ...here.  Use the new definition.
18781         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18782         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18783         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18784
18785 2011-05-10  Eric Blake  <eblake@redhat.com>
18786
18787         fclose: avoid double close race when possible
18788         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18789         all but WINDOWS_SOCKETS.
18790
18791 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18792
18793         openat: correct new comment
18794         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18795
18796 2011-05-10  Jim Meyering  <meyering@redhat.com>
18797
18798         openat: add comments
18799         * lib/openat-proc.c (openat_proc_name): Add comments,
18800         mostly from Eric Blake.
18801
18802 2011-05-09  Eric Blake  <eblake@redhat.com>
18803
18804         openat: reduce syscalls in first probe of /proc
18805         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18806         be a directory.  Simplify the probe for .. bugs.
18807         * modules/openat (Depends-on): Drop same-inode.
18808         Reported by Bastien ROUCARIES.
18809
18810 2011-05-09  Jim Meyering  <meyering@redhat.com>
18811
18812         maint.mk: change semantics/name of tight_scope variables
18813         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18814         Rename variables to align with semantics that make them more useful.
18815
18816         maint.mk: tweak new rule's name not to impinge
18817         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18818         (sc_tight_scope): Use new rule name rather than $@-0.
18819
18820         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18821         * top/maint.mk (sc_tight_scope): New rule.
18822         (sc_tight_scope-0): New rule, ifdef'd out.
18823         (_gl_TS_dir): Default.
18824         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18825         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18826
18827 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18828
18829         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18830         Haible <bruno@clisp.org>.
18831
18832 2011-05-08  Bruno Haible  <bruno@clisp.org>
18833
18834         Comments.
18835         * m4/isnanf.m4: Add comment.
18836         * m4/isnanl.m4: Likewise.
18837
18838 2011-05-08  Bruno Haible  <bruno@clisp.org>
18839
18840         glob: Remove obsolete macro.
18841         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18842
18843 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18844
18845         intprops: Sun C 5.11 supports __typeof__
18846         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18847         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18848         which is new.
18849         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18850
18851         intprops: switch to usual gnulib indenting and naming
18852         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18853         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18854
18855         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18856
18857 2011-05-08  Jim Meyering  <meyering@redhat.com>
18858
18859         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18860         * top/maint.mk (release-prep): Use make's --no-print-directory
18861         option when generating the announcement.  This eliminates the
18862         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18863         generated announcement template.
18864
18865 2011-05-08  Bruno Haible  <bruno@clisp.org>
18866
18867         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18868         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18869         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18870
18871 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         ignore-value, verify: Omit include files from lib_SOURCES.
18874         * modules/ignore-value, modules/verify (Makefile.am):
18875         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18876         that leads Automake to duplicate use of am__objects_... variables
18877         in Makefile.in.  See
18878         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18879
18880 2011-05-07  Bruno Haible  <bruno@clisp.org>
18881
18882         fclose: Simplify autoconf macro.
18883         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18884         defined.
18885
18886 2011-05-07  Bruno Haible  <bruno@clisp.org>
18887
18888         canonicalize-lgpl: Fix autoconf macro ordering bug.
18889         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18890         gl_STDLIB_H_DEFAULTS.
18891
18892 2011-05-06  Eric Blake  <eblake@redhat.com>
18893
18894         maintainer-makefile: make sc_po_check easier to tune
18895         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18896         to probe for strings, such as an alternate location for gnulib.
18897
18898         fclose: guarantee behavior on seekable stdin
18899         * modules/fclose (Depends-on): Add fflush.
18900         * doc/posix-functions/fclose.texi (fclose): Document this.
18901         * tests/test-fclose.c (main): Make test for this unconditional.
18902
18903 2011-05-06  Bruno Haible  <bruno@clisp.org>
18904
18905         fflush, fpurge: Relicense under LGPLv2+.
18906         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18907         * modules/fpurge (License): Likewise.
18908         With permission from Eric Blake and Jim Meyering.
18909         Suggested by Eric Blake.
18910
18911 2011-05-06  Karl Berry  <karl@gnu.org>
18912
18913         * MODULES.html.sh (func_all_modules): remove exit.
18914
18915 2011-05-06  Jim Meyering  <meyering@redhat.com>
18916
18917         maint.mk: use info-gnu@ as the default only for a stable release
18918         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18919         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18920         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18921         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18922
18923 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18924
18925         assert-h: new module, which supports C1X-style static_assert
18926         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18927         * lib/verify.h: Revamp so that this can be copied into assert.h,
18928         while retaining the ability to use it standalone as before.
18929         Rename private identifiers so as not to encroach on the
18930         standard C namespace, since this is now used by assert.h.
18931         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18932         the old verify_true.
18933         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18934         the old verify_true.  Use _GL_VERIFY_TYPE.
18935         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18936         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18937         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18938         defined when this file is copied into the replacement assert.h.
18939         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18940         and _Static_assert is not built in.
18941         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18942         defined, and use the new macros mentioned above.
18943         * doc/posix-headers/assert.texi: Document this.
18944
18945 2011-05-05  Bruno Haible  <bruno@clisp.org>
18946
18947         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18948         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18949         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18950         gl_REPLACE_FCLOSE here.
18951         * modules/fflush (Depends-on): Remove fclose.
18952         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18953         combination with module 'fclose'.
18954
18955 2011-05-05  Bruno Haible  <bruno@clisp.org>
18956
18957         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18958         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18959         gl_FUNC_FFLUSH.
18960         (gl_FUNC_FFLUSH): Use it.
18961         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18962         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18963         gl_REPLACE_FSEEKO here.
18964
18965 2011-05-05  Bruno Haible  <bruno@clisp.org>
18966
18967         tzset: Relicense under LGPL.
18968         * modules/tzset (License): Change to LGPL.
18969         No agreement needed; it's a no-op.
18970
18971         strtoimax, strtoumax: Relicense under LGPL.
18972         * modules/strtoimax (License): Change to LGPL.
18973         * modules/strtoumax (License): Likewise.
18974         With permission from Jim Meyering, Paul Eggert:
18975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18977
18978         getgroups: Relicense under LGPL.
18979         * modules/getgroups (License): Change to LGPL.
18980         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18984
18985         nanosleep: Relicense under LGPL.
18986         * modules/nanosleep (License): Change to LGPL.
18987         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18988         Haible:
18989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18993
18994         futimens: Relicense under LGPL.
18995         * modules/futimens (License): Change to LGPL.
18996         With permission from Eric Blake:
18997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18998
18999         fflush: Relicense under LGPL.
19000         * modules/fflush (License): Change to LGPL.
19001         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19005
19006         tmpfile: Relicense under LGPL.
19007         * modules/tmpfile (License): Change to LGPL.
19008         With permission from Ben Pfaff:
19009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19010
19011         isfinite: Relicense under LGPL.
19012         * modules/isfinite (License): Change to LGPL.
19013         With permission from Ben Pfaff, Bruno Haible:
19014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19016
19017         acosl..tanl: Relicense under LGPL.
19018         * modules/acosl (License): Change to LGPL.
19019         * modules/asinl (License): Likewise.
19020         * modules/atanl (License): Likewise.
19021         * modules/cosl (License): Likewise.
19022         * modules/expl (License): Likewise.
19023         * modules/logl (License): Likewise.
19024         * modules/sinl (License): Likewise.
19025         * modules/sqrtl (License): Likewise.
19026         * modules/tanl (License): Likewise.
19027         Source code originally from glibc and Paolo Bonzini. Agreements:
19028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19030
19031 2011-05-05  Bruno Haible  <bruno@clisp.org>
19032
19033         signal: Define sighandler_t.
19034         * lib/signal.in.h (sighandler_t): New type.
19035         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19036         whether sighandler_t is defined.
19037         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19038         * modules/signal (Depends-on): Add extensions.
19039         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19040         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19041         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19042
19043 2011-05-05  Eric Blake  <eblake@redhat.com>
19044
19045         maint: remove useless REPLACE_*_H macros
19046         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19047         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19048         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19049         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19050         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19051         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19052         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19053         * m4/btowc.m4: Update callers.
19054         * m4/dirfd.m4: Likewise.
19055         * m4/duplocale.m4: Likewise.
19056         * m4/fchdir.m4: Likewise.
19057         * m4/fdopendir.m4: Likewise.
19058         * m4/inet_ntop.m4: Likewise.
19059         * m4/inet_pton.m4: Likewise.
19060         * m4/ioctl.m4: Likewise.
19061         * m4/mbrlen.m4: Likewise.
19062         * m4/mbrtowc.m4: Likewise.
19063         * m4/mbsinit.m4: Likewise.
19064         * m4/mbsnrtowcs.m4: Likewise.
19065         * m4/mbsrtowcs.m4: Likewise.
19066         * m4/poll.m4: Likewise.
19067         * m4/setlocale.m4: Likewise.
19068         * m4/wcrtomb.m4: Likewise.
19069         * m4/wcsnrtombs.m4: Likewise.
19070         * m4/wcsrtombs.m4: Likewise.
19071         * m4/wctob.m4: Likewise.
19072         * m4/wcwidth.m4: Likewise.
19073         * modules/posix_spawn: Likewise.
19074         * modules/posix_spawn_file_actions_addclose: Likewise.
19075         * modules/posix_spawn_file_actions_adddup2: Likewise.
19076         * modules/posix_spawn_file_actions_addopen: Likewise.
19077         * modules/posix_spawn_file_actions_destroy: Likewise.
19078         * modules/posix_spawn_file_actions_init: Likewise.
19079         * modules/posix_spawnattr_destroy: Likewise.
19080         * modules/posix_spawnattr_getflags: Likewise.
19081         * modules/posix_spawnattr_getpgroup: Likewise.
19082         * modules/posix_spawnattr_getschedparam: Likewise.
19083         * modules/posix_spawnattr_getschedpolicy: Likewise.
19084         * modules/posix_spawnattr_getsigdefault: Likewise.
19085         * modules/posix_spawnattr_getsigmask: Likewise.
19086         * modules/posix_spawnattr_init: Likewise.
19087         * modules/posix_spawnattr_setflags: Likewise.
19088         * modules/posix_spawnattr_setpgroup: Likewise.
19089         * modules/posix_spawnattr_setschedparam: Likewise.
19090         * modules/posix_spawnattr_setschedpolicy: Likewise.
19091         * modules/posix_spawnattr_setsigdefault: Likewise.
19092         * modules/posix_spawnattr_setsigmask: Likewise.
19093         * modules/posix_spawnp: Likewise.
19094
19095 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19096
19097         Add option to do-release-commit-and-tag to specify branch.
19098         * build-aux/do-release-commit-and-tag: Add --branch.
19099
19100 2011-05-03  Bruno Haible  <bruno@clisp.org>
19101
19102         Avoid unnecessary compilation units, through conditional dependencies.
19103         * modules/accept (Depends-on): Add conditions to the dependencies.
19104         * modules/acosl (Depends-on): Likewise.
19105         * modules/argz (Depends-on): Likewise.
19106         * modules/asinl (Depends-on): Likewise.
19107         * modules/atanl (Depends-on): Likewise.
19108         * modules/atoll (Depends-on): Likewise.
19109         * modules/bind (Depends-on): Likewise.
19110         * modules/btowc (Depends-on): Likewise.
19111         * modules/canonicalize-lgpl (Depends-on): Likewise.
19112         * modules/ceil (Depends-on): Likewise.
19113         * modules/ceilf (Depends-on): Likewise.
19114         * modules/ceill (Depends-on): Likewise.
19115         * modules/chdir-long (Depends-on): Likewise.
19116         * modules/chown (Depends-on): Likewise.
19117         * modules/close (Depends-on): Likewise.
19118         * modules/connect (Depends-on): Likewise.
19119         * modules/cosl (Depends-on): Likewise.
19120         * modules/dirfd (Depends-on): Likewise.
19121         * modules/dprintf (Depends-on): Likewise.
19122         * modules/dprintf-posix (Depends-on): Likewise.
19123         * modules/error (Depends-on): Likewise.
19124         * modules/euidaccess (Depends-on): Likewise.
19125         * modules/expl (Depends-on): Likewise.
19126         * modules/faccessat (Depends-on): Likewise.
19127         * modules/fchdir (Depends-on): Likewise.
19128         * modules/fclose (Depends-on): Likewise.
19129         * modules/fcntl (Depends-on): Likewise.
19130         * modules/fdopendir (Depends-on): Likewise.
19131         * modules/fflush (Depends-on): Likewise.
19132         * modules/floor (Depends-on): Likewise.
19133         * modules/floorf (Depends-on): Likewise.
19134         * modules/floorl (Depends-on): Likewise.
19135         * modules/fnmatch (Depends-on): Likewise.
19136         * modules/fopen (Depends-on): Likewise.
19137         * modules/fprintf-posix (Depends-on): Likewise.
19138         * modules/frexp (Depends-on): Likewise.
19139         * modules/frexp-nolibm (Depends-on): Likewise.
19140         * modules/frexpl (Depends-on): Likewise.
19141         * modules/frexpl-nolibm (Depends-on): Likewise.
19142         * modules/fseek (Depends-on): Likewise.
19143         * modules/fsusage (Depends-on): Likewise.
19144         * modules/ftell (Depends-on): Likewise.
19145         * modules/ftello (Depends-on): Likewise.
19146         * modules/futimens (Depends-on): Likewise.
19147         * modules/getcwd (Depends-on): Likewise.
19148         * modules/getcwd-lgpl (Depends-on): Likewise.
19149         * modules/getdelim (Depends-on): Likewise.
19150         * modules/getdomainname (Depends-on): Likewise.
19151         * modules/getgroups (Depends-on): Likewise.
19152         * modules/gethostname (Depends-on): Likewise.
19153         * modules/getline (Depends-on): Likewise.
19154         * modules/getlogin_r (Depends-on): Likewise.
19155         * modules/getopt-posix (Depends-on): Likewise.
19156         * modules/getpeername (Depends-on): Likewise.
19157         * modules/getsockname (Depends-on): Likewise.
19158         * modules/getsockopt (Depends-on): Likewise.
19159         * modules/getsubopt (Depends-on): Likewise.
19160         * modules/getusershell (Depends-on): Likewise.
19161         * modules/glob (Depends-on): Likewise.
19162         * modules/grantpt (Depends-on): Likewise.
19163         * modules/iconv_open (Depends-on): Likewise.
19164         * modules/iconv_open-utf (Depends-on): Likewise.
19165         * modules/inet_ntop (Depends-on): Likewise.
19166         * modules/inet_pton (Depends-on): Likewise.
19167         * modules/ioctl (Depends-on): Likewise.
19168         * modules/isapipe (Depends-on): Likewise.
19169         * modules/isfinite (Depends-on): Likewise.
19170         * modules/isinf (Depends-on): Likewise.
19171         * modules/lchown (Depends-on): Likewise.
19172         * modules/ldexpl (Depends-on): Likewise.
19173         * modules/link (Depends-on): Likewise.
19174         * modules/linkat (Depends-on): Likewise.
19175         * modules/listen (Depends-on): Likewise.
19176         * modules/logl (Depends-on): Likewise.
19177         * modules/lstat (Depends-on): Likewise.
19178         * modules/mbrlen (Depends-on): Likewise.
19179         * modules/mbrtowc (Depends-on): Likewise.
19180         * modules/mbsinit (Depends-on): Likewise.
19181         * modules/mbsnrtowcs (Depends-on): Likewise.
19182         * modules/mbsrtowcs (Depends-on): Likewise.
19183         * modules/mbtowc (Depends-on): Likewise.
19184         * modules/memcmp (Depends-on): Likewise.
19185         * modules/mkdir (Depends-on): Likewise.
19186         * modules/mkdtemp (Depends-on): Likewise.
19187         * modules/mkfifo (Depends-on): Likewise.
19188         * modules/mkfifoat (Depends-on): Likewise.
19189         * modules/mknod (Depends-on): Likewise.
19190         * modules/mkostemp (Depends-on): Likewise.
19191         * modules/mkostemps (Depends-on): Likewise.
19192         * modules/mkstemp (Depends-on): Likewise.
19193         * modules/mkstemps (Depends-on): Likewise.
19194         * modules/mktime (Depends-on): Likewise.
19195         * modules/nanosleep (Depends-on): Likewise.
19196         * modules/open (Depends-on): Likewise.
19197         * modules/openat (Depends-on): Likewise.
19198         * modules/perror (Depends-on): Likewise.
19199         * modules/poll (Depends-on): Likewise.
19200         * modules/popen (Depends-on): Likewise.
19201         * modules/posix_spawn (Depends-on): Likewise.
19202         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19203         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19204         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19205         * modules/posix_spawnp (Depends-on): Likewise.
19206         * modules/pread (Depends-on): Likewise.
19207         * modules/printf-posix (Depends-on): Likewise.
19208         * modules/ptsname (Depends-on): Likewise.
19209         * modules/putenv (Depends-on): Likewise.
19210         * modules/pwrite (Depends-on): Likewise.
19211         * modules/readline (Depends-on): Likewise.
19212         * modules/readlink (Depends-on): Likewise.
19213         * modules/readlinkat (Depends-on): Likewise.
19214         * modules/recv (Depends-on): Likewise.
19215         * modules/recvfrom (Depends-on): Likewise.
19216         * modules/regex (Depends-on): Likewise.
19217         * modules/remove (Depends-on): Likewise.
19218         * modules/rename (Depends-on): Likewise.
19219         * modules/renameat (Depends-on): Likewise.
19220         * modules/rmdir (Depends-on): Likewise.
19221         * modules/round (Depends-on): Likewise.
19222         * modules/roundf (Depends-on): Likewise.
19223         * modules/roundl (Depends-on): Likewise.
19224         * modules/rpmatch (Depends-on): Likewise.
19225         * modules/select (Depends-on): Likewise.
19226         * modules/send (Depends-on): Likewise.
19227         * modules/sendto (Depends-on): Likewise.
19228         * modules/setenv (Depends-on): Likewise.
19229         * modules/setlocale (Depends-on): Likewise.
19230         * modules/setsockopt (Depends-on): Likewise.
19231         * modules/shutdown (Depends-on): Likewise.
19232         * modules/sigaction (Depends-on): Likewise.
19233         * modules/signbit (Depends-on): Likewise.
19234         * modules/sigprocmask (Depends-on): Likewise.
19235         * modules/sinl (Depends-on): Likewise.
19236         * modules/sleep (Depends-on): Likewise.
19237         * modules/snprintf (Depends-on): Likewise.
19238         * modules/snprintf-posix (Depends-on): Likewise.
19239         * modules/socket (Depends-on): Likewise.
19240         * modules/sprintf-posix (Depends-on): Likewise.
19241         * modules/sqrtl (Depends-on): Likewise.
19242         * modules/stat (Depends-on): Likewise.
19243         * modules/strchrnul (Depends-on): Likewise.
19244         * modules/strdup-posix (Depends-on): Likewise.
19245         * modules/strerror (Depends-on): Likewise.
19246         * modules/strerror_r-posix (Depends-on): Likewise.
19247         * modules/strndup (Depends-on): Likewise.
19248         * modules/strnlen (Depends-on): Likewise.
19249         * modules/strptime (Depends-on): Likewise.
19250         * modules/strsep (Depends-on): Likewise.
19251         * modules/strsignal (Depends-on): Likewise.
19252         * modules/strstr-simple (Depends-on): Likewise.
19253         * modules/strtod (Depends-on): Likewise.
19254         * modules/strtoimax (Depends-on): Likewise.
19255         * modules/strtok_r (Depends-on): Likewise.
19256         * modules/strtoumax (Depends-on): Likewise.
19257         * modules/symlink (Depends-on): Likewise.
19258         * modules/symlinkat (Depends-on): Likewise.
19259         * modules/tanl (Depends-on): Likewise.
19260         * modules/tcgetsid (Depends-on): Likewise.
19261         * modules/tmpfile (Depends-on): Likewise.
19262         * modules/trunc (Depends-on): Likewise.
19263         * modules/truncf (Depends-on): Likewise.
19264         * modules/truncl (Depends-on): Likewise.
19265         * modules/uname (Depends-on): Likewise.
19266         * modules/unlink (Depends-on): Likewise.
19267         * modules/unlockpt (Depends-on): Likewise.
19268         * modules/unsetenv (Depends-on): Likewise.
19269         * modules/usleep (Depends-on): Likewise.
19270         * modules/utimensat (Depends-on): Likewise.
19271         * modules/vasprintf (Depends-on): Likewise.
19272         * modules/vdprintf (Depends-on): Likewise.
19273         * modules/vdprintf-posix (Depends-on): Likewise.
19274         * modules/vfprintf-posix (Depends-on): Likewise.
19275         * modules/vprintf-posix (Depends-on): Likewise.
19276         * modules/vsnprintf (Depends-on): Likewise.
19277         * modules/vsnprintf-posix (Depends-on): Likewise.
19278         * modules/vsprintf-posix (Depends-on): Likewise.
19279         * modules/wcrtomb (Depends-on): Likewise.
19280         * modules/wcscasecmp (Depends-on): Likewise.
19281         * modules/wcscspn (Depends-on): Likewise.
19282         * modules/wcsdup (Depends-on): Likewise.
19283         * modules/wcsncasecmp (Depends-on): Likewise.
19284         * modules/wcsnrtombs (Depends-on): Likewise.
19285         * modules/wcspbrk (Depends-on): Likewise.
19286         * modules/wcsrtombs (Depends-on): Likewise.
19287         * modules/wcsspn (Depends-on): Likewise.
19288         * modules/wcsstr (Depends-on): Likewise.
19289         * modules/wcstok (Depends-on): Likewise.
19290         * modules/wcswidth (Depends-on): Likewise.
19291         * modules/wctob (Depends-on): Likewise.
19292         * modules/wctomb (Depends-on): Likewise.
19293         * modules/wctype (Depends-on): Likewise.
19294         * modules/wcwidth (Depends-on): Likewise.
19295         * modules/write (Depends-on): Likewise.
19296
19297 2011-05-03  Bruno Haible  <bruno@clisp.org>
19298
19299         Support for conditional dependencies.
19300         * doc/gnulib.texi (Module description): Document the syntax of
19301         conditional dependencies.
19302         * gnulib-tool: New option --conditional-dependencies.
19303         (func_usage): Document it.
19304         (cond_dependencies): New variable.
19305         (func_get_automake_snippet_conditional,
19306         func_get_automake_snippet_unconditional): New functions, extracted from
19307         func_get_automake_snippet.
19308         (func_get_automake_snippet): Use them.
19309         (sed_first_32_chars): New variable.
19310         (func_module_shellfunc_name): New function.
19311         (func_module_shellvar_name): New function.
19312         (func_module_conditional_name): New function.
19313         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19314         func_cond_module_condition): New functions.
19315         (func_modules_transitive_closure): Add support for conditional
19316         dependencies.
19317         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19318         conditional automake snippet in an automake conditional.
19319         (func_emit_autoconf_snippets): Emit shell functions that contain the
19320         code for conditional modules.
19321         (func_import, func_create_testdir): Update specification.
19322
19323 2011-05-03  Eric Blake  <eblake@redhat.com>
19324
19325         test-getaddrinfo: report error information
19326         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19327
19328 2011-05-03  Jim Meyering  <meyering@redhat.com>
19329
19330         bootstrap: avoid build failure when $GZIP is set
19331         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19332         program name.  If defined at all, it is supposed to list gzip options.
19333         Reported by Alan Curry in http://debbugs.gnu.org/8609
19334
19335 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19336
19337         readme-release: new module with release instructions
19338         * modules/readme-release: New module.
19339         * top/README-release: New file, from coreutils, grep, diffutils.
19340         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19341
19342 2011-05-02  Eric Blake  <eblake@redhat.com>
19343
19344         fflush: also replace fclose when fixing fflush
19345         * modules/fflush (Depends-on): Add fclose.
19346         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19347         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19348         memstreams with no backing fd.
19349         * doc/posix-functions/fclose.texi (fclose): Document the use of
19350         fflush module to fix the bug.
19351         * tests/test-fclose.c (main): Relax test when fclose is used in
19352         isolation.
19353
19354         fclose: add some tests
19355         * modules/fclose-tests: New test module.
19356         * tests/test-fclose.c: New file.
19357         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19358
19359         fclose: reduced dependencies
19360         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19361         simpler lseek.
19362         * lib/fclose.c (rpl_fclose): Likewise.
19363         Reported by Simon Josefsson.
19364
19365         exit: drop remaining clients
19366         * modules/argmatch (Depends-on): Replace exit with stdlib.
19367         * modules/copy-file (Depends-on): Likewise.
19368         * modules/execute (Depends-on): Likewise.
19369         * modules/exitfail (Depends-on): Likewise.
19370         * modules/obstack (Depends-on): Likewise.
19371         * modules/pagealign_alloc (Depends-on): Likewise.
19372         * modules/pipe-filter-gi (Depends-on): Likewise.
19373         * modules/pipe-filter-ii (Depends-on): Likewise.
19374         * modules/savewd (Depends-on): Likewise.
19375         * modules/spawn-pipe (Depends-on): Likewise.
19376         * modules/wait-process (Depends-on): Likewise.
19377         * modules/xsetenv (Depends-on): Likewise.
19378         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19379         * modules/git-merge-changelog (Depends-on): Likewise.
19380         * modules/long-options (Depends-on): Likewise.
19381         * modules/pt_chown (Depends-on): Likewise.
19382         * modules/sysexits (Depends-on): Likewise.
19383
19384         freading: relax license from LGPLv3+ to LGPLv2+
19385         * modules/freading (License): Relax LGPL version.
19386
19387 2011-05-02  Bruno Haible  <bruno@clisp.org>
19388
19389         fchdir: Remove unused dependencies.
19390         * modules/fchdir (Depends-on): Remove include_next.
19391
19392 2011-05-02  Bruno Haible  <bruno@clisp.org>
19393
19394         gnulib-tool: Refactor.
19395         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19396         from func_emit_autoconf_snippets.
19397         (func_emit_autoconf_snippets): Use it.
19398
19399 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19400
19401         * NEWS: Document removal of 'exit'.
19402         * modules/exit: Remove file.
19403
19404 2011-05-01  Bruno Haible  <bruno@clisp.org>
19405
19406         Update DEPENDENCIES.
19407         * DEPENDENCIES (gettext): Recommend the newest release.
19408         Reported by Simon Josefsson.
19409
19410 2011-05-01  Bruno Haible  <bruno@clisp.org>
19411
19412         gnulib-tool: Reduce code duplication.
19413         * gnulib-tool (func_emit_autoconf_snippets): New function.
19414         (func_import, func_create_testdir): Use it.
19415
19416 2011-04-30  Eric Blake  <eblake@redhat.com>
19417
19418         fclose: don't fail on non-seekable input stream
19419         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19420         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19421         since fflush is allowed to fail in that case.
19422
19423 2011-04-30  Bruno Haible  <bruno@clisp.org>
19424
19425         dup3: cleanup
19426         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19427
19428 2011-04-30  Bruno Haible  <bruno@clisp.org>
19429
19430         netdb: Make it work in C++ mode.
19431         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19432         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19433         module.
19434         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19435         gl_MODULE_INDICATOR_FOR_TESTS.
19436         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19437         * modules/netdb-c++-tests: New file.
19438         * tests/test-netdb-c++.cc: New file.
19439
19440 2011-04-30  Bruno Haible  <bruno@clisp.org>
19441
19442         New modules 'vfscanf', 'vscanf'.
19443         * modules/vfscanf: New file.
19444         * modules/vscanf: New file.
19445         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19446         here.
19447         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19448         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19449
19450 2011-04-30  Bruno Haible  <bruno@clisp.org>
19451
19452         passfd: Add comments.
19453         * lib/passfd.c: Add comments about platforms.
19454
19455 2011-04-30  Bruno Haible  <bruno@clisp.org>
19456
19457         sys_uio: Make <sys/uio.h> self-contained.
19458         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19459         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19460
19461 2011-04-30  Bruno Haible  <bruno@clisp.org>
19462
19463         sys_socket: Ensure 'struct iovec' definition.
19464         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19465         <sys/socket.h>.
19466         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19467
19468 2011-04-30  Bruno Haible  <bruno@clisp.org>
19469
19470         sys_uio: Protect definition of 'struct iovec'.
19471         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19472         it as a C struct.
19473
19474 2011-04-30  Bruno Haible  <bruno@clisp.org>
19475
19476         manywarnings: fix indentation
19477         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19478
19479 2011-04-30  Pádraig Brady <P@draigBrady.com>
19480
19481         manywarnings: add -Wno-missing-field-initializers if needed.
19482         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19483         option if it's needed to allow initialization with { 0, }
19484
19485 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19486
19487         announce-gen: cosmetic improvement
19488         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19489
19490 2011-04-29  Jim Meyering  <meyering@redhat.com>
19491
19492         vc-list-files: indent with spaces, not TABs
19493         * build-aux/vc-list-files: Convert leading TABs to spaces,
19494         to match the style of most other files in gnulib.
19495
19496         announce-gen: indent with spaces, not TABs
19497         * build-aux/announce-gen: Convert all TABs to spaces, to match
19498         the style of most other files in gnulib.
19499
19500 2011-04-29  Eric Blake  <eblake@redhat.com>
19501
19502         quotearg: avoid uninitialized variable use
19503         * lib/quotearg.c (quoting_options_from_style): Initialize
19504         remaining fields, and ensure that custom styles are only used via
19505         quoting_options rather than quoting_style.
19506
19507 2011-04-29  Jim Meyering  <meyering@redhat.com>
19508
19509         maint.mk: remove unused VC-tag variable
19510         * top/maint.mk (VC-tag): Remove unused variable.
19511
19512 2011-04-29  Bruno Haible  <bruno@clisp.org>
19513
19514         netdb: fix gai_strerror replacements
19515         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19516         * modules/netdb: Substitute it.
19517
19518 2011-04-29  Jim Meyering  <meyering@redhat.com>
19519
19520         test-getcwd.c: avoid new set-but-not-used warning
19521         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19522         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19523         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19524         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19525
19526         test-hash.c: avoid a new shadowing warning
19527         * tests/test-hash.c (main): Don't shadow "dup".
19528
19529 2011-04-28  Eric Blake  <eblake@redhat.com>
19530
19531         getaddrinfo: fix gai_strerror signature
19532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19533         and work around mingw with UNICODE defined.
19534         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19535         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19536         * modules/netdb (Makefile.am): Substitute it.
19537         * lib/netdb.in.h (gai_strerror): Declare replacement.
19538         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19539         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19540         the fix.
19541
19542         getsockopt: avoid compiler warning
19543         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19544         Reported by Matthias Bolte.
19545
19546         tests: drop unused link dependency
19547         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19548         * modules/dirent-safer-tests (Makefile.am): Likewise.
19549         * modules/fdopendir-tests (Makefile.am): Likewise.
19550         * modules/mkfifoat-tests (Makefile.am): Likewise.
19551         * modules/openat-safer-tests (Makefile.am): Likewise.
19552         * modules/openat-tests (Makefile.am): Likewise.
19553         * modules/readlinkat-tests (Makefile.am): Likewise.
19554         * modules/symlinkat-tests (Makefile.am): Likewise.
19555         * modules/linkat-tests (Makefile.am): Likewise.
19556         (Depends-on): Switch to filenamecat-lgpl.
19557         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19558         LIBINTL.
19559         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19560         * tests/test-linkat.c (main): Don't require xalloc.
19561
19562         hash, mgetgroups: drop xalloc dependency
19563         * lib/hash.c (includes): Adjust includes.
19564         * lib/mgetgroups.c (includes): Likewise.
19565         (xgetgroups): Move...
19566         * lib/xgetgroups.c: ...to new file.
19567         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19568         * modules/xgetgroups: New file, split from...
19569         * modules/mgetgroups: ...here.
19570         (Depends-on): Add xalloc-oversized.
19571         * modules/hash (Depends-on): Likewise.
19572         * modules/hash-tests (Depends-on): Drop xalloc.
19573         (test_hash_LDADD): Drop unused library.
19574         * tests/test-hash.c (main): Break xalloc dependency.
19575         (includes): Drop unused include.
19576
19577         xalloc-oversized: new module
19578         * modules/xalloc-oversized: New module.
19579         * modules/xalloc (Depends-on): Add it.
19580         * lib/xalloc.h (xalloc_oversized): Move...
19581         * lib/xalloc-oversized.h: ...into new file.
19582
19583         utimecmp: drop dependency on xmalloc
19584         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19585         due to memory pressure.
19586         * modules/utimecmp (Depends-on): Drop xalloc.
19587
19588 2011-04-27  Eric Blake  <eblake@redhat.com>
19589
19590         getcwd: fix mingw bugs
19591         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19592         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19593         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19594
19595 2011-04-27  Bruno Haible  <bruno@clisp.org>
19596
19597         mkstemps: Ensure declaration on MacOS X 10.5.
19598         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19599         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19600         MacOS X.
19601
19602 2011-04-27  Bruno Haible  <bruno@clisp.org>
19603
19604         mkstemp: More documentation.
19605         * doc/posix-functions/mkstemp.texi: Document header file problem on
19606         MacOS X.
19607
19608 2011-04-27  Bruno Haible  <bruno@clisp.org>
19609
19610         mkstemp: Tweak configure message when cross-compiling.
19611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19612         result as a guess.
19613
19614 2011-04-27  Bruno Haible  <bruno@clisp.org>
19615
19616         clean-temp: Clarify what it does.
19617         * lib/clean-temp.h: Add more comments.
19618         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19619         module.
19620         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19621         * doc/glibc-functions/mkstemps.texi: Likewise.
19622         * doc/glibc-functions/mkostemps.texi: Likewise.
19623
19624 2011-04-27  Eric Blake  <eblake@redhat.com>
19625
19626         fchdir: avoid extra chdir and fix test
19627         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19628         getcwd-lgpl.
19629         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19630         have to be canonical.
19631         (canonicalize_file_name): Drop unused macro.
19632         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19633
19634         filenamecat-lgpl: fix licence
19635         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19636         when it was first created.
19637
19638         linkat, renameat: add missing dependency
19639         * modules/linkat (Depends-on): Require getcwd-lgpl.
19640         * modules/renameat (Depends-on): Likewise.
19641
19642         tests: reduce dependencies
19643         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19644         * tests/test-renameat.c (main): Likewise.
19645         * modules/linkat-tests (Depends-on): Relax dependency.
19646         * modules/renameat-tests (Depends-on): Likewise.
19647         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19648         dependency explicit.
19649
19650         save-cwd: reduce default dependency
19651         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19652         * lib/save-cwd.c: Update comments.
19653         * NEWS: Document the semantic change.
19654
19655         getcwd: enhance tests
19656         * tests/test-getcwd-lgpl.c: New file, taken from...
19657         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19658         repeat long path stress tests from m4 probe.
19659         * modules/getcwd-lgpl-tests: New module.
19660         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19661         * m4/getcwd-abort-bug.m4: Update comment.
19662         * m4/getcwd-path-max.m4: Likewise.
19663
19664         getcwd-lgpl: new module
19665         * modules/getcwd-lgpl: New module.
19666         * lib/getcwd-lgpl.c: New file.
19667         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19668         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19669         * modules/getcwd (configure.ac): Set C witness.
19670         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19671
19672         getcwd: tweak comments
19673         * m4/getcwd-abort-bug.m4: Fix comments.
19674         * m4/getcwd-path-max.m4: Likewise.
19675         * m4/getcwd.m4: Likewise.
19676
19677 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19678         and Eric Blake  <eblake@redhat.com>
19679
19680         mkstemp: replace if system version uses wrong permissions
19681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19682         read/write mode bits set in file created by mkstemp.
19683         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19684
19685 2011-04-27  Eric Blake  <eblake@redhat.com>
19686
19687         passfd: avoid compiler warning
19688         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19689         Reported by Laine Stump.
19690
19691 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19692
19693         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19694         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19695
19696 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19697         and Eric Blake  <eblake@redhat.com>
19698
19699         mkstemp: mention clean-temp module
19700         * lib/mkstemp.c: Add comment.
19701         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19702
19703 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19704
19705         inttypes: also provide default values for 32-bit tests
19706         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19707         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19708
19709 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19710
19711         strtoumax: remove dependency on strtoimax
19712         This is like the strtoull change of yesterday.
19713         * modules/strtoumax (Files): Add lib/strtoimax.c.
19714         (Depends-on): Remove strtoimax and add verify.
19715
19716         inttypes-incomplete: new module
19717         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19718         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19719         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19720         of gl_INTTYPES_H.
19721         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19722         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19723         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19724         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19725         * modules/strtoumax, modules/xstrtol (Depends-on):
19726         Depend on inttypes-incomplete, not inttypes.
19727         * modules/inttypes-incomplete: New module, containing the contents
19728         of the old modules/inttypes module, except that the Files: section
19729         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19730         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19731         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19732         (Depends-on): Depend only on inttypes-incomplete.
19733         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19734
19735         inttypes: omit now-redundant strtoimax and strtoumax work
19736         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19737         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19738
19739         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19740         This supports apps that need pointers to strtoimax and strtoumax,
19741         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19742         nonexistent functions.  See
19743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19744         et seq.
19745         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19747         a macro.
19748         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19749
19750 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19751
19752         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19753
19754 2011-04-25  Bruno Haible  <bruno@clisp.org>
19755
19756         strtol, strtoul: Mark modules as obsolete.
19757         * modules/strtol (Status, Notice): New sections.
19758         * modules/strtoul (Status, Notice): New sections.
19759
19760 2011-04-25  Bruno Haible  <bruno@clisp.org>
19761
19762         strtod: Remove check for strtod, unless supporting old platforms.
19763         * modules/strtod-obsolete: New file.
19764         * m4/strtod-obsolete.m4: New file.
19765         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19766         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19767         * modules/strtod (Depends-on): Add strtod-obsolete.
19768         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19769
19770 2011-04-25  Bruno Haible  <bruno@clisp.org>
19771
19772         strcase: Make module obsolete.
19773         * modules/strcase (Status, Notice): New sections.
19774
19775 2011-04-25  Bruno Haible  <bruno@clisp.org>
19776
19777         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19778         * modules/dup2-obsolete: New file.
19779         * m4/dup2-obsolete.m4: New file.
19780         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19781         gl_FUNC_DUP2_OBSOLETE is not also defined.
19782         * modules/dup2 (Depends-on): Add dup2-obsolete.
19783         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19784
19785 2011-04-25  Bruno Haible  <bruno@clisp.org>
19786
19787         strnlen: Avoid memchr related link error on old obsolete platforms.
19788         * modules/memchr-obsolete: New file.
19789         * m4/memchr-obsolete.m4: New file.
19790         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19791         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19792         * modules/memchr (Depends-on): Add memchr-obsolete.
19793         * modules/strnlen (Depends-on): Likewise.
19794         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19795
19796 2011-04-25  Jim Meyering  <meyering@redhat.com>
19797
19798         maint.mk: makefile_at_at_check extend and clean up
19799         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19800         in addition to */Makefile.am.
19801         Exempt legitimate uses of @VAR@ notation, e.g.,
19802         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19803         Remove obsolete coreutils-specific comment.
19804         Prompted by discussion here:
19805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19806
19807 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19808
19809         strtoul: remove dependency on strtol
19810         This is so that 'configure' need not check for strtol merely because
19811         the application needs strtoul.
19812         * modules/strtoul (Files): Add lib/strtol.c.
19813         (Depends-on): Remove strtol.
19814
19815         strtoull: remove dependency on strtoul
19816         This is like the strtoll change.
19817         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19818         (Depends-on): Remove strtoul.
19819
19820         strtoll: remove dependency on strtol
19821         This is so that 'configure' need not check for strtol merely because
19822         the application needs strtoll.
19823         * modules/strtoll (Files): Add lib/strtol.c.
19824         (Depends-on): Remove strtol.
19825
19826 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19827
19828         inttypes: Move some configure check to module 'imaxdiv'.
19829         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19830         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19831         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19832
19833 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         inttypes: Move some configure check to module 'imaxabs'.
19836         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19837         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19838         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19839
19840 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         inttypes: Remove configure tests that are not needed since 2009-12-31.
19843         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19844         gl_cv_header_working_inttypes_h.
19845
19846 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19847
19848         * modules/strnlen (Depends-on): Remove memchr.
19849         The strnlen implementation doesn't need the memchr module's fixes; see
19850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19851
19852         strtol: remove dependency on wchar
19853         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19854         * modules/strtol (Depends-on): Remove wchar.
19855
19856 2011-04-21  Eric Blake  <eblake@redhat.com>
19857
19858         passfd: fix test regression on Linux
19859         * modules/passfd-tests (configure.ac): Correct socketpair check.
19860
19861         passfd: speed up configure and drop unused code
19862         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19863         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19864         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19865         Instead of probing at configure for unix_scm_rights_bsd44_way,
19866         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19867         check to a struct member probe.
19868         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19869         (sendfd, recvfd): Update preprocessor checks.
19870         * modules/passfd (Files): Reflect rename, and drop unused file.
19871         (Depends-on): Drop unused dependency.
19872
19873         passfd: allow compilation on mingw
19874         * modules/sys_socket (Depends-on): Add sys_uio.
19875         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19876         iovec and a minimal struct msghdr.
19877         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19878         * tests/test-sys_socket.c (main): Enhance test.
19879         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19880         guaranteed to provide what we need.
19881         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19882         * modules/passfd-tests (Depends-on): Add sys_wait.
19883         * tests/test-passfd.c (main): Skip test on mingw, for now.
19884         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19885         partial 'struct msghdr' implementation.
19886
19887         sys_uio: new module
19888         * modules/sys_uio: New module.
19889         * modules/sys_uio-tests: Likewise.
19890         * lib/sys_uio.in.h: New file.
19891         * m4/sys_uio_h.m4: Likewise.
19892         * tests/test-sys_uio.c: Likewise.
19893         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19894         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19895
19896 2011-04-20  Jim Meyering  <meyering@redhat.com>
19897
19898         useless-if-before-free: avoid false-positive
19899         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19900         disjunct so that it too requires a terminating ";".  Without that,
19901         this script would identify as useless one statement from gcc that
19902         was not:
19903           if (aligned_ptr)
19904             free (((void **) aligned_ptr) [-1]);
19905
19906 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19907
19908         doc: update users.txt.
19909         * users.txt: Add barcode.
19910
19911 2011-04-19  Bruno Haible  <bruno@clisp.org>
19912
19913         ioctl: Remove link dependency on native Windows.
19914         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19915         (gl_close_fn, gl_ioctl_fn): New types.
19916         (struct fd_hook): Renamed from struct close_hook. Change type of
19917         private_close_fn field. Add private_ioctl_fn field.
19918         (close_hook_fn): Add parameter for primary close method.
19919         (execute_close_hooks, execute_all_close_hooks): Likewise.
19920         (ioctl_hook_fn): New type.
19921         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19922         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19923         argument.
19924         (unregister_fd_hook): Renamed from unregister_close_hook.
19925         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19926         Don't include <unistd.h>.
19927         (close): Remove undef.
19928         (anchor): Update.
19929         (execute_close_hooks): Add argument for primary close method.
19930         (execute_all_close_hooks): Likewise.
19931         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19932         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19933         argument. Allow each argument to be NULL.
19934         (unregister_fd_hook): Renamed from unregister_close_hook.
19935         * lib/close.c (rpl_close): Pass 'close' function pointer to
19936         execute_all_close_hooks.
19937         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19938         (primary_ioctl): New function.
19939         (ioctl): Don't call ioctlsocket here. Instead, call
19940         execute_all_ioctl_hooks.
19941         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19942         close method.
19943         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19944         (fd_sockets_hook): Renamed from close_sockets_hook.
19945         (gl_sockets_startup, gl_sockets_cleanup): Update.
19946         * modules/fd-hook: Renamed from modules/close-hook. Update.
19947         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19948         * modules/sockets (Depends-on): Likewise.
19949         * modules/ioctl (Depends-on): Add fd-hook.
19950         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19951         GNULIB_SOCKET.
19952
19953 2011-04-19  Bruno Haible  <bruno@clisp.org>
19954
19955         Move the support of O_NONBLOCK in open() to the 'open' module.
19956         * modules/nonblocking (Depends-on): Remove 'open'.
19957         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19958         gl_cv_have_open_O_NONBLOCK.
19959         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19960         O_NONBLOCK support.
19961         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19962
19963 2011-04-17  Bruno Haible  <bruno@clisp.org>
19964
19965         pipe2: Simplify code.
19966         * lib/pipe2.c (pipe2): Reduce code duplication.
19967
19968 2011-04-17  Bruno Haible  <bruno@clisp.org>
19969
19970         nonblocking: Add comment.
19971         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19972
19973 2011-04-17  Bruno Haible  <bruno@clisp.org>
19974
19975         nonblocking: Add tests for sockets.
19976         * tests/test-nonblocking-socket.sh: New file.
19977         * tests/test-nonblocking-socket-main.c: New file.
19978         * tests/test-nonblocking-socket-child.c: New file.
19979         * tests/test-nonblocking-socket.h: New file.
19980         * tests/socket-server.h: New file.
19981         * tests/socket-client.h: New file.
19982         * modules/nonblocking-socket-tests: New file.
19983         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19984
19985 2011-04-17  Bruno Haible  <bruno@clisp.org>
19986
19987         nonblocking: Add tests for pipes.
19988         * tests/test-nonblocking-pipe.sh: New file.
19989         * tests/test-nonblocking-pipe-main.c: New file.
19990         * tests/test-nonblocking-pipe-child.c: New file.
19991         * tests/test-nonblocking-pipe.h: New file.
19992         * tests/test-nonblocking-writer.h: New file.
19993         * tests/test-nonblocking-reader.h: New file.
19994         * tests/test-nonblocking-misc.h: New file.
19995         * modules/nonblocking-pipe-tests: New file.
19996         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19997
19998 2011-04-16  Bruno Haible  <bruno@clisp.org>
19999
20000         gettext: Clarify the needed programmer actions.
20001         * modules/gettext (Notice): New field.
20002         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20003
20004 2011-04-16  Bruno Haible  <bruno@clisp.org>
20005
20006         strchrnul: Tweak last commit.
20007         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20008         bug.
20009         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20010         as in _GL_FUNCDECL_SYS.
20011         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20012         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20013
20014 2011-04-15  Eric Blake  <eblake@redhat.com>
20015
20016         strchrnul: work around cygwin bug
20017         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20018         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20020         * modules/string (Makefile.am): Substitute it.
20021         * lib/string.in.h (strchrnul): Use it.
20022
20023 2011-04-15  Bruno Haible  <bruno@clisp.org>
20024
20025         Don't require lib/stdio-write.c when only module 'stdio' is used.
20026         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20027         invocation.
20028         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20029
20030 2011-04-14  Bruno Haible  <bruno@clisp.org>
20031
20032         Support non-blocking pipe I/O in read() on native Windows.
20033         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20034         (read): New declaration.
20035         * lib/read.c: New file.
20036         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20037         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20038         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20039         vscanf): New declarations.
20040         * lib/stdio-read.c: New file.
20041         * m4/read.m4: New file.
20042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20043         REPLACE_READ.
20044         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20045         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20046         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20047         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20048         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20049         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20050         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20051         * modules/read: New file.
20052         * modules/nonblocking (Files): Add lib/stdio-read.c.
20053         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20054         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20055         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20056         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20057         * modules/pread (Depends-on): Add read.
20058         * modules/safe-read (Depends-on): Likewise.
20059         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20060         gets, scanf, vfscanf, vscanf): Verify signatures.
20061         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20062         problem with non-blocking pipes.
20063         * doc/posix-functions/fgetc.texi: Likewise.
20064         * doc/posix-functions/fgets.texi: Likewise.
20065         * doc/posix-functions/fread.texi: Likewise.
20066         * doc/posix-functions/fscanf.texi: Likewise.
20067         * doc/posix-functions/getc.texi: Likewise.
20068         * doc/posix-functions/getchar.texi: Likewise.
20069         * doc/posix-functions/gets.texi: Likewise.
20070         * doc/posix-functions/scanf.texi: Likewise.
20071         * doc/posix-functions/vfscanf.texi: Likewise.
20072         * doc/posix-functions/vscanf.texi: Likewise.
20073
20074 2011-04-14  Bruno Haible  <bruno@clisp.org>
20075
20076         Support non-blocking pipe I/O in write() on native Windows.
20077         * lib/write.c (rpl_write): Split a write request that failed merely
20078         because the byte count was larger than the pipe buffer's size.
20079         * doc/posix-functions/write.texi: Mention the problem with large byte
20080         counts.
20081
20082 2011-04-14  Bruno Haible  <bruno@clisp.org>
20083
20084         wchar: Ensure that wchar_t gets defined on uClibc.
20085         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20086         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20087
20088 2011-04-13  Bruno Haible  <bruno@clisp.org>
20089
20090         safe-write, full-read: Avoid unnecessary compilation units.
20091         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20092         (Depends-on): Remove safe-read. Add ssize_t.
20093         * modules/full-read (Files): Add lib/full-write.c.
20094         (Depends-on): Add full-write.
20095
20096 2011-04-13  Bruno Haible  <bruno@clisp.org>
20097
20098         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20099         * modules/pwrite (Depends-on): Add 'write'.
20100
20101 2011-04-13  Bruno Haible  <bruno@clisp.org>
20102
20103         Support non-blocking pipe I/O in write() on native Windows.
20104         * lib/unistd.in.h (write): Enable replacement also if
20105         GNULIB_UNISTD_H_NONBLOCKING is 1.
20106         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20107         (rpl_write): When failing to write on a non-blocking pipe, change
20108         errno from ENOSPC to EAGAIN.
20109         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20110         putchar, puts, vfprintf, vprintf): Enable replacement also if
20111         GNULIB_STDIO_H_NONBLOCKING is 1.
20112         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20113         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20114         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20115         CALL_WITH_SIGPIPE_EMULATION.
20116         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20117         * m4/nonblocking.m4: New file.
20118         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20119         for non-blocking I/O support.
20120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20121         GNULIB_UNISTD_H_NONBLOCKING.
20122         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20123         required for non-blocking I/O support.
20124         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20125         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20126         lib/stdio-write.c, m4/asm-underscore.m4.
20127         (Depends-on): Add stdio, unistd.
20128         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20129         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20130         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20131         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20132         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20133         problem with non-blocking pipes.
20134         * doc/posix-functions/fputc.texi: Likewise.
20135         * doc/posix-functions/fputs.texi: Likewise.
20136         * doc/posix-functions/fwrite.texi: Likewise.
20137         * doc/posix-functions/printf.texi: Likewise.
20138         * doc/posix-functions/putc.texi: Likewise.
20139         * doc/posix-functions/putchar.texi: Likewise.
20140         * doc/posix-functions/puts.texi: Likewise.
20141         * doc/posix-functions/vfprintf.texi: Likewise.
20142         * doc/posix-functions/vprintf.texi: Likewise.
20143         * doc/posix-functions/write.texi: Likewise.
20144
20145 2011-04-10  Jim Meyering  <meyering@redhat.com>
20146
20147         maint.mk: prohibit doubled words
20148         Detect them also when they're separated by a newline.
20149         There are 3 ways to customize it:
20150           - disable the test on a per file basis, as usual with rules using
20151             $(VC_LIST_EXCEPT)
20152           - replace the default doubled-word-selecting regexp (affects all files)
20153           - ignore a particular file-vs-doubled-word match
20154         I nearly used that last one to ignore the "is is" match in
20155         coreutils' NEWS file, since the text was "ls -is is ..."
20156         To do that, I would have added this line to cfg.mk:
20157           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20158         but it would have ignored any "is is" match in NEWS.
20159         Low probability, but still...
20160         Instead, I changed the text, slightly:
20161           -  ls -is is now consistent with ls -lis in ignoring values returned
20162           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20163         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20164         (prohibit_doubled_word_): Define.
20165         (sc_prohibit_doubled_word): New rule.
20166         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20167
20168 2011-04-10  Jim Meyering  <meyering@redhat.com>
20169
20170         maint: fix doubled-word typo in comment
20171         * m4/gethostname.m4: s/is is/it is/
20172         * m4/getdomainname.m4: Likewise.
20173
20174 2011-04-10  Jim Meyering  <meyering@redhat.com>
20175
20176         maint: remove doubled word: s/it it/it/
20177         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20178
20179 2011-04-10  Jim Meyering  <meyering@redhat.com>
20180
20181         maint.mk: remove useless semicolon and backslash
20182         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20183         semicolon and backslash.
20184
20185 2011-04-10  Bruno Haible  <bruno@clisp.org>
20186
20187         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20188         * modules/stdint-tests (Depends-on): Add wchar.
20189
20190 2011-04-10  Jim Meyering  <meyering@redhat.com>
20191
20192         maint: remove doubled words in comments, e.g., s/a a/a/
20193         * lib/strptime.c (day_of_the_week): s/the the/the/
20194         * tests/test-chown.h (test_chown): s/a a/a/
20195
20196         test-chown.h: correct a cast
20197         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20198         when the destination is a stat.st_gid.
20199
20200 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20201
20202         getaddrinfo: Fix test for sa_len member.
20203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20204         include <sys/types.h> before <sys/socket.h>.
20205
20206 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20207
20208         maint: change "can not" to "cannot"
20209         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20210         boundaries.
20211
20212 2011-04-09  Jim Meyering  <meyering@redhat.com>
20213
20214         maint: change "a a" to "a"
20215         * tests/test-lchown.h (test_lchown): s/a a/a/
20216
20217         maint.mk: prohibit \<the the\>
20218         * top/maint.mk (sc_prohibit_the_the): New rule.
20219
20220         maint: fix "the the" in comment
20221         * lib/count-one-bits.h: s/the the/the/
20222
20223         maint: change "can not" to "cannot"
20224         But do not change the occurrences in maintain.texi or in
20225         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20226         * doc/gnulib-tool.texi: s/can not/cannot/
20227         * doc/posix-functions/accept.texi (accept): Likewise.
20228         * doc/posix-functions/socket.texi (socket): Likewise.
20229         * lib/mbrtowc.c: Likewise.
20230
20231         maint.mk: prohibit use of "can not"
20232         * top/maint.mk (sc_prohibit_can_not): New rule.
20233         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20234
20235 2011-04-09  Bruno Haible  <bruno@clisp.org>
20236
20237         careadlinkat: Guard against misuse of careadlinkatcwd.
20238         * lib/careadlinkat.c: Include <stdlib.h>.
20239         (careadlinkatcwd): Check that the fd argument is as expected.
20240
20241 2011-04-09  Bruno Haible  <bruno@clisp.org>
20242
20243         careadlinkat: Use common coding style.
20244         * lib/careadlinkat.c: Move gnulib includes after system includes.
20245
20246 2011-04-09  Bruno Haible  <bruno@clisp.org>
20247
20248         careadlinkat: Clarify specification.
20249         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20250         (careadlinkatcwd): Add comment.
20251         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20252
20253 2011-04-09  Bruno Haible  <bruno@clisp.org>
20254
20255         areadlinkat: Avoid link error on many platforms.
20256         * modules/areadlinkat (Depends-on): Add areadlink.
20257
20258 2011-04-09  Bruno Haible  <bruno@clisp.org>
20259
20260         allocator, careadlinkat: Fix double-inclusion guard.
20261         * lib/allocator.h: Fix double-inclusion guard.
20262         * lib/careadlinkat.h: Likewise.
20263
20264 2011-04-09  Bruno Haible  <bruno@clisp.org>
20265
20266         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20267         * lib/relocwrapper.c: Update dependencies hierarchy.
20268         * build-aux/install-reloc: Update list of files to be compiled.
20269         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20270         lib/allocator.[hc].
20271
20272 2011-04-08  Eric Blake  <eblake@redhat.com>
20273
20274         strftime: silence gnulib-tool warning
20275         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20276
20277 2011-04-08  Bruno Haible  <bruno@clisp.org>
20278
20279         verify: Fix syntax error with GCC 4.6 in C++ mode.
20280         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20281         (HAVE_STATIC_ASSERT): New macro.
20282         (verify_true, verify): Use 'static_assert' if it is supported and
20283         '_Static_assert' is not supported.
20284
20285 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20286
20287         allocator: New module.
20288         * modules/allocator, lib/allocator.c: New files.
20289         * lib/allocator.h (stdlib_allocator): New decl.
20290         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20291         Remove.  Do not include <stdlib.h>.
20292         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20293         * modules/careadlinkat (Files): Remove lib/allocator.h.
20294         (Depends-on): Add allocator.
20295
20296         stdlib: let modules use system malloc, realloc
20297         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20298         if !_GL_USE_STDLIB_ALLOC.
20299         (malloc, realloc): Limit this change to a smaller scope.
20300
20301         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20302         (malloc, realloc): Don't #undef; no longer needed.
20303         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20304         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20305         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20306         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20307         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20308         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20309         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20310         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20311
20312         careadlinkat: rename members to avoid problem
20313         * lib/allocator.h (struct allocator): Rename members from
20314         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20315         and realloc are #define'd.  Reported by Eric Blake in
20316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20317         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20318
20319 2011-04-08  Eric Blake  <eblake@redhat.com>
20320
20321         nonblocking: reduce dependency
20322         * tests/test-nonblocking.c: Only test sockets when in use.
20323         * modules/nonblocking-tests (Depends-on): Drop socket.
20324         (Makefile.am): Link even if sockets are not present.
20325         * modules/pipe2-tests (Makefile.am): Likewise.
20326         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20327
20328         pipe2: fix O_NONBLOCK support on mingw
20329         * modules/pipe2 (Depends-on): Add nonblocking.
20330         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20331         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20332         * tests/test-nonblocking.c (main): Likewise.
20333         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20334
20335         fcntl-h: fix O_ACCMODE on cygwin
20336         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20337         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20338
20339         pipe-filter: drop O_NONBLOCK workarounds
20340         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20341         * modules/pipe-filter-ii (Depends-on): Likewise.
20342         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20343
20344         nonblocking: provide O_NONBLOCK for mingw
20345         * modules/nonblocking (Depends-on): Add open.
20346         (configure.ac): Set new witness macro.
20347         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20348         * modules/fcntl-h (Makefile.am): Substitute it.
20349         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20350         nonblocking module is in use.
20351         * lib/nonblocking.c: Adjust portability test.
20352         * lib/open.c (open): Don't let native open see gnulib flag.
20353         * tests/test-fcntl-h.c (main): Enhance test.
20354         * tests/test-open.h (test_open): Likewise.
20355         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20356
20357         careadlinkat: fix compilation error on mingw
20358         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20359         within struct allocator.
20360
20361 2011-04-06  Eric Blake  <eblake@redhat.com>
20362
20363         binary-io: relicense under LGPLv2+
20364         * modules/binary-io (License): Relax to LGPLv2+.
20365         Requested for libvirt, and required by pipe2.
20366
20367 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20368
20369         verify: use _Static_assert if available
20370         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20371         (verify_true, verify): Use it if available.  This generates better
20372         diagnostics with GCC 4.6.0 and later.
20373
20374 2011-04-05  Bruno Haible  <bruno@clisp.org>
20375
20376         Remove leftover generated .h files after config.status changed.
20377
20378         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20379         GL_GENERATE_ALLOCA_H.
20380         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20381         GL_GENERATE_ALLOCA_H evaluates to false.
20382
20383         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20384         GL_GENERATE_ARGZ_H.
20385         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20386         evaluates to false.
20387
20388         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20389         GL_GENERATE_BYTESWAP_H.
20390         * modules/byteswap (Makefile.am): Remove byteswap.h if
20391         GL_GENERATE_BYTESWAP_H evaluates to false.
20392
20393         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20394         GL_GENERATE_ERRNO_H.
20395         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20396         evaluates to false.
20397
20398         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20399         GL_GENERATE_FLOAT_H.
20400         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20401         evaluates to false.
20402
20403         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20404         GL_GENERATE_FNMATCH_H.
20405         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20406         GL_GENERATE_FNMATCH_H evaluates to false.
20407
20408         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20409         GL_GENERATE_GLOB_H.
20410         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20411         evaluates to false.
20412
20413         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20414         automake conditional GL_GENERATE_ICONV_H.
20415         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20416         evaluates to false.
20417
20418         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20419         GL_GENERATE_NETINET_IN_H.
20420         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20421         GL_GENERATE_NETINET_IN_H evaluates to false.
20422
20423         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20424         conditional GL_GENERATE_PTHREAD_H.
20425         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20426         * modules/pthread (Makefile.am): Remove pthread.h if
20427         GL_GENERATE_PTHREAD_H evaluates to false.
20428
20429         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20430         GL_GENERATE_SCHED_H.
20431         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20432         evaluates to false.
20433
20434         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20435         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20436         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20437         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20438
20439         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20440         GL_GENERATE_STDARG_H.
20441         * modules/stdarg (Makefile.am): Remove stdarg.h if
20442         GL_GENERATE_STDARG_H evaluates to false.
20443
20444         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20445         GL_GENERATE_STDBOOL_H.
20446         * modules/stdbool (Makefile.am): Remove stdbool.h if
20447         GL_GENERATE_STDBOOL_H evaluates to false.
20448
20449         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20450         conditional GL_GENERATE_STDDEF_H.
20451         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20452         * modules/stddef (Makefile.am): Remove stddef.h if
20453         GL_GENERATE_STDDEF_H evaluates to false.
20454
20455         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20456         GL_GENERATE_STDINT_H.
20457         * modules/stdint (Makefile.am): Remove stdint.h if
20458         GL_GENERATE_STDINT_H evaluates to false.
20459
20460         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20461         GL_GENERATE_SYSEXITS_H.
20462         * modules/sysexits (Makefile.am): Remove sysexits.h if
20463         GL_GENERATE_SYSEXITS_H evaluates to false.
20464
20465         Reported by Karl Berry and Ralf Wildenhues.
20466
20467 2011-04-05  Bruno Haible  <bruno@clisp.org>
20468
20469         Ensure to rebuild generated .h files when config.status has changed.
20470         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20471         config.status.
20472         * modules/ctype (Makefile.am): Likewise.
20473         * modules/dirent (Makefile.am): Likewise.
20474         * modules/errno (Makefile.am): Likewise.
20475         * modules/fcntl-h (Makefile.am): Likewise.
20476         * modules/float (Makefile.am): Likewise.
20477         * modules/getopt-posix (Makefile.am): Likewise.
20478         * modules/glob (Makefile.am): Likewise.
20479         * modules/iconv-h (Makefile.am): Likewise.
20480         * modules/inttypes (Makefile.am): Likewise.
20481         * modules/langinfo (Makefile.am): Likewise.
20482         * modules/locale (Makefile.am): Likewise.
20483         * modules/math (Makefile.am): Likewise.
20484         * modules/netdb (Makefile.am): Likewise.
20485         * modules/netinet_in (Makefile.am): Likewise.
20486         * modules/poll-h (Makefile.am): Likewise.
20487         * modules/pthread (Makefile.am): Likewise.
20488         * modules/pty (Makefile.am): Likewise.
20489         * modules/sched (Makefile.am): Likewise.
20490         * modules/search (Makefile.am): Likewise.
20491         * modules/selinux-h (Makefile.am): Likewise.
20492         * modules/signal (Makefile.am): Likewise.
20493         * modules/spawn (Makefile.am): Likewise.
20494         * modules/stdarg (Makefile.am): Likewise.
20495         * modules/stdbool (Makefile.am): Likewise.
20496         * modules/stddef (Makefile.am): Likewise.
20497         * modules/stdint (Makefile.am): Likewise.
20498         * modules/stdio (Makefile.am): Likewise.
20499         * modules/stdlib (Makefile.am): Likewise.
20500         * modules/string (Makefile.am): Likewise.
20501         * modules/strings (Makefile.am): Likewise.
20502         * modules/sys_file (Makefile.am): Likewise.
20503         * modules/sys_ioctl (Makefile.am): Likewise.
20504         * modules/sys_select (Makefile.am): Likewise.
20505         * modules/sys_socket (Makefile.am): Likewise.
20506         * modules/sys_stat (Makefile.am): Likewise.
20507         * modules/sys_time (Makefile.am): Likewise.
20508         * modules/sys_times (Makefile.am): Likewise.
20509         * modules/sys_utsname (Makefile.am): Likewise.
20510         * modules/sys_wait (Makefile.am): Likewise.
20511         * modules/sysexits (Makefile.am): Likewise.
20512         * modules/termios (Makefile.am): Likewise.
20513         * modules/time (Makefile.am): Likewise.
20514         * modules/unistd (Makefile.am): Likewise.
20515         * modules/wchar (Makefile.am): Likewise.
20516         * modules/wctype-h (Makefile.am): Likewise.
20517         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20518
20519 2011-04-05  Bruno Haible  <bruno@clisp.org>
20520
20521         pipe2: Relicense under LGPLv2+.
20522         * modules/pipe2 (License): Change to LGPLv2+.
20523         Requested by Eric Blake, for libvirt.
20524
20525 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20526
20527         bootstrap: compute gnulib_extra_files after updating build_aux
20528         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20529         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20530
20531 2011-04-05  Eric Blake  <eblake@redhat.com>
20532
20533         bootstrap: preserve git whitelist item sorting
20534         * build-aux/bootstrap (sort_patterns): New function.
20535         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20536
20537 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20538
20539         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20540         sc_space_tab check.
20541
20542 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         areadlink, areadlinkat: rewrite in terms of careadlinkat
20545         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20546         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20547         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20548         (malloc, realloc): Remove #undefs.
20549         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20550         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20551         readlink, ssize_t, stdint, unistd.
20552         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20553         areadlink, stdint.
20554
20555         careadlinkat: new module
20556         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20557         * modules/careadlinkat: New files, written by me with
20558         a review and feedback from Ben Pfaff in
20559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20560
20561 2011-04-01  Bruno Haible  <bruno@clisp.org>
20562
20563         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20564         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20565         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20566         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20567         Reported by Bruce Korb <bruce.korb@gmail.com>.
20568
20569 2011-04-01  Bruno Haible  <bruno@clisp.org>
20570
20571         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20572         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20573         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20574         * modules/wcpcpy (Depends-on): Add extensions.
20575         * modules/wcpncpy (Depends-on): Likewise.
20576         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20577         systems.
20578         * doc/posix-functions/wcpncpy.texi: Likewise.
20579         * doc/posix-functions/wcwidth.texi: Likewise.
20580
20581 2011-03-31  Eric Blake  <eblake@redhat.com>
20582
20583         nonblocking: fix mingw test failures
20584         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20585         non-blocking flag on regular file.
20586         (get_nonblocking_flag): Set errno on invalid fd.
20587         * tests/test-nonblocking.c (main): Avoid test failure on
20588         directories if fchdir is not active.
20589         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20590
20591 2011-03-31  Bruno Haible  <bruno@clisp.org>
20592
20593         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20594         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20595         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20596         Reported by Simon Josefsson <simon@josefsson.org>.
20597
20598 2011-03-31  Bruno Haible  <bruno@clisp.org>
20599         and Eric Blake  <eblake@redhat.com>
20600
20601         nonblocking: new module
20602         * modules/nonblocking: New module.
20603         * modules/nonblocking-tests: Likewise.
20604         * lib/nonblocking.h: New file.
20605         * lib/nonblocking.c: Likewise.
20606         * tests/test-nonblocking.c: New test.
20607         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20608
20609 2011-03-30  Bruno Haible  <bruno@clisp.org>
20610
20611         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20612         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20613         instead of 'printf' format for GCC >= 4.4.
20614         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20615         (fprintf, printf, vfprintf, vprintf): Declare with
20616         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20617         the system's vfprintf() function.
20618         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20619
20620 2011-03-30  Eric Blake  <eblake@redhat.com>
20621
20622         passfd: fix scoping bug
20623         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20624         before sendmsg/recvmsg.
20625
20626         passfd: standardize coding conventions
20627         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20628         can be learned at compile time.
20629         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20630         ifdefs.
20631         (sendfd, recvfd): Follow gnulib code conventions.
20632
20633         passfd: fix incorrect sendmsg arguments
20634         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20635         incorrect msg_controllen value.
20636         * modules/passfd-tests (Depends-on): Check for alarm.
20637         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20638         Reported by Bastien ROUCARIES.
20639
20640 2011-03-30  Bruno Haible  <bruno@clisp.org>
20641
20642         c-strcasestr: Relicense under LGPLv2+.
20643         * modules/c-strcasestr (License): Change to LGPLv2+.
20644         Requested by Eric Blake, for libvirt.
20645
20646 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20647
20648         * users.txt: Add libidn2.  Fix libtasn1 link.
20649
20650 2011-03-30  Jim Meyering  <meyering@redhat.com>
20651
20652         tests: readlink* ("",... fails with EINVAL on newer kernels
20653         readlink and readlinkat have typically failed with ENOENT for
20654         the invalid, empty file name,  "".  However, with the advent
20655         of linux-2.6.39, they fail with EINVAL.
20656         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20657         when operating on the empty file name.
20658         * tests/test-readlink.h (test_readlink): Likewise.
20659
20660 2011-03-29  Bruno Haible  <bruno@clisp.org>
20661
20662         Relicense some modules under LGPLv2+, for libidn2.
20663         * modules/array-mergesort (License): Change to LGPLv2+.
20664         * modules/c-strcaseeq (License): Likewise.
20665         * modules/striconveh (License): Likewise.
20666         * modules/striconveha (License): Likewise.
20667         * modules/uniconv/base (License): Likewise.
20668         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20669         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20670         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20671         * modules/unictype/base (License): Likewise.
20672         * modules/unictype/bidiclass-of (License): Likewise.
20673         * modules/unictype/category-M (License): Likewise.
20674         * modules/unictype/category-none (License): Likewise.
20675         * modules/unictype/category-of (License): Likewise.
20676         * modules/unictype/category-test (License): Likewise.
20677         * modules/unictype/category-test-withtable (License): Likewise.
20678         * modules/unictype/combining-class (License): Likewise.
20679         * modules/unictype/joiningtype-of (License): Likewise.
20680         * modules/unictype/scripts (License): Likewise.
20681         * modules/uninorm/base (License): Likewise.
20682         * modules/uninorm/canonical-decomposition (License): Likewise.
20683         * modules/uninorm/composition (License): Likewise.
20684         * modules/uninorm/decompose-internal (License): Likewise.
20685         * modules/uninorm/decomposition-table (License): Likewise.
20686         * modules/uninorm/nfc (License): Likewise.
20687         * modules/uninorm/nfd (License): Likewise.
20688         * modules/uninorm/u32-normalize (License): Likewise.
20689         * modules/unistr/base (License): Likewise.
20690         * modules/unistr/u32-cpy (License): Likewise.
20691         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20692         * modules/unistr/u32-to-u8 (License): Likewise.
20693         * modules/unistr/u32-uctomb (License): Likewise.
20694         * modules/unistr/u8-check (License): Likewise.
20695         * modules/unistr/u8-mblen (License): Likewise.
20696         * modules/unistr/u8-mbtouc (License): Likewise.
20697         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20698         * modules/unistr/u8-mbtoucr (License): Likewise.
20699         * modules/unistr/u8-prev (License): Likewise.
20700         * modules/unistr/u8-strlen (License): Likewise.
20701         * modules/unistr/u8-to-u32 (License): Likewise.
20702         * modules/unistr/u8-uctomb (License): Likewise.
20703         * modules/unitypes (License): Likewise.
20704         Requested by Simon Josefsson.
20705
20706 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20707
20708         lib-symbol-visibility: Add a notice.
20709         * modules/lib-symbol-visibility (Notice): New field.
20710
20711 2011-03-29  Bruno Haible  <bruno@clisp.org>
20712
20713         getaddrinfo: Doc fix.
20714         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20715         section "fixed in Gnulib".
20716
20717 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20718
20719         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20720         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20721
20722 2011-03-26  Bruno Haible  <bruno@clisp.org>
20723
20724         unictype/property-byname: Reduce the number of load-time relocations.
20725         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20726         (UC_PROPERTY_INDEX_*): New enumeration values.
20727         (uc_property_byname): Convert an index from the lookup table to an
20728         uc_property_t.
20729         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20730         values.
20731
20732 2011-03-26  Bruno Haible  <bruno@clisp.org>
20733
20734         unictype/property-byname: Allow omitted word separators and aliases.
20735         * lib/unictype/pr_byname.gperf: Add property names without word
20736         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20737         for 'space'.
20738
20739 2011-03-26  Bruno Haible  <bruno@clisp.org>
20740
20741         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20742         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20743         also hyphens to space.
20744         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20745         without spaces.
20746         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20747
20748 2011-03-26  Bruno Haible  <bruno@clisp.org>
20749
20750         unictype/joiningtype-byname: Recognize long names as well.
20751         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20752         a long name.
20753         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20754         unictype/joiningtype_byname.h.
20755         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20756         * lib/unictype/joiningtype_byname.gperf: New file.
20757         * modules/unictype/joiningtype-byname (Files): Add
20758         lib/unictype/joiningtype_byname.gperf.
20759         (Depends-on): Add gperf.
20760         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20761         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20762         long names.
20763
20764         Tests for module 'unictype/joiningtype-longname'.
20765         * modules/unictype/joiningtype-longname-tests: New file.
20766         * tests/unictype/test-joiningtype_longname.c: New file.
20767
20768         New module 'unictype/joiningtype-longname'.
20769         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20770         * lib/unictype/joiningtype_longname.c: New file.
20771         * modules/unictype/joiningtype-longname: New file.
20772         * modules/unictype/joiningtype-all (Depends-on): Add
20773         unictype/joiningtype-longname.
20774
20775 2011-03-26  Bruno Haible  <bruno@clisp.org>
20776
20777         unictype/bidiclass-byname: Recognize long names as well.
20778         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20779         name.
20780         * lib/unictype/bidi_byname.c: Include <string.h>,
20781         unictype/bidi_byname.h.
20782         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20783         * lib/unictype/bidi_byname.gperf: New file.
20784         * modules/unictype/bidiclass-byname (Files): Add
20785         lib/unictype/bidi_byname.gperf.
20786         (Depends-on): Add gperf.
20787         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20788         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20789         long names.
20790
20791         Tests for module 'unictype/bidiclass-longname'.
20792         * modules/unictype/bidiclass-longname-tests: New file.
20793         * tests/unictype/test-bidi_longname.c: New file.
20794
20795         New module 'unictype/bidiclass-longname'.
20796         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20797         * lib/unictype/bidi_longname.c: New file.
20798         * modules/unictype/bidiclass-longname: New file.
20799         * modules/unictype/bidiclass-all (Depends-on): Add
20800         unictype/bidiclass-longname.
20801
20802 2011-03-26  Bruno Haible  <bruno@clisp.org>
20803
20804         unictype/bidi*: Rename modules.
20805         * modules/unictype/bidiclass-all: Renamed from
20806         modules/unictype/bidicategory-all.
20807         * modules/unictype/bidiclass-name: Renamed from
20808         modules/unictype/bidiclass-name.
20809         (Description): Update.
20810         * modules/unictype/bidiclass-name-tests: Renamed from
20811         modules/unictype/bidicategory-name-tests.
20812         * modules/unictype/bidiclass-byname: Renamed from
20813         modules/unictype/bidicategory-byname.
20814         (Description): Update.
20815         * modules/unictype/bidiclass-byname-tests: Renamed from
20816         modules/unictype/bidicategory-byname-tests.
20817         * modules/unictype/bidiclass-of: Renamed from
20818         modules/unictype/bidicategory-of.
20819         (Description): Update.
20820         * modules/unictype/bidiclass-of-tests: Renamed from
20821         modules/unictype/bidicategory-of-tests.
20822         * modules/unictype/bidiclass-test: Renamed from
20823         modules/unictype/bidicategory-test.
20824         (Description): Update.
20825         * modules/unictype/bidiclass-test-tests: Renamed from
20826         modules/unictype/bidicategory-test-tests.
20827         * modules/unictype/bidicategory-all: New file, a simple redirection.
20828         * modules/unictype/bidicategory-name: Likewise.
20829         * modules/unictype/bidicategory-byname: Likewise.
20830         * modules/unictype/bidicategory-of: Likewise.
20831         * modules/unictype/bidicategory-test: Likewise.
20832         * modules/unictype/property-bidi-* (Dependencies): Update.
20833         * lib/unictype/bidi_*.c: Update comment.
20834
20835 2011-03-26  Bruno Haible  <bruno@clisp.org>
20836
20837         unictype/bidi*: Rename functions, part 2.
20838         * modules/unictype/bidicategory-name (configure.ac): Update required
20839         libunistring version.
20840         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20841
20842 2011-03-25  Bruno Haible  <bruno@clisp.org>
20843
20844         New module 'unictype/combining-class-all'.
20845         * modules/unictype/combining-class-all: New file.
20846
20847         Tests for module 'unictype/combining-class-byname'.
20848         * modules/unictype/combining-class-byname-tests: New file.
20849         * tests/unictype/test-combiningclass_byname.c: New file.
20850
20851         New module 'unictype/combining-class-byname'.
20852         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20853         * lib/unictype/combiningclass_byname.c: New file.
20854         * lib/unictype/combiningclass_byname.gperf: New file.
20855         * modules/unictype/combining-class-byname: New file.
20856
20857         Tests for module 'unictype/combining-class-longname'.
20858         * modules/unictype/combining-class-longname-tests: New file.
20859         * tests/unictype/test-combiningclass_longname.c: New file.
20860
20861         New module 'unictype/combining-class-longname'.
20862         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20863         * lib/unictype/combiningclass_longname.c: New file.
20864         * modules/unictype/combining-class-longname: New file.
20865
20866         Tests for module 'unictype/combining-class-name'.
20867         * modules/unictype/combining-class-name-tests: New file.
20868         * tests/unictype/test-combiningclass_name.c: New file.
20869
20870         New module 'unictype/combining-class-name'.
20871         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20872         * lib/unictype/combiningclass_name.c: New file.
20873         * modules/unictype/combining-class-name: New file.
20874
20875 2011-03-25  Bruno Haible  <bruno@clisp.org>
20876
20877         unictype/combining-class: Rename source files.
20878         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20879         of unictype/combining.h.
20880         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20881         Update.
20882         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20883         * modules/unictype/combining-class (Description): Fix.
20884         (Files, Makefile.am): Update.
20885         * tests/unictype/test-combiningclass.c: Renamed from
20886         tests/unictype/test-combining.c.
20887         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20888
20889 2011-03-25  Bruno Haible  <bruno@clisp.org>
20890
20891         unictype: Update list of canonical combining classes.
20892         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20893
20894 2011-03-25  Bruno Haible  <bruno@clisp.org>
20895
20896         unictype/category-byname: Recognize long names as well.
20897         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20898         a long name.
20899         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20900         unictype/categ_byname.h.
20901         (UC_CATEGORY_INDEX_*): New enumeration values.
20902         (uc_general_category_byname): Use uc_general_category_lookup and
20903         convert from index to value.
20904         * lib/unictype/categ_byname.gperf: New file.
20905         * modules/unictype/category-byname (Files): Add
20906         lib/unictype/categ_byname.gperf.
20907         (Depends-on): Add gperf.
20908         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20909         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20910         long names.
20911
20912         Tests for module 'unictype/category-longname'.
20913         * modules/unictype/category-longname-tests: New file.
20914         * tests/unictype/test-categ_longname.c: New file.
20915
20916         New module 'unictype/category-longname'.
20917         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20918         * lib/unictype/categ_longname.c: New file.
20919         * modules/unictype/category-longname: New file.
20920         * modules/unictype/category-all (Depends-on): Add it.
20921
20922 2011-03-25  Bruno Haible  <bruno@clisp.org>
20923
20924         Tests for module 'unictype/category-LC'.
20925         * modules/unictype/category-LC-tests: New file.
20926         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20927
20928         New module 'unictype/category-LC'.
20929         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20930         (UC_CATEGORY_LC): New declaration.
20931         (UC_CASED_LETTER): New macro.
20932         * lib/gen-uni-tables.c (is_category_LC): New function.
20933         (output_categories): Also handle category LC.
20934         (UC_CATEGORY_MASK_LC): New enumeration value.
20935         (general_category_byname): Also handle category LC.
20936         * lib/unictype/categ_LC.c: New file.
20937         * lib/unictype/categ_LC.h: New file, automatically generated.
20938         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20939         category LC.
20940         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20941         * modules/unictype/category-LC: New file.
20942         * modules/unictype/category-byname (Depends-on): Add
20943         unictype/category-LC.
20944         * modules/unictype/category-all (Depends-on): Likewise.
20945
20946 2011-03-25  Eric Blake  <eblake@redhat.com>
20947
20948         xmalloc: revert yesterday's regression
20949         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20950         realloc's underlying behavior (allowing allocation of zero-size
20951         objects, especially if malloc-gnu is also in use).
20952
20953 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20954
20955         maint.mk: add missing version to VC-tag
20956         * top/maint.mk: git tag was missing actual tag name; add it.
20957
20958         valgrind: do leak checking, and exit with code 1 on error (not 0)
20959         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20960         to VALGRIND.
20961
20962 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20963
20964         posix-modules: say what it does.
20965         * posix-modules: Add a line to the --help output saying what it does.
20966
20967 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20968
20969         xmalloc: Do not leak if underlying realloc is C99 compatible.
20970         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20971         This avoids a leak on C99-based systems.  See
20972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20973
20974 2011-03-24  Eric Blake  <eblake@redhat.com>
20975
20976         realloc: document portability problem
20977         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20978         passing 0 size to realloc.
20979
20980 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20981
20982         doc: update users.txt
20983         * users.txt: Add cvsps, tmpwatch
20984
20985 2011-03-23  Matt Rice  <ratmice@gmail.com>
20986
20987         doc: update users.txt
20988         * users.txt: Add gdb.
20989
20990 2011-03-23  Jim Meyering  <meyering@redhat.com>
20991
20992         doc: update users.txt
20993         Looking through matches up to the following URL (there are still
20994         several more pages), I found several projects that use gnulib:
20995         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20996         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20997         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20998
20999 2011-03-22  Bruno Haible  <bruno@clisp.org>
21000
21001         unictype/bidi*: Rename functions.
21002         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21003         uc_bidi_class, uc_is_bidi_class): New declarations.
21004         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21005         uc_bidi_category_byname.
21006         (uc_bidi_category_byname): New function.
21007         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21008         u_bidi_category_name.
21009         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21010         (uc_bidi_category_name): New function.
21011         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21012         uc_bidi_category.
21013         (uc_bidi_category): New function.
21014         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21015         uc_is_bidi_category. Invoke uc_bidi_class.
21016         (uc_is_bidi_category): New function.
21017         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21018         instead of uc_bidi_category_byname.
21019         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21020         instead of uc_bidi_category_name.
21021         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21022         uc_bidi_category.
21023         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21024         instead of uc_is_bidi_category.
21025
21026 2011-03-21  Bruno Haible  <bruno@clisp.org>
21027
21028         New module 'unictype/joininggroup-all'.
21029         * modules/unictype/joininggroup-all: New file.
21030
21031         Tests for module 'unictype/joininggroup-of'.
21032         * modules/unictype/joininggroup-of-tests: New file.
21033         * tests/unictype/test-joininggroup_of.c: New file.
21034         * tests/unictype/test-joininggroup_of.h: New file, automatically
21035         generated by gen-uni-tables.
21036
21037         New module 'unictype/joininggroup-of'.
21038         * modules/unictype/joininggroup-of: New file.
21039         * lib/unictype/joininggroup_of.c: New file.
21040         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21041         gen-uni-tables.
21042
21043         Tests for module 'unictype/joininggroup-byname'.
21044         * modules/unictype/joininggroup-byname-tests: New file.
21045         * tests/unictype/test-joininggroup_byname.c: New file.
21046
21047         New module 'unictype/joininggroup-byname'.
21048         * modules/unictype/joininggroup-byname: New file.
21049         * lib/unictype/joininggroup_byname.c: New file.
21050         * lib/unictype/joininggroup_byname.gperf: New file.
21051
21052         Tests for module 'unictype/joininggroup-name'.
21053         * modules/unictype/joininggroup-name-tests: New file.
21054         * tests/unictype/test-joininggroup_name.c: New file.
21055
21056         New module 'unictype/joininggroup-name'.
21057         * modules/unictype/joininggroup-name: New file.
21058         * lib/unictype/joininggroup_name.c: New file.
21059         * lib/unictype/joininggroup_name.h: New file.
21060
21061         New module 'unictype/joiningtype-all'.
21062         * modules/unictype/joiningtype-all: New file.
21063
21064         Tests for module 'unictype/joiningtype-of'.
21065         * modules/unictype/joiningtype-of-tests: New file.
21066         * tests/unictype/test-joiningtype_of.c: New file.
21067         * tests/unictype/test-joiningtype_of.h: New file, automatically
21068         generated by gen-uni-tables.
21069
21070         New module 'unictype/joiningtype-of'.
21071         * modules/unictype/joiningtype-of: New file.
21072         * lib/unictype/joiningtype_of.c: New file.
21073         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21074         gen-uni-tables.
21075
21076         Tests for module 'unictype/joiningtype-byname'.
21077         * modules/unictype/joiningtype-byname-tests: New file.
21078         * tests/unictype/test-joiningtype_byname.c: New file.
21079
21080         New module 'unictype/joiningtype-byname'.
21081         * modules/unictype/joiningtype-byname: New file.
21082         * lib/unictype/joiningtype_byname.c: New file.
21083
21084         Tests for module 'unictype/joiningtype-name'.
21085         * modules/unictype/joiningtype-name-tests: New file.
21086         * tests/unictype/test-joiningtype_name.c: New file.
21087
21088         New module 'unictype/joiningtype-name'.
21089         * modules/unictype/joiningtype-name: New file.
21090         * lib/unictype/joiningtype_name.c: New file.
21091
21092         unictype: Add support for Arabic shaping properties.
21093         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21094         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21095         declarations.
21096         (UC_JOINING_GROUP_*): New enumeration values.
21097         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21098         declarations.
21099         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21100         (unicode_joining_type): New variable.
21101         (UC_JOINING_GROUP_*): New enumeration values.
21102         (unicode_joining_group): New variable.
21103         (fill_arabicshaping, joining_type_as_c_identifier,
21104         output_joining_type_test, output_joining_type,
21105         joining_group_as_c_identifier, output_joining_group_test,
21106         output_joining_group): New functions.
21107         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21108         fill_arabicshaping and output_joining_type_test, output_joining_type,
21109         output_joining_group_test, output_joining_group.
21110         Reported by Simon Josefsson.
21111
21112 2011-03-21  Jim Meyering  <meyering@redhat.com>
21113
21114         strftime: fix a bug in yesterday's change
21115         * lib/strftime.c (add): Accommodate width's initial value of -1.
21116         Otherwise, nstrftime would copy uninitialized data into
21117         the result buffer.
21118
21119 2011-03-21  Jim Meyering  <meyering@redhat.com>
21120
21121         tests: add strftime-tests module
21122         * tests/test-strftime.c: New file.
21123         * modules/strftime-tests: New module.
21124
21125 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21126
21127         strftime: don't assume a byte count fits in 'int'
21128         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21129         found this problem by static analysis, using gcc -Wstrict-overflow
21130         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21131         on an integer overflow having undefined behavior, but it turns out
21132         that the argument is a size, which might not fit in 'int' anyway,
21133
21134 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21135
21136         stdio: don't require ignore_value around fwrite
21137
21138         This patch works around libc bug 11959
21139         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21140         Without this patch, applications must often write
21141         ignore_value (fwrite (...)) even though the ignore_value is
21142         not helpful here.  It's common to write many objects, using
21143         fwrite/printf/etc., and then use ferror to detect output error.
21144
21145         I considered making this patch optional, but decided against it,
21146         because libc is obviously being inconsistent here: there is no
21147         reason libc should insist that user code must inspect fwrite
21148         return's value without also insisting that it inspect printf's,
21149         putchar's, etc.  If user code wants to have a strict style where
21150         all these functions' values are checked (so that ferror need not
21151         be checked), we could add support for that style in a new gnulib
21152         module, but in the meantime it's better to be consistent and to
21153         support common usage.
21154
21155         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21156         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21157         that we are compiling in checking mode, and if not C++, and
21158         if not already wrapping fwrite for some other reason.
21159         (fwrite): #define to rpl_fwrite if the latter is defined.
21160
21161 2011-03-20  Bruno Haible  <bruno@clisp.org>
21162
21163         verror: Fix compilation error introduced on 2011-02-13.
21164         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21165         instead of __attribute__.
21166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21167
21168 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21169             Bruno Haible  <bruno@clisp.org>
21170
21171         socklen: do not depend on sys_socket
21172         While trying to modify Emacs to use gnulib's socklen module,
21173         I discovered a circular dependency: socklen depends on sys_socket
21174         and vice versa.  Emacs can use socklen, but it does not need
21175         sys_socket because it has its own substitute for sys/socket.h.
21176         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21177         gl_TYPE_SOCKLEN_T.
21178         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21179         gl_PREREQ_SYS_H_SOCKET.
21180         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21181         gl_PREREQ_SYS_H_SOCKET.
21182         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21183         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21184         * modules/socklen (Depends-on): Do not depend on sys_socket.
21185         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21186
21187 2011-03-20  Jim Meyering  <meyering@redhat.com>
21188
21189         maint.mk: sort file names *after* new transformation
21190         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21191         prefix would have led to an unwarranted failure in GNU parted.
21192         Sort after that transformation.
21193
21194 2011-03-19  Jim Meyering  <meyering@redhat.com>
21195
21196         maint.mk: fix po-file syntax-check rule
21197         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21198         Patch by Bruno Haible.
21199
21200 2011-03-19  Bruno Haible  <bruno@clisp.org>
21201
21202         socklen: Update comment.
21203         * m4/socklen.m4: Update comment about platforms.
21204
21205 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21206             Bruno Haible  <bruno@clisp.org>
21207
21208         inet_ntop, inet_pton: Simplify.
21209         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21210         documented to provide socklen_t and we already depend on sys_socket.
21211         * modules/inet_pton (Depends-on): Likewise.
21212         * lib/arpa_inet.in.h: Adjust comment.
21213
21214 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21215             Bruno Haible  <bruno@clisp.org>
21216
21217         netdb: Simplify.
21218         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21219         documented to provide socklen_t and we already depend on sys_socket.
21220         * lib/netdb.in.h: Adjust comment.
21221
21222 2011-03-19  Bruno Haible  <bruno@clisp.org>
21223
21224         sys_socket, netdb: Document problem with socklen_t.
21225         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21226         platforms.
21227         * doc/posix-headers/netdb.texi: Likewise.
21228
21229 2011-03-18  Eric Blake  <eblake@redhat.com>
21230
21231         maint.mk: let po check work in VPATH build
21232         * top/maint.mk (po_file): Allow cfg.mk override.
21233         (sc_po_check): Allow VPATH use.
21234         Reported by Jiri Denemark.
21235
21236 2011-03-16  Jim Meyering  <meyering@redhat.com>
21237
21238         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21239         Before, you would have had to create one .x-sc_ file per rule in order
21240         to exempt offending files.  Now, you may instead use a Make variable --
21241         usually defined in cfg.mk -- whose name identifies the affected rule.
21242         * top/maint.mk (_sc_excl): Define.
21243         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21244         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21245
21246 2011-03-13  Bruno Haible  <bruno@clisp.org>
21247
21248         ignore-value tests: Avoid warnings.
21249         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21250         empty for gcc < 3.4.
21251
21252 2011-03-13  Bruno Haible  <bruno@clisp.org>
21253
21254         passfd: Fix link error on Solaris.
21255         * modules/passfd (Description): Correct.
21256         (Depends-on): Add socketlib.
21257         (Link): New section.
21258         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21259
21260 2011-03-13  Bruno Haible  <bruno@clisp.org>
21261
21262         passfd: Fix link error on AIX 5.2.
21263         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21264
21265 2011-03-13  Bruno Haible  <bruno@clisp.org>
21266
21267         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21268         * lib/sys_socket.in.h: Include <stddef.h>.
21269         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21270         CMSG_FIRSTHDR. Remove unused variable.
21271
21272 2011-03-13  Bruno Haible  <bruno@clisp.org>
21273
21274         passfd: Fix compilation error on OpenBSD.
21275         * lib/passfd.c: Include <sys/uio.h>.
21276
21277 2011-03-13  Bruno Haible  <bruno@clisp.org>
21278
21279         passfd test: Fix warnings.
21280         * tests/test-passfd.c: Include <sys/wait.h>.
21281         (main): Fix typo.
21282
21283 2011-03-13  Bruno Haible  <bruno@clisp.org>
21284
21285         passfd module, part 4, tweaks.
21286         * tests/test-passfd.c: Reorder includes.
21287         (main): Fix perror and printf calls.
21288
21289 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21290
21291         passfd module, part 4.
21292         * modules/passfd-tests: New file.
21293         * tests/test-passfd.c: New file.
21294
21295 2011-03-13  Jim Meyering  <meyering@redhat.com>
21296
21297         Makefile: rely on GNU make; derive syntax-check rule names
21298         Rather than requiring that each sc_ rule be listed as a dependent
21299         of "check", use features of GNU make to derive the list.
21300         * Makefile (syntax-check-rules): Define.
21301         (check): Depend on the new variable, not the hard-coded list.
21302
21303 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21304             Bruno Haible  <bruno@clisp.org>
21305
21306         passfd module, part 3.
21307         * lib/passfd.h (recvfd): Add a flags argument.
21308         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21309         (recvfd): Add a flags argument.
21310         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21311         exists.
21312         * modules/passfd (Depends-on): Add cloexec.
21313         Suggested by Eric Blake.
21314
21315 2011-03-13  Bruno Haible  <bruno@clisp.org>
21316
21317         passfd module, part 2, tweaks.
21318         * modules/passfd (Files): Reorder.
21319         (Depends-on): Remove errno.
21320         (Include): Remove <sys/socket.h>, <sys/un.h>.
21321         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21322         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21323         specification header. Include <sys/socket.h> always. Don't include
21324         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21325         (sendfd): Clarify that it sets errno when it fails.
21326         (recvfd): Fix specification.
21327
21328 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21329
21330         passfd module, part 2.
21331         * modules/passfd: New file.
21332         * lib/passfd.h: New file.
21333         * lib/passfd.c: New file.
21334
21335 2011-03-12  Bruno Haible  <bruno@clisp.org>
21336
21337         wcswidth, mbswidth: Avoid integer overflow.
21338         * lib/wcswidth.c: Include <limits.h>.
21339         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21340         * lib/mbswidth.c: Include <limits.h>.
21341         (mbsnwidth): Avoid 'int' overflow.
21342         Reported by Jim Meyering.
21343
21344 2011-03-12  Bruno Haible  <bruno@clisp.org>
21345
21346         futimens, utimensat: Avoid endless recursion on Solaris 10.
21347         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21348         Solaris.
21349         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21350         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21351
21352 2011-03-11  Jim Meyering  <meyering@redhat.com>
21353
21354         maint.mk: relax a regexp to accommodate other formatting styles
21355         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21356         between "ngettext" and the following "(".
21357
21358 2011-03-11  Pádraig Brady <P@draigBrady.com>
21359
21360         maint.mk: suppress a false positive warning
21361         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21362         diagnostics are marked with ngettext.
21363
21364 2011-03-10  Eric Blake  <eblake@redhat.com>
21365
21366         wchar: add explicit dependencies, for Tru64
21367         * modules/mbmemcasecoll (Depends-on): Add wchar.
21368         * modules/mbtowc (Depends-on): Likewise.
21369         * modules/vasnprintf (Depends-on): Likewise.
21370         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21371         * modules/wctomb (Depends-on): Likewise.
21372         Reported by Peter O'Gorman.
21373
21374 2011-03-08  Bruno Haible  <bruno@clisp.org>
21375
21376         passfd module, part 1, tweaks.
21377         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21378         Improve indentation. Improve AC_MSG_CHECKING messages.
21379         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21380         gl_SOCKET_FAMILIES.
21381
21382 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21383
21384         passfd module, part 1.
21385         * m4/afunix.m4: New file.
21386         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21387         sockets.
21388
21389 2011-03-08  Bruno Haible  <bruno@clisp.org>
21390
21391         regex-quote: New API.
21392         * lib/regex-quote.h: Include <stdbool.h>.
21393         (struct regex_quote_spec): New type.
21394         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21395         New declarations.
21396         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21397         'const struct regex_quote_spec *' argument.
21398         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21399         (pcre_special): New constant.
21400         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21401         New functions.
21402         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21403         'const struct regex_quote_spec *' argument.
21404         * modules/regex-quote (Depends-on): Add stdbool.
21405         * tests/test-regex-quote.c (check): Update for new API. Add test for
21406         anchored results.
21407         * NEWS: Mention the API change.
21408         Reported by Reuben Thomas and Eric Blake.
21409
21410 2011-03-06  Bruno Haible  <bruno@clisp.org>
21411
21412         regex-quote: Fix creation of POSIX extended regular expressions.
21413         * lib/regex-quote.c (ere_special): Add grouping and alternation
21414         operators.
21415
21416 2011-03-05  Bruno Haible  <bruno@clisp.org>
21417
21418         doc: Improve doc regarding autopoint vs. gnulib.
21419         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21420         disable autopoint while running autoreconf.
21421         Suggested by Ralf Wildenhues.
21422
21423 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21424
21425         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21426         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21427
21428 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21429
21430         parse-duration: remove xalloc.h dependency
21431         * lib/parse-duration.c (parse_period): handle NULL return from
21432         strdup instead of calling xstrdup().
21433         * modules/parse-duration: remove "xalloc" dependency
21434
21435 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21436
21437         bootstrap: honor m4_base when running aclocal
21438         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21439
21440 2011-03-02  Jim Meyering  <meyering@redhat.com>
21441
21442         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21443         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21444         on request from Matt Booth.
21445
21446 2011-03-01  Eric Blake  <eblake@redhat.com>
21447
21448         test-link: work on Hurd
21449         * tests/test-link.h (test_link): Hurd rejects linking directories
21450         with EISDIR instead of the POSIX-mandated EPERM.
21451
21452 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21453
21454         stdio: simplify by moving files to printf-posix, sigpipe
21455         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21456         since this symbol is needed only if printf is replaced.
21457         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21458         Require gl_ASM_SYMBOL_PREFIX.
21459         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21460         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21461         (Depends-on): Add 'raise'.
21462         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21463         * modules/stdio (Files): Remove lib/stdio-write.c,
21464         m4/asm-underscore.m4.
21465         (Depends-on): Remove 'raise'.
21466
21467         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21468         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21469         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21470         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21471
21472 2011-02-28  Bruno Haible  <bruno@clisp.org>
21473
21474         localcharset: Assume ANSI C behaviour of free().
21475         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21476         calling free().
21477         Suggested by Simon Josefsson <simon@josefsson.org>.
21478
21479 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21480             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21481             Bruno Haible  <bruno@clisp.org>  (tiny change)
21482
21483         On Cygwin, use /proc file system instead of win32 API.
21484         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21485         Win32 file names.
21486         (DllMain): Simplify by removing Cygwin specific code.
21487         (find_shared_library_fullname): Use Linux specific implementation also
21488         for Cygwin.
21489         (get_shared_library_fullname): Update accordingly.
21490         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21491         Win32 file names.
21492         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21493         Cygwin specific code.
21494
21495 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21496             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21497
21498         Fix OpenMP flag detection for various Fortran compilers.
21499         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21500         OpenMP-conditional compilation construct, to force compile
21501         failure with missing OpenMP flag.
21502         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21503
21504 2011-02-25  Eric Blake  <eblake@redhat.com>
21505
21506         strstr: expand test coverage
21507         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21508         compilation.
21509         * tests/test-memmem.c (main): Duplicate tests.
21510         * tests/test-strcasestr.c (main): Likewise.
21511         * tests/test-c-strcasestr.c (main): Likewise.
21512
21513 2011-02-25  Jim Meyering  <meyering@redhat.com>
21514
21515         maint.mk: detect missing-NL-at-EOF, too
21516         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21517         it also detects when a file lacks a newline at EOF.
21518         (require_exactly_one_NL_at_EOF_): Renamed from
21519         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21520         since people may well have .x-sc_... file names tied to the
21521         existing name.  Suggested by Eric Blake.
21522
21523 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21524
21525         dirname: move m4/dos.m4 functionality into lib/dosname.h
21526
21527         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21528         extracts symbols from it, puts them into config.h; but it's much
21529         easier to use the symbols directly.  filename.h already does this,
21530         but it disagrees with dos.m4 in some respects.  This patch
21531         introduces a different include file dosname.h that packages up
21532         dos.m4, and then later we can work on merging filename.h and
21533         dosname.h.  Applications that need only the easy-to-configure
21534         symbols should consider including dosname.h rather than dirname.h.
21535         * NEWS: Mention incompatible changes.
21536         * m4/dos.m4: Remove.
21537         * lib/dosname.h, modules/dosname: New files.
21538         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21539         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21540         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21541         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21542         Include dosname.h, not dirname.h.
21543         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21544         Include dosname.h, for definitions of symbols like ISSLASH
21545         that used to be in config.h.
21546         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21547         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21548         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21549         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21550         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21551         * modules/rmdir (Files): Likewise.
21552         * modules/stat (Files): Likewise.
21553         * modules/unlink (Files): Likewise.
21554         * modules/dirname-lgpl (Depends-on): Add dosname.
21555         * modules/lstat (Depends-on): Likewise.
21556         * modules/openat (Depends-on): Likewise.
21557         * modules/rmdir (Depends-on): Likewise.
21558         * modules/savewd (Depends-on): Likewise.
21559         * modules/stat (Depends-on): Likewise.
21560         * modules/unlink (Depends-on): Likewise.
21561         * modules/openat (Depends-on): Remove dirname-lgpl.
21562         * modules/savewd (Depends-on): Likewise.
21563         * tests/test-dirname.c: Do not use removed symbols like
21564         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21565         the remaining symbols, e.g., ISSLASH ('\\').
21566
21567 2011-02-25  Eric Blake  <eblake@redhat.com>
21568
21569         strstr: revert patches that introduced bug and pessimization
21570         * lib/str-two-way.h: Add another reference.
21571         (two_way_short_needle, two_way_long_needle): Revert changes from
21572         2011-02-24; they pessimize search speed.
21573         (critical_factorization): Partially revert changes from
21574         2010-06-22; they violate the requirement that the left half of the
21575         needle be smaller than the period of the needle.
21576
21577 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21578
21579         filenamecat: remove unnecessary dependency on dirname-lgpl
21580         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21581         is no direct dependency, just an indirect one via filenamecat-lgpl.
21582
21583         remove: remove unnecessary use of m4/dos.m4
21584         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21585         * modules/remove (FILES): Remove m4/dos.m4.
21586
21587         * lib/openat-proc.c: Don't include dirname.h; not needed.
21588
21589         backupfile: remove unnecessary use of m4/dos.m4
21590         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21591         of its symbols are used by the backupfile code.  backupfile.c does
21592         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21593         for the rare case of programs that want all their backup file
21594         names to live within 8+3 limits, and dos.m4 doesn't address that.
21595         * modules/backupfile (Files): Remove m4/dos.m4.
21596
21597 2011-02-24  Jim Meyering  <meyering@redhat.com>
21598
21599         strstr: fix a bug whereby strstr would mistakenly return NULL
21600         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21601         in period calculation.
21602         (two_way_long_needle): Likewise.
21603         The original problem was reported by Mike Stump in
21604         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21605         Ralf Wildenhues provided the short needle and haystack.
21606         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21607         Add a more involved test to trigger the bug in two_way_long_needle.
21608
21609 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21610
21611         gnulib-tool: remove use of bold display in help screen
21612         * gnulib-tool (func_usage): Do not use bold display anymore in the
21613         help screen.  That was just meant to be a temporary emphasis for a
21614         backward-incompatible change.
21615
21616 2011-02-23  Bruno Haible  <bruno@clisp.org>
21617
21618         Fix misindentation of preprocessor directives.
21619         * lib/argp-namefrob.h: Reindent preprocessor directives.
21620         * lib/getopt_int.h (struct _getopt_data): Likewise.
21621         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21622         * lib/vasnprintf.c (decode_long_double): Likewise.
21623         * tests/test-argmatch.c: Insert blank lines, for clarity.
21624         * tests/test-exclude.c: Likewise.
21625
21626 2011-02-22  Bruno Haible  <bruno@clisp.org>
21627
21628         ioctl: Fix for MacOS X in 64-bit mode.
21629         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21630         value.
21631         Suggested by Eric Blake.
21632         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21633
21634 2011-02-22  Jim Meyering  <meyering@redhat.com>
21635
21636         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21637         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21638         in lib/.
21639
21640 2011-02-22  Eric Blake  <eblake@redhat.com>
21641
21642         maint: avoid any CDPATH issue
21643         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21644
21645         maint: adjust cpp indentation for my modules, as well
21646         * Makefile (sc_cpp_indent_check): Add my name.
21647         * lib/fbufmode.c: Filter through cppi.
21648         * lib/fpurge.c: Likewise.
21649         * lib/freadable.c: Likewise.
21650         * lib/freading.c: Likewise.
21651         * lib/fwritable.c: Likewise.
21652         * lib/fwriting.c: Likewise.
21653         * lib/sigaction.c: Likewise.
21654
21655 2011-02-22  Jim Meyering  <meyering@redhat.com>
21656
21657         maint: adjust cpp indentation to reflect nesting depth
21658         I.e., in a block of code that begins with an unnested "#if",
21659         put one space between the "#" in column 1 and following token.
21660         For example,
21661         -#include <sys/vfs.h>
21662         +# include <sys/vfs.h>
21663         Do this only in .c files that are part of a module I maintain.
21664         * lib/linkat.c: Filter through cppi.
21665         * lib/nanosleep.c: Likewise.
21666         * lib/openat.c: Likewise.
21667         * lib/openat-die.c: Likewise.
21668         * lib/dup3.c: Likewise.
21669         * lib/fchownat.c: Likewise.
21670         * lib/flock.c: Likewise.
21671         * lib/fsync.c: Likewise.
21672         * lib/fts.c: Likewise.
21673         * lib/getpass.c: Likewise.
21674         * lib/gettimeofday.c: Likewise.
21675         * lib/userspec.c: Likewise.
21676         * Makefile (sc_cpp_indent_check): New rule, to check this.
21677
21678 2011-02-22  Bruno Haible  <bruno@clisp.org>
21679
21680         New module 'wctomb'.
21681         * lib/stdlib.in.h (wctomb): New declaration.
21682         * lib/wctomb.c: New file.
21683         * lib/wctomb-impl.h: New file.
21684         * m4/wctomb.m4: New file.
21685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21686         REPLACE_WCTOMB.
21687         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21688         REPLACE_WCTOMB.
21689         * modules/wctomb: New file.
21690         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21691         * doc/posix-functions/wctomb.texi: Mention the new module.
21692         * modules/wctob (Depends-on): Add wctomb.
21693
21694 2011-02-22  Bruno Haible  <bruno@clisp.org>
21695
21696         New module 'mbtowc'.
21697         * lib/stdlib.in.h (mbtowc): New declaration.
21698         * lib/mbtowc.c: New file.
21699         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21700         * m4/mbtowc.m4: New file.
21701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21702         REPLACE_MBTOWC.
21703         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21704         REPLACE_MBTOWC.
21705         * modules/mbtowc: New file.
21706         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21707         * doc/posix-functions/mbtowc.texi: Mention the new module.
21708         * modules/btowc (Depends-on): Add mbtowc.
21709
21710 2011-02-22  Bruno Haible  <bruno@clisp.org>
21711
21712         wcrtomb: Add more tests for native Windows platforms.
21713         * tests/test-wcrtomb-w32-1.sh: New file.
21714         * tests/test-wcrtomb-w32-2.sh: New file.
21715         * tests/test-wcrtomb-w32-3.sh: New file.
21716         * tests/test-wcrtomb-w32-4.sh: New file.
21717         * tests/test-wcrtomb-w32-5.sh: New file.
21718         * tests/test-wcrtomb-w32.c: New file.
21719         * modules/wcrtomb-tests (Files): Add them.
21720         (Makefile.am): Arrange to run these tests.
21721         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21722         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21723
21724 2011-02-20  Bruno Haible  <bruno@clisp.org>
21725
21726         wcrtomb: Enhance test.
21727         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21728
21729 2011-02-20  Bruno Haible  <bruno@clisp.org>
21730
21731         mbrtowc: Tiny optimization.
21732         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21733
21734 2011-02-20  Jim Meyering  <meyering@redhat.com>
21735
21736         test-exclude.c: remove unmatched #endif
21737         * tests/test-exclude.c: Remove stray #endif, left over from
21738         the change of a week ago.
21739
21740 2011-02-19  Jim Meyering  <meyering@redhat.com>
21741
21742         git-version-gen: skip "-dirty" check when appropriate
21743         * build-aux/git-version-gen: Don't run any git commands when the
21744         version string comes from .tarball-version.  Prior to this, we
21745         would run git update-index --refresh even from a just-unpacked
21746         tarball directory, and that could affect a .git/ directory in a
21747         parent of the build directory.  Reported by Mike Frysinger.
21748
21749 2011-02-19  Bruno Haible  <bruno@clisp.org>
21750
21751         unictype/property-byname: Reduce the size of the 'data' segment.
21752         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21753
21754 2011-02-19  Bruno Haible  <bruno@clisp.org>
21755
21756         unictype/scripts: Reduce the size of the 'data' segment.
21757         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21758         '%pic'.
21759         * lib/unictype/scripts_byname.gperf: Regenerated.
21760
21761 2011-02-19  Bruno Haible  <bruno@clisp.org>
21762
21763         stdint: Update documentation.
21764         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21765
21766 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21767
21768         stdint: omit redundant check for wchar.h
21769         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21770         always tests whether wchar.h exists, so remove the now-redundant test.
21771
21772 2011-02-18  Bruno Haible  <bruno@clisp.org>
21773
21774         stdint: Cut dependency to module 'wchar'.
21775         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21776         include the necessary prerequisites.
21777         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21778         * modules/stdint (Depends-on): Remove wchar.
21779         (Makefile.am): Substitute HAVE_WCHAR_H.
21780         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21781
21782 2011-02-18  Eric Blake  <eblake@redhat.com>
21783
21784         longlong: skip, rather than fail, on cross-compilation
21785         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21786         when cross-compiling; regression from 2011-02-16.
21787
21788 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21789
21790         * NEWS: Mention 2011-02-08 change to stdlib.
21791
21792 2011-02-17  Bruno Haible  <bruno@clisp.org>
21793
21794         getloadavg: Add comments about platforms.
21795         * m4/getloadavg.m4: Add comment.
21796         * lib/getloadavg.c: Likewise.
21797
21798 2011-02-17  Bruno Haible  <bruno@clisp.org>
21799
21800         getloadavg: Fix link error on Solaris 2.6.
21801         * modules/getloadavg (Link): New section.
21802         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21803         linking test-getloadavg.
21804         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21805         getloadavg.
21806
21807 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21810         It was 'int', but this doesn't match the IRIX 6.5 manual.
21811         Suggested by Bruno Haible in
21812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21813
21814 2011-02-17  Bruno Haible  <bruno@clisp.org>
21815
21816         havelib: Fix comments.
21817         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21818         change.
21819
21820 2011-02-17  Bruno Haible  <bruno@clisp.org>
21821
21822         havelib: Update config.rpath.
21823         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21824
21825 2011-02-17  Bruno Haible  <bruno@clisp.org>
21826
21827         getloadavg test: Add some plausibility checks.
21828         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21829         is improbable.
21830
21831 2011-02-16  Eric Blake  <eblake@redhat.com>
21832
21833         maintainer-makefile: make syntax-check a no-op from tarballs
21834         * top/maint.mk (no-vc-detected): New rule.
21835         (local-checks-available): Use it to avoid hanging if someone tries
21836         'make syntax-check' from a tarball.  Also append to any non-syntax
21837         checks already defined in cfg.mk.
21838
21839 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21840
21841         longlong: tune, particularly for common case of c99
21842
21843         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21844         or running anything if c99, or if unsigned long long int does not
21845         work.  In either case, we know the answer without further tests.
21846         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21847         it at most once, and use its results for both long long int and
21848         unsigned long long int.  This is more likely to be efficient in
21849         the common case where the program wants to check for both long
21850         long int and unsigned long long int.
21851         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21852         since the answer is already known.
21853
21854 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21855
21856         getloadavg: set errno
21857         * lib/getloadavg.c: Set errno when returning -1.  If no other
21858         error number looks appropriate, set it to ENOSYS if the getloadavg
21859         looks like it can't possibly ever work, ENOTSUP otherwise.
21860         Suggested by Bruno Haible in
21861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21862
21863         getloadavg: trim unused parts and speed up 'configure'
21864         * NEWS: Document this.
21865         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21866         always compiled if getloadavg is absent.
21867         Move test code to ...
21868         * tests/test-getloadavg.c: New file, containing previous
21869         contents of test from lib/getloadavg.c.  It also contains
21870         suggestions by Bruno Haible in
21871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21872         * modules/getloadavg-tests: New file.
21873         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21874         Do tests in the same order as they're needed for getloadavg.c.
21875         Omit setgid-related tests that generate symbols KMEM_GROUP,
21876         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21877         Do only the tests that are needed to see whether the system has
21878         getloadavg, moving the other tests into ...
21879         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21880         NLIST_NAME_UNION; nobody should be using it.  Do not define
21881         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21882         relevant, as the user of this module shouldn't care how getloadavg
21883         is implemented.
21884
21885         getloadavg: omit unused var
21886         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21887
21888 2011-02-15  Jim Meyering  <meyering@redhat.com>
21889
21890         doc: update users.txt
21891         * users.txt: Update iwhd's URL.
21892
21893 2011-02-13  Bruno Haible  <bruno@clisp.org>
21894
21895         Consistent macro naming for macros that use GCC __attribute__.
21896         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21897         _ATTRIBUTE_NONNULL_.
21898         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21899         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21900         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21901         ATTRIBUTE_DEPRECATED.
21902         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21903         ATTRIBUTE_NORETURN.
21904         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21905         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21906         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21907         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21908         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21909         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21910         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21911         ATTRIBUTE_SENTINEL.
21912         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21913         ATTRIBUTE_RETURN_CHECK.
21914         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21915         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21916         ATTRIBUTE_NORETURN.
21917         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21918         Reported by Paul Eggert.
21919
21920 2011-02-13  Bruno Haible  <bruno@clisp.org>
21921
21922         Don't interfere with a program's definition of __attribute__.
21923         * lib/argp.h (__attribute__): Remove definition.
21924         (_GL_ATTRIBUTE_FORMAT): New macro.
21925         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21926         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21927         (_GL_ATTRIBUTE_FORMAT): New macro.
21928         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21929         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21930         GCC 3 or newer.
21931         * lib/error.h (__attribute__): Remove definition.
21932         (_GL_ATTRIBUTE_FORMAT): New macro.
21933         (error, error_at_line): Use it.
21934         * lib/hash.h (__attribute__): Remove definition.
21935         (ATTRIBUTE_WUR): Update definition. Define always.
21936         * lib/openat.h (__attribute__): Remove definition.
21937         (ATTRIBUTE_NORETURN): Update definition. Define always.
21938         * lib/sigpipe-die.h (__attribute__): Remove definition.
21939         (ATTRIBUTE_NORETURN): Update definition. Define always.
21940         * lib/vasnprintf.h (__attribute__): Remove definition.
21941         (_GL_ATTRIBUTE_FORMAT): New macro.
21942         (asnprintf, vasnprintf): Use it.
21943         * lib/xalloc.h (__attribute__): Remove definition.
21944         (ATTRIBUTE_NORETURN): Update definition. Define always.
21945         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21946         * lib/xmemdup0.h (__attribute__): Remove definition.
21947         (ATTRIBUTE_NORETURN): Update definition. Define always.
21948         * lib/xprintf.h (__attribute__): Remove definition.
21949         (_GL_ATTRIBUTE_FORMAT): New macro.
21950         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21951         * lib/xstrtol.h (__attribute__): Remove definition.
21952         (ATTRIBUTE_NORETURN): Update definition. Define always.
21953         * lib/xvasprintf.h (__attribute__): Remove definition.
21954         (_GL_ATTRIBUTE_FORMAT): New macro.
21955         (xasprintf, xvasprintf): Use it.
21956         * tests/test-argmatch.c (__attribute__): Remove definition.
21957         (ATTRIBUTE_NORETURN): Update definition. Define always.
21958         * tests/test-exclude.c (__attribute__): Remove definition.
21959         (ATTRIBUTE_NORETURN): Update definition. Define always.
21960         Reported by Paul Eggert.
21961
21962 2011-02-13  Bruno Haible  <bruno@clisp.org>
21963
21964         mbrtowc: Add more tests for native Windows platforms.
21965         * tests/test-mbrtowc-w32-1.sh: New file.
21966         * tests/test-mbrtowc-w32-2.sh: New file.
21967         * tests/test-mbrtowc-w32-3.sh: New file.
21968         * tests/test-mbrtowc-w32-4.sh: New file.
21969         * tests/test-mbrtowc-w32-5.sh: New file.
21970         * tests/test-mbrtowc-w32.c: New file.
21971         * modules/mbrtowc-tests (Files): Add them.
21972         (Makefile.am): Arrange to run these tests.
21973         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21974         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21975
21976 2011-02-13  Bruno Haible  <bruno@clisp.org>
21977
21978         mbrtowc: Work around native Windows bug.
21979         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21980         guess when no suitable locale for testing was found.
21981         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21982
21983 2011-02-13  Bruno Haible  <bruno@clisp.org>
21984
21985         mbsinit: Work around mingw bug.
21986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21987         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21988         Windows.
21989         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21990
21991 2011-02-13  Bruno Haible  <bruno@clisp.org>
21992
21993         mbsinit: Don't crash for a NULL argument.
21994         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21995         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21996
21997 2011-02-13  Bruno Haible  <bruno@clisp.org>
21998
21999         Don't interfere with a program's definition of __attribute__.
22000         * lib/stdio.in.h (__attribute__): Remove definition.
22001         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22002         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22003         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22004         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22005         * lib/string.in.h (__attribute__): Remove definition.
22006         Reported by Paul Eggert.
22007
22008 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22009
22010         stdlib: don't get in the way of non-GCC __attribute__
22011         See thread starting at
22012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22013         Revert previous stdlib change, installing the following instead:
22014         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22015         to get in the way of a non-GCC compiler that supports __attribute__.
22016         (_GL_ATTRIBUTE_RETURN): New macro.
22017         (_Exit): Use it instead of __attribute__.
22018
22019 2011-02-12  Bruno Haible  <bruno@clisp.org>
22020
22021         quotearg test: Avoid test failure on mingw.
22022         * tests/test-quotearg.sh: Convert the locale identifier from native
22023         Windows syntax to Unix syntax.
22024
22025 2011-02-12  Bruno Haible  <bruno@clisp.org>
22026
22027         setlocale: Prefer gnulib's override over libintl's override.
22028         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22029         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22030         GNULIB_defined_setlocale is set.
22031
22032 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22033
22034         stdlib: support non-GCC __attribute__
22035
22036         Fix a serious and tricky problem encountered when attempting to
22037         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22038         5.5, but it crashed due to memory corruption on Solaris 10 with
22039         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22040         bits that are otherwise zero.  This tagging is optional inside
22041         Emacs but is preferred and is used when __attribute__ ((__aligned
22042         (8))) works, as it does with both recent-enough GCC and with Sun C
22043         5.11.  However, Sun C 5.11 is not GCC and does not #define
22044         __GNUC__ and __GNUC_MINOR__.
22045
22046         When I added the getloadavg module to Emacs, it brought in
22047         stdlib.in.h, which contained this fragment:
22048
22049            #ifndef __attribute__
22050            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22051            #  define __attribute__(Spec)   /* empty */
22052            # endif
22053            #endif
22054
22055         When files that include <stdlib.h> were compiled with Sun C 5.11,
22056         the above code disabled __attribute__ ((__aligned (8))), which
22057         caused variables to not be properly aligned, which eventually led
22058         to the pointer corruption mentioned above.  (This was a bit hard
22059         to diagnose, unfortunately.)
22060
22061         Several "#define __attribute__(X) /* empty */" code snippets need
22062         to be eradicated from Gnulib to work with non-GCC compilers that
22063         support __attribute__.  The Autoconf way to do this is to test for
22064         each kind of attribute that we want support for, and selectively
22065         enable that in source code.
22066
22067         Fix this problem just for stdlib.h, by adding a test for the
22068         __noreturn__ attribute, and change stdlib.in.h to use that test
22069         when needed.  This technique can be easily generalized to the
22070         other *.in.h files and attributes, and a similar technique can be
22071         used for *.h and *.c files.  This patch is enough to solve the
22072         problem for Emacs + getloadavg, and I thought I'd publish it for
22073         feedback before undertaking further, similar fixes in other
22074         modules.
22075
22076         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22077         because it's not needed for stdlib.h.  It merely substitutes the
22078         value directly into stdlib.h.  We may well need to #define it, or
22079         similar symbols, for other modules, but it's nice to also have an
22080         option to not #define it for applications like Emacs that do not
22081         need it.
22082
22083         * lib/stdlib.in.h (__attribute__): Do not #define.
22084         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22085         be defined only if the _Exit module is also used.
22086         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22088         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22089         platforms.
22090         * modules/_Exit (Files): Add m4/attribute.m4.
22091         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22092         * m4/attribute.m4: New file.
22093
22094 2011-02-12  Bruno Haible  <bruno@clisp.org>
22095
22096         wcsrtombs: Work around bug on native Windows.
22097         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22098         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22099         instead of len.
22100         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22101
22102 2011-02-12  Bruno Haible  <bruno@clisp.org>
22103
22104         mbsrtowcs: Work around bug on native Windows.
22105         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22106         against mingw bug.
22107         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22108
22109 2011-02-12  Bruno Haible  <bruno@clisp.org>
22110
22111         Avoid setlocale bugs in tests.
22112         * modules/btowc (Dependencies): Add setlocale.
22113         * modules/c-strcase (Dependencies): Likewise.
22114         * modules/mbmemcasecmp (Dependencies): Likewise.
22115         * modules/mbmemcasecoll (Dependencies): Likewise.
22116         * modules/mbrtowc (Dependencies): Likewise.
22117         * modules/mbscasecmp (Dependencies): Likewise.
22118         * modules/mbscasestr (Dependencies): Likewise.
22119         * modules/mbschr (Dependencies): Likewise.
22120         * modules/mbscspn (Dependencies): Likewise.
22121         * modules/mbsinit (Dependencies): Likewise.
22122         * modules/mbsncasecmp (Dependencies): Likewise.
22123         * modules/mbsnrtowcs (Dependencies): Likewise.
22124         * modules/mbspbrk (Dependencies): Likewise.
22125         * modules/mbspcasecmp (Dependencies): Likewise.
22126         * modules/mbsrchr (Dependencies): Likewise.
22127         * modules/mbsrtowcs (Dependencies): Likewise.
22128         * modules/mbsspn (Dependencies): Likewise.
22129         * modules/mbsstr (Dependencies): Likewise.
22130         * modules/nl_langinfo (Dependencies): Likewise.
22131         * modules/quotearg (Dependencies): Likewise.
22132         * modules/unicase/locale-language (Dependencies): Likewise.
22133         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22134         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22135         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22136         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22137         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22138         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22139         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22140         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22141         * modules/vasnprintf-posix (Dependencies): Likewise.
22142         * modules/wcrtomb (Dependencies): Likewise.
22143         * modules/wcsnrtombs (Dependencies): Likewise.
22144         * modules/wcsrtombs (Dependencies): Likewise.
22145
22146 2011-02-12  Bruno Haible  <bruno@clisp.org>
22147
22148         setlocale: Workaround native Windows bug.
22149         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22150         succeeds but sets LC_CTYPE to "C", report a failure.
22151         * tests/test-setlocale2.sh: New file.
22152         * tests/test-setlocale2.c: New file.
22153         * modules/setlocale-tests (Files): Add the new files.
22154         (Makefile.am): Enable test-setlocale2.sh test.
22155         * doc/posix-functions/setlocale.texi: Mention workaround.
22156
22157 2011-02-11  Bruno Haible  <bruno@clisp.org>
22158
22159         Tests for module 'setlocale'.
22160         * modules/setlocale-tests: New file.
22161         * tests/test-setlocale1.sh: New file.
22162         * tests/test-setlocale1.c: New file.
22163
22164         New module 'setlocale'.
22165         * lib/locale.in.h (setlocale): New declaration.
22166         * lib/setlocale.c: New file, based on
22167         gettext/gettext-runtime/intl/setlocale.c.
22168         * m4/setlocale.m4: New file.
22169         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22170         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22171         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22172         REPLACE_SETLOCALE.
22173         * modules/setlocale: New file.
22174         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22175         * doc/posix-functions/setlocale.texi: Mention the new module.
22176
22177 2011-02-11  Bruno Haible  <bruno@clisp.org>
22178
22179         Prepare for locale dependent tests on mingw.
22180         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22181         because it has the wrong locale encoding.
22182         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22183         French_France.1252 instead of "fr".
22184         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22185         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22186         because it has the wrong locale encoding.
22187         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22188         native Windows, try Turkish_Turkey.65001.
22189         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22190         Chinese_China.54936.
22191
22192         Prepare for locale dependent tests on mingw.
22193         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22194         differently.
22195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22196         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22199
22200 2011-02-11  Eric Blake  <eblake@redhat.com>
22201
22202         strptime: avoid compiler warnings
22203         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22204         compiler warnings about dead code.
22205         Reported by Daniel P. Berrange.
22206
22207 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22208
22209         doc: update users.txt
22210         * users.txt: Add rcs.
22211
22212 2011-02-10  John W. Eaton  <jwe@gnu.org>
22213
22214         doc: update users.txt
22215         * users.txt: Add octave.
22216
22217 2011-02-10  Jim Meyering  <meyering@redhat.com>
22218
22219         doc: update users.txt
22220         * users.txt: Add iwhd.
22221
22222 2011-02-09  Bruno Haible  <bruno@clisp.org>
22223
22224         gnulib-tool: Make copyright notice adjustment more robust.
22225         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22226         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22227         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22228         License".
22229         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22230
22231 2011-02-06  Bruno Haible  <bruno@clisp.org>
22232
22233         New module 'towctrans'.
22234         * modules/towctrans: New file.
22235         * lib/wctype.in.h (towctrans): New declaration.
22236         * lib/towctrans.c: New file.
22237         * lib/towctrans-impl.h: New file.
22238         * m4/towctrans.m4: New file.
22239         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22240         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22241         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22242         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22243         * doc/posix-functions/towctrans.texi: Mention the new module.
22244
22245 2011-02-06  Bruno Haible  <bruno@clisp.org>
22246
22247         New module 'wctrans'.
22248         * modules/wctrans: New file.
22249         * lib/wctype.in.h (wctrans): New declaration.
22250         * lib/wctrans.c: New file.
22251         * lib/wctrans-impl.h: New file.
22252         * m4/wctrans.m4: New file.
22253         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22254         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22255         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22256         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22257         * doc/posix-functions/wctrans.texi: Mention the new module.
22258
22259 2011-02-06  Bruno Haible  <bruno@clisp.org>
22260
22261         New module 'iswctype'.
22262         * modules/iswctype: New file.
22263         * lib/wctype.in.h (iswctype): New declaration.
22264         * lib/iswctype.c: New file.
22265         * lib/iswctype-impl.h: New file.
22266         * m4/iswctype.m4: New file.
22267         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22268         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22269         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22270         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22271         * doc/posix-functions/iswctype.texi: Mention the new module and the
22272         HP-UX 11.00 problem.
22273
22274 2011-02-06  Bruno Haible  <bruno@clisp.org>
22275
22276         New module 'wctype'.
22277         * modules/wctype: Change to represent the wctype() substitute.
22278         * lib/wctype.in.h (wctype): New declaration.
22279         * lib/wctype.c: New file.
22280         * lib/wctype-impl.h: New file.
22281         * m4/wctype.m4: New file.
22282         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22283         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22284         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22285         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22286         * doc/posix-functions/wctype.texi: Mention the new module and the
22287         HP-UX 11.00 problem.
22288
22289 2011-02-06  Bruno Haible  <bruno@clisp.org>
22290
22291         wctype-h: Ensure wctype_t and wctrans_t are defined.
22292         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22293         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22294         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22295         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22296         HAVE_WCTRANS_T.
22297         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22298
22299 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22300
22301         flock: fix license typo
22302
22303         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22304         omitted.
22305
22306 2011-02-08  Bruno Haible  <bruno@clisp.org>
22307
22308         Split large sed scripts, for HP-UX sed.
22309         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22310         to avoid HP-UX limit of 99 commands, in the near future.
22311         * modules/stdlib (Makefile.am): Likewise.
22312         * modules/unistd (Makefile.am): Likewise.
22313         * modules/wchar (Makefile.am): Likewise.
22314         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22315         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22316         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22317
22318 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22319             Bruno Haible  <bruno@clisp.org>
22320
22321         stdlib: improve random_r modularization
22322         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22323         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22324         you also need the random_r module to get this material right.
22325         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22326         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22327         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22328
22329 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22330
22331         stdlib: don't depend on stdint
22332         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22333         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22334         be independent of whether stdint.h is needed.
22335         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22336         here, instead of ...
22337         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22338         struct random_data should be using the random_r module, not just
22339         the stdlib module (which wouldn't make sense: what package needs
22340         just struct random_data without also needing random_r?).
22341         * modules/stdlib (Depends-on): Remove stdint.
22342
22343         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22344         See the thread rooted at
22345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22346         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22347         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22348         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22349         __VMS)); previously it was always included (via fcntl--.h).
22350         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22351         hand; this is good enough for load averages.  Also, do not use
22352         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22353         flags directly if available and don't bother otherwise.  (Packages
22354         that need the extra reliability should use the modules that define
22355         these flags on older platforms that lack them.)
22356         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22357         fcntl-safer.
22358
22359 2011-02-08  Jim Meyering  <meyering@redhat.com>
22360
22361         di-set.h, ino-map.h: add multiple-inclusion guard
22362         Technically, the guard is required only for ino-map.h, due to its
22363         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22364         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22365         * lib/ino-map.h: Likewise.
22366
22367 2011-02-06  Bruno Haible  <bruno@clisp.org>
22368
22369         iswblank: Ensure declaration on glibc systems.
22370         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22371         * modules/iswblank (Dependencies): Add 'extensions'.
22372         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22373
22374 2011-02-06  Bruno Haible  <bruno@clisp.org>
22375
22376         New module 'iswblank'.
22377         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22378         * modules/iswblank: New file.
22379         * modules/wctype-h (Files): Remove lib/iswblank.c.
22380         (Makefile.am): Substitute GNULIB_ISWBLANK.
22381         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22382         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22383         (gl_WCTYPE_H_DEFAULTS): New macro.
22384         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22385         * modules/iswblank-tests: New file.
22386         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22387         * tests/test-wctype-h.c (main): Remove iswblank tests.
22388         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22389         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22390         of 'wctype-h'.
22391         * NEWS: Mention the change.
22392         * modules/mbchar (Depends-on): Add iswblank.
22393
22394 2011-02-08  Bruno Haible  <bruno@clisp.org>
22395
22396         di-set tests: Refactor.
22397         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22398         unnecessary includes.
22399         (ASSERT): Remove macro.
22400         (main): Make C90 compliant by avoiding variable declaration after
22401         statement.
22402         * modules/di-set-tests (Files): Add tests/macros.h.
22403
22404 2011-02-08  Bruno Haible  <bruno@clisp.org>
22405
22406         ino-map tests: Refactor.
22407         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22408         unnecessary includes.
22409         (ASSERT): Remove macro.
22410         (main): Make C90 compliant by avoiding variable declaration after
22411         statement.
22412         * modules/ino-map-tests (Files): Add tests/macros.h.
22413
22414 2011-02-08  Jim Meyering  <meyering@redhat.com>
22415
22416         di-set: add "const" to a cast
22417         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22418         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22419
22420 2011-02-06  Bruno Haible  <bruno@clisp.org>
22421
22422         Rename module 'wctype' to 'wctype-h'.
22423         * modules/wctype-h: Renamed from modules/wctype.
22424         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22425         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22426         (Files, Depends-on, Makefile.am): Update.
22427         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22428         (Files, Makefile.am): Update.
22429         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22430         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22431         * doc/posix-headers/wctype.texi: Update.
22432         * doc/posix-functions/iswalnum.texi: Update.
22433         * doc/posix-functions/iswalpha.texi: Update.
22434         * doc/posix-functions/iswblank.texi: Update.
22435         * doc/posix-functions/iswcntrl.texi: Update.
22436         * doc/posix-functions/iswdigit.texi: Update.
22437         * doc/posix-functions/iswgraph.texi: Update.
22438         * doc/posix-functions/iswlower.texi: Update.
22439         * doc/posix-functions/iswprint.texi: Update.
22440         * doc/posix-functions/iswpunct.texi: Update.
22441         * doc/posix-functions/iswspace.texi: Update.
22442         * doc/posix-functions/iswupper.texi: Update.
22443         * doc/posix-functions/iswxdigit.texi: Update.
22444         * doc/posix-functions/towlower.texi: Update.
22445         * doc/posix-functions/towupper.texi: Update.
22446         * NEWS: Mention the change.
22447         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22448         * modules/mbchar (Dependencies): Likewise.
22449         * modules/mbswidth (Dependencies): Likewise.
22450         * modules/quotearg (Dependencies): Likewise.
22451         * modules/regex (Dependencies): Likewise.
22452         * modules/wcscasecmp (Dependencies): Likewise.
22453         * modules/wcsncasecmp (Dependencies): Likewise.
22454         * modules/wcwidth (Dependencies): Likewise.
22455
22456 2011-02-06  Bruno Haible  <bruno@clisp.org>
22457
22458         New module 'wcswidth'.
22459         * modules/wcswidth: New file.
22460         * lib/wchar.in.h (wcswidth): New declaration.
22461         * lib/wcswidth.c: New file.
22462         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22463         * m4/wcswidth.m4: New file.
22464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22466         REPLACE_WCSWIDTH.
22467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22468         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22469         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22470         * doc/posix-functions/wcswidth.texi: Mention the new module.
22471
22472 2011-02-06  Bruno Haible  <bruno@clisp.org>
22473
22474         New module 'wcstok'.
22475         * modules/wcstok: New file.
22476         * lib/wchar.in.h (wcstok): New declaration.
22477         * lib/wcstok.c: New file.
22478         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22479         * m4/wcstok.m4: New file.
22480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22483         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22484         * doc/posix-functions/wcstok.texi: Mention the new module.
22485
22486 2011-02-06  Bruno Haible  <bruno@clisp.org>
22487
22488         New module 'wcsstr'.
22489         * modules/wcsstr: New file.
22490         * lib/wchar.in.h (wcsstr): New declaration.
22491         * lib/wcsstr.c: New file.
22492         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22493         * m4/wcsstr.m4: New file.
22494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22497         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22498         * doc/posix-functions/wcsstr.texi: Mention the new module.
22499
22500 2011-02-06  Bruno Haible  <bruno@clisp.org>
22501
22502         New module 'wcspbrk'.
22503         * modules/wcspbrk: New file.
22504         * lib/wchar.in.h (wcspbrk): New declaration.
22505         * lib/wcspbrk.c: New file.
22506         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22507         * m4/wcspbrk.m4: New file.
22508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22511         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22512         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22513
22514 2011-02-06  Bruno Haible  <bruno@clisp.org>
22515
22516         New module 'wcsspn'.
22517         * modules/wcsspn: New file.
22518         * lib/wchar.in.h (wcsspn): New declaration.
22519         * lib/wcsspn.c: New file.
22520         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22521         * m4/wcsspn.m4: New file.
22522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22525         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22526         * doc/posix-functions/wcsspn.texi: Mention the new module.
22527
22528 2011-02-06  Bruno Haible  <bruno@clisp.org>
22529
22530         New module 'wcscspn'.
22531         * modules/wcscspn: New file.
22532         * lib/wchar.in.h (wcscspn): New declaration.
22533         * lib/wcscspn.c: New file.
22534         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22535         * m4/wcscspn.m4: New file.
22536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22539         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22540         * doc/posix-functions/wcscspn.texi: Mention the new module.
22541
22542 2011-02-06  Bruno Haible  <bruno@clisp.org>
22543
22544         New module 'wcsrchr'.
22545         * modules/wcsrchr: New file.
22546         * lib/wchar.in.h (wcsrchr): New declaration.
22547         * lib/wcsrchr.c: New file.
22548         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22549         * m4/wcsrchr.m4: New file.
22550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22553         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22554         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22555
22556 2011-02-06  Bruno Haible  <bruno@clisp.org>
22557
22558         New module 'wcschr'.
22559         * modules/wcschr: New file.
22560         * lib/wchar.in.h (wcschr): New declaration.
22561         * lib/wcschr.c: New file.
22562         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22563         * m4/wcschr.m4: New file.
22564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22567         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22568         * doc/posix-functions/wcschr.texi: Mention the new module.
22569
22570 2011-02-06  Bruno Haible  <bruno@clisp.org>
22571
22572         New module 'wcsdup'.
22573         * modules/wcsdup: New file.
22574         * lib/wchar.in.h (wcsdup): New declaration.
22575         * lib/wcsdup.c: New file.
22576         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22577         * m4/wcsdup.m4: New file.
22578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22581         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22582         * doc/posix-functions/wcsdup.texi: Mention the new module.
22583
22584 2011-02-06  Bruno Haible  <bruno@clisp.org>
22585
22586         New module 'wcsxfrm'.
22587         * modules/wcsxfrm: New file.
22588         * lib/wchar.in.h (wcsxfrm): New declaration.
22589         * lib/wcsxfrm.c: New file.
22590         * lib/wcsxfrm-impl.h: New file.
22591         * m4/wcsxfrm.m4: New file.
22592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22595         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22596         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22597
22598 2011-02-06  Bruno Haible  <bruno@clisp.org>
22599
22600         New module 'wcscoll'.
22601         * modules/wcscoll: New file.
22602         * lib/wchar.in.h (wcscoll): New declaration.
22603         * lib/wcscoll.c: New file.
22604         * lib/wcscoll-impl.h: New file.
22605         * m4/wcscoll.m4: New file.
22606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22609         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22610         * doc/posix-functions/wcscoll.texi: Mention the new module.
22611
22612 2011-02-06  Bruno Haible  <bruno@clisp.org>
22613
22614         New module 'wcsncasecmp'.
22615         * modules/wcsncasecmp: New file.
22616         * lib/wchar.in.h (wcsncasecmp): New declaration.
22617         * lib/wcsncasecmp.c: New file.
22618         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22619         * m4/wcsncasecmp.m4: New file.
22620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22623         HAVE_WCSNCASECMP.
22624         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22625         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22626
22627 2011-02-06  Bruno Haible  <bruno@clisp.org>
22628
22629         New module 'wcscasecmp'.
22630         * modules/wcscasecmp: New file.
22631         * lib/wchar.in.h (wcscasecmp): New declaration.
22632         * lib/wcscasecmp.c: New file.
22633         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22634         * m4/wcscasecmp.m4: New file.
22635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22638         HAVE_WCSCASECMP.
22639         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22640         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22641
22642 2011-02-05  Bruno Haible  <bruno@clisp.org>
22643
22644         New module 'wcsncmp'.
22645         * modules/wcsncmp: New file.
22646         * lib/wchar.in.h (wcsncmp): New declaration.
22647         * lib/wcsncmp.c: New file.
22648         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22649         * m4/wcsncmp.m4: New file.
22650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22653         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22654         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22655
22656 2011-02-05  Bruno Haible  <bruno@clisp.org>
22657
22658         New module 'wcscmp'.
22659         * modules/wcscmp: New file.
22660         * lib/wchar.in.h (wcscmp): New declaration.
22661         * lib/wcscmp.c: New file.
22662         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22663         * m4/wcscmp.m4: New file.
22664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22667         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22668         * doc/posix-functions/wcscmp.texi: Mention the new module.
22669
22670 2011-02-05  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'wcsncat'.
22673         * modules/wcsncat: New file.
22674         * lib/wchar.in.h (wcsncat): New declaration.
22675         * lib/wcsncat.c: New file.
22676         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22677         * m4/wcsncat.m4: New file.
22678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22681         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22682         * doc/posix-functions/wcsncat.texi: Mention the new module.
22683
22684 2011-02-05  Bruno Haible  <bruno@clisp.org>
22685
22686         New module 'wcscat'.
22687         * modules/wcscat: New file.
22688         * lib/wchar.in.h (wcscat): New declaration.
22689         * lib/wcscat.c: New file.
22690         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22691         * m4/wcscat.m4: New file.
22692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22695         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22696         * doc/posix-functions/wcscat.texi: Mention the new module.
22697
22698 2011-02-05  Bruno Haible  <bruno@clisp.org>
22699
22700         New module 'wcpncpy'.
22701         * modules/wcpncpy: New file.
22702         * lib/wchar.in.h (wcpncpy): New declaration.
22703         * lib/wcpncpy.c: New file.
22704         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22705         * m4/wcpncpy.m4: New file.
22706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22708         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22709         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22710         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22711
22712 2011-02-05  Bruno Haible  <bruno@clisp.org>
22713
22714         New module 'wcsncpy'.
22715         * modules/wcsncpy: New file.
22716         * lib/wchar.in.h (wcsncpy): New declaration.
22717         * lib/wcsncpy.c: New file.
22718         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22719         * m4/wcsncpy.m4: New file.
22720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22723         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22724         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22725
22726 2011-02-05  Bruno Haible  <bruno@clisp.org>
22727
22728         New module 'wcpcpy'.
22729         * modules/wcpcpy: New file.
22730         * lib/wchar.in.h (wcpcpy): New declaration.
22731         * lib/wcpcpy.c: New file.
22732         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22733         * m4/wcpcpy.m4: New file.
22734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22736         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22737         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22738         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22739
22740 2011-02-05  Bruno Haible  <bruno@clisp.org>
22741
22742         New module 'wcscpy'.
22743         * modules/wcscpy: New file.
22744         * lib/wchar.in.h (wcscpy): New declaration.
22745         * lib/wcscpy.c: New file.
22746         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22747         * m4/wcscpy.m4: New file.
22748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22751         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22752         * doc/posix-functions/wcscpy.texi: Mention the new module.
22753
22754 2011-02-05  Bruno Haible  <bruno@clisp.org>
22755
22756         New module 'wcsnlen'.
22757         * modules/wcsnlen: New file.
22758         * lib/wchar.in.h (wcsnlen): New declaration.
22759         * lib/wcsnlen.c: New file.
22760         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22761         * m4/wcsnlen.m4: New file.
22762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22765         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22766         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22767
22768 2011-02-05  Bruno Haible  <bruno@clisp.org>
22769
22770         New module 'wcslen'.
22771         * modules/wcslen: New file.
22772         * lib/wchar.in.h (wcslen): New declaration.
22773         * lib/wcslen.c: New file.
22774         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22775         * m4/wcslen.m4: New file.
22776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22779         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22780         * doc/posix-functions/wcslen.texi: Mention the new module.
22781
22782 2011-02-05  Bruno Haible  <bruno@clisp.org>
22783
22784         New module 'wmemset'.
22785         * modules/wmemset: New file.
22786         * lib/wchar.in.h (wmemset): New declaration.
22787         * lib/wmemset.c: New file.
22788         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22789         * m4/wmemset.m4: New file.
22790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22792         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22793         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22794         * doc/posix-functions/wmemset.texi: Mention the new module.
22795
22796 2011-02-05  Bruno Haible  <bruno@clisp.org>
22797
22798         New module 'wmemmove'.
22799         * modules/wmemmove: New file.
22800         * lib/wchar.in.h (wmemmove): New declaration.
22801         * lib/wmemmove.c: New file.
22802         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22803         * m4/wmemmove.m4: New file.
22804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22806         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22807         HAVE_WMEMMOVE.
22808         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22809         * doc/posix-functions/wmemmove.texi: Mention the new module.
22810
22811 2011-02-05  Bruno Haible  <bruno@clisp.org>
22812
22813         New module 'wmemcpy'.
22814         * modules/wmemcpy: New file.
22815         * lib/wchar.in.h (wmemcpy): New declaration.
22816         * lib/wmemcpy.c: New file.
22817         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22818         * m4/wmemcpy.m4: New file.
22819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22821         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22822         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22823         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22824
22825 2011-02-05  Bruno Haible  <bruno@clisp.org>
22826
22827         New module 'wmemcmp'.
22828         * modules/wmemcmp: New file.
22829         * lib/wchar.in.h (wmemcmp): New declaration.
22830         * lib/wmemcmp.c: New file.
22831         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22832         * m4/wmemcmp.m4: New file.
22833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22835         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22836         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22837         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22838
22839 2011-02-07  Jim Meyering  <meyering@redhat.com>
22840
22841         di-set, ino-map: new modules, from coreutils
22842         * lib/di-set.c: New file.
22843         * lib/di-set.h: Likewise.
22844         * lib/ino-map.c: Likewise.
22845         * lib/ino-map.h: Likewise.
22846         * modules/di-set: Likewise.
22847         * modules/di-set-tests: Likewise.
22848         * modules/ino-map: Likewise.
22849         * modules/ino-map-tests: Likewise.
22850         * tests/test-di-set.c: Likewise.
22851         * tests/test-ino-map.c: Likewise.
22852
22853 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22854
22855         getloadavg: merge minor changes from Emacs
22856
22857         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22858         (getloadavg): Use memset, not bzero.
22859
22860         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22861         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22862         clash (bug#86).
22863
22864 2010-11-14  Bruno Haible  <bruno@clisp.org>
22865
22866         Allow multiple gnulib generated replacements to coexist.
22867         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22868         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22869         * lib/langinfo.in.h (nl_item): Likewise.
22870         * lib/math.in.h (_NaN, NAN): Likewise.
22871         * lib/netdb.in.h (struct addrinfo): Likewise.
22872         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22873         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22874         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22875         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22876         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22877         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22878         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22879         pthread_mutexattr_init, pthread_mutexattr_settype,
22880         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22881         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22882         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22883         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22884         * lib/sched.in.h (struct sched_param): Likewise.
22885         * lib/se-selinux.in.h (security_class_t, security_context_t,
22886         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22887         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22888         lsetfilecon, fsetfilecon, security_check_context,
22889         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22890         Likewise.
22891         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22892         Likewise.
22893         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22894         _gl_function_taking_int_returning_void_t, union sigval,
22895         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22896         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22897         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22898         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22899         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22900         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22901         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22902         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22903         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22904         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22905         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22906         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22907         socklen_t, rpl_fd_isset): Likewise.
22908         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22909         * lib/sys_time.in.h (struct timeval): Likewise.
22910         * lib/sys_times.in.h (struct tms): Likewise.
22911         * lib/sys_utsname.in.h (struct utsname):
22912         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22913         * lib/unistd.in.h (getpagesize): Likewise.
22914         * lib/wchar.in.h (mbstate_t): Likewise.
22915         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22916         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22917         towlower, towupper): Likewise.
22918         Reported by Sam Steingold <sds@gnu.org>.
22919
22920 2011-02-05  Eric Blake  <eblake@redhat.com>
22921
22922         unsetenv: work around Haiku issues
22923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22924         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22925
22926 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22927
22928         libposix: avoid calling error() within libposix
22929         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22930         is defined.
22931
22932 2011-02-05  Eric Blake  <eblake@redhat.com>
22933
22934         strerror_r-posix: port to cygwin
22935         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22936         implementation.
22937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22938         * tests/test-strerror_r.c (main): Fix test.
22939         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22940         issue.
22941
22942 2011-02-05  Bruno Haible  <bruno@clisp.org>
22943
22944         New module 'wmemchr'.
22945         * modules/wmemchr: New file.
22946         * lib/wchar.in.h (wmemchr): New declaration.
22947         * lib/wmemchr.c: New file.
22948         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22949         * m4/wmemchr.m4: New file.
22950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22952         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22953         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22954         * doc/posix-functions/wmemchr.texi: Mention the new module.
22955
22956 2011-02-04  Eric Blake  <eblake@redhat.com>
22957
22958         fdopendir: detect FreeBSD bug
22959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22960         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22961
22962 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         stdbool: do not define HAVE_STDBOOL_H
22965         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22966         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22967         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22968         imported from the latest Autoconf git.  It was motivated by Emacs,
22969         which uses gnulib but does not need HAVE_STDBOOL_H.
22970
22971 2011-02-04  Bruno Haible  <bruno@clisp.org>
22972
22973         wcsnrtombs: Prepare for new module wwcsnrtombs.
22974         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22975         * lib/wcsnrtombs.c: Include it.
22976         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22977
22978         wcsrtombs: Prepare for new module wwcsrtombs.
22979         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22980         * lib/wcsrtombs.c: Include it.
22981         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22982
22983         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22984         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22985         * lib/mbsnrtowcs.c: Include it.
22986         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22987
22988         mbsrtowcs: Prepare for new module mbsrtowwcs.
22989         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22990         * lib/mbsrtowcs.c: Include it.
22991         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22992
22993 2011-02-04  Bruno Haible  <bruno@clisp.org>
22994
22995         vasnprintf: Reduce use of malloc for small format strings.
22996         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22997         (arguments): Add room for the first 7 arguments.
22998         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22999         (char_directives, u8_directives, u16_directives, u32_directives): Add
23000         room for the first 7 directives.
23001         * lib/printf-parse.c: Include <string.h>.
23002         (PRINTF_PARSE): Change memory handling code so that it uses the first
23003         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23004         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23005         Reported by Pádraig Brady <P@draigbrady.com>.
23006
23007 2011-01-31  Eric Blake  <eblake@redhat.com>
23008
23009         dup2: work around Haiku bug
23010         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23011         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23012         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23013         * tests/test-dup2.c (main): Enhance test.
23014
23015 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23016
23017         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23018         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23019         declared by eglibc 2.11.2.
23020         * lib/stdio.in.h: Likewise.
23021
23022 2011-01-31  Eric Blake  <eblake@redhat.com>
23023
23024         ignore-value: add missing test dependency
23025         * tests/test-ignore-value.c: Revert previous change; stdio.h
23026         provides off_t.
23027         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23028
23029 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         mktime: clarify long_int width checking
23032         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23033         the top level, to make it clearer that the assumption about
23034         long_int width is being checked.  See
23035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23036
23037 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23038
23039         ignore-value: Fix self-test.
23040         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23041
23042 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23043
23044         TYPE_MAXIMUM: avoid theoretically undefined behavior
23045         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23046         negative number, which the C Standard says has undefined behavior.
23047         In practice this is not a problem, but might as well do it by the book.
23048         Reported by Rich Felker and Eric Blake; see
23049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23050         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23051         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23053         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23054         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23055         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23056
23057         mktime: #undef mktime before #defining it
23058         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23059
23060         mktime: systematically normalize tm_isdst comparisons
23061         * lib/mktime.c (isdst_differ): New function.
23062         (__mktime_internal): Use it systematically for all isdst comparisons.
23063         This completes the fix for libc BZ #6723, and removes the need for
23064         normalizing tm_isdst.  See
23065         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23066         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23067
23068         mktime: fix some integer overflow issues and sidestep the rest
23069
23070         This was prompted by a bug report by Benjamin Lindner for MinGW
23071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23072         His bug is due to signed integer overflow (0 - INT_MIN), and I
23073         I scanned through mktime.c looking for other integer overflow
23074         problems, fixing all the bugs I found.
23075
23076         Although the C Standard says the resulting code is still not safe
23077         in the presence of integer overflow, in practice it should be good
23078         enough for all real-world two's-complement implementations, except
23079         for debugging environments that deliberately trap on integer
23080         overflow (e.g., gcc -ftrapv).
23081
23082         * lib/mktime.c (WRAPV): New macro.
23083         (SHR): Also check that long_int and time_t shift right in the
23084         usual way, before using the fast-but-unportable method.
23085         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23086         used.  The code already assumed two's complement, so there's
23087         no need to test for alternatives.  All uses removed.
23088         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23089         the C standard.  Problem reported by Rich Felker in
23090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23091         (twos_complement_arithmetic): Also check long_int and time_t.
23092         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23093         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23094         (__mktime_internal): Avoid integer overflow with unary subtraction
23095         in two instances where -1 - X is an adequate replacement for -X,
23096         since the calculations are approximate.
23097
23098 2011-01-29  Eric Blake  <eblake@redhat.com>
23099
23100         mktime: avoid infinite loop
23101         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23102         type; behavior is still undefined but portable to all known targets.
23103         Reported by Rich Felker.
23104
23105 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23106
23107         rename, unlink, same-inode: Relicense.
23108         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23109         * modules/unlink (License): Likewise.
23110         * modules/same-inode (License): Likewise.
23111
23112 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23113
23114         mktime: avoid problems on NetBSD 5 / i386
23115         * lib/mktime.c (long_int): New type.  This works around a problem
23116         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23117         but time_t is 64 bits, and where I expect the existing code is
23118         wrong in some cases.
23119         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23120         (ydhms_diff): Bring back the compile-time check for wide-enough
23121         year and yday.
23122
23123         mktime: fix misspelling in comment
23124         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23125         This merges all recent glibc changes of importance.
23126
23127 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23128
23129         move-if-change: cope with concurrent mv of identical file.
23130         * build-aux/move-if-change (CMPPROG): Accept environment
23131         variable as an override for `cmp'.
23132         (usage): Document CMPPROG.
23133         Adjust comparison to drop stdout.  Cope with failure of mv if
23134         the target file exists and is identical to the source, for
23135         parallel builds.
23136         Report from H.J. Lu against binutils in PR binutils/12283.
23137
23138 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23139
23140         * users.txt: Mention sharutils.
23141
23142 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23143
23144         * users.txt: Mention OATH Toolkit.
23145
23146 2011-01-27  Bruno Haible  <bruno@clisp.org>
23147
23148         Prepare for supporting FreeBSD 10.
23149         * build-aux/config.libpath: Remove handling of freebsd1*.
23150
23151 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23152
23153         Prepare for supporting FreeBSD 10.
23154         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23155         match FreeBSD 10.0.
23156
23157 2011-01-27  Bruno Haible  <bruno@clisp.org>
23158
23159         vma-iter, get-rusage-as: Add OpenBSD support.
23160         * modules/vma-iter (configure.ac): Test for mquery.
23161         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23162         * lib/vma-iter.c: Include <sys/mman.h>.
23163         (vma_iterate): Add an implementation based on mquery().
23164         * lib/resource-ext.h (get_rusage_as): Update comments.
23165         * lib/get-rusage-as.c: Likewise.
23166         * lib/get-rusage-data.c: Likewise.
23167
23168 2011-01-26  Karl Berry  <karl@gnu.org>
23169
23170         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23171         variables to make it easier to override the makeinfo program used.
23172
23173 2011-01-26  Eric Blake  <eblake@redhat.com>
23174
23175         fcntl: work around Haiku F_DUPFD bugs
23176         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23177         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23178         cloexec bit on duplication.
23179         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23180
23181 2011-01-26  Bruno Haible  <bruno@clisp.org>
23182
23183         Enable memory leak tests on AIX.
23184         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23185         * tests/test-fprintf-posix3.c (main): Likewise.
23186
23187 2011-01-26  Bruno Haible  <bruno@clisp.org>
23188
23189         Tests for module 'get-rusage-data'.
23190         * modules/get-rusage-data-tests: New file.
23191         * tests/test-get-rusage-data.c: New file.
23192
23193         New module 'get-rusage-data'.
23194         * lib/resource-ext.h (get_rusage_data): New declaration.
23195         * lib/get-rusage-data.c: New file.
23196         * modules/get-rusage-data: New file.
23197
23198 2011-01-25  Bruno Haible  <bruno@clisp.org>
23199
23200         get-rusage-as: Allow for easier testing.
23201         * lib/resource-ext.h (get_rusage_as): Add comment.
23202         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23203         (main): New function for interactive testing.
23204
23205 2011-01-25  Bruno Haible  <bruno@clisp.org>
23206
23207         vma-iter: Treat Haiku like BeOS.
23208         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23209         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23210
23211 2011-01-25  Eric Blake  <eblake@redhat.com>
23212
23213         c-stack: fix regression on cygwin when libsigsegv is present
23214         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23215
23216 2011-01-24  Bruno Haible  <bruno@clisp.org>
23217
23218         vma-iter: Avoid empty intervals.
23219         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23220         on an empty interval.
23221
23222 2011-01-24  Jim Meyering  <meyering@redhat.com>
23223
23224         u64: remove unnecessary #include
23225         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23226
23227 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23228
23229         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23230         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23231
23232 2011-01-23  Bruno Haible  <bruno@clisp.org>
23233
23234         New module 'vma-iter'.
23235         * lib/vma-iter.h: New file.
23236         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23237         * modules/vma-iter: New file.
23238         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23239         for get_rusage_as_via_iterator.
23240         (vma_iterate_callback): New function.
23241         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23242         * modules/get-rusage-as (Depends-on): Add vma-iter.
23243
23244 2011-01-23  Bruno Haible  <bruno@clisp.org>
23245
23246         uninorm: Tweak includes.
23247         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23248         Reported by Jim Meyering.
23249
23250 2011-01-23  Bruno Haible  <bruno@clisp.org>
23251
23252         get-rusage-as: Improve on NetBSD.
23253         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23254         /proc, like on FreeBSD.
23255
23256 2011-01-23  Jim Meyering  <meyering@redhat.com>
23257
23258         xreadlink.h: remove unnecessary #include
23259         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23260
23261         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23262         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23263
23264 2011-01-23  Bruno Haible  <bruno@clisp.org>
23265
23266         get-rusage-as: Fix bug.
23267         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23268         original limit when aborting the first loop.
23269
23270 2011-01-23  Bruno Haible  <bruno@clisp.org>
23271
23272         wctype: Ensure valid C syntax.
23273         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23274         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23275
23276 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23277
23278         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23280         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23281         as they are needed only for configure's test case.
23282         This removes two unnecessary symbols from config.h.
23283
23284         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23285         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23287         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23288         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23289         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23290         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23291         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23292         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23293         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23294         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23296         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23298         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23299         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23300         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23301         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23302
23303 2011-01-21  Eric Blake  <eblake@redhat.com>
23304
23305         maintainer-makefile: work with older git for submodule check
23306         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23307         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23308         Reported by Matthias Bolte.
23309
23310         bootstrap: minor portability fixes
23311         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23312         (usage): Omit leading capital and trailing . on help phrases, per
23313         GNU Coding Standards.
23314         (check_versions, top level): Prefix messages with script name.
23315
23316 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23317
23318         bootstrap: support --no-git option
23319         * build-aux/bootstrap: Add --no-git option, to be used when
23320         --gnulib-srcdir points to the exact desired checkout.
23321
23322 2011-01-21  Eric Blake  <eblake@redhat.com>
23323
23324         strerror_r-posix: work with glibc 2.13
23325         * lib/strerror_r.c (strerror_r): Fix return type.
23326
23327 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23328             Bruno Haible  <bruno@clisp.org>
23329
23330         uN_strstr: New unit tests.
23331         * modules/unistr/u8-strstr-tests: New file.
23332         * modules/unistr/u16-strstr-tests: New file.
23333         * modules/unistr/u32-strstr-tests: New file.
23334         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23335         * tests/unistr/test-u8-strstr.c: New file.
23336         * tests/unistr/test-u16-strstr.c: New file.
23337         * tests/unistr/test-u32-strstr.c: New file.
23338
23339 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23340             Bruno Haible  <bruno@clisp.org>
23341
23342         Make uN_strstr functions O(n) worst-case.
23343         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23344         16-bit and 32-bit unit cases, use the unibyte algorithm from
23345         lib/mbsstr.c.
23346         * lib/unistr/u8-strstr.c: Include <string.h>.
23347         (UNIT_IS_UINT8_T): New macro.
23348         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23349         (U_STRLEN, U_STRNLEN): New macros.
23350         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23351         (U_STRLEN, U_STRNLEN): New macros.
23352         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23353         (configure.ac): Update required libunistring version.
23354         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23355         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23356         malloca.
23357         (configure.ac): Update required libunistring version.
23358         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23359         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23360         malloca.
23361         (configure.ac): Update required libunistring version.
23362
23363 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23364             Bruno Haible  <bruno@clisp.org>
23365
23366         Prepare for faster uN_strstr functions.
23367         * lib/str-kmp.h: Support definable UNITs.
23368         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23369         needle_len argument.
23370         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23371         * lib/mbscasestr.c (mbscasestr): Likewise.
23372
23373 2011-01-21  Pádraig Brady <P@draigBrady.com>
23374
23375         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23376         * tests/test-malloca.c (main): Unset the environment variable
23377         to greatly speed up the test.
23378         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23379         * modules/malloca-tests: Depend on unsetenv.
23380
23381 2011-01-21  Pádraig Brady <P@draigBrady.com>
23382
23383         ignore-value: remove stdint dependency
23384         * lib/ignore-value.h: Remove <stdint.h>
23385         * modules/ignore-value: Remove stdint dependency.
23386
23387 2011-01-21  Jim Meyering  <meyering@redhat.com>
23388
23389         maint.mk: adjust variable name to be consistent with other gl_ vars
23390         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23391         to be lower case.
23392
23393 2011-01-20  Jim Meyering  <meyering@redhat.com>
23394
23395         maint.mk: make "check" depend on public-submodule-commit by default
23396         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23397
23398 2011-01-20  Bruno Haible  <bruno@clisp.org>
23399
23400         mbfile, mbiter: Complete change from 2008-12-21.
23401         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23402         * m4/mbiter.m4 (gl_MBITER): Likewise.
23403
23404 2011-01-20  Jim Meyering  <meyering@redhat.com>
23405
23406         init.sh: insert space between each function name and "()"
23407         * tests/init.sh: Make it a little easier to see that a function's
23408         name is "warn_", and not "warn" when looking at the first part of
23409         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23410
23411 2011-01-20  Jim Meyering  <meyering@redhat.com>
23412
23413         mountlist: clean up code formatting
23414         * lib/mountlist.c (read_file_system_list): Split a long line,
23415         correct bracing style, use NULL in place of "(struct statfs *)0",
23416         don't parenthesize return value, add spaces around "=" and after
23417         ";-in-for-stmt".
23418
23419 2011-01-14  Markus Duft <mduft@gentoo.org>
23420
23421         mountlist: add support for Interix
23422         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23423         Apply statvfs to all entries of /dev/fs.
23424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23425         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23426
23427 2011-01-20  Jim Meyering  <meyering@redhat.com>
23428
23429         maint.mk: improve the public-submodule-commit rule
23430         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23431         to suppress printing of its commands... unless V=1.
23432         Add git submodule's --quiet option to suppress printing of e.g.,
23433         "Entering gnulib" output.
23434         "cd" into $(srcdir) before running git submodule.
23435
23436 2011-01-20  Bruno Haible  <bruno@clisp.org>
23437
23438         include_next: Fix bug introduced on 2011-01-18.
23439         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23440         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23441         ac_cv_header_... variable if the second argument is not 'check'.
23442         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23443         gl_NEXT_HEADERS_INTERNAL.
23444
23445 2011-01-20  Bruno Haible  <bruno@clisp.org>
23446
23447         Allow the user to avoid the GNULIB_TEST_* macros.
23448         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23449         Suggested by Paul Eggert.
23450
23451 2011-01-14  Jim Meyering  <meyering@redhat.com>
23452
23453         bootstrap: avoid failure when there is no .gitmodules file
23454         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23455         has been assigned to, even when its value is the empty string.
23456         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23457         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23458         Reported by John W. Eaton <jwe@gnu.org>.
23459
23460 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23461
23462         assume <ctype.h>, ..., <time.h> exist
23463         For years gnulib has been assuming the existence of the headers
23464         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23465         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23466         them, since they don't appear to be needed.
23467         * README (Portability guidelines): Document this.
23468         * lib/flock.c: Assume <fcntl.h> exists.
23469         * lib/regex_internal.h: Assume <locale.h> exists.
23470         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23472         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23473         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23474         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23475         * m4/regex.m4 (gl_REGEX): Likewise.
23476         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23477         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23478         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23479         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23480         * tests/test-argp.c: Likewise.
23481         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23482
23483         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23484         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23485         AA_APPLE_UNIVERSAL_BUILD.  See
23486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23487         * NEWS: Document this.
23488
23489 2011-01-19  Eric Blake  <eblake@redhat.com>
23490
23491         c-stack: assume stack overflow if SA_SIGINFO unsupported
23492         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23493         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23494         sigaction will work.
23495         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23496         behavior match Linux.
23497         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23498
23499         stdbool-tests: accommodate Haiku
23500         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23501
23502         binary-io: fix O_TEXT on Haiku
23503         * modules/binary-io (Depends-on): Add fcntl-h.
23504         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23505         than blindly undefining O_TEXT.
23506         Reported by Scott McCreary.
23507
23508 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         include_next: do not check for standard headers like stddef.h
23511
23512         I found this problem when modifying Emacs to use gnulib.
23513         I noticed that it added HAVE_STDDEF_H to config.h, even though
23514         gnulib always assumes <stddef.h> exists as per README and this
23515         symbol is unnecessary.
23516         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23517         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23518         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23519         faster for headers like stddef.h that are known to exist.
23520         (gl_CHECK_NEXT_HEADERS): Use it.
23521         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23522         rather than gl_CHECK_NEXT_HEADERS.
23523         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23524         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23525
23526 2011-01-18  Eric Blake  <eblake@redhat.com>
23527
23528         ansi-c++-opt: skip C++ dependency style if C++ is unused
23529         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23530         tests when we know C++ compilation is not desired.
23531         Reported by Scott McCreary.
23532
23533 2011-01-18  Bruno Haible  <bruno@clisp.org>
23534
23535         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23536         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23537         (main): Perform test also when getrlimit and setrlimit don't exist or
23538         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23539         limiting the address space size using setrlimit, compare the address
23540         space size before and after the the test.
23541         * tests/test-dprintf-posix2.c: Likewise.
23542         * tests/test-fprintf-posix3.sh: Update skip messages.
23543         * tests/test-dprintf-posix2.sh: Likewise.
23544         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23545         * modules/dprintf-posix-tests (Depends-on): Likewise.
23546         Reported by Bruce Korb <bkorb@gnu.org> and
23547         Gary V. Vaughan <gary@gnu.org>.
23548
23549 2011-01-18  Bruno Haible  <bruno@clisp.org>
23550
23551         get-rusage-as: Improvement for Cygwin.
23552         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23553         areas that are merely reserved.
23554
23555 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23556
23557         strftime: remove dependencies on multibyte modules
23558
23559         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23560         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23561         only if __osf__ is defined, and I suspect OSF doesn't need these
23562         other modules.  If my guess is wrong, we'll need to come up with a
23563         variant of strftime that doesn't need the multibyte modules.
23564
23565         I discovered this problem when attempting modify Emacs to use the
23566         strftime module.  With the previous gnulib, this caused Emacs to
23567         need 31 new files, ranging from lib/config.charset to
23568         m4/wint_t.m4.  This was overkill and I expect would be offputting
23569         to the Emacs maintainers.  After this change, only 6 new files are
23570         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23571         stdbool.m4, and tm_gmtoff.m4.
23572
23573         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23574         Suggested by Bruno Haible in
23575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23577         and do not check for wchar.h.
23578         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23579         (Depends-on): Remove mbrlen, mbsinit, wchar.
23580
23581 2011-01-18  Bruno Haible  <bruno@clisp.org>
23582
23583         Tests for module 'get-rusage-as'.
23584         * modules/get-rusage-as-tests: New file.
23585         * tests/test-get-rusage-as.c: New file.
23586
23587         New module 'get-rusage-as'.
23588         * modules/get-rusage-as: New file.
23589         * lib/resource-ext.h: New file.
23590         * lib/get-rusage-as.c: New file.
23591
23592 2011-01-17  Eric Blake  <eblake@redhat.com>
23593
23594         sigaction: relax license from LGPLv3+ to LGPLv2+
23595         * modules/sigaction (License): Relax to LGPLv2+.
23596
23597 2011-01-14  Bruno Haible  <bruno@clisp.org>
23598
23599         filemode: Make function declarations usable in C++ mode.
23600         * lib/filemode.h: Enclose function declarations in extern "C" block.
23601         Reported by John W. Eaton <jwe@gnu.org>.
23602
23603 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23604
23605         save-cwd: no longer include "xgetcwd.h"
23606         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23607         This avoids a compilation failure in projects that use save-cwd
23608         without also using the xgetcwd module.
23609
23610 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23611
23612         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23613         This is so that a program like Emacs, which needs only dtoastr,
23614         does not have to bother with distributing and compiling ftoastr
23615         and ldtoastr.
23616         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23617         * modules/dtoastr, modules/ldtoastr: New files.
23618         * modules/ftoastr: Now works just for 'float'.
23619         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23620         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23621         dtoastr.c, ldtoastr.c.
23622
23623 2011-01-11  Jim Meyering  <meyering@redhat.com>
23624
23625         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23626         There is no need to work around the lack of the fchdir function,
23627         since gnulib can now provide a replacement when required.
23628         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23629         * modules/save-cwd (Depends-on): Add fchdir.
23630
23631 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23632
23633         openat, save-cwd: avoid xmalloc
23634
23635         This removes a direct (but undocumented) dependency of openat on
23636         xalloc, along with an indirect dependency via save-cwd.  It also
23637         removes a dependency of save-cwd on xgetcwd, and thereby
23638         indirectly on xalloc.  This change causes the openat substitute
23639         to fall back on save_cwd when memory is tight, and for save_cwd to
23640         fail instead of dying when memory is tight, but that's good enough.
23641         Problem and initial idea for fix reported by Bastien Roucaries in
23642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23643
23644         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23645         xalloc.h (for xmalloc).
23646         (openat_proc_name): Use malloc, not xmalloc.
23647         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23648         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23649
23650         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23651         This avoids heap allocation for file names whose lengths are in
23652         the range 512..1023, with the upper bound increasing to at most
23653         4031 depending on the platform's PATH_MAX.  (We do not want
23654         pathmax.h here as it might supply a non-constant PATH_MAX.)
23655         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23656         Perhaps they should be moved to malloca.h?
23657         (OPENAT_BUFFER_SIZE): Use them.
23658
23659 2011-01-10  Bruno Haible  <bruno@clisp.org>
23660
23661         doc: Update users.txt.
23662         * users.txt: Add recutils.
23663
23664 2011-01-09  Karl Berry  <karl@gnu.org>
23665
23666         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23667
23668         * doc/configmake.texi: New file.
23669         * doc/gnulib.texi: Include it.
23670         * modules/configmake: Move documentation from here.
23671
23672 2011-01-09  Bruno Haible  <bruno@clisp.org>
23673
23674         Update to Unicode 6.0.0.
23675         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23676         (get_lbp): Update for Unicode 6.0.0.
23677         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23678         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23679         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23680         U+11001, U+11038..U+11046. Remove U+06DE.
23681         (uc_width): Fix bounds of planes.
23682         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23683         lib/uniwidth/width.c.
23684         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23685         trailing whitespace removed.
23686         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23687         without comments, but with the original copyright notice.
23688         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23689         * lib/unicase/ignorable.h: Likewise.
23690         * lib/unicase/tocasefold.h: Likewise.
23691         * lib/unicase/tolower.h: Likewise.
23692         * lib/unicase/totitle.h: Likewise.
23693         * lib/unicase/toupper.h: Likewise.
23694         * lib/unictype/bidi_of.h: Likewise.
23695         * lib/unictype/blocks.h: Likewise.
23696         * lib/unictype/categ_C.h: Likewise.
23697         * lib/unictype/categ_Cn.h: Likewise.
23698         * lib/unictype/categ_L.h: Likewise.
23699         * lib/unictype/categ_Ll.h: Likewise.
23700         * lib/unictype/categ_Lm.h: Likewise.
23701         * lib/unictype/categ_Lo.h: Likewise.
23702         * lib/unictype/categ_Lu.h: Likewise.
23703         * lib/unictype/categ_M.h: Likewise.
23704         * lib/unictype/categ_Mc.h: Likewise.
23705         * lib/unictype/categ_Me.h: Likewise.
23706         * lib/unictype/categ_Mn.h: Likewise.
23707         * lib/unictype/categ_N.h: Likewise.
23708         * lib/unictype/categ_Nd.h: Likewise.
23709         * lib/unictype/categ_No.h: Likewise.
23710         * lib/unictype/categ_P.h: Likewise.
23711         * lib/unictype/categ_Po.h: Likewise.
23712         * lib/unictype/categ_S.h: Likewise.
23713         * lib/unictype/categ_Sc.h: Likewise.
23714         * lib/unictype/categ_Sk.h: Likewise.
23715         * lib/unictype/categ_Sm.h: Likewise.
23716         * lib/unictype/categ_So.h: Likewise.
23717         * lib/unictype/categ_of.h: Likewise.
23718         * lib/unictype/combining.h: Likewise.
23719         * lib/unictype/ctype_alnum.h: Likewise.
23720         * lib/unictype/ctype_alpha.h: Likewise.
23721         * lib/unictype/ctype_graph.h: Likewise.
23722         * lib/unictype/ctype_lower.h: Likewise.
23723         * lib/unictype/ctype_print.h: Likewise.
23724         * lib/unictype/ctype_punct.h: Likewise.
23725         * lib/unictype/ctype_upper.h: Likewise.
23726         * lib/unictype/decdigit.h: Likewise.
23727         * lib/unictype/digit.h: Likewise.
23728         * lib/unictype/numeric.h: Likewise.
23729         * lib/unictype/pr_alphabetic.h: Likewise.
23730         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23731         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23732         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23733         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23734         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23735         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23736         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23737         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23738         * lib/unictype/pr_case_ignorable.h: Likewise.
23739         * lib/unictype/pr_cased.h: Likewise.
23740         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23741         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23742         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23743         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23744         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23745         * lib/unictype/pr_combining.h: Likewise.
23746         * lib/unictype/pr_composite.h: Likewise.
23747         * lib/unictype/pr_currency_symbol.h: Likewise.
23748         * lib/unictype/pr_decimal_digit.h: Likewise.
23749         * lib/unictype/pr_deprecated.h: Likewise.
23750         * lib/unictype/pr_format_control.h: Likewise.
23751         * lib/unictype/pr_grapheme_base.h: Likewise.
23752         * lib/unictype/pr_grapheme_extend.h: Likewise.
23753         * lib/unictype/pr_grapheme_link.h: Likewise.
23754         * lib/unictype/pr_id_continue.h: Likewise.
23755         * lib/unictype/pr_id_start.h: Likewise.
23756         * lib/unictype/pr_ideographic.h: Likewise.
23757         * lib/unictype/pr_lowercase.h: Likewise.
23758         * lib/unictype/pr_math.h: Likewise.
23759         * lib/unictype/pr_numeric.h: Likewise.
23760         * lib/unictype/pr_other_alphabetic.h: Likewise.
23761         * lib/unictype/pr_other_id_continue.h: Likewise.
23762         * lib/unictype/pr_other_math.h: Likewise.
23763         * lib/unictype/pr_punctuation.h: Likewise.
23764         * lib/unictype/pr_sentence_terminal.h: Likewise.
23765         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23766         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23767         * lib/unictype/pr_unified_ideograph.h: Likewise.
23768         * lib/unictype/pr_uppercase.h: Likewise.
23769         * lib/unictype/pr_xid_continue.h: Likewise.
23770         * lib/unictype/pr_xid_start.h: Likewise.
23771         * lib/unictype/scripts.h: Likewise.
23772         * lib/unictype/scripts_byname.gperf: Likewise.
23773         * lib/unictype/sy_java_ident.h: Likewise.
23774         * lib/unigbrk/gbrkprop.h: Likewise.
23775         * lib/unilbrk/lbrkprop1.h: Likewise.
23776         * lib/unilbrk/lbrkprop2.h: Likewise.
23777         * lib/uninorm/decomposition-table2.h: Likewise.
23778         * lib/uniwbrk/wbrkprop.h: Likewise.
23779         * tests/unicase/test-cased.c: Likewise.
23780         * tests/unicase/test-ignorable.c: Likewise.
23781         * tests/unicase/test-uc_tolower.c: Likewise.
23782         * tests/unicase/test-uc_totitle.c: Likewise.
23783         * tests/unicase/test-uc_toupper.c: Likewise.
23784         * tests/unictype/test-categ_C.c: Likewise.
23785         * tests/unictype/test-categ_Cn.c: Likewise.
23786         * tests/unictype/test-categ_L.c: Likewise.
23787         * tests/unictype/test-categ_Ll.c: Likewise.
23788         * tests/unictype/test-categ_Lm.c: Likewise.
23789         * tests/unictype/test-categ_Lo.c: Likewise.
23790         * tests/unictype/test-categ_Lu.c: Likewise.
23791         * tests/unictype/test-categ_M.c: Likewise.
23792         * tests/unictype/test-categ_Mc.c: Likewise.
23793         * tests/unictype/test-categ_Me.c: Likewise.
23794         * tests/unictype/test-categ_Mn.c: Likewise.
23795         * tests/unictype/test-categ_N.c: Likewise.
23796         * tests/unictype/test-categ_Nd.c: Likewise.
23797         * tests/unictype/test-categ_No.c: Likewise.
23798         * tests/unictype/test-categ_P.c: Likewise.
23799         * tests/unictype/test-categ_Po.c: Likewise.
23800         * tests/unictype/test-categ_S.c: Likewise.
23801         * tests/unictype/test-categ_Sc.c: Likewise.
23802         * tests/unictype/test-categ_Sk.c: Likewise.
23803         * tests/unictype/test-categ_Sm.c: Likewise.
23804         * tests/unictype/test-categ_So.c: Likewise.
23805         * tests/unictype/test-ctype_alnum.c: Likewise.
23806         * tests/unictype/test-ctype_alpha.c: Likewise.
23807         * tests/unictype/test-ctype_graph.c: Likewise.
23808         * tests/unictype/test-ctype_lower.c: Likewise.
23809         * tests/unictype/test-ctype_print.c: Likewise.
23810         * tests/unictype/test-ctype_punct.c: Likewise.
23811         * tests/unictype/test-ctype_upper.c: Likewise.
23812         * tests/unictype/test-decdigit.h: Likewise.
23813         * tests/unictype/test-digit.h: Likewise.
23814         * tests/unictype/test-numeric.h: Likewise.
23815         * tests/unictype/test-pr_alphabetic.c: Likewise.
23816         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23817         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23818         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23819         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23820         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23821         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23822         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23823         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23824         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23825         * tests/unictype/test-pr_cased.c: Likewise.
23826         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23827         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23828         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23829         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23830         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23831         * tests/unictype/test-pr_combining.c: Likewise.
23832         * tests/unictype/test-pr_composite.c: Likewise.
23833         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23834         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23835         * tests/unictype/test-pr_deprecated.c: Likewise.
23836         * tests/unictype/test-pr_format_control.c: Likewise.
23837         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23838         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23839         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23840         * tests/unictype/test-pr_id_continue.c: Likewise.
23841         * tests/unictype/test-pr_id_start.c: Likewise.
23842         * tests/unictype/test-pr_ideographic.c: Likewise.
23843         * tests/unictype/test-pr_lowercase.c: Likewise.
23844         * tests/unictype/test-pr_math.c: Likewise.
23845         * tests/unictype/test-pr_numeric.c: Likewise.
23846         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23847         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23848         * tests/unictype/test-pr_other_math.c: Likewise.
23849         * tests/unictype/test-pr_punctuation.c: Likewise.
23850         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23851         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23852         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23853         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23854         * tests/unictype/test-pr_uppercase.c: Likewise.
23855         * tests/unictype/test-pr_xid_continue.c: Likewise.
23856         * tests/unictype/test-pr_xid_start.c: Likewise.
23857         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23858         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23859         changes.
23860         * lib/unictype/categ_Cc.h: Likewise.
23861         * lib/unictype/categ_Cf.h: Likewise.
23862         * lib/unictype/categ_Co.h: Likewise.
23863         * lib/unictype/categ_Cs.h: Likewise.
23864         * lib/unictype/categ_Lt.h: Likewise.
23865         * lib/unictype/categ_Nl.h: Likewise.
23866         * lib/unictype/categ_Pc.h: Likewise.
23867         * lib/unictype/categ_Pd.h: Likewise.
23868         * lib/unictype/categ_Pe.h: Likewise.
23869         * lib/unictype/categ_Pf.h: Likewise.
23870         * lib/unictype/categ_Pi.h: Likewise.
23871         * lib/unictype/categ_Ps.h: Likewise.
23872         * lib/unictype/categ_Z.h: Likewise.
23873         * lib/unictype/categ_Zl.h: Likewise.
23874         * lib/unictype/categ_Zp.h: Likewise.
23875         * lib/unictype/categ_Zs.h: Likewise.
23876         * lib/unictype/ctype_blank.h: Likewise.
23877         * lib/unictype/ctype_cntrl.h: Likewise.
23878         * lib/unictype/ctype_digit.h: Likewise.
23879         * lib/unictype/ctype_space.h: Likewise.
23880         * lib/unictype/ctype_xdigit.h: Likewise.
23881         * lib/unictype/mirror.h: Likewise.
23882         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23883         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23884         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23885         * lib/unictype/pr_bidi_control.h: Likewise.
23886         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23887         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23888         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23889         * lib/unictype/pr_bidi_pdf.h: Likewise.
23890         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23891         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23892         * lib/unictype/pr_dash.h: Likewise.
23893         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23894         * lib/unictype/pr_diacritic.h: Likewise.
23895         * lib/unictype/pr_extender.h: Likewise.
23896         * lib/unictype/pr_hex_digit.h: Likewise.
23897         * lib/unictype/pr_hyphen.h: Likewise.
23898         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23899         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23900         * lib/unictype/pr_ignorable_control.h: Likewise.
23901         * lib/unictype/pr_iso_control.h: Likewise.
23902         * lib/unictype/pr_join_control.h: Likewise.
23903         * lib/unictype/pr_left_of_pair.h: Likewise.
23904         * lib/unictype/pr_line_separator.h: Likewise.
23905         * lib/unictype/pr_logical_order_exception.h: Likewise.
23906         * lib/unictype/pr_non_break.h: Likewise.
23907         * lib/unictype/pr_not_a_character.h: Likewise.
23908         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23909         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23910         * lib/unictype/pr_other_id_start.h: Likewise.
23911         * lib/unictype/pr_other_lowercase.h: Likewise.
23912         * lib/unictype/pr_other_uppercase.h: Likewise.
23913         * lib/unictype/pr_paired_punctuation.h: Likewise.
23914         * lib/unictype/pr_paragraph_separator.h: Likewise.
23915         * lib/unictype/pr_pattern_syntax.h: Likewise.
23916         * lib/unictype/pr_pattern_white_space.h: Likewise.
23917         * lib/unictype/pr_private_use.h: Likewise.
23918         * lib/unictype/pr_quotation_mark.h: Likewise.
23919         * lib/unictype/pr_radical.h: Likewise.
23920         * lib/unictype/pr_soft_dotted.h: Likewise.
23921         * lib/unictype/pr_space.h: Likewise.
23922         * lib/unictype/pr_titlecase.h: Likewise.
23923         * lib/unictype/pr_variation_selector.h: Likewise.
23924         * lib/unictype/pr_white_space.h: Likewise.
23925         * lib/unictype/pr_zero_width.h: Likewise.
23926         * lib/unictype/sy_c_ident.h: Likewise.
23927         * lib/unictype/sy_c_whitespace.h: Likewise.
23928         * lib/unictype/sy_java_whitespace.h: Likewise.
23929         * lib/uninorm/composition-table.gperf: Likewise.
23930         * lib/uninorm/decomposition-table1.h: Likewise.
23931         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23932         LB8.
23933         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23934         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23935         * modules/unictype/*: Bump version number of expected libunistring
23936         version.
23937
23938 2011-01-09  Bruno Haible  <bruno@clisp.org>
23939
23940         Update to Unicode 5.2.0.
23941         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23942         trailing whitespace removed.
23943
23944 2011-01-09  Bruno Haible  <bruno@clisp.org>
23945
23946         New Unicode character properties, from Unicode 5.2.0.
23947         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23948         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23949         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23950         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23951         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23952         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23953         uc_is_property_cased, uc_is_property_case_ignorable,
23954         uc_is_property_changes_when_lowercased,
23955         uc_is_property_changes_when_uppercased,
23956         uc_is_property_changes_when_titlecased,
23957         uc_is_property_changes_when_casefolded,
23958         uc_is_property_changes_when_casemapped): New declarations.
23959         * lib/unictype/pr_byname.gperf: Add the new properties.
23960         * modules/unictype/property-byname (Depends-on): Depend on the new
23961         properties modules.
23962         * modules/unictype/property-all (Depends-on): Likewise.
23963         * MODULES.html.sh (Unicode string functions): Add
23964         unictype/property-case-ignorable, unictype/property-cased,
23965         unictype/property-changes-when-casefolded,
23966         unictype/property-changes-when-casemapped,
23967         unictype/property-changes-when-lowercased,
23968         unictype/property-changes-when-titlecased,
23969         unictype/property-changes-when-uppercased.
23970
23971         New module 'unictype/property-changes-when-casemapped'.
23972         * modules/unictype/property-changes-when-casemapped: New file.
23973         * lib/unictype/pr_changes_when_casemapped.c: New file.
23974         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23975         generated by gen-uni-tables.
23976         * modules/unictype/property-changes-when-casemapped-tests: New file.
23977         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23978         automatically generated by gen-uni-tables.
23979
23980         New module 'unictype/property-changes-when-casefolded'.
23981         * modules/unictype/property-changes-when-casefolded: New file.
23982         * lib/unictype/pr_changes_when_casefolded.c: New file.
23983         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23984         generated by gen-uni-tables.
23985         * modules/unictype/property-changes-when-casefolded-tests: New file.
23986         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23987         automatically generated by gen-uni-tables.
23988
23989         New module 'unictype/property-changes-when-titlecased'.
23990         * modules/unictype/property-changes-when-titlecased: New file.
23991         * lib/unictype/pr_changes_when_titlecased.c: New file.
23992         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23993         generated by gen-uni-tables.
23994         * modules/unictype/property-changes-when-titlecased-tests: New file.
23995         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23996         automatically generated by gen-uni-tables.
23997
23998         New module 'unictype/property-changes-when-uppercased'.
23999         * modules/unictype/property-changes-when-uppercased: New file.
24000         * lib/unictype/pr_changes_when_uppercased.c: New file.
24001         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24002         generated by gen-uni-tables.
24003         * modules/unictype/property-changes-when-uppercased-tests: New file.
24004         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24005         automatically generated by gen-uni-tables.
24006
24007         New module 'unictype/property-changes-when-lowercased'.
24008         * modules/unictype/property-changes-when-lowercased: New file.
24009         * lib/unictype/pr_changes_when_lowercased.c: New file.
24010         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24011         generated by gen-uni-tables.
24012         * modules/unictype/property-changes-when-lowercased-tests: New file.
24013         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24014         automatically generated by gen-uni-tables.
24015
24016         New module 'unictype/property-case-ignorable'.
24017         * modules/unictype/property-case-ignorable: New file.
24018         * lib/unictype/pr_case_ignorable.c: New file.
24019         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24020         by gen-uni-tables.
24021         * modules/unictype/property-case-ignorable-tests: New file.
24022         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24023         generated by gen-uni-tables.
24024
24025         New module 'unictype/property-cased'.
24026         * modules/unictype/property-cased: New file.
24027         * lib/unictype/pr_cased.c: New file.
24028         * lib/unictype/pr_cased.h: New file, automatically generated by
24029         gen-uni-tables.
24030         * modules/unictype/property-cased-tests: New file.
24031         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24032         gen-uni-tables.
24033
24034 2011-01-09  Bruno Haible  <bruno@clisp.org>
24035
24036         Update to Unicode 5.2.0.
24037         * lib/gen-uni-tables.c (output_predicate, output_category,
24038         output_combclass, output_bidi_category, output_decimal_digit_test,
24039         output_decimal_digit, output_digit_test, output_digit,
24040         output_numeric_test, output_numeric, output_mirror, output_scripts,
24041         output_scripts_byname, output_blocks, output_ident_category): Fix
24042         comment header.
24043         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24044         get_wbp.
24045         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24046         items.
24047         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24048         Changes_When_Lowercased, Changes_When_Uppercased,
24049         Changes_When_Titlecased, Changes_When_Casefolded,
24050         Changes_When_Casemapped.
24051         (is_property_alphabetic, is_property_default_ignorable_code_point):
24052         Update for Unicode 5.2.0.
24053         (is_property_cased, is_property_case_ignorable,
24054         is_property_changes_when_lowercased,
24055         is_property_changes_when_uppercased,
24056         is_property_changes_when_titlecased,
24057         is_property_changes_when_casefolded,
24058         is_property_changes_when_casemapped): New functions.
24059         (output_properties): Output also the properties cased, case_ignorable,
24060         changes_when_lowercased, changes_when_uppercased,
24061         changes_when_titlecased, changes_when_casefolded,
24062         changes_when_casemapped.
24063         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24064         Unicode TR#11 revision 17 -> 19.
24065         (LBP_CP): New enumeration value.
24066         (LBP_*): Adjust values accordingly.
24067         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24068         TR#14 revision 22 -> 24.
24069         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24070         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24071         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24072         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24073         is_WBP_MIDLETTER.
24074         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24075         the code1 and code2 of each composition rule.
24076         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24077         * lib/unicase/ignorable.h: Likewise.
24078         * lib/unicase/tocasefold.h: Likewise.
24079         * lib/unicase/tolower.h: Likewise.
24080         * lib/unicase/totitle.h: Likewise.
24081         * lib/unicase/toupper.h: Likewise.
24082         * lib/unictype/bidi_of.h: Likewise.
24083         * lib/unictype/blocks.h: Likewise.
24084         * lib/unictype/categ_C.h: Likewise.
24085         * lib/unictype/categ_Cf.h: Likewise.
24086         * lib/unictype/categ_Cn.h: Likewise.
24087         * lib/unictype/categ_L.h: Likewise.
24088         * lib/unictype/categ_Ll.h: Likewise.
24089         * lib/unictype/categ_Lm.h: Likewise.
24090         * lib/unictype/categ_Lo.h: Likewise.
24091         * lib/unictype/categ_Lu.h: Likewise.
24092         * lib/unictype/categ_M.h: Likewise.
24093         * lib/unictype/categ_Mc.h: Likewise.
24094         * lib/unictype/categ_Mn.h: Likewise.
24095         * lib/unictype/categ_N.h: Likewise.
24096         * lib/unictype/categ_Nd.h: Likewise.
24097         * lib/unictype/categ_Nl.h: Likewise.
24098         * lib/unictype/categ_No.h: Likewise.
24099         * lib/unictype/categ_P.h: Likewise.
24100         * lib/unictype/categ_Pd.h: Likewise.
24101         * lib/unictype/categ_Po.h: Likewise.
24102         * lib/unictype/categ_S.h: Likewise.
24103         * lib/unictype/categ_Sc.h: Likewise.
24104         * lib/unictype/categ_So.h: Likewise.
24105         * lib/unictype/categ_of.h: Likewise.
24106         * lib/unictype/combining.h: Likewise.
24107         * lib/unictype/ctype_alnum.h: Likewise.
24108         * lib/unictype/ctype_alpha.h: Likewise.
24109         * lib/unictype/ctype_graph.h: Likewise.
24110         * lib/unictype/ctype_lower.h: Likewise.
24111         * lib/unictype/ctype_print.h: Likewise.
24112         * lib/unictype/ctype_punct.h: Likewise.
24113         * lib/unictype/ctype_upper.h: Likewise.
24114         * lib/unictype/decdigit.h: Likewise.
24115         * lib/unictype/digit.h: Likewise.
24116         * lib/unictype/numeric.h: Likewise.
24117         * lib/unictype/pr_alphabetic.h: Likewise.
24118         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24119         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24125         * lib/unictype/pr_combining.h: Likewise.
24126         * lib/unictype/pr_composite.h: Likewise.
24127         * lib/unictype/pr_currency_symbol.h: Likewise.
24128         * lib/unictype/pr_dash.h: Likewise.
24129         * lib/unictype/pr_decimal_digit.h: Likewise.
24130         * lib/unictype/pr_deprecated.h: Likewise.
24131         * lib/unictype/pr_diacritic.h: Likewise.
24132         * lib/unictype/pr_extender.h: Likewise.
24133         * lib/unictype/pr_grapheme_base.h: Likewise.
24134         * lib/unictype/pr_grapheme_extend.h: Likewise.
24135         * lib/unictype/pr_grapheme_link.h: Likewise.
24136         * lib/unictype/pr_id_continue.h: Likewise.
24137         * lib/unictype/pr_id_start.h: Likewise.
24138         * lib/unictype/pr_ideographic.h: Likewise.
24139         * lib/unictype/pr_ignorable_control.h: Likewise.
24140         * lib/unictype/pr_logical_order_exception.h: Likewise.
24141         * lib/unictype/pr_lowercase.h: Likewise.
24142         * lib/unictype/pr_numeric.h: Likewise.
24143         * lib/unictype/pr_other_alphabetic.h: Likewise.
24144         * lib/unictype/pr_punctuation.h: Likewise.
24145         * lib/unictype/pr_sentence_terminal.h: Likewise.
24146         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24147         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24148         * lib/unictype/pr_unified_ideograph.h: Likewise.
24149         * lib/unictype/pr_uppercase.h: Likewise.
24150         * lib/unictype/pr_xid_continue.h: Likewise.
24151         * lib/unictype/pr_xid_start.h: Likewise.
24152         * lib/unictype/pr_zero_width.h: Likewise.
24153         * lib/unictype/scripts.h: Likewise.
24154         * lib/unictype/scripts_byname.gperf: Likewise.
24155         * lib/unictype/sy_java_ident.h: Likewise.
24156         * lib/unigbrk/gbrkprop.h: Likewise.
24157         * lib/unilbrk/lbrkprop1.h: Likewise.
24158         * lib/unilbrk/lbrkprop2.h: Likewise.
24159         * lib/unilbrk/lbrktables.h: Likewise.
24160         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24161         LBP_CP. Implement rule LB30.
24162         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24163         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24164         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24165         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24166         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24167         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24168         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24169         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24170         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24171         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24172         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24173         bits instead of 16 bits in the code1 and code2 of each composition
24174         rule.
24175         (uc_composition): Update for Unicode 5.2.0.
24176         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24177         * lib/uninorm/decomposition-table2.h: Likewise.
24178         * lib/uniwbrk/wbrkprop.h: Likewise.
24179         * tests/unicase/test-cased.c: Likewise.
24180         * tests/unicase/test-ignorable.c: Likewise.
24181         * tests/unicase/test-uc_tolower.c: Likewise.
24182         * tests/unicase/test-uc_totitle.c: Likewise.
24183         * tests/unicase/test-uc_toupper.c: Likewise.
24184         * tests/unictype/test-categ_C.c: Likewise.
24185         * tests/unictype/test-categ_Cf.c: Likewise.
24186         * tests/unictype/test-categ_Cn.c: Likewise.
24187         * tests/unictype/test-categ_L.c: Likewise.
24188         * tests/unictype/test-categ_Ll.c: Likewise.
24189         * tests/unictype/test-categ_Lm.c: Likewise.
24190         * tests/unictype/test-categ_Lo.c: Likewise.
24191         * tests/unictype/test-categ_Lu.c: Likewise.
24192         * tests/unictype/test-categ_M.c: Likewise.
24193         * tests/unictype/test-categ_Mc.c: Likewise.
24194         * tests/unictype/test-categ_Mn.c: Likewise.
24195         * tests/unictype/test-categ_N.c: Likewise.
24196         * tests/unictype/test-categ_Nd.c: Likewise.
24197         * tests/unictype/test-categ_Nl.c: Likewise.
24198         * tests/unictype/test-categ_No.c: Likewise.
24199         * tests/unictype/test-categ_P.c: Likewise.
24200         * tests/unictype/test-categ_Pd.c: Likewise.
24201         * tests/unictype/test-categ_Po.c: Likewise.
24202         * tests/unictype/test-categ_S.c: Likewise.
24203         * tests/unictype/test-categ_Sc.c: Likewise.
24204         * tests/unictype/test-categ_So.c: Likewise.
24205         * tests/unictype/test-ctype_alnum.c: Likewise.
24206         * tests/unictype/test-ctype_alpha.c: Likewise.
24207         * tests/unictype/test-ctype_graph.c: Likewise.
24208         * tests/unictype/test-ctype_lower.c: Likewise.
24209         * tests/unictype/test-ctype_print.c: Likewise.
24210         * tests/unictype/test-ctype_punct.c: Likewise.
24211         * tests/unictype/test-ctype_upper.c: Likewise.
24212         * tests/unictype/test-decdigit.h: Likewise.
24213         * tests/unictype/test-digit.h: Likewise.
24214         * tests/unictype/test-numeric.h: Likewise.
24215         * tests/unictype/test-pr_alphabetic.c: Likewise.
24216         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24217         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24218         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24219         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24220         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24221         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24222         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24223         * tests/unictype/test-pr_combining.c: Likewise.
24224         * tests/unictype/test-pr_composite.c: Likewise.
24225         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24226         * tests/unictype/test-pr_dash.c: Likewise.
24227         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24228         * tests/unictype/test-pr_deprecated.c: Likewise.
24229         * tests/unictype/test-pr_diacritic.c: Likewise.
24230         * tests/unictype/test-pr_extender.c: Likewise.
24231         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24232         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24233         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24234         * tests/unictype/test-pr_id_continue.c: Likewise.
24235         * tests/unictype/test-pr_id_start.c: Likewise.
24236         * tests/unictype/test-pr_ideographic.c: Likewise.
24237         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24238         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24239         * tests/unictype/test-pr_lowercase.c: Likewise.
24240         * tests/unictype/test-pr_numeric.c: Likewise.
24241         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24242         * tests/unictype/test-pr_punctuation.c: Likewise.
24243         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24244         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24245         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24246         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24247         * tests/unictype/test-pr_uppercase.c: Likewise.
24248         * tests/unictype/test-pr_xid_continue.c: Likewise.
24249         * tests/unictype/test-pr_xid_start.c: Likewise.
24250         * tests/unictype/test-pr_zero_width.c: Likewise.
24251         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24252         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24253         changed behaviour: line breaking is now disallowed between a letter
24254         or '=' and '('.
24255         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24256         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24257         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24258         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24259         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24260         lib/uniwidth/width.c.
24261         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24262         without comments, but with the original copyright notice.
24263         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24264         changes.
24265         * lib/unictype/categ_Cc.h: Likewise.
24266         * lib/unictype/categ_Co.h: Likewise.
24267         * lib/unictype/categ_Cs.h: Likewise.
24268         * lib/unictype/categ_Lt.h: Likewise.
24269         * lib/unictype/categ_Me.h: Likewise.
24270         * lib/unictype/categ_Pc.h: Likewise.
24271         * lib/unictype/categ_Pe.h: Likewise.
24272         * lib/unictype/categ_Pf.h: Likewise.
24273         * lib/unictype/categ_Pi.h: Likewise.
24274         * lib/unictype/categ_Ps.h: Likewise.
24275         * lib/unictype/categ_Sk.h: Likewise.
24276         * lib/unictype/categ_Sm.h: Likewise.
24277         * lib/unictype/categ_Z.h: Likewise.
24278         * lib/unictype/categ_Zl.h: Likewise.
24279         * lib/unictype/categ_Zp.h: Likewise.
24280         * lib/unictype/categ_Zs.h: Likewise.
24281         * lib/unictype/ctype_blank.h: Likewise.
24282         * lib/unictype/ctype_cntrl.h: Likewise.
24283         * lib/unictype/ctype_digit.h: Likewise.
24284         * lib/unictype/ctype_space.h: Likewise.
24285         * lib/unictype/ctype_xdigit.h: Likewise.
24286         * lib/unictype/mirror.h: Likewise.
24287         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24288         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24289         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24290         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24291         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24292         * lib/unictype/pr_bidi_control.h: Likewise.
24293         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24294         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24295         * lib/unictype/pr_bidi_pdf.h: Likewise.
24296         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24297         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24298         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24299         * lib/unictype/pr_format_control.h: Likewise.
24300         * lib/unictype/pr_hex_digit.h: Likewise.
24301         * lib/unictype/pr_hyphen.h: Likewise.
24302         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24303         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24304         * lib/unictype/pr_iso_control.h: Likewise.
24305         * lib/unictype/pr_join_control.h: Likewise.
24306         * lib/unictype/pr_left_of_pair.h: Likewise.
24307         * lib/unictype/pr_line_separator.h: Likewise.
24308         * lib/unictype/pr_math.h: Likewise.
24309         * lib/unictype/pr_non_break.h: Likewise.
24310         * lib/unictype/pr_not_a_character.h: Likewise.
24311         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24312         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24313         * lib/unictype/pr_other_id_continue.h: Likewise.
24314         * lib/unictype/pr_other_id_start.h: Likewise.
24315         * lib/unictype/pr_other_lowercase.h: Likewise.
24316         * lib/unictype/pr_other_math.h: Likewise.
24317         * lib/unictype/pr_other_uppercase.h: Likewise.
24318         * lib/unictype/pr_paired_punctuation.h: Likewise.
24319         * lib/unictype/pr_paragraph_separator.h: Likewise.
24320         * lib/unictype/pr_pattern_syntax.h: Likewise.
24321         * lib/unictype/pr_pattern_white_space.h: Likewise.
24322         * lib/unictype/pr_private_use.h: Likewise.
24323         * lib/unictype/pr_quotation_mark.h: Likewise.
24324         * lib/unictype/pr_radical.h: Likewise.
24325         * lib/unictype/pr_soft_dotted.h: Likewise.
24326         * lib/unictype/pr_space.h: Likewise.
24327         * lib/unictype/pr_titlecase.h: Likewise.
24328         * lib/unictype/pr_variation_selector.h: Likewise.
24329         * lib/unictype/pr_white_space.h: Likewise.
24330         * lib/unictype/sy_c_ident.h: Likewise.
24331         * lib/unictype/sy_c_whitespace.h: Likewise.
24332         * lib/unictype/sy_java_whitespace.h: Likewise.
24333         * modules/uni*/*: Bump version number of expected libunistring version.
24334         Reported by Simon Josefsson.
24335
24336 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24337
24338         useless-if-before-free: fix typo in --help and make the internal,
24339         automatic version date update process work once again.
24340         --help output contained a NUL character instead of the
24341         backslash-zero that was intended.  Also, the "must lie within
24342         the first 8 lines" line is on line 9, and hence not getting
24343         automatically updated.
24344         * build-aux/useless-if-before-free: Fix the former by adding a
24345         backslash, and the latter by condensing the three lines of what-it-does
24346         to a single line, leaving one line of slack for the future.
24347
24348 2011-01-09  Bruno Haible  <bruno@clisp.org>
24349
24350         uniwidth/width: Fix width of U+1D173..U+1D17A.
24351         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24352         symbolic_width, output_width_property_test): New functions.
24353         (main): Invoke output_nonspacing_property, output_width_property_test.
24354         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24355         U+1D173..U+1D17A.
24356         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24357         1.
24358         * modules/uniwidth/*: Bump version number of expected libunistring
24359         version.
24360         * modules/unilbrk/*: Likewise.
24361
24362 2011-01-08  Bruno Haible  <bruno@clisp.org>
24363
24364         uninorm tests: Preserve copyright of Unicode data file.
24365         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24366         Mention modifications.
24367
24368 2011-01-08  Bruno Haible  <bruno@clisp.org>
24369
24370         gen-uni-tables: Prepare for Unicode 5.2.0.
24371         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24372         (debug_output_lbp, output_lbp): Update.
24373
24374 2011-01-08  Bruno Haible  <bruno@clisp.org>
24375
24376         unilbrk: Clarify gen-uni-tables.c code.
24377         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24378         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24379         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24380
24381 2011-01-07  Bruno Haible  <bruno@clisp.org>
24382
24383         strtod: Restore errno when successfully parsing Infinity or NaN.
24384         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24385         restore the original errno.
24386
24387 2011-01-07  Bruno Haible  <bruno@clisp.org>
24388
24389         remove test: Avoid failure on HP-UX 11.
24390         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24391
24392 2011-01-07  Bruno Haible  <bruno@clisp.org>
24393
24394         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24395         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24396         error code.
24397
24398 2011-01-07  Pádraig Brady <P@draigBrady.com>
24399
24400         ignore-value: fixup comments, and add Eric Blake
24401         as an author since he rewrote the macros.
24402         * lib/ignore-value.h (ignore_value):  State that
24403         we now support aggregates.  Also specify exactly
24404         when the GCC warn_unused_result feature was added.
24405
24406 2011-01-06  Eric Blake  <eblake@redhat.com>
24407
24408         ignore-value: support aggregate types
24409         * lib/ignore-value.h (ignore_value): Provide separate gcc
24410         definition.
24411         * modules/ignore-value-tests: New test module.
24412         * tests/test-ignore-value.c: New test.
24413
24414         maint.mk: improve sc_prohibit_strcmp regex
24415         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24416         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24417         definition of STRNEQ.
24418
24419         signal: work around Haiku issue with SIGBUS
24420         * lib/siglist.h: Add comment.
24421         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24422         strsignal's favoring of SIGSEGV.
24423         * tests/test-signal.c (main): Avoid test failure.
24424         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24425         Reported by Scott McCreary.
24426
24427         maint.mk: add pre-release check to ensure submodule commits are public
24428         * top/maint.mk (public-submodule-commit): New rule.
24429         (submodule-checks): New variable.
24430         (alpha beta stable): Depend on the variable.
24431
24432 2011-01-05  Pádraig Brady <P@draigBrady.com>
24433         and Jim Meyering  <meyering@redhat.com>
24434
24435         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24436         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24437         (ATTRIBUTE_DEPRECATED): Define.
24438         (_ignore_case): New function.
24439         (ignore_value): New macro, to replace the old function.
24440         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24441         * modules/ignore-value (Depends-on): Add stdint.
24442
24443 2011-01-04  Eric Blake  <eblake@redhat.com>
24444
24445         doc: regenerate INSTALL
24446         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24447         @firstparagraphindent support, now that autoconf dropped it.
24448         (INSTALL_PRELUDE): Reinstate old macro.
24449         * doc/install.texi: Resync from autoconf.
24450         * doc/INSTALL: Reflect recent autoconf update.
24451         * doc/INSTALL.ISO: Likewise.
24452         * doc/INSTALL.UTF-8: Likewise.
24453         Reported by Karl Berry.
24454
24455 2011-01-04  Bruce Korb  <address@hidden>
24456
24457         git-version-gen: avoid a sub-shell
24458         * build-aux/git-version-gen: Redirect stderr in `...` via
24459         "exec 2>...", rather than via an added sub-shell.
24460
24461 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24462
24463         git-version-gen: use (...) rather than sh -c '...'
24464         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24465         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24466
24467 2011-01-03  Jim Meyering  <meyering@redhat.com>
24468
24469         git-version-gen: convert leading TABs to spaces
24470         * build-aux/git-version-gen: Expand leading TABs.
24471
24472         git-version-gen: handle failed "git rev-list"
24473         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24474         from git and proceeding as if it had succeeded but printed no SHA1
24475         checksums, suppress the diagnostic and handle the failure.
24476         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24477
24478         git-version-gen: include command name in one more diagnostic
24479         * build-aux/git-version-gen: When the required .tarball-version file
24480         was missing or unreadable, you might see the diagnostic from "cat",
24481         but no trace of the name of the invoking script.  Now, you still see
24482         the diagnostic from cat, but also get one from "git-version-gen: ".
24483         Inspired by a patch from Bruce Korb.
24484
24485         update-copyright: adjust test to match changed code
24486         * tests/test-update-copyright.sh: Change test's expected output
24487         to match new actual output.
24488
24489 2011-01-02  Bruno Haible  <bruno@clisp.org>
24490
24491         getlogin_r: Avoid test failure on HP-UX 11.
24492         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24493         ERANGE when the second argument is zero.
24494         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24495         portability problem.
24496
24497 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24498
24499         * build-aux/update-copyright: doc Simon's changes
24500
24501 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24502
24503         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24504         environment variable.
24505
24506 2011-01-02  Bruno Haible  <bruno@clisp.org>
24507
24508         unigbrk: Avoid gcc warnings.
24509         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24510         unused variable.
24511         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24512         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24513         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24514         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24515         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24516         Change type of first argument to 'const char *'.
24517         (main): Remove unused variable.
24518         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24519         type of first argument to 'const char *'.
24520         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24521         Likewise.
24522         (main): Change type of variable 's'.
24523         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24524         to 'int'.
24525
24526 2011-01-02  Bruno Haible  <bruno@clisp.org>
24527
24528         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24529         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24530         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24531         bug.
24532         * lib/pwrite.c: Undo 2010-12-31 patch.
24533         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24534
24535 2011-01-02  Bruno Haible  <bruno@clisp.org>
24536
24537         pread: Fix test whether it works.
24538         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24539
24540 2011-01-02  Bruno Haible  <bruno@clisp.org>
24541
24542         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24543         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24544         ends in "6". Don't require a specific month name. Try also the locale
24545         names found on HP-UX 11 and Solaris 7.
24546
24547 2011-01-02  Bruno Haible  <bruno@clisp.org>
24548
24549         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24550         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24551         C linkage.
24552         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24553
24554 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24555
24556         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24557         for consistency, since the "cluster" term is not used elsewhere.
24558         * lib/unigbrk.in.h: Update name.
24559         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24560         * lib/unigbrk/u16-grapheme-next.c: Update name.
24561         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24562         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24563         * lib/unigbrk/u32-grapheme-next.c: Update name.
24564         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24565         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24566         * lib/unigbrk/u8-grapheme-next.c: Update name.
24567         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24568         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24569         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24570         Suggested by Bruno Haible.
24571
24572 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24573
24574         Remove module 'u8-grapheme-len' as too redundant with
24575         'u8-grapheme-next'.
24576         * modules/unigbrk/u8-grapheme-len: Delete file.
24577         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24578         * lib/unigbrk.in.h: Remove prototype for deleted function.
24579         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24580         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24581
24582         Remove module 'u16-grapheme-len' as too redundant with
24583         'u16-grapheme-next'.
24584         * modules/unigbrk/u16-grapheme-len: Delete file.
24585         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24586         * lib/unigbrk.in.h: Remove prototype for deleted function.
24587         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24588         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24589
24590         Remove module 'u32-grapheme-len' as too redundant with
24591         'u32-grapheme-next'.
24592         * modules/unigbrk/u32-grapheme-len: Delete file.
24593         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24594         * lib/unigbrk.in.h: Remove prototype for deleted function.
24595         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24596         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24597
24598         Suggested by Bruno Haible.
24599
24600 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24601
24602         * unigbrk.in.h: Fix typo: "ben" => "been".
24603         Reported by Bruno Haible.
24604
24605 2011-01-01  Jim Meyering  <meyering@redhat.com>
24606
24607         maint: update almost all copyright ranges to include 2011
24608         Run the new "make update-copyright" rule.
24609
24610 2011-01-01  Jim Meyering  <meyering@redhat.com>
24611
24612         maint: update-copyright: exempt doc/INSTALL*
24613         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24614         since they are generated.  Suggested by Bruno Haible.
24615
24616 2011-01-01  Jim Meyering  <meyering@redhat.com>
24617
24618         maint: refine the update-copyright rule
24619         * Makefile (update-copyright): Also exclude any file that includes
24620         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24621         code that merely generates the comment.
24622
24623 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24624
24625         New module 'u8-grapheme-len'.
24626         * modules/unigbrk/u8-grapheme-len: New file.
24627         * modules/unigbrk/u8-grapheme-len-tests: New file.
24628         * lib/unigbrk.in.h: Add prototype for new function.
24629         * lib/unigbrk/u8-grapheme-len.c: New file.
24630         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24631
24632         New module 'u16-grapheme-len'.
24633         * modules/unigbrk/u16-grapheme-len: New file.
24634         * modules/unigbrk/u16-grapheme-len-tests: New file.
24635         * lib/unigbrk.in.h: Add prototype for new function.
24636         * lib/unigbrk/u16-grapheme-len.c: New file.
24637         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24638
24639         New module 'u32-grapheme-len'.
24640         * modules/unigbrk/u32-grapheme-len: New file.
24641         * modules/unigbrk/u32-grapheme-len-tests: New file.
24642         * lib/unigbrk.in.h: Add prototype for new function.
24643         * lib/unigbrk/u32-grapheme-len.c: New file.
24644         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24645
24646         New module 'u8-grapheme-next'.
24647         * modules/unigbrk/u8-grapheme-next: New file.
24648         * modules/unigbrk/u8-grapheme-next-tests: New file.
24649         * lib/unigbrk.in.h: Add prototype for new function.
24650         * lib/unigbrk/u8-grapheme-next.c: New file.
24651         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24652
24653         New module 'u16-grapheme-next'.
24654         * modules/unigbrk/u16-grapheme-next: New file.
24655         * modules/unigbrk/u16-grapheme-next-tests: New file.
24656         * lib/unigbrk.in.h: Add prototype for new function.
24657         * lib/unigbrk/u16-grapheme-next.c: New file.
24658         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24659
24660         New module 'u32-grapheme-next'.
24661         * modules/unigbrk/u32-grapheme-next: New file.
24662         * modules/unigbrk/u32-grapheme-next-tests: New file.
24663         * lib/unigbrk.in.h: Add prototype for new function.
24664         * lib/unigbrk/u32-grapheme-next.c: New file.
24665         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24666
24667         New module 'u8-grapheme-prev'.
24668         * modules/unigbrk/u8-grapheme-prev: New file.
24669         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24670         * lib/unigbrk.in.h: Add prototype for new function.
24671         * lib/unigbrk/u8-grapheme-prev.c: New file.
24672         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24673
24674         New module 'u16-grapheme-prev'.
24675         * modules/unigbrk/u16-grapheme-prev: New file.
24676         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24677         * lib/unigbrk.in.h: Add prototype for new function.
24678         * lib/unigbrk/u16-grapheme-prev.c: New file.
24679         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24680
24681         New module 'u32-grapheme-prev'.
24682         * modules/unigbrk/u32-grapheme-prev: New file.
24683         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24684         * lib/unigbrk.in.h: Add prototype for new function.
24685         * lib/unigbrk/u32-grapheme-prev.c: New file.
24686         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24687
24688         New module 'u8-grapheme-breaks'.
24689         * modules/unigbrk/u8-grapheme-breaks: New file.
24690         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24691         * lib/unigbrk.in.h: Add prototype for new function.
24692         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24693         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24694
24695         New module 'u16-grapheme-breaks'.
24696         * modules/unigbrk/u16-grapheme-breaks: New file.
24697         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24698         * lib/unigbrk.in.h: Add prototype for new function.
24699         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24700         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24701
24702         New module 'u32-grapheme-breaks'.
24703         * modules/unigbrk/u32-grapheme-breaks: New file.
24704         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24705         * lib/unigbrk.in.h: Add prototype for new function.
24706         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24707         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24708
24709         New module 'ulc-grapheme-breaks'.
24710         * modules/unigbrk/ulc-grapheme-breaks: New file.
24711         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24712         * m4/locale-ar.m4: New file.
24713         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24714         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24715         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24716
24717 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24718
24719         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24720         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24721         modified how this file was generated before I initially submitted
24722         the module, but failed to regenerate it.  This meant that several
24723         of the level2 entries were wrong.
24724         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24725         Remove the division-by-2 that is folded into the table now that
24726         gbrkprop.h has been regenerated properly.  Now -1 entries are
24727         handled correctly.
24728
24729         New module 'unigbrk/uc-gbrk-prop-tests'.
24730         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24731         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24732         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24733         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24734
24735 2011-01-01  Bruno Haible  <bruno@clisp.org>
24736
24737         Avoid use of hexadecimal escapes.
24738         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24739         instead of hexadecimal escapes.
24740
24741 2011-01-01  Jim Meyering  <meyering@redhat.com>
24742
24743         maint: new rule to update copyright year ranges
24744         * Makefile (update-copyright): New rule.
24745
24746         maint: indent with TABs in Makefile
24747         * Makefile: Expand leading sequences of spaces to TABs
24748
24749         version-etc: update the copyright year it reports
24750         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24751
24752 2010-12-31  Bruno Haible  <bruno@clisp.org>
24753
24754         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24755         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24756         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24757         zero.
24758
24759 2010-12-31  Bruno Haible  <bruno@clisp.org>
24760
24761         pwrite: Work around HP-UX 11.11 bug.
24762         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24763         works and set REPLACE_PWRITE if not.
24764         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24765         function.
24766         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24767
24768 2010-12-31  Bruno Haible  <bruno@clisp.org>
24769
24770         pread: Work around HP-UX 11 bugs.
24771         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24772         and set REPLACE_PREAD if not.
24773         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24774
24775 2010-12-31  Eric Blake  <eblake@redhat.com>
24776
24777         nl_langinfo: fix YESEXPR on Irix 6.5
24778         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24779         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24780         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24781         it.
24782
24783 2010-12-31  Bruno Haible  <bruno@clisp.org>
24784
24785         iconv: Document HP-UX 11 bug.
24786         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24787
24788 2010-12-31  Bruno Haible  <bruno@clisp.org>
24789
24790         ldexpl: Fix link error on HP-UX 11.
24791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24792         LDEXPL_LIBM, using $ISNANL_LIBM.
24793
24794 2010-12-31  Eric Blake  <eblake@redhat.com>
24795
24796         ftello: avoid compilation failure with SunStudio c89
24797         * lib/ftello.c (ftello): Use lseek, not llseek.
24798
24799         tests: avoid failing coreutils tests on cygwin
24800         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24801         (create_exe_shims_): Return 0 when skipping.
24802
24803 2010-12-31  Bruno Haible  <bruno@clisp.org>
24804
24805         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24806         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24807
24808 2010-12-31  Bruno Haible  <bruno@clisp.org>
24809
24810         waitpid: Fix link error in C++ mode.
24811         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24812
24813 2010-12-31  Bruno Haible  <bruno@clisp.org>
24814
24815         isnan: Use GCC built-ins when possible.
24816         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24817         __builtin_isnan.
24818         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24819         (isnan): Define using GCC built-ins for GCC >= 4.0.
24820
24821 2010-12-31  Bruno Haible  <bruno@clisp.org>
24822
24823         isnand: Fix mistake.
24824         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24825         __builtin_isnand.
24826
24827 2010-12-31  Bruno Haible  <bruno@clisp.org>
24828
24829         open: Avoid C++ error on HP-UX 11.
24830         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24831
24832 2010-12-31  Bruno Haible  <bruno@clisp.org>
24833
24834         time_r: Add missing declarations on HP-UX 11.
24835         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24836         instead of HAVE_LOCALTIME_R.
24837         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24838         HAVE_LOCALTIME_R always.
24839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24840         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24841         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24842         HAVE_LOCALTIME_R.
24843         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24844         * doc/posix-functions/localtime_r.texi: Likewise.
24845
24846 2010-12-29  Eric Blake  <eblake@redhat.com>
24847
24848         mountlist: tweak previous commit
24849         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24850         Reported by Paul Eggert.
24851
24852         mountlist: fix local drive detection on cygwin
24853         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24854         that works for cygwin.
24855
24856 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         ftoastr, snprintf: ftoastr + snprintf module
24859         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24860         since the snprintf module now should be good enough here.
24861         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24862         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24863         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24864         GNULIB_SNPRINTF only for the test directory, and the latter
24865         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24866         seems to suffice by itself.
24867
24868 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24869
24870         alloca: one step towards thread-safety
24871         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24872         need for a static variable.  All callers changed.  This does not
24873         make the alloca replacement thread-safe, but it's one step.
24874
24875         tests: minor indenting change
24876         * tests/init.sh: Sync from coreutils housekeeping patch
24877         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24878         to keep lines within 80 columns.
24879
24880 2010-12-28  Jim Meyering  <meyering@redhat.com>
24881
24882         regex: don't infloop on persistent failing calloc
24883         * lib/regexec.c (build_trtable): Return failure indication upon
24884         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24885         In glibc, this was fixed for version 2.13:
24886         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24887
24888 2010-12-28  Bruno Haible  <bruno@clisp.org>
24889             Paul Eggert <eggert@cs.ucla.edu>
24890
24891         linkat: Make implementation robust against system behaviour variations.
24892         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24893         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24894         way, and to -2 if it needs a generic runtime test.
24895         * lib/linkat.c (solaris_optimized_link_immediate,
24896         solaris_optimized_link_follow): New functions.
24897         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24898         (check_same_link): Use it.
24899
24900 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24901
24902         New module 'unigbrk/base'.
24903         * modules/unigbrk/base: New file.
24904         * lib/unigbrk.in.h: New file.
24905
24906         New module 'unigbrk/uc-gbrk-prop'.
24907         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24908         * modules/unigbrk/uc-gbrk-prop: New file.
24909         * lib/unigbrk/gbrkprop.h: New file.
24910         * lib/unigbrk/uc-gbrk-prop.c: New file.
24911
24912         New module 'unigbrk/uc-is-grapheme-break'.
24913         * modules/unigbrk/uc-is-grapheme-break: New file.
24914         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24915         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24916         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24917         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24918         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24919
24920         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24921
24922 2010-12-27  Bruno Haible  <bruno@clisp.org>
24923
24924         linkat test: Avoid failure on Solaris 11 2010-11.
24925         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24926
24927 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24928
24929         utimens: work around glibc rounding bug on more platforms
24930         * lib/utimens.c (fdutimens): Work around rounding bug even if
24931         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24933
24934 2010-12-27  Bruno Haible  <bruno@clisp.org>
24935
24936         select tests: Improve comments.
24937         * tests/test-select.c (do_select): Add comments.
24938
24939 2010-12-27  Bruno Haible  <bruno@clisp.org>
24940
24941         select tests: Safer way of handling timeout.
24942         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24943         at every invocation.
24944
24945 2010-12-27  Bruno Haible  <bruno@clisp.org>
24946
24947         select tests: Use 'bool' where appropriate.
24948         * tests/test-select.c (connect_to_socket): Change argument type to
24949         'bool'.
24950
24951 2010-12-27  Bruno Haible  <bruno@clisp.org>
24952
24953         select tests: Use existing modules.
24954         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24955         (configure.ac): Don't test for unistd.h.
24956         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24957         declared in <unistd.h>.
24958
24959 2010-12-27  Bruno Haible  <bruno@clisp.org>
24960
24961         mbrtowc: Work around a Solaris 7 bug.
24962         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24963         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24964         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24965         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24966         MBRTOWC_NULL_ARG1_BUG.
24967         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24968         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24969         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24970         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24971
24972 2010-12-27  Jim Meyering  <meyering@redhat.com>
24973
24974         read-file.c: tweak syntax
24975         * lib/read-file.c (fread_file): Remove space after "*" in function
24976         definitions.
24977
24978 2010-12-27  Bruno Haible  <bruno@clisp.org>
24979
24980         times test: Avoid gcc warnings on OSF/1.
24981         * tests/test-times.c (main): Cast printf arguments from clock_t to
24982         'long int'.
24983
24984 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24985
24986         utimens: work around glibc rounding bug on older Linux kernels
24987         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24988         on Linux with a glibc whose utimes might not work, then work
24989         around a longstanding glibc bug involving rounding rather than
24990         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24991         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24992
24993 2010-12-26  Bruno Haible  <bruno@clisp.org>
24994
24995         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24996         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24997         _GL_CXXALIAS_SYS.
24998         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24999
25000 2010-12-26  Bruno Haible  <bruno@clisp.org>
25001
25002         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25003         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25005         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25006         looking for the declaration.
25007         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25008         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25009         problem.
25010         * doc/posix-functions/inet_pton.texi: Likewise.
25011
25012 2010-12-26  Bruno Haible  <bruno@clisp.org>
25013
25014         arpa_inet: Use the common idioms with C++ support.
25015         * lib/arpa_inet.in.h: Include c++defs.h.
25016         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25017         support.
25018         * modules/arpa_inet (Depends-on): Add c++defs.
25019         (Makefile.am): Substitute the contents of c++defs.h.
25020         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25021         * modules/arpa_inet-c++-tests: New file.
25022         * tests/test-arpa_inet-c++.cc: New file.
25023
25024 2010-12-25  Bruno Haible  <bruno@clisp.org>
25025
25026         Fix more C++ link errors on Solaris 8.
25027         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25028         $(LIB_EACCESS).
25029         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25030         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25031         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25032         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25033         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25034
25035 2010-12-25  Bruno Haible  <bruno@clisp.org>
25036
25037         printf-posix: Fix link error when a non-GCC compiler is used.
25038         * lib/stdio.in.h (printf): When not using GCC, override printf
25039         correctly.
25040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25041
25042 2010-12-25  Bruno Haible  <bruno@clisp.org>
25043
25044         strerror_r-posix: Update doc.
25045         * doc/posix-functions/strerror_r.texi: Update doc about the return
25046         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25047
25048 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25049
25050         utimens: simplify the logic of the previous change
25051         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25052         This should not affect whether the test succeeds or fails.
25053
25054         utimens: configure better on hosts with NFS clock skew
25055         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25056         uses the clock of the local host.  It might use the clock of the
25057         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25059
25060 2010-12-25  Bruno Haible  <bruno@clisp.org>
25061
25062         ptsname test: Avoid failure on Solaris.
25063         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25064         open a pseudo-terminal; don't use BSD-style ptys.
25065         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25066
25067 2010-12-25  Bruno Haible  <bruno@clisp.org>
25068
25069         ptsname: Avoid ERANGE failure on some systems.
25070         * lib/ptsname.c (buffer): Increase size.
25071
25072 2010-12-25  Bruno Haible  <bruno@clisp.org>
25073
25074         rename, renameat: Avoid test failures at NFS mounted locations.
25075         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25076         so that subsequent mkdir calls succeed.
25077
25078 2010-12-25  Bruno Haible  <bruno@clisp.org>
25079
25080         iswblank: Fix C++ link error on Solaris 8.
25081         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25082         _GL_FUNCDECL_SYS.
25083
25084 2010-12-25  Bruno Haible  <bruno@clisp.org>
25085
25086         unistd: Fix C++ link error on Solaris 8.
25087         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25088
25089 2010-12-25  Bruno Haible  <bruno@clisp.org>
25090
25091         readlink doc: Mention an old glibc bug.
25092         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25093
25094 2010-12-25  Bruno Haible  <bruno@clisp.org>
25095
25096         fcntl-h: Fix for use of C++ on glibc systems.
25097         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25098         also on glibc systems in C++ mode.
25099         Reported by Gary V. Vaughan <gary@gnu.org>.
25100
25101 2010-12-25  Bruno Haible  <bruno@clisp.org>
25102
25103         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25104         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25105
25106 2010-12-25  Bruno Haible  <bruno@clisp.org>
25107
25108         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25109         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25110         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25111         test whether truncl works according to ISO C 99 with IEC 60559.
25112         * m4/truncl-ieee.m4: New file.
25113         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25114         m4/signbit.m4.
25115         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25116
25117 2010-12-25  Bruno Haible  <bruno@clisp.org>
25118
25119         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25120         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25121         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25122         test whether ceill works according to ISO C 99 with IEC 60559.
25123         * m4/ceill-ieee.m4: New file.
25124         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25125         m4/signbit.m4.
25126         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25127
25128 2010-12-25  Bruno Haible  <bruno@clisp.org>
25129
25130         Ensure all prerequisites of <wchar.h> are included.
25131         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25132         before <wchar.h>.
25133         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25134         gl_MBRLEN_NUL_RETVAL): Likewise.
25135         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25136         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25137         AC_FUNC_MBRTOWC): Likewise.
25138         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25139         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25141         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25142         Likewise.
25143         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25144         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25145         (gl_WCHAR_H): Improve comments.
25146         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25147
25148 2010-12-25  Bruno Haible  <bruno@clisp.org>
25149
25150         strtok_r: Fix C syntax error in autoconf macro.
25151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25152         characters in test program.
25153
25154 2010-12-24  Bruno Haible  <bruno@clisp.org>
25155
25156         ceil, trunc, round: Fix gcc warnings.
25157         * lib/ceil.c (MIN): Undefine before redefining.
25158         * lib/trunc.c (MIN): Likewise.
25159         * lib/round.c (MIN): Likewise.
25160         Include <math.h> first.
25161
25162 2010-12-24  Bruno Haible  <bruno@clisp.org>
25163
25164         select tests: Avoid failures on OSF/1 5.1.
25165         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25166         failure of closing the last socket; it may fail with ECONNRESET.
25167
25168 2010-12-24  Eric Blake  <eblake@redhat.com>
25169
25170         stdint: avoid HP-UX 10.20 preprocessor bug
25171         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25172         than #if.
25173         * tests/test-floor2.c (main): Likewise.
25174         Reported by Peter O'Gorman.
25175
25176         pipe: make obsoletion transition easier
25177         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25178         * modules/pipe (Files): Include revived file.
25179         (Include): Drop reference, to mirror getdate's behavior.
25180
25181 2010-12-24  Bruno Haible  <bruno@clisp.org>
25182
25183         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25184         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25185         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25187
25188 2010-12-24  Bruno Haible  <bruno@clisp.org>
25189
25190         gethostname: Ensure declaration on NonStop Kernel.
25191         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25193
25194 2010-12-24  Bruno Haible  <bruno@clisp.org>
25195
25196         sys_select: Ensure all necessary types on NonStop Kernel.
25197         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25198         include <sys/time.h>.
25199         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25200         NonStop Kernel.
25201         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25202
25203 2010-12-24  Bruno Haible  <bruno@clisp.org>
25204
25205         sys_select: Remove unneeded include.
25206         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25207         have <sys/select.h>.
25208
25209 2010-12-24  Bruno Haible  <bruno@clisp.org>
25210
25211         gethostname: Provide a fallback for HOST_NAME_MAX.
25212         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25213         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25214         instead.
25215         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25216
25217 2010-12-24  Bruno Haible  <bruno@clisp.org>
25218
25219         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25220         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25221         (SA_RESTART): Likewise.
25222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25223
25224 2010-12-24  Bruno Haible  <bruno@clisp.org>
25225
25226         signal: Define NSIG.
25227         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25228         * tests/test-signal.c (nsig): New variable.
25229         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25230
25231 2010-12-24  Bruno Haible  <bruno@clisp.org>
25232
25233         rename, renameat: Avoid test failures on OSF/1 5.1.
25234         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25235         alternative error codes.
25236         * tests/test-renameat.c (main): Likewise.
25237
25238 2010-12-24  Bruno Haible  <bruno@clisp.org>
25239
25240         *printf: Detect large precisions bug on Solaris 10/SPARC.
25241         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25242         by Paul Eggert.
25243         * tests/test-snprintf-posix.h (test_function): Add this test code here
25244         too.
25245         * tests/test-sprintf-posix.h (test_function): Likewise.
25246         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25247         * tests/test-vasprintf-posix.c (test_function): Likewise.
25248         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25249         around by gnulib.
25250         * doc/posix-functions/printf.texi: Likewise.
25251         * doc/posix-functions/snprintf.texi: Likewise.
25252         * doc/posix-functions/sprintf.texi: Likewise.
25253         * doc/posix-functions/vfprintf.texi: Likewise.
25254         * doc/posix-functions/vprintf.texi: Likewise.
25255         * doc/posix-functions/vsnprintf.texi: Likewise.
25256         * doc/posix-functions/vsprintf.texi: Likewise.
25257         * doc/posix-functions/dprintf.texi: Undo last commit.
25258         * doc/posix-functions/vdprintf.texi: Likewise.
25259
25260 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25261
25262         tests: port test-fdutimensat.c to Solaris 8
25263         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25264         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25265         On Solaris 8, it fails with errno == ENOSYS, because there is no
25266         futimens (so it can't use the fd), and there is no lutimens (so it
25267         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25268
25269         vsnprintf: make more consistent with snprintf; doc fixes
25270
25271         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25272         the byte count return problem was promoted from the snprintf-posix
25273         to the snprintf module.
25274         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25275         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25276         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25277         * tests/test-snprintf.c (main): Check the byte count returned.
25278         * tests/test-vsnprintf.c (main): Likewise.
25279
25280 2010-12-23  Eric Blake  <eblake@redhat.com>
25281
25282         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25283         * modules/sigpipe (License): Relax license.
25284
25285 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25286
25287         doc: document Solaris printf bug with large float precisions
25288         * doc/posix-functions/dprintf.texi (dprintf):
25289         * doc/posix-functions/fprintf.texi (fprintf):
25290         * doc/posix-functions/printf.texi (printf):
25291         * doc/posix-functions/snprintf.texi (snprintf):
25292         * doc/posix-functions/sprintf.texi (sprintf):
25293         * doc/posix-functions/vdprintf.texi (vdprintf):
25294         * doc/posix-functions/vfprintf.texi (vfprintf):
25295         * doc/posix-functions/vprintf.texi (vprintf):
25296         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25297         * doc/posix-functions/vsprintf.texi (vsprintf):
25298         Mention that these functions mishandle large floating point
25299         precisions on Solaris 10.  The same bug is also present in Solaris
25300         8, and I assume earlier.  This causes "cd gnulib-tests; make
25301         check" to fail on Solaris 8 (and I assume, later) when building
25302         the latest coreutils, in test-vasprintf-posix's call to
25303         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25304         the wide flavors (e.g., wprintf) so this patch just updates the
25305         documentation for the narrow ones.
25306
25307         test-posixtm.c: add two tests
25308         * tests/test-posixtm.c: Add two tests, to highlight the
25309         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25310         around this bug; this is merely to document it.
25311
25312 2010-12-22  Bruno Haible  <bruno@clisp.org>
25313
25314         getlogin_r: Work around portability problem on OSF/1.
25315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25316         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25317         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25318         test for a truncated result.
25319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25320         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25321         * modules/getlogin_r (Depends-on): Add memchr.
25322         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25323
25324 2010-12-22  Bruno Haible  <bruno@clisp.org>
25325
25326         ptsname: Avoid test failure on OSF/1 5.1.
25327         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25328         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25329         (same_slave): New function.
25330         (main): Use it to compare ptsname's result with the expected file name.
25331
25332 2010-12-22  Bruno Haible  <bruno@clisp.org>
25333
25334         Port extended stdio modules to HP NonStop Kernel.
25335         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25336         macros.
25337         * lib/fbufmode.c: Update comments.
25338         * lib/fflush.c: Likewise.
25339         * lib/fpurge.c: Likewise.
25340         * lib/freadable.c: Likewise.
25341         * lib/freadahead.c: Likewise.
25342         * lib/freading.c: Likewise.
25343         * lib/freadptr.c: Likewise.
25344         * lib/freadseek.c: Likewise.
25345         * lib/fseeko.c: Likewise.
25346         * lib/fseterr.c: Likewise.
25347         * lib/fwritable.c: Likewise.
25348         * lib/fwriting.c: Likewise.
25349         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25350
25351 2010-12-22  Bruno Haible  <bruno@clisp.org>
25352
25353         ttyname_r: Work around bug on OSF/1 5.1.
25354         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25355         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25356         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25357         present.
25358         * lib/ttyname_r.c (ttyname_r): Update comments.
25359
25360 2010-12-22  Bruno Haible  <bruno@clisp.org>
25361
25362         round: Implement result sign according to IEEE 754.
25363         * lib/round.c (MIN, MINUS_ZERO): New macros.
25364         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25365         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25366         * tests/test-round-ieee.c (main): Likewise.
25367         * tests/test-roundl-ieee.c (main): Likewise.
25368
25369         trunc: Implement result sign according to IEEE 754.
25370         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25371         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25372         * tests/test-trunc2.c: Include minus-zero.h.
25373         (MINUS_ZERO): New macro.
25374         (trunc_reference): Keep in sync with lib/trunc.c.
25375         * tests/test-truncf2.c: Include minus-zero.h.
25376         (MINUS_ZERO): New macro.
25377         (truncf_reference): Keep in sync with lib/trunc.c.
25378         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25379         * tests/test-trunc-ieee.c (main): Likewise.
25380         * tests/test-truncl-ieee.c (main): Likewise.
25381
25382         ceil: Implement result sign according to IEEE 754.
25383         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25384         (FUNC): Return -0.0 for -1 < x < 0.
25385         * tests/test-ceil2.c: Include minus-zero.h.
25386         (MINUS_ZERO): New macro.
25387         (ceil_reference): Keep in sync with lib/ceil.c.
25388         * tests/test-ceilf2.c: Include minus-zero.h.
25389         (MINUS_ZERO): New macro.
25390         (ceilf_reference): Keep in sync with lib/ceil.c.
25391         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25392         * tests/test-ceil-ieee.c (main): Likewise.
25393         * tests/test-ceill-ieee.c (main): Likewise.
25394
25395         floor: Implement result sign according to IEEE 754.
25396         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25397         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25398         * tests/test-floorf2.c (floorf_reference): Likewise.
25399         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25400         * tests/test-floor-ieee.c (main): Likewise.
25401         * tests/test-floorl-ieee.c (main): Likewise.
25402
25403 2010-12-22  Bruno Haible  <bruno@clisp.org>
25404
25405         getaddrinfo: Update doc.
25406         * doc/posix-functions/gai_strerror.texi: Return type is also different
25407         on AIX and HP-UX.
25408
25409 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25410
25411         getaddrinfo, inet_ntop: Update doc for Solaris.
25412         * doc/posix-functions/gai_strerror.texi: Return type is also an
25413         issue on Solaris 9 and earlier.
25414         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25415         on Solaris 10 and earlier.
25416
25417 2010-12-21  Bruno Haible  <bruno@clisp.org>
25418
25419         New module 'roundl-ieee'.
25420         * modules/roundl-ieee: New file.
25421         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25422         test whether roundl works according to ISO C 99 with IEC 60559.
25423         * m4/roundl-ieee.m4: New file.
25424         * modules/roundl-ieee-tests: New file.
25425         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25426         * tests/test-roundl.c (main): Remove signbit tests.
25427         * modules/roundl-tests (Depends-on): Remove signbit.
25428         * doc/posix-functions/roundl.texi: Mention the new module.
25429
25430 2010-12-21  Bruno Haible  <bruno@clisp.org>
25431
25432         New module 'truncl-ieee'.
25433         * modules/truncl-ieee: New file.
25434         * modules/truncl-ieee-tests: New file.
25435         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25436         * tests/test-truncl.c (main): Remove signbit tests.
25437         * modules/truncl-tests (Depends-on): Remove signbit.
25438         * doc/posix-functions/truncl.texi: Mention the new module.
25439
25440 2010-12-21  Bruno Haible  <bruno@clisp.org>
25441
25442         New module 'ceill-ieee'.
25443         * modules/ceill-ieee: New file.
25444         * modules/ceill-ieee-tests: New file.
25445         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25446         * tests/test-ceill.c (main): Remove signbit tests.
25447         * modules/ceill-tests (Depends-on): Remove signbit.
25448         * doc/posix-functions/ceill.texi: Mention the new module.
25449
25450 2010-12-21  Bruno Haible  <bruno@clisp.org>
25451
25452         New module 'floorl-ieee'.
25453         * modules/floorl-ieee: New file.
25454         * modules/floorl-ieee-tests: New file.
25455         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25456         * tests/test-floorl.c (main): Remove signbit tests.
25457         * modules/floorl-tests (Depends-on): Remove signbit.
25458         * doc/posix-functions/floorl.texi: Mention the new module.
25459
25460 2010-12-21  Bruno Haible  <bruno@clisp.org>
25461
25462         New module 'round-ieee'.
25463         * modules/round-ieee: New file.
25464         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25465         whether round works according to ISO C 99 with IEC 60559.
25466         * m4/round-ieee.m4: New file.
25467         * modules/round-ieee-tests: New file.
25468         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25469         * tests/test-round1.c (main): Remove signbit tests.
25470         * modules/round-tests (Depends-on): Remove 'signbit'.
25471         * doc/posix-functions/round.texi: Mention the new module.
25472
25473 2010-12-21  Bruno Haible  <bruno@clisp.org>
25474
25475         New module 'trunc-ieee'.
25476         * modules/trunc-ieee: New file.
25477         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25478         whether trunc works according to ISO C 99 with IEC 60559.
25479         * m4/trunc-ieee.m4: New file.
25480         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25482         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25483         * modules/trunc-ieee-tests: New file.
25484         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25485         * tests/test-trunc1.c (main): Remove signbit tests.
25486         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25487         * doc/posix-functions/trunc.texi: Mention the new module.
25488
25489 2010-12-21  Bruno Haible  <bruno@clisp.org>
25490
25491         New module 'ceil-ieee'.
25492         * modules/ceil-ieee: New file.
25493         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25494         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25495         ISO C 99 with IEC 60559.
25496         * m4/ceil-ieee.m4: New file.
25497         * modules/ceil (Files): Add lib/ceil.c.
25498         (Depends-on): Add 'float'.
25499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25500         * lib/math.in.h (ceil): New declaration.
25501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25502         REPLACE_CEIL.
25503         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25504         * modules/ceil-ieee-tests: New file.
25505         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25506         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25507         * doc/posix-functions/ceil.texi: Mention the new module.
25508
25509 2010-12-21  Bruno Haible  <bruno@clisp.org>
25510
25511         New module 'floor-ieee'.
25512         * modules/floor-ieee: New file.
25513         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25514         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25515         ISO C 99 with IEC 60559.
25516         * m4/floor-ieee.m4: New file.
25517         * modules/floor (Files): Add lib/floor.c.
25518         (Depends-on): Add 'float'.
25519         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25520         * lib/math.in.h (floor): New declaration.
25521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25522         REPLACE_FLOOR.
25523         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25524         * modules/floor-ieee-tests: New file.
25525         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25526         * tests/test-math-c++.cc: Check the signature of 'floor'.
25527         * doc/posix-functions/floor.texi: Mention the new module.
25528
25529 2010-12-21  Bruno Haible  <bruno@clisp.org>
25530
25531         New module 'roundf-ieee'.
25532         * modules/roundf-ieee: New file.
25533         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25534         test whether roundf works according to ISO C 99 with IEC 60559.
25535         * m4/roundf-ieee.m4: New file.
25536         * modules/roundf-ieee-tests: New file.
25537         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25538         * tests/test-roundf1.c (main): Remove signbit tests.
25539         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25540         * doc/posix-functions/roundf.texi: Mention the new module.
25541
25542 2010-12-21  Bruno Haible  <bruno@clisp.org>
25543
25544         New module 'truncf-ieee'.
25545         * modules/truncf-ieee: New file.
25546         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25547         test whether truncf works according to ISO C 99 with IEC 60559.
25548         * m4/truncf-ieee.m4: New file.
25549         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25551         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25552         * modules/truncf-ieee-tests: New file.
25553         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25554         * tests/test-truncf1.c (main): Remove signbit tests.
25555         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25556         * doc/posix-functions/truncf.texi: Mention the new module.
25557
25558 2010-12-21  Bruno Haible  <bruno@clisp.org>
25559
25560         New module 'ceilf-ieee'.
25561         * modules/ceilf-ieee: New file.
25562         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25563         test whether ceilf works according to ISO C 99 with IEC 60559.
25564         * m4/ceilf-ieee.m4: New file.
25565         * modules/ceilf-ieee-tests: New file.
25566         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25567         * tests/test-ceilf1.c (main): Remove signbit tests.
25568         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25569         * doc/posix-functions/ceilf.texi: Mention the new module.
25570
25571 2010-12-21  Bruno Haible  <bruno@clisp.org>
25572
25573         New module 'floorf-ieee'.
25574         * modules/floorf-ieee: New file.
25575         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25576         test whether floorf works according to ISO C 99 with IEC 60559.
25577         * m4/floorf-ieee.m4: New file.
25578         * modules/floorf-ieee-tests: New file.
25579         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25580         * tests/test-floorf1.c (main): Remove signbit tests.
25581         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25582         * doc/posix-functions/floorf.texi: Mention the new module.
25583
25584 2010-12-21  Bruno Haible  <bruno@clisp.org>
25585
25586         Support for minus zero in autoconf macros.
25587         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25588         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25589         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25590         * tests/minus-zero.h: Update comments.
25591
25592 2010-12-21  Bruno Haible  <bruno@clisp.org>
25593
25594         Tests for module 'ceil'.
25595         * modules/ceil-tests: New file.
25596         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25597         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25598
25599 2010-12-21  Bruno Haible  <bruno@clisp.org>
25600
25601         Tests for module 'floor'.
25602         * modules/floor-tests: New file.
25603         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25604         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25605
25606 2010-12-21  Bruno Haible  <bruno@clisp.org>
25607
25608         math: Fix indentation.
25609         * lib/math.in.h (floorf): Fix indentation.
25610
25611 2010-12-21  Bruno Haible  <bruno@clisp.org>
25612
25613         Fix cross-compilation guesses on Solaris.
25614         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25615         not match "solaris2.10".
25616         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25617         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25618         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25619
25620 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25623         This fixes a problem observed with the latest coreutils snapshot
25624         that caused a test to fail on Solaris 8.  src/csplit.c's call
25625         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25626         earlier, instead of returning the number of bytes that would have
25627         been generated; this causes csplit to incorrectly report memory
25628         exhaustion.
25629         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25630         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25631         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25632         comments to match.
25633         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25634         Fix typo in matching older versions of Solaris: "solaris2.10"
25635         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25636         only for guessing while cross-compiling.
25637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25638
25639 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25640
25641         ftoastr: fix comment again
25642         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25644         Also, simplify example a bit by using flags = 0.
25645
25646 2010-12-20  Bruno Haible  <bruno@clisp.org>
25647
25648         round*, trunc*: Update documentation regarding glibc.
25649         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25650         * doc/posix-functions/round.texi: Likewise.
25651         * doc/posix-functions/roundl.texi: Likewise.
25652         * doc/posix-functions/truncf.texi: Likewise.
25653         * doc/posix-functions/trunc.texi: Likewise.
25654         * doc/posix-functions/truncl.texi: Likewise.
25655
25656 2010-12-20  Bruno Haible  <bruno@clisp.org>
25657
25658         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25659         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25660         * doc/posix-functions/round.texi: Likewise.
25661         * doc/posix-functions/roundl.texi: Likewise.
25662
25663 2010-12-20  Bruno Haible  <bruno@clisp.org>
25664
25665         ttyname_r: Add missing declaration on HP-UX 11.
25666         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25667         HAVE_TTYNAME_R.
25668         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25669         declared. Set HAVE_TTYNAME_R always.
25670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25671         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25672         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25673         HAVE_TTYNAME_R.
25674         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25675
25676 2010-12-20  Bruno Haible  <bruno@clisp.org>
25677
25678         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25679         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25680         * doc/posix-functions/getlogin_r.texi: Likewise.
25681         * tests/test-getlogin.c: Include <errno.h>.
25682         (main): Avoid test failure on HP-UX 11.11.
25683         * tests/test-getlogin_r.c (main): Likewise.
25684
25685 2010-12-20  Bruno Haible  <bruno@clisp.org>
25686
25687         getlogin_r: Add missing declaration on HP-UX 11.
25688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25689         declared also when it exists as a function.
25690         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25691
25692 2010-12-20  Bruno Haible  <bruno@clisp.org>
25693
25694         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25695         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25696         through wcrtomb.
25697
25698 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25699
25700         ftoastr: fix comment
25701         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25702         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25703
25704 2010-12-19  Bruno Haible  <bruno@clisp.org>
25705
25706         isnan: Ensure it is a macro.
25707         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25708         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25709         Solaris.
25710
25711 2010-12-19  Bruno Haible  <bruno@clisp.org>
25712
25713         ldexpl test: Fix link error on OSF/1 5.1.
25714         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25715
25716 2010-12-19  Bruno Haible  <bruno@clisp.org>
25717
25718         wctype: Make it work in C++ mode on OSF/1 5.1.
25719         * lib/wctype.in.h (iswblank): Declare but not define here.
25720         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25721         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25722         * modules/wctype (Files): Add lib/iswblank.c.
25723
25724 2010-12-19  Bruno Haible  <bruno@clisp.org>
25725
25726         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25727         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25728         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25729
25730 2010-12-19  Bruno Haible  <bruno@clisp.org>
25731
25732         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25734         _POSIX_PII_SOCKET.
25735         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25736         * doc/posix-functions/recvfrom.texi: Likewise.
25737         * doc/posix-functions/send.texi: Likewise.
25738         * doc/posix-functions/sendto.texi: Likewise.
25739
25740 2010-12-19  Bruno Haible  <bruno@clisp.org>
25741
25742         tcgetsid: Add missing declaration on OSF/1 5.1.
25743         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25744         HAVE_TCGETSID.
25745         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25746         Don't set HAVE_TCGETSID.
25747         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25748         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25749         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25750         HAVE_TCGETSID.
25751         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25752
25753 2010-12-19  Bruno Haible  <bruno@clisp.org>
25754
25755         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25756         * lib/stdio.in.h: During the include_next statement, let recursive
25757         includes of this file include only the system header file.
25758
25759 2010-12-19  Bruno Haible  <bruno@clisp.org>
25760
25761         iconv_open: Fix regression from 2010-12-04.
25762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25763         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25764
25765 2010-12-19  Bruno Haible  <bruno@clisp.org>
25766
25767         stdbool test: Avoid a gcc warning.
25768         * tests/test-stdbool.c (main): Fail if e1 is false.
25769         Reported by Jim Meyering.
25770
25771 2010-12-19  Jim Meyering  <meyering@redhat.com>
25772
25773         setenv: restore to working order
25774         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25775         mistakenly removed.
25776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25777         HAVE_SETENV.
25778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25779         HAVE_SETENV.
25780
25781 2010-12-19  Bruno Haible  <bruno@clisp.org>
25782
25783         Document some different function declarations on OSF/1 5.1.
25784         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25785         * doc/posix-functions/inet_ntop.texi: Likewise.
25786         * doc/posix-functions/gethostname.texi: Likewise.
25787         * lib/unistd.in.h (gethostname): Update comment.
25788
25789 2010-12-19  Bruno Haible  <bruno@clisp.org>
25790
25791         doc: Mention vasprintf-posix module.
25792         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25793         the 'vasprintf-posix' module.
25794         * doc/glibc-functions/vasprintf.texi: Likewise.
25795
25796 2010-12-19  Bruno Haible  <bruno@clisp.org>
25797
25798         unsetenv: Add missing declaration on OSF/1 5.1.
25799         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25801         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25803         not HAVE_UNSETENV.
25804         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25805         HAVE_UNSETENV.
25806         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25807
25808 2010-12-19  Bruno Haible  <bruno@clisp.org>
25809
25810         setenv: Add missing declaration on OSF/1 5.1.
25811         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25812         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25813         declared. Don't set HAVE_SETENV.
25814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25815         not HAVE_SETENV.
25816         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25817         HAVE_SETENV.
25818         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25819
25820 2010-12-19  Bruno Haible  <bruno@clisp.org>
25821
25822         nl_langinfo tests: Avoid gcc warning.
25823         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25824
25825 2010-12-19  Bruno Haible  <bruno@clisp.org>
25826
25827         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25828         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25829         _GL_CXXALIAS_SYS.
25830
25831 2010-12-19  Bruno Haible  <bruno@clisp.org>
25832
25833         stdbool: Relax test.
25834         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25835         address to 'bool' work in static initializer, for compilers other than
25836         GCC.
25837
25838 2010-12-19  Bruno Haible  <bruno@clisp.org>
25839
25840         ftello: Add missing declaration on OSF/1 5.1.
25841         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25842         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25844         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25845         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25846
25847 2010-12-19  Bruno Haible  <bruno@clisp.org>
25848
25849         fseeko: Add missing declaration on OSF/1 5.1.
25850         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25853         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25854         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25855
25856 2010-12-19  Bruno Haible  <bruno@clisp.org>
25857
25858         fchdir: Add missing declaration on OSF/1 5.1.
25859         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25862         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25863         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25864
25865 2010-12-19  Bruno Haible  <bruno@clisp.org>
25866
25867         relocatable-prog-wrapper: Separate from relocatable-prog.
25868         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25869         uninstall-relocwrapper rule here.
25870         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25871         Reported by Ian Beckwith <ianb@erislabs.net>.
25872
25873 2010-12-19  Bruno Haible  <bruno@clisp.org>
25874
25875         unistr/u8-mbsnlen: Add missing dependency.
25876         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25877         Reported by Ian Beckwith <ianb@erislabs.net>.
25878
25879 2010-12-19  Bruno Haible  <bruno@clisp.org>
25880
25881         iconv: Make it possible again to use this module without 'iconv-h'.
25882         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25883         if it is not defined.
25884         Reported by Ian Beckwith <ianb@erislabs.net>.
25885
25886 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         acl: port to Solaris 8 when copying from tmpfs to ufs
25889         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25890         error number.  Problem observed on Solaris 8 with latest
25891         coreutils, with "mv A B", where A is on a tmpfs file system and B
25892         is on a ufs file system.  This caused coreutils' mv/part-symlink
25893         test to fail.
25894
25895         tests: set fail=0 at start
25896         * tests/init.sh (setup_): Move fail=0 initialization here ...
25897         (mktempd_): ... from here, so that tests can rely on fail being
25898         set to 0 initially.  This fixes a problem in coreutils; see:
25899         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25900
25901 2010-12-18  Bruno Haible  <bruno@clisp.org>
25902
25903         memmem-simple: Stylistic changes.
25904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25905         Fix preprocessor directive indentation.
25906
25907 2010-12-15  Pádraig Brady <P@draigBrady.com>
25908
25909         memmem, memmem-simple: reorganize and expand empty needle check
25910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25911         functional checks to memmem-simple so that one has a fully functional
25912         memmem by using just this module.
25913         Restrict the performance only check to the memmem module.
25914         Also expand the empty needle check to ensure the correct
25915         pointer is returned, not just a non NULL pointer.
25916         * doc/glibc-functions/memmem.texi: Rearrange the portability
25917         documentation to correlate with the rearranged checks.
25918         Clarify exactly how the memmem and memmem-simple modules
25919         relate to each other.
25920
25921 2010-12-15  Pádraig Brady <P@draigBrady.com>
25922             Bruno Haible  <bruno@clisp.org>
25923
25924         Improve cross-compilation guesses for uClibc.
25925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25926         that uClibc does not have the glibc bug.
25927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25928         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25929
25930 2010-12-14  Eric Blake  <eblake@redhat.com>
25931
25932         configmake: provide fallbacks for oldest supported autotools
25933         * m4/configmake.m4: New file.
25934         * modules/configmake (Files): Ship it.
25935         (configure.ac): Use it to guarantee fallbacks.
25936
25937 2010-12-13  Pádraig Brady <P@draigBrady.com>
25938
25939         read-file: Improve handling of large files
25940         * lib/read-file.c (fread_file): Minimize realloc()s
25941         for regular files, and better manage sizes around SIZE_MAX.
25942
25943 2010-12-13  Eric Blake  <eblake@redhat.com>
25944
25945         cloexec, fcntl: relax license
25946         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25947         consent from all contributors.
25948         * modules/fcntl (License): Likewise.
25949
25950 2010-12-10  Bruno Haible  <bruno@clisp.org>
25951
25952         Tests for module 'pipe-posix'.
25953         * modules/pipe-posix-tests: New file.
25954         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25955
25956 2010-12-10  Bruno Haible  <bruno@clisp.org>
25957
25958         pipe-posix: Make it work in C++ mode.
25959         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25960         (pipe): Use common idiom, not a macro definition.
25961         * lib/pipe.c: New file.
25962         * m4/pipe.m4: New file.
25963         * modules/pipe-posix (Description): Enhance.
25964         (Files): Add lib/pipe.c, m4/pipe.m4.
25965         (configure.ac): Invoke gl_FUNC_PIPE.
25966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25967         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25968         * tests/test-unistd-c++.cc: Check the signature of pipe.
25969
25970 2010-12-10  Bruno Haible  <bruno@clisp.org>
25971
25972         Rename module 'pipe' to 'spawn-pipe'.
25973         * modules/spawn-pipe: New file, renamed from modules/pipe.
25974         (Files, configure.ac, Makefile.am): Update.
25975         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25976         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25977         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25978         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25979         "spawn-pipe.h" instead of "pipe.h".
25980         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25981         to gl_SPAWN_PIPE.
25982         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25983         (Files, Makefile.am): Update.
25984         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25985         Update.
25986         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25987         Include "spawn-pipe.h" instead of "pipe.h".
25988         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25989         * lib/javacomp.c: Likewise.
25990         * lib/javaversion.c: Likewise.
25991         * lib/pipe-filter-gi.c: Likewise.
25992         * lib/pipe-filter-ii.c: Likewise.
25993         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25994         * modules/javacomp (Depends-on): Likewise.
25995         * modules/javaversion (Depends-on): Likewise.
25996         * modules/pipe-filter-gi (Depends-on): Likewise.
25997         * modules/pipe-filter-ii (Depends-on): Likewise.
25998         * MODULES.html.sh (Executing programs): Update.
25999         * NEWS: Mention the change.
26000
26001 2010-12-10  Eric Blake  <eblake@redhat.com>
26002
26003         pipe-posix: new module
26004         * modules/pipe-posix: New file.
26005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26006         (gl_UNISTD_H): Check for declaration.
26007         * modules/unistd (Makefile.am): Substitute it.
26008         * lib/unistd.in.h (pipe): Provide it for mingw.
26009         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26010         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26011
26012 2010-12-07  Bruno Haible  <bruno@clisp.org>
26013
26014         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26015         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26016         u8_strcmp_gnu.
26017         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26018
26019 2010-12-06  Bruno Haible  <bruno@clisp.org>
26020
26021         Update internal documentation.
26022         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26023
26024 2010-12-04  Bruno Haible  <bruno@clisp.org>
26025
26026         Put more information about failed tests into the test return codes.
26027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26028         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26029         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26031         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26032         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26033         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26034         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26035         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26038         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26039         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26040         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26041         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26042         returns a bit mask.
26043         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26044         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26045         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26046         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26047         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26051         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26053         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26054         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26057         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26058         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26059         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26060         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26061         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26062         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26064         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26066         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26067         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26068         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26069         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26070         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26071         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26072         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26073         gl_PRINTF_PRECISION): Likewise.
26074         * m4/regex.m4 (gl_REGEX): Likewise.
26075         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26076         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26077         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26078         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26079         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26082         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26083         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26084         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26085         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26086         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26087         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26088         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26089         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26090         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26091         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26092         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26095         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26096         enumerated value.
26097         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26098
26099 2010-12-04  Bruno Haible  <bruno@clisp.org>
26100
26101         Update for Solaris 11 2010-11.
26102         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26103         Express, released in November 2010.
26104
26105 2010-12-04  Bruno Haible  <bruno@clisp.org>
26106
26107         nproc: Relax license.
26108         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26109         and Paul Eggert.
26110         Requested by Ludovic Courtès <ludo@gnu.org>.
26111
26112 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26113
26114         utimecmp: fine-grained src to nearby coarse-grained dest
26115
26116         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26117         and the source is on a file system with higher-resolution time
26118         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26119         not work, and the time stamps are close together, the algorithm to
26120         determine the exact resolution from the read-back mtime was buggy:
26121         it had a "!=" where it should have had an "==".  This bug has been
26122         in the code ever since it was introduced to gnulib.
26123         Problem reported by Dan Jacobson in
26124         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26125
26126 2010-11-30  Bruno Haible  <bruno@clisp.org>
26127
26128         strerror_r-posix: Fix autoconf test.
26129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26130
26131 2010-11-28  Bruno Haible  <bruno@clisp.org>
26132             Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         Tests for module 'getdomainname'.
26135         * modules/getdomainname-tests: New file.
26136         * tests/test-getdomainname.c: New file, based on
26137         tests/test-gethostname.c.
26138
26139 2010-11-28  Bruno Haible  <bruno@clisp.org>
26140             Paul Eggert  <eggert@cs.ucla.edu>
26141
26142         getdomainname: Use the system function when possible.
26143         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26144         (getdomainname): Replace if needed. Provide the declaration if it is
26145         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26146         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26147         (getdomainname): When the system has getdomainname, call the system
26148         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26149         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26150         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26151         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26152         the function if its second argument is of type 'int' or if it is found
26153         in libnsl.
26154         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26155         <sys/systeminfo.h> and sysinfo().
26156         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26158         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26159         HAVE_GETDOMAINNAME.
26160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26161         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26162         * doc/glibc-functions/getdomainname.texi: Document the problems with
26163         the getdomainname declaration.
26164
26165 2010-11-28  Bruno Haible  <bruno@clisp.org>
26166
26167         sys_socket: Ensure ss_family field on AIX.
26168         * lib/sys_socket.in.h (ss_family): New macro definition.
26169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26170         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26171         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26172         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26173         * modules/sys_socket (Makefile.am): Substitute
26174         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26175         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26176
26177 2010-11-27  Bruno Haible  <bruno@clisp.org>
26178
26179         readline: Improve configure output.
26180         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26181         "checking for readline..." result understandable.
26182
26183 2010-11-27  Bruno Haible  <bruno@clisp.org>
26184
26185         *printf-posix: Detect a bug on Solaris 10/x86.
26186         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26187         for floating-point output.
26188         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26189         directive.
26190         * tests/test-snprintf-posix.h (test_function): Likewise.
26191         * tests/test-sprintf-posix.h (test_function): Likewise.
26192         * tests/test-vasprintf-posix.c (test_function): Likewise.
26193         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26194         * doc/posix-functions/printf.texi: Likewise.
26195         * doc/posix-functions/snprintf.texi: Likewise.
26196         * doc/posix-functions/sprintf.texi: Likewise.
26197         * doc/posix-functions/vfprintf.texi: Likewise.
26198         * doc/posix-functions/vprintf.texi: Likewise.
26199         * doc/posix-functions/vsnprintf.texi: Likewise.
26200         * doc/posix-functions/vsprintf.texi: Likewise.
26201         * doc/glibc-functions/obstack_printf.texi: Likewise.
26202         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26203
26204 2010-11-27  Bruno Haible  <bruno@clisp.org>
26205
26206         Fix link error when module libunistring-optional is in use.
26207         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26208         * modules/striconveha-tests (Makefile.am): Likewise.
26209
26210 2010-11-27  Bruno Haible  <bruno@clisp.org>
26211
26212         regex: Mention link dependencies.
26213         * modules/regex (Link): New section.
26214         * modules/rpmatch (Link): Likewise.
26215         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26216
26217 2010-11-27  Bruno Haible  <bruno@clisp.org>
26218
26219         ftoastr: Fix compilation error on Solaris.
26220         * lib/ftoastr.c: Include <config.h>.
26221
26222 2010-11-27  Bruno Haible  <bruno@clisp.org>
26223
26224         getloadavg: Update documentation.
26225         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26226
26227 2010-11-27  Bruno Haible  <bruno@clisp.org>
26228
26229         sys_socket: Fix test whether the functions are declared.
26230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26231         not <sys/select.h>.
26232
26233 2010-11-27  Bruno Haible  <bruno@clisp.org>
26234
26235         getpass: Make sure to get system declaration on some platforms.
26236         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26237         gl_USE_SYSTEM_EXTENSIONS.
26238         * modules/getpass (Depends-on): Add extensions.
26239
26240 2010-11-26  Bruno Haible  <bruno@clisp.org>
26241
26242         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26243         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26244         'iconv' module is present.
26245         (ICONV_CONST): New macro.
26246         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26247         ICONV_CONST.
26248         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26249         set ICONV_CONST.
26250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26251         here.
26252         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26253         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26254         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26255         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26256         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26257         present.
26258
26259 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26260
26261         ftoastr: comment fix
26262         * lib/ftoastr.c: "little" -> "little or no" in comment
26263
26264 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26265
26266         stdint: port to GCC 4.3 + OSX + Octave
26267         On this platform, stdint.h is buggy and defines int64_t to long
26268         long int.  The replacement defined it to long int, causing
26269         problems with C++ style name mangling.  Instead, trust the system
26270         definition if INT64_MAX is defined, and likewise for the unsigned
26271         variant.   Problem reported by Jarno Rajahalme in
26272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26273         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26274         and don't mess with int64_t and INT64_MAX in this case.
26275         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26276
26277 2010-11-24  Bruno Haible  <bruno@clisp.org>
26278
26279         doc: Corrections regarding MacOS X 10.4 and 10.5.
26280         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26281         MacOS X.
26282         Reported by Simon Josefsson.
26283
26284 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26285
26286         Uninstall ".bin" files installed by relocwrapper.
26287         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26288         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26289         unless it is already there.
26290
26291 2010-11-21  Bruno Haible  <bruno@clisp.org>
26292
26293         Update for NetBSD 5.0.
26294         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26295         NetBSD; the test fails on NetBSD 5.0.
26296         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26297         about NetBSD.
26298
26299 2010-11-21  Bruno Haible  <bruno@clisp.org>
26300
26301         Update for HP-UX 11.23 and HP-UX 11.31.
26302         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26303         HP-UX.
26304
26305 2010-11-21  Bruno Haible  <bruno@clisp.org>
26306
26307         Update for MacOS X 10.5.
26308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26309         MacOS X; the test fails on MacOS X 10.5.8.
26310         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26311         about MacOS X.
26312
26313 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26314
26315         bootstrap: add bootstrap_sync option.
26316         See discussion at
26317         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26318         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26319         * build-aux/bootstrap: Accept --bootstrap-sync to update
26320         bootstrap if it is not identical to the local gnulib's
26321         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26322         enable this by default.  Accept --no-bootstrap-sync to disable
26323         it.
26324
26325 2010-11-20  Bruno Haible  <bruno@clisp.org>
26326
26327         Ensure that <features.h> is included before __GLIBC__ is tested.
26328         * lib/printf-parse.h: Include <features.h>.
26329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26330         Reported by Mike Frysinger <vapier@gentoo.org>.
26331
26332         Ensure that <features.h> is included before __GLIBC__ is tested.
26333         * lib/wchar.in.h: Include <features.h>.
26334         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26335         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26336         Reported by Mike Frysinger <vapier@gentoo.org>.
26337
26338         Ensure that <features.h> is included before __GLIBC__ is tested.
26339         * lib/arpa_inet.in.h: Include <features.h>.
26340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26341         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26342         Reported by Mike Frysinger <vapier@gentoo.org>.
26343
26344         Ensure that <features.h> is included before __GLIBC__ is tested.
26345         * build-aux/link-warning.h: Include <features.h>.
26346         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26347         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26348         Reported by Mike Frysinger <vapier@gentoo.org>.
26349
26350         Ensure that <features.h> is included before __GLIBC__ is tested.
26351         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26352         Reported by Mike Frysinger <vapier@gentoo.org>.
26353
26354 2010-11-20  Bruno Haible  <bruno@clisp.org>
26355
26356         memmem: Fix autoconf test.
26357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26358
26359 2010-11-20  Bruno Haible  <bruno@clisp.org>
26360
26361         Port to uClibc.
26362         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26363         * lib/fcntl.in.h: Likewise.
26364         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26365         * lib/mbrtowc.c (mbrtowc): Likewise.
26366         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26367         * lib/strerror_r.c: Likewise.
26368         * lib/unistr/u8-strnlen.c: Likewise.
26369         * lib/vasnprintf.c (decimal_point_char): Likewise.
26370         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26373         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26374         * tests/test-sigaction.c (handler, main): Likewise.
26375         * lib/freading.h: Treat uClibc like a non-glibc platform.
26376         * lib/freading.c: Likewise.
26377         * lib/gettext.h: Likewise.
26378         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26379         Likewise.
26380         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26381         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26382         * lib/propername.c (proper_name_utf8): Likewise.
26383         * lib/spawn.in.h: Likewise.
26384         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26385         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26386         mem_cd_iconveh_internal): Likewise.
26387         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26389         strstr, strcasestr): Likewise.
26390         * lib/unicodeio.c (unicode_to_mb): Likewise.
26391         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26392         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26393         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26394         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26395         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26396         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26397         * lib/unistr/u8-stpncpy.c: Likewise.
26398         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26399         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26401         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26402         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26403         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26407         Likewise.
26408         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26410         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26413         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26414         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26415         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26416         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26417         * tests/test-striconveha.c (main): Likewise.
26418         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26419         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26420         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26421         * doc/posix-functions/getline.texi: Likewise.
26422         Reported by Mike Frysinger <vapier@gentoo.org>.
26423
26424 2010-11-20  Bruno Haible  <bruno@clisp.org>
26425
26426         nproc: Fix condition.
26427         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26428         HAVE_PTHREAD_AFFINITY_NP.
26429
26430 2010-11-20  Bruno Haible  <bruno@clisp.org>
26431
26432         Fix a comment.
26433         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26434
26435 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26436
26437         ftoastr: don't assume snprintf
26438         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26439         Implement a subset of snprintf here, by using sprintf safely.
26440         * modules/ftoastr (Depends-on): Remove snprintf.
26441
26442 2010-11-19  Jim Meyering  <meyering@redhat.com>
26443
26444         test-rename.h: fix compilation failure
26445         * tests/test-rename.h (test_rename): Add omitted "}".
26446
26447 2010-11-17  Jim Meyering  <meyering@redhat.com>
26448
26449         maint.mk: add a URL discussing the no-@acronym policy
26450         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26451
26452 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26453
26454         ftoastr: depend on snprintf, improve comments
26455         * lib/ftoastr.c: Also mention Loitsch's draft.
26456         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26457         needed in the current implementation, but it might simplify
26458         speeding up the code later.
26459         * modules/ftoastr: Depend on snprintf; this improves portability.
26460         Suggested by Bruno Haible in the same email.
26461
26462         ftoastr: port to hosts lacking strtof and strtold
26463         Problem reported by Bruno Haible in
26464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26465         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26466         environment and strtold (and presumably strtof) are not available.
26467         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26468         (configure.ac): Require gl_C99_STRTOLD.
26469
26470 2010-11-18  Bruno Haible  <bruno@clisp.org>
26471
26472         c-strtold: Avoid link error on AIX 7.
26473         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26474         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26475         (gl_C_STRTOLD): Test whether strtold_l exists.
26476         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26477
26478 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26479
26480         intprops: new macro INT_BITS_STRLEN_BOUND
26481         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26482         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26483         not exposed.  Also, it uses a slightly tighter bound than before;
26484         though this makes no practical difference, we might as well be as
26485         tight as we easily can.
26486
26487         ftoastr: new module, for lossless conversion of floats to short strings
26488         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26489         * modules/ftoastr: New files.
26490
26491 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26492
26493         bootstrap: port to Solaris sed
26494         * build-aux/bootstrap (get_version): Port to Solaris sed.
26495         See Ralf Wildenhues's note in
26496         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26497
26498 2010-11-14  Jim Meyering  <meyering@redhat.com>
26499
26500         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26501         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26502         and move definition closer to sole use.
26503
26504 2010-11-13  Jim Meyering  <meyering@redhat.com>
26505
26506         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26507         Now we require at least autoconf-2.59, which means the work-around
26508         is no longer needed.
26509         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26510         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26512         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26513         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26514
26515 2010-11-13  Bruno Haible  <bruno@clisp.org>
26516
26517         rename, renameat: Avoid test failures at NFS mounted locations.
26518         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26519         functions.
26520         (test_rename): Use assert_nonexistent.
26521         * tests/test-rename.c: Include <dirent.h>.
26522         * tests/test-renameat.c: Likewise.
26523         Reported by Gary V. Vaughan <gary@gnu.org>.
26524
26525         rename, renameat: Document Linux bug with NFS
26526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26527         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26528         * doc/posix-functions/renameat.texi: Likewise.
26529         Suggested by Eric Blake.
26530
26531 2010-11-13  Bruno Haible  <bruno@clisp.org>
26532
26533         rename test: Add comments.
26534         * tests/test-rename.h (test_rename): Add structure and comments.
26535
26536 2010-11-13  Eric Blake  <eblake@redhat.com>
26537
26538         maintainer-makefile: cover a few more files
26539         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26540         scripts generated within C files, for libvirt.
26541
26542 2010-11-13  Bruno Haible  <bruno@clisp.org>
26543
26544         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26545         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26546         character, return the number of bytes that belong together, not always
26547         1.
26548         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26549         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26550         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26551         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26552         number of bytes of an invalid character.
26553         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26554         (main): Invoke it.
26555         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26556         results.
26557         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26558         malformed byte sequences.
26559         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26560         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26561         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26562         Reported by Ben Pfaff and Paolo Bonzini.
26563
26564 2010-11-13  Bruno Haible  <bruno@clisp.org>
26565
26566         openat: Work around glibc bug with fchownat() and empty file names.
26567         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26568         (gl_FUNC_FCHOWNAT): Invoke it.
26569         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26570         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26571         Reported by Gary V. Vaughan <gary@gnu.org>.
26572
26573 2010-11-13  Bruno Haible  <bruno@clisp.org>
26574
26575         openat: Ensure autoconf macro ordering.
26576         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26577         gl_USE_SYSTEM_EXTENSIONS.
26578         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26579
26580 2010-11-13  Bruno Haible  <bruno@clisp.org>
26581
26582         Update comments.
26583         * lib/unistr/u8-check.c: Update file name in comments.
26584         * lib/unistr/u8-mblen.c: Likewise.
26585         * lib/unistr/u8-prev.c: Likewise.
26586         * lib/unistr/u8-strmblen.c: Likewise.
26587         * lib/unistr/u8-strmbtouc.c: Likewise.
26588
26589 2010-11-13  Jim Meyering  <meyering@redhat.com>
26590
26591         tests: avoid test failure on Solaris 10 due to lack of PATH export
26592         * tests/test-update-copyright.sh: Don't forget to export PATH.
26593
26594         init.sh: ensure that IFS is defined, just in case...
26595         * tests/init.sh (setup_): Ensure that IFS is defined,
26596         so that saving and restoring it works as expected.  This
26597         appears to be useful at least for an old version of dash
26598         from a long time ago (RH 6).  See here for details:
26599         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26600
26601         maint.mk: tighten "test a == b" check
26602         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26603         test to files that contain something like #!/bin/sh.
26604         Without this, coreutils would get two false positives in
26605         the comments of C source files.
26606
26607 2010-11-12  Eric Blake  <eblake@redhat.com>
26608
26609         bootstrap: fix typo in previous attempt
26610         * build-aux/bootstrap (buildreq): Correct the grouping.
26611         Reported by Paul Eggert.
26612
26613         maintainer-makefile: prohibit test x == x
26614         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26615         Based on a report by Matthias Bolte.
26616
26617         bootstrap: allow FreeBSD gzip
26618         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26619         which has no '.' and goes to stderr.
26620         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26621         Reported by Matthias Bolte.
26622
26623         maintainer-makefile: check for i18n setup
26624         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26625         will likely work.
26626
26627 2010-11-12  Bruno Haible  <bruno@clisp.org>
26628
26629         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26630         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26631         * lib/nanosleep.c (nanosleep): Likewise.
26632
26633 2010-11-11  Bruno Haible  <bruno@clisp.org>
26634
26635         fcntl-h: Fix for use of C++ on glibc systems.
26636         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26637         also on glibc systems in C++ mode.
26638         Reported by Gary V. Vaughan <gary@gnu.org>.
26639
26640 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26641
26642         mknod: avoid false failure with dash
26643         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26644
26645 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26646
26647         unlink: Fix "is it should" typo in diagnostic.
26648         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26650
26651 2010-11-11  Bruno Haible  <bruno@clisp.org>
26652
26653         Tests for module 'strerror_r-posix'.
26654         * modules/strerror_r-posix-tests: New file.
26655         * tests/test-strerror_r.c: New file.
26656         * tests/test-string-c++.cc: Check the signature of strerror_r.
26657
26658         New module 'strerror_r-posix'.
26659         * lib/string.in.h (strerror_r): New declaration.
26660         * lib/strerror_r.c: New file.
26661         * m4/strerror_r.m4: New file.
26662         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26663         of strerror_r.
26664         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26665         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26666         * modules/strerror_r-posix: New file.
26667         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26668         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26669         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26670         portability problems.
26671
26672 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26673
26674         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26675         line is also considered for output. Quoted function name in shell
26676         command, so temporary files for functions like MyClass::operator()
26677         are removed correctly without errors.
26678
26679 2010-11-09  Bruno Haible  <bruno@clisp.org>
26680
26681         * doc/posix-functions/strerror.texi: List more failing platforms.
26682
26683         * doc/posix-functions/strerror.texi: Add a comment.
26684
26685 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26686
26687         fdopendir: fix bug on MacOS X when low on file descriptors
26688
26689         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26690         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26691         All callers changed.
26692         (fdopendir): Invoke save_cwd at the top level, not after using
26693         multiple dup() calls to use up file descriptors.  Then retry
26694         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26695         less than the maximum number of open file descriptors, because
26696         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26697         on Mac OS X 10.6.4 for tar 1.24
26698         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26699         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26700         and for tar 1.25
26701         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26702
26703 2010-11-07  Bruno Haible  <bruno@clisp.org>
26704
26705         vasnprintf: Support I flag on glibc systems.
26706         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26707         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26708         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26709         snprintf function.
26710         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26711         glibc systems.
26712         * tests/test-vasnprintf-posix3.c: New file.
26713         * modules/vasnprintf-posix-tests (Files): Add it.
26714         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26715
26716 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26717
26718         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26719         * MODULES.html.sh: For compiler warnings, use name
26720         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26721
26722 2010-11-05  Eric Blake  <eblake@redhat.com>
26723
26724         ceil, floor: avoid spurious failure with icc
26725         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26726         [denormals-as-zero] when optimizing without -mieee-fp option.
26727         * tests/test-floorf2.c (floorf_reference): Likewise.
26728         * tests/test-ceilf1.c (dummy): New function.
26729         (main): Use it to outsmart icc's optimization.
26730         * tests/test-floorf1.c (dummy, main): Likewise.
26731
26732         tests: require working signbit
26733         * modules/ceilf-tests (Depends-on): Add signbit.
26734         * modules/ceill-tests (Depends-on): Likewise.
26735         * modules/floorf-tests (Depends-on): Likewise.
26736         * modules/floorl-tests (Depends-on): Likewise.
26737         * modules/round-tests (Depends-on): Likewise.
26738         * modules/roundf-tests (Depends-on): Likewise.
26739         * modules/roundl-tests (Depends-on): Likewise.
26740         * modules/trunc-tests (Depends-on): Likewise.
26741         * modules/truncf-tests (Depends-on): Likewise.
26742         * modules/truncl-tests (Depends-on): Likewise.
26743
26744         strtod: work around icc bug
26745         * lib/strtod.c (minus_zero): Define to working value.
26746         (strtod): Use it to avoid icc bug.
26747
26748         copysign: enhance tests
26749         * modules/copysign-tests (Files): Add minus-zero.h.
26750         * tests/test-copysign.c (main): Also test zeros.
26751
26752 2010-11-04  Eric Blake  <eblake@redhat.com>
26753
26754         ceil, floor, round, trunc: enhance tests of -0
26755         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26756         * tests/test-ceill.c (main): Likewise.
26757         * tests/test-floorf1.c (main): Likewise.
26758         * tests/test-floorl.c (main): Likewise.
26759         * tests/test-round1.c (main): Likewise.
26760         * tests/test-roundf1.c (main): Likewise.
26761         * tests/test-roundl.c (main): Likewise.
26762         * tests/test-trunc1.c (main): Likewise.
26763         * tests/test-truncf1.c (main): Likewise.
26764         * tests/test-truncl.c (main): Likewise.
26765
26766 2010-11-04  Eric Blake  <eblake@redhat.com>
26767
26768         frexp, tests: work around ICC bug with -zero
26769         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26770         works with more compilers.
26771         * tests/minus-zero.h: New file.
26772         * modules/ceilf-tests (Files): Include it.
26773         * modules/ceill-tests (Files): Likewise.
26774         * modules/floorf-tests (Files): Likewise.
26775         * modules/floorl-tests (Files): Likewise.
26776         * modules/frexp-nolibm-tests (Files): Likewise.
26777         * modules/frexp-tests (Files): Likewise.
26778         * modules/frexpl-nolibm-tests (Files): Likewise.
26779         * modules/frexpl-tests (Files): Likewise.
26780         * modules/isnan-tests (Files): Likewise.
26781         * modules/isnand-nolibm-tests (Files): Likewise.
26782         * modules/isnand-tests (Files): Likewise.
26783         * modules/isnanf-nolibm-tests (Files): Likewise.
26784         * modules/isnanf-tests (Files): Likewise.
26785         * modules/isnanl-nolibm-tests (Files): Likewise.
26786         * modules/isnanl-tests (Files): Likewise.
26787         * modules/round-tests (Files): Likewise.
26788         * modules/roundf-tests (Files): Likewise.
26789         * modules/roundl-tests (Files): Likewise.
26790         * modules/ldexpl-tests (Files): Likewise.
26791         * modules/signbit-tests (Files): Likewise.
26792         * modules/snprintf-posix-tests (Files): Likewise.
26793         * modules/sprintf-posix-tests (Files): Likewise.
26794         * modules/strtod-tests (Files): Likewise.
26795         * modules/trunc-tests (Files): Likewise.
26796         * modules/truncf-tests (Files): Likewise.
26797         * modules/truncl-tests (Files): Likewise.
26798         * modules/vsnprintf-posix-tests (Files): Likewise.
26799         * modules/vsprintf-posix-tests (Files): Likewise.
26800         * modules/vasnprintf-posix-tests (Files): Likewise.
26801         * modules/vasprintf-posix-tests (Files): Likewise.
26802         * tests/test-ceilf1.c (main): Use it.
26803         * tests/test-ceill.c (main): Likewise.
26804         * tests/test-floorf1.c (main): Likewise.
26805         * tests/test-floorl.c (main): Likewise.
26806         * tests/test-frexp.c (main): Likewise.
26807         * tests/test-frexpl.c (main): Likewise.
26808         * tests/test-isnan.c (main): Likewise.
26809         * tests/test-isnand.h (main): Likewise.
26810         * tests/test-isnanf.h (main): Likewise.
26811         * tests/test-isnanl.h (main): Likewise.
26812         * tests/test-ldexpl.c (main): Likewise.
26813         * tests/test-round.c (main): Likewise.
26814         * tests/test-roundf.c (main): Likewise.
26815         * tests/test-roundl.c (main): Likewise.
26816         * tests/test-signbit.c (test_signbitf, test_signbitd)
26817         (test_signbitl): Likewise.
26818         * tests/test-snprintf-posix.h (test_function): Likewise.
26819         * tests/test-sprintf-posix.h (test_function): Likewise.
26820         * tests/test-strtod.c (main): Likewise.
26821         * tests/test-trunc1.c (main): Likewise.
26822         * tests/test-truncf1.c (main): Likewise.
26823         * tests/test-truncl.c (main): Likewise.
26824
26825         isnanl: work around icc bug
26826         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26827
26828 2010-11-03  Eric Blake  <eblake@redhat.com>
26829
26830         tests: fix compiler warnings
26831         * tests/test-getopt.h (test_getopt): Fix condition.
26832         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26833         * tests/test-pipe2.c (main): Likewise.
26834         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26835
26836         utimens: fix broken m4 test
26837         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26838
26839 2010-10-28  Bruno Haible  <bruno@clisp.org>
26840
26841         posix_spawn*, getdtablesize: Relax license.
26842         * modules/posix_spawn (License): Change to LGPLv2+.
26843         * modules/posix_spawnp (License): Likewise.
26844         * modules/posix_spawn-internal (License): Likewise.
26845         * modules/posix_spawnattr_init (License): Likewise.
26846         * modules/posix_spawnattr_getflags (License): Likewise.
26847         * modules/posix_spawnattr_setflags (License): Likewise.
26848         * modules/posix_spawnattr_getpgroup (License): Likewise.
26849         * modules/posix_spawnattr_setpgroup (License): Likewise.
26850         * modules/posix_spawnattr_getschedparam (License): Likewise.
26851         * modules/posix_spawnattr_setschedparam (License): Likewise.
26852         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26853         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26854         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26855         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26856         * modules/posix_spawnattr_getsigmask (License): Likewise.
26857         * modules/posix_spawnattr_setsigmask (License): Likewise.
26858         * modules/posix_spawnattr_destroy (License): Likewise.
26859         * modules/posix_spawn_file_actions_init (License): Likewise.
26860         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26861         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26862         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26863         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26864         * modules/getdtablesize (License): Likewise.
26865         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26866
26867 2010-10-26  Bruno Haible  <bruno@clisp.org>
26868
26869         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26870         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26871         Cygwin and mingw.
26872         Suggested by Eric Blake.
26873
26874 2010-10-26  Bruno Haible  <bruno@clisp.org>
26875
26876         stdio: Work around compilation error due to renameat() on Solaris 10.
26877         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26878         * lib/renameat.c: Don't include <unistd.h> here.
26879         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26880         Reported by Paul Eggert and Eric Blake.
26881
26882 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26883
26884         renameat: port to Solaris 10, which declares renameat in unistd.h
26885
26886         * lib/renameat.c: Include unistd.h before stdio.h, because
26887         Solaris 10 declares renameat in unistd.h.  Problem encountered
26888         when building GNU tar 1.24 on Solaris 10.
26889
26890 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26891
26892         fdopendir: fix C89 compilation
26893         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26894         compilers.
26895
26896 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26897
26898         inttostr: simplify by removing unnecessary redundancy
26899         * lib/anytostr.c: Don't include verify.h.
26900         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26901         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26902         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26903         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26904         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26905         Likewise.
26906         * modules/inttostr (Depends-on): Remove 'verify'.
26907
26908 2010-10-23  Bruno Haible  <bruno@clisp.org>
26909
26910         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26911         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26912         Reported by Eric Blake.
26913
26914 2010-10-23  Bruno Haible  <bruno@clisp.org>
26915
26916         Tests: Fix LOCALE_JA on MirBSD 10.
26917         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26918         to an UTF-8 locale.
26919         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26921         Reported by Eric Blake.
26922
26923 2010-10-21  Bruno Haible  <bruno@clisp.org>
26924
26925         nl_langinfo test: Avoid test failure on NetBSD 5.
26926         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26927         Reported by Eric Blake.
26928
26929 2010-10-21  Eric Blake  <eblake@redhat.com>
26930
26931         c-stack: work around libsigsegv 2.8 bug
26932         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26933         overflow on at least PowerPC64.
26934
26935 2010-10-17  Bruno Haible  <bruno@clisp.org>
26936
26937         userspec: Drop redundant file.
26938         * modules/userspec (Files): Remove lib/inttostr.h.
26939
26940 2010-10-17  Bruno Haible  <bruno@clisp.org>
26941
26942         nl_langinfo tests: Silence some warnings.
26943         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26944         Reported by Jim Meyering.
26945
26946 2010-10-17  Bruno Haible  <bruno@clisp.org>
26947
26948         Make use of GCC's attribute __alloc_size__.
26949         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26950         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26951         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26952         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26953         __alloc_size__.
26954         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26955         Suggested by Jim Meyering.
26956
26957 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26958
26959         bootstrap: anchor .gitignore entries.
26960         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26961         with...
26962         (insert_vc_ignore): ... this new function, which prepends `/' to
26963         all .gitignore entries before passing them to
26964         insert_sorted_if_absent.
26965
26966 2010-10-16  Bruno Haible  <bruno@clisp.org>
26967
26968         nextafter: Fix configure check.
26969         * modules/nextafter (configure.ac): Correct expected prototype.
26970
26971 2010-10-16  Bruno Haible  <bruno@clisp.org>
26972
26973         termios: Update documentation.
26974         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26975
26976 2010-10-16  Bruno Haible  <bruno@clisp.org>
26977
26978         tests: Make them compile with TinyCC.
26979         * tests/test-strstr.c (main): Remove parentheses around array
26980         initializer.
26981
26982 2010-10-15  Eric Blake  <eblake@redhat.com>
26983
26984         ignore-value: make header idempotent
26985         * lib/ignore-value.h: Add double-inclusion guards.
26986         Reported by Stefan Berger.
26987
26988 2010-10-15  Jim Meyering  <meyering@redhat.com>
26989
26990         GNUmakefile: handle "stable" target, not "major"
26991         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26992         lists in maint.mk and announce-gen.  Without this, "make stable"
26993         would fail to ensure that $(VERSION) is up to date.
26994
26995 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26996
26997         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26998         & co.
26999
27000 2010-10-14  Bruno Haible  <bruno@clisp.org>
27001
27002         vasnprintf: Don't set errno to 0.
27003         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27004         block that sets it to 0.
27005         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27006
27007 2010-10-14  Bruno Haible  <bruno@clisp.org>
27008
27009         socketlib: Fix.
27010         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27011         gl_PREREQ_SYS_H_WINSOCK2.
27012         Reported by Ian Beckwith <ianb@erislabs.net>.
27013
27014 2010-10-13  Jim Meyering  <meyering@redhat.com>
27015
27016         test-select-stdin.c: avoid warn_unused_result warnings
27017         * tests/test-select-stdin.c: Include "macros.h".
27018         ASSERT that read and fflush succeed.
27019
27020 2010-10-13  Jim Meyering  <meyering@redhat.com>
27021
27022         git-version-gen: do require git-VC'd files in cwd
27023         * build-aux/git-version-gen: Reject a git version string
27024         if there are no commits associated with the current directory.
27025         This avoids an unlikely false-positive (unrelated dir whose parent
27026         repository also contains a tag matching v*), as pointed out
27027         by Giuseppe Scrivano in
27028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27029
27030 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27031
27032         argv-iter: omit nonconforming declaration
27033         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27034         enum arg_iter_err declaration, which doesn't conform to C99.
27035         Solaris 10 cc warns about this.
27036
27037 2010-10-13  Eric Blake  <eblake@redhat.com>
27038
27039         termios: fix compilation on mingw
27040         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27041         (gl_TERMIOS_H): Adjust it on mingw.
27042         * modules/termios (Makefile.am): Substitute new key.
27043         * lib/termios.in.h (includes): Make include_next conditional.
27044         * doc/posix-headers/termios.texi (termios.h): Update
27045         documentation.
27046         Reported by Daniel P. Berrange.
27047
27048 2010-10-13  Jim Meyering  <meyering@redhat.com>
27049
27050         git-version-gen: don't require that .git/ be in the current dir
27051         * build-aux/git-version-gen: Adjust this script so that it works
27052         when run from any working directory beneath the top-level .git/-
27053         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27055
27056         test-select: avoid warn_unused_result warnings
27057         * tests/test-select.c: Include "macros.h".
27058         ASSERT that each call to read, write, and pipe succeeds.
27059         While not technically required, also check each "close".
27060         * modules/select-tests (Files): Add tests/macros.h.
27061
27062         test-symlinkat: remove declaration of unused local
27063         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27064
27065         test-inttostr: avoid shadowing warnings
27066         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27067         and use malloc rather than the stack for the same reason as
27068         mentioned in the comment justifying the other allocation.
27069
27070 2010-10-11  Bruno Haible  <bruno@clisp.org>
27071
27072         stdlib: Allow multiple gnulib generated replacements to coexist.
27073         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27074         Reported by Sam Steingold <sds@gnu.org>.
27075
27076 2010-10-11  Jim Meyering  <meyering@redhat.com>
27077
27078         fix a documentation typo
27079         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27080
27081 2010-10-11  Eric Blake  <eblake@redhat.com>
27082
27083         futimens: work around Solaris 11 bug
27084         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27085         * tests/test-futimens.h (test_futimens): Enhance, rather than
27086         weaken test.
27087         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27088
27089 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27090
27091         Indentation.
27092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27093         higher-level operators more to the left.
27094
27095 2010-10-11  Jim Meyering  <meyering@redhat.com>
27096
27097         test-futimens: avoid unwarranted test failure on Solaris 5.11
27098         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27099         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27100         because it tries to dereference the NULL name argument.
27101
27102 2010-10-11  Bruno Haible  <bruno@clisp.org>
27103
27104         Indentation.
27105         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27106         indentation.
27107
27108 2010-10-11  Jim Meyering  <meyering@redhat.com>
27109
27110         spawn.in.h: make indentation consistent with parentheses
27111         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27112         Make indentation consistent with parentheses.
27113
27114 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27115
27116         Fix mismatched parens in previous commit
27117         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27118         parens.
27119
27120 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27121
27122         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27123
27124         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27125         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27126         * lib/malloca.c: Include "verify.h".
27127         (verify1): Remove, replacing with a verify call.
27128         * lib/relocwrapper.c (verify1): Likewise.
27129         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27130         Likewise.
27131         * modules/malloca (Depends-on): Add 'verify'.
27132         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27133         * modules/vasnprintf (Depends-on): Add 'verify'.
27134         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27136         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27137         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27138         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27141
27142         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27143
27144         Formerly the style was sometimes 2*X - 1, because the C standard
27145         was wrongly thought to disallow ?: in integral constant expressions.
27146         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27147         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27148         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27149         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27150         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27151         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27152         verify that time_t cannot be floating.
27153
27154 2010-10-08  Eric Blake  <eblake@redhat.com>
27155
27156         time: enforce recent POSIX ruling that time_t is integral
27157         * lib/time.in.h (__time_t_must_be_integral): Detect any
27158         problematic systems, allowing the rest of gnulib to assume POSIX.
27159
27160 2010-10-08  Jim Meyering  <meyering@redhat.com>
27161
27162         fdopendir: fix a bug on systems lacking openat and /proc support
27163         OpenBSD 4.7 is one such system.  The most noticeable effect was
27164         failure of any application making nontrivial use of fts: rm, du,
27165         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27166           ./rm: traversal failed: `a': Bad file descriptor
27167         Debugging that, you see that even though FD 6 was closed just
27168         prior to the opendir call in fd_clone_opendir, its resulting
27169         dir->dd_fd was 8, rather than the expected value of 6:
27170
27171         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27172         93                close (fd);
27173         (gdb) n
27174         94                dir = fd_clone_opendir (dupfd);
27175         (gdb) n
27176         95                saved_errno = errno;
27177         (gdb) p dir->dd_fd
27178         $11 = 8
27179
27180         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27181         The problem is that on OpenBSD, fd_clone_opendir has to resort
27182         to using the old-style save/restore CWD mechanism, due to its
27183         lack of openat/proc support, and *that* would steal the FD (6)
27184         that opendir was supposed to use.
27185
27186         The fix is to squirrel away the desired FD so that save_cwd uses a
27187         different one, and then free the dest FD right before calling opendir.
27188         That guarantees opendir will use the required file descriptor.
27189
27190         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27191
27192 2010-10-08  Bruno Haible  <bruno@clisp.org>
27193
27194         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27195         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27196
27197 2010-10-08  Bruno Haible  <bruno@clisp.org>
27198
27199         nanosleep: Make replacement POSIX compliant.
27200         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27201         is out of range.
27202         Reported by Jim Meyering.
27203
27204 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27205
27206         bootstrap: add hook for altering gnulib.mk, for Bison
27207         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27208         the Bison bootstrapping process can rewrite file names and variables
27209         in this file before later parts of 'bootstrap' use the file.
27210         Bison wants to include lib/gnulib.mk from the top-level makefile,
27211         so it needs the file names in this file to be relative to the top
27212         level, not relative to lib; plus it needs variable names to be
27213         rewritten.
27214         (slurp): Use the new function.
27215
27216         bootstrap: reformat for readability
27217         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27218
27219 2010-10-08  Eric Blake  <eblake@redhat.com>
27220
27221         docs: update cygwin progress
27222         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27223         1.7.7.
27224         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27225         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27226         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27227         * doc/posix-functions/carg.texi (carg): Likewise.
27228         * doc/posix-functions/cargf.texi (cargf): Likewise.
27229         * doc/posix-functions/casin.texi (casin): Likewise.
27230         * doc/posix-functions/casinf.texi (casinf): Likewise.
27231         * doc/posix-functions/casinh.texi (casinh): Likewise.
27232         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27233         * doc/posix-functions/catan.texi (catan): Likewise.
27234         * doc/posix-functions/catanf.texi (catanf): Likewise.
27235         * doc/posix-functions/catanh.texi (catanh): Likewise.
27236         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27237         * doc/posix-functions/ccos.texi (ccos): Likewise.
27238         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27239         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27240         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27241         * doc/posix-functions/cexp.texi (cexp): Likewise.
27242         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27243         * doc/posix-functions/cimag.texi (cimag): Likewise.
27244         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27245         * doc/posix-functions/clog.texi (clog): Likewise.
27246         * doc/posix-functions/clogf.texi (clogf): Likewise.
27247         * doc/posix-functions/conj.texi (conj): Likewise.
27248         * doc/posix-functions/conjf.texi (conjf): Likewise.
27249         * doc/posix-functions/cpow.texi (cpow): Likewise.
27250         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27251         * doc/posix-functions/cproj.texi (cproj): Likewise.
27252         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27253         * doc/posix-functions/creal.texi (creal): Likewise.
27254         * doc/posix-functions/crealf.texi (crealf): Likewise.
27255         * doc/posix-functions/csin.texi (csin): Likewise.
27256         * doc/posix-functions/csinf.texi (csinf): Likewise.
27257         * doc/posix-functions/csinh.texi (csinh): Likewise.
27258         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27259         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27260         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27261         * doc/posix-functions/ctan.texi (ctan): Likewise.
27262         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27263         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27264         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27265         * doc/posix-headers/complex.texi (complex.h): Likewise.
27266
27267 2010-10-07  Jim Meyering  <meyering@redhat.com>
27268
27269         parse-datetime: avoid compilation failure on OpenBSD 4.7
27270         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27271         This works around a compilation failure on OpenBSD 4.7:
27272         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27273
27274 2010-10-07  Eric Blake  <eblake@redhat.com>
27275
27276         docs: update cygwin progress
27277         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27278         1.7.6.
27279         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27280         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27281         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27282         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27283         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27284         Likewise.
27285         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27286         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27287         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27288         Likewise.
27289         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27290         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27291         Likewise.
27292         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27293         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27294         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27295         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27296         Likewise.
27297         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27298         Likewise.
27299         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27300
27301         docs: update parse-datetime history
27302         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27303         documentation of this function's history and alternatives.
27304
27305         cygwin: use more robust version check
27306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27307         exclude an eventual cygwin 1.9.1.
27308         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27310         (gl_FUNC_STRCASESTR): Likewise.
27311         Reported by Bruno Haible.
27312
27313 2010-10-06  Bruno Haible  <bruno@clisp.org>
27314
27315         string, sys_select: Avoid #including large headers unless necessary.
27316         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27317         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27318         OSF/1, BeOS, Haiku.
27319         Reported by Jim Meyering.
27320
27321 2010-10-05  Eric Blake  <eblake@redhat.com>
27322
27323         memmem, strstr, strcasestr: fix bug with long periodic needle
27324         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27325         periodic needle having false positive.
27326         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27327         and cygwin 1.7.7.
27328         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27330         (gl_FUNC_STRCASESTR): Likewise.
27331         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27332         * tests/test-memmem.c (main): Expose the bug.
27333         * tests/test-strcasestr.c (main): Likewise.
27334         * tests/test-strstr.c (main): Likewise.
27335         * tests/test-c-strcasestr.c (main): Likewise.
27336         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27337         * doc/posix-functions/strstr.texi (strstr): Likewise.
27338         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27339         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27340
27341 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27342
27343         parse-datetime: do some more renaming
27344         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27345         parse_datetime, not get_date.  Mention the renaming.
27346         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27347         in comments.
27348         * m4/bison.m4: Likewise.
27349
27350 2010-10-05  Eric Blake  <eblake@redhat.com>
27351
27352         parse-datetime: better name than get_date
27353         * NEWS: Reword the deprecation notice.
27354         * modules/get_date: Rename to modules/parse-datetime.
27355         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27356         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27357         * lib/get_date.y: Rename to lib/parse-datetime.y.
27358         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27359         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27360         * doc/getdate.texi: Provide fallback wrapper.
27361         * lib/getdate.h: Move guts, and wrap...
27362         * lib/parse-datetime.h: ...new file.
27363         * lib/parse-datetime.y (get_date): Rename...
27364         (parse_datetime): ...to this.
27365         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27366         (gl_PARSE_DATETIME): ...to this.
27367         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27368         documentation.
27369         * modules/getdate (Files): Provide fallback docs and header.
27370         (Notice, Depends-on): Update references.
27371         * tests/test-parse-datetime.c: Likewise.
27372         * DEPENDENCIES: Likewise.
27373         * MODULES.html.sh (Date and time <time.h>): Likewise.
27374         * doc/parse-datetime.texi (Date input formats)
27375         (Authors of parse_datetime): Likewise.
27376         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27377         (Include): Likewise.
27378         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27379         * gnulib-tool: Likewise.
27380         * m4/bison.m4 (gl_BISON): Likewise.
27381         Suggested by Bruno Haible.
27382
27383 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         more ports to Solaris tr, which needs [] around ranges
27386         * gnulib-tool: Solaris tr needs [] around ranges.
27387         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27388         * tests/test-pipe-filter-gi1.c (main): Likewise.
27389         * tests/test-pipe-filter-ii1.c (main): Likewise.
27390
27391 2010-10-05  Eric Blake  <eblake@redhat.com>
27392
27393         bootstrap: fix Solaris regression
27394         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27395         around ranges.
27396         Reported by Pádraig Brady.
27397
27398         bootstrap: work with pkg-config
27399         * build-aux/bootstrap (check_versions): Also transliterate - in
27400         prerequisite name.
27401         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27402         prerequisites that were already found, to avoid confusion.
27403         Reported by Justin Clift.
27404
27405         faccessat: remove unused wrappers
27406         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27407         presence of these wrappers dragged in -lgen on Solaris.
27408         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27409
27410 2010-10-05  Jim Meyering  <meyering@redhat.com>
27411
27412         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27413         * Makefile (sc_pragma_columns): New syntax-check rule.
27414
27415 2010-10-04  Bruno Haible  <bruno@clisp.org>
27416
27417         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27418         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27419         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27420         Reported by Bruce Korb and Eric Blake.
27421
27422 2010-10-04  Bruno Haible  <bruno@clisp.org>
27423
27424         threadlib: Make option --with-libpth-prefix work.
27425         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27426         use $LIBPTH, not just -lpth.
27427
27428 2010-10-04  Bruno Haible  <bruno@clisp.org>
27429
27430         Avoid line length limitation from HP NonStop system header files.
27431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27432         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27433         * lib/ctype.in.h: Likewise.
27434         * lib/dirent.in.h: Likewise.
27435         * lib/errno.in.h: Likewise.
27436         * lib/fcntl.in.h: Likewise.
27437         * lib/float.in.h: Likewise.
27438         * lib/getopt.in.h: Likewise.
27439         * lib/iconv.in.h: Likewise.
27440         * lib/inttypes.in.h: Likewise.
27441         * lib/langinfo.in.h: Likewise.
27442         * lib/locale.in.h: Likewise.
27443         * lib/math.in.h: Likewise.
27444         * lib/netdb.in.h: Likewise.
27445         * lib/netinet_in.in.h: Likewise.
27446         * lib/poll.in.h: Likewise.
27447         * lib/pthread.in.h: Likewise.
27448         * lib/pty.in.h: Likewise.
27449         * lib/sched.in.h: Likewise.
27450         * lib/se-selinux.in.h: Likewise.
27451         * lib/search.in.h: Likewise.
27452         * lib/signal.in.h: Likewise.
27453         * lib/spawn.in.h: Likewise.
27454         * lib/stdarg.in.h: Likewise.
27455         * lib/stddef.in.h: Likewise.
27456         * lib/stdint.in.h: Likewise.
27457         * lib/stdio.in.h: Likewise.
27458         * lib/stdlib.in.h: Likewise.
27459         * lib/string.in.h: Likewise.
27460         * lib/strings.in.h: Likewise.
27461         * lib/sys_file.in.h: Likewise.
27462         * lib/sys_ioctl.in.h: Likewise.
27463         * lib/sys_select.in.h: Likewise.
27464         * lib/sys_socket.in.h: Likewise.
27465         * lib/sys_stat.in.h: Likewise.
27466         * lib/sys_time.in.h: Likewise.
27467         * lib/sys_times.in.h: Likewise.
27468         * lib/sys_utsname.in.h: Likewise.
27469         * lib/sys_wait.in.h: Likewise.
27470         * lib/sysexits.in.h: Likewise.
27471         * lib/termios.in.h: Likewise.
27472         * lib/time.in.h: Likewise.
27473         * lib/unistd.in.h: Likewise.
27474         * lib/wchar.in.h: Likewise.
27475         * lib/wctype.in.h: Likewise.
27476         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27477         * modules/ctype (Makefile.am): Likewise.
27478         * modules/dirent (Makefile.am): Likewise.
27479         * modules/errno (Makefile.am): Likewise.
27480         * modules/fcntl-h (Makefile.am): Likewise.
27481         * modules/float (Makefile.am): Likewise.
27482         * modules/getopt-posix (Makefile.am): Likewise.
27483         * modules/iconv-h (Makefile.am): Likewise.
27484         * modules/inttypes (Makefile.am): Likewise.
27485         * modules/langinfo (Makefile.am): Likewise.
27486         * modules/locale (Makefile.am): Likewise.
27487         * modules/math (Makefile.am): Likewise.
27488         * modules/netdb (Makefile.am): Likewise.
27489         * modules/netinet_in (Makefile.am): Likewise.
27490         * modules/poll-h (Makefile.am): Likewise.
27491         * modules/pthread (Makefile.am): Likewise.
27492         * modules/pty (Makefile.am): Likewise.
27493         * modules/sched (Makefile.am): Likewise.
27494         * modules/search (Makefile.am): Likewise.
27495         * modules/selinux-h (Makefile.am): Likewise.
27496         * modules/signal (Makefile.am): Likewise.
27497         * modules/spawn (Makefile.am): Likewise.
27498         * modules/stdarg (Makefile.am): Likewise.
27499         * modules/stddef (Makefile.am): Likewise.
27500         * modules/stdint (Makefile.am): Likewise.
27501         * modules/stdio (Makefile.am): Likewise.
27502         * modules/stdlib (Makefile.am): Likewise.
27503         * modules/string (Makefile.am): Likewise.
27504         * modules/strings (Makefile.am): Likewise.
27505         * modules/sys_file (Makefile.am): Likewise.
27506         * modules/sys_ioctl (Makefile.am): Likewise.
27507         * modules/sys_select (Makefile.am): Likewise.
27508         * modules/sys_socket (Makefile.am): Likewise.
27509         * modules/sys_stat (Makefile.am): Likewise.
27510         * modules/sys_time (Makefile.am): Likewise.
27511         * modules/sys_times (Makefile.am): Likewise.
27512         * modules/sys_utsname (Makefile.am): Likewise.
27513         * modules/sys_wait (Makefile.am): Likewise.
27514         * modules/sysexits (Makefile.am): Likewise.
27515         * modules/termios (Makefile.am): Likewise.
27516         * modules/time (Makefile.am): Likewise.
27517         * modules/unistd (Makefile.am): Likewise.
27518         * modules/wchar (Makefile.am): Likewise.
27519         * modules/wctype (Makefile.am): Likewise.
27520
27521 2010-10-04  Bruno Haible  <bruno@clisp.org>
27522
27523         read-file tests: Avoid a test failure on NonStop Kernel.
27524         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27525         a regular file.
27526         Reported by Joachim Schmitz <schmitz@hp.com>.
27527
27528 2010-10-03  Bruno Haible  <bruno@clisp.org>
27529
27530         gnulib-tool: Fixes for --create-testdir with --libtool.
27531         * gnulib-tool (func_get_automake_snippet): Don't augment
27532         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27533         an executable.
27534         (func_create_testdir): Handle module 'alloca' like func_import.
27535         Reported by Bruce Korb <bruce.korb@gmail.com>.
27536
27537 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27538
27539         Avoid some lines longer than 80 characters.
27540         * lib/stdint.in.h: Break long comment lines.
27541         * lib/math.in.h: Likewise.
27542         (_GL_NUM_UINT_WORDS): New macro, for readability.
27543         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27544         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27545         * lib/stdlib.in.h: Likewise.
27546         * lib/spawn.in.h: Likewise.
27547         * lib/sys_socket.in.h: Update an URL.
27548         * lib/sys_stat.in.h: Break long line.
27549
27550 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27551
27552         Improve pmccabe2html.
27553         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27554         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27555         when the sources change. Remove the line in the HTML about "Used
27556         ranges" (which implied that there might be other unused ranges),
27557         rename "Resume" to "Summary" (easier to understand for more users).
27558         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27559         styles, and some unnecessary blank lines.
27560
27561 2010-10-03  Bruno Haible  <bruno@clisp.org>
27562             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27563
27564         acl: Add support for ACLs on NonStop Kernel.
27565         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27566         Check whether the function aclsort() exists.
27567         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27568         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27569         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27570         (acl_nontrivial [HAVE_ACLSORT]: New function.
27571         (file_has_acl): Implement for NonStop Kernel.
27572         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27573         (qset_acl): Implement for NonStop Kernel.
27574         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27575         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27576         (main): Implement for NonStop Kernel.
27577         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27578         Kernel. Handle this flavor.
27579         * tests/test-set-mode-acl.sh: Likewise.
27580         * tests/test-copy-acl.sh: Likewise.
27581         * tests/test-copy-file.sh: Likewise.
27582
27583 2010-10-03  Bruno Haible  <bruno@clisp.org>
27584
27585         Info about ACLs on NonStop Kernel.
27586         * doc/acl-resources.txt: Add info about NonStop Kernel.
27587         References by Joachim Schmitz <schmitz@hp.com>.
27588
27589 2010-10-02  Bruno Haible  <bruno@clisp.org>
27590
27591         Define missing EDQUOT on NonStop Kernel.
27592         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27593         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27594         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27595         missing.
27596         * doc/posix-headers/errno.texi: Mention the NSK bug.
27597         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27598         Reported by Joachim Schmitz <schmitz@hp.com>.
27599
27600 2010-10-02  Bruno Haible  <bruno@clisp.org>
27601
27602         Update doc for POSIX:2008.
27603         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27604         Update URL of POSIX specification.
27605
27606 2010-10-02  Bruno Haible  <bruno@clisp.org>
27607
27608         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27609         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27610         from gnulib, not from Automake.
27611
27612 2010-10-02  Bruno Haible  <bruno@clisp.org>
27613
27614         New module 'system-posix'.
27615         * modules/system-posix: New file.
27616         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27617         module is present.
27618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27619         GNULIB_SYSTEM_POSIX.
27620         * modules/stdlib (Depends-on): Remove sys_wait.
27621         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27622         * doc/posix-functions/system.texi: Mention the new module.
27623         * doc/posix-headers/stdlib.texi: Likewise.
27624         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27625         define test_sys_wait_macros to a no-op.
27626         Reported by Sam Steingold <sds@gnu.org>.
27627
27628 2010-09-30  Bruno Haible  <bruno@clisp.org>
27629
27630         More renaming from 'getdate' to 'get_date'.
27631         * doc/get_date.texi: Renamed from doc/getdate.texi.
27632         * modules/get_date (Files): Update.
27633         * MODULES.html.sh (Date and time <time.h>): Update.
27634         * DEPENDENCIES: Update.
27635         * gnulib-tool: Update comment.
27636         * m4/bison.m4 (gl_BISON): Likewise.
27637         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27638
27639 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27640
27641         bootstrap: support ACLOCAL_FLAGS during aclocal
27642         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27643         can add additional -I dir for third-party .m4 files.
27644
27645 2010-09-30  Eric Blake  <eblake@redhat.com>
27646
27647         bootstrap: use glibtoolize on MacOS
27648         * build-aux/bootstrap (check_versions): Convert libtool into
27649         libtoolize.
27650         (tool search): Move libtool check earlier, and look for
27651         glibtoolize for MacOS.
27652         (gnulib_tool_options): Auto-add --libtool when appropriate.
27653         Reported by Justin Clift.
27654
27655         poll: fix typo that broke test on MacOS
27656         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27657         Reported by Justin Clift.
27658
27659         getdate: rename to get_date
27660         Note: getdate.h is not renamed, to minimize client impact.
27661         * modules/getdate: Mark obsolete.  Move old contents...
27662         * modules/get_date: ...to new module name.
27663         * modules/getdate-tests: Move...
27664         * modules/get_date-tests: ...here.
27665         * m4/getdate.m4: Move...
27666         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27667         * lib/getdate.y: Move...
27668         * lib/get_date.y: ...here.
27669         * tests/test-getdate.c: Move...
27670         * tests/test-get_date.c: ...here.
27671         * doc/posix-functions/getdate.texi (getdate): Update name.
27672         * NEWS: Mention the change.
27673
27674 2010-09-29  Bruno Haible  <bruno@clisp.org>
27675
27676         Separate the module 'waitpid' from the module 'sys_wait'.
27677         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27678         present.
27679         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27680         gl_MODULE_INDICATOR_FOR_TESTS.
27681         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27682         * modules/sys_wait (Depends-on): Remove waitpid.
27683         (Makefile.am): Substitute GNULIB_WAITPID.
27684         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27685         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27686         signature only if the 'waitpid' module is present.
27687         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27688         * NEWS: Mention the change.
27689         * modules/grantpt (Depends-on): Add waitpid.
27690         * modules/wait-process (Depends-on): Likewise.
27691
27692 2010-09-29  Bruno Haible  <bruno@clisp.org>
27693
27694         More tests for module 'sys_wait'.
27695         * modules/sys_wait-c++-tests: New file.
27696         * tests/test-sys_wait-c++.cc: New file.
27697         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27698         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27699
27700 2010-09-29  Bruno Haible  <bruno@clisp.org>
27701
27702         New module 'waitpid'.
27703         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27704         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27705         Don't include <process.h>.
27706         (waitpid): Declare only, using modern idiom.
27707         * m4/waitpid.m4: New file.
27708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27709         * modules/waitpid: New file.
27710         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27711         (Makefile.am): Update.
27712         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27713
27714 2010-09-28  Bruno Haible  <bruno@clisp.org>
27715
27716         poll: Assume ANSI C.
27717         * lib/poll.c (poll): Use an ANSI C declaration.
27718
27719 2010-09-28  Bruno Haible  <bruno@clisp.org>
27720
27721         poll-h: Create poll.h on all platforms.
27722         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27723         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27724         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27725         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27726         (gl_REPLACE_POLL_H): Don't set POLL_H.
27727         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27728         * modules/poll-h (Depends-on): Add include_next.
27729         (Makefile.am): Create poll.h unconditionally. Substitute also
27730         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27731
27732 2010-09-28  Bruno Haible  <bruno@clisp.org>
27733
27734         Tests for module 'poll-h'.
27735         * modules/poll-h-c++-tests: New file.
27736         * tests/test-poll-h-c++.cc: New file.
27737
27738         Tests for module 'poll-h'.
27739         * modules/poll-h-tests: New file.
27740         * tests/test-poll-h.c: New file.
27741
27742 2010-09-28  Bruno Haible  <bruno@clisp.org>
27743
27744         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27745         * modules/poll-h (Depends-on): Add 'extensions'.
27746
27747 2010-09-28  Bruno Haible  <bruno@clisp.org>
27748
27749         New module 'poll-h'.
27750         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27751         (poll): Use modern idiom.
27752         * modules/poll-h: New file.
27753         * modules/poll (Files): Remove lib/poll.in.h.
27754         (Depends-on): Add poll-h.
27755         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27756         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27757         * m4/poll_h.m4: New file.
27758         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27759         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27760         and invoke gl_REPLACE_POLL_H.
27761         * lib/poll.c: Use common idiom.
27762         * tests/test-poll.c: Likewise.
27763         * doc/posix-headers/poll.texi: Mention the poll-h module.
27764         Suggested by Eric Blake.
27765
27766 2010-09-26  Bruno Haible  <bruno@clisp.org>
27767
27768         sys_wait: Implement WSTOPSIG.
27769         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27770         Reported by Simon Josefsson.
27771
27772 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27773
27774         stdlib, sys_wait: Avoid compilation error on mingw.
27775         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27776
27777 2010-09-26  Bruno Haible  <bruno@clisp.org>
27778
27779         stdlib tests: Avoid code duplication.
27780         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27781         * modules/sys_wait-tests (Files): Likewise.
27782         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27783         * tests/test-stdlib.c: Include test-sys_wait.h.
27784         (main): Invoke test_sys_wait_macros.
27785         * tests/test-sys_wait.c: Include test-sys_wait.h.
27786         (main): Invoke test_sys_wait_macros.
27787
27788 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27789
27790         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27791         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27792         sure Windows sockets are working before calling getaddrinfo.
27793         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27794         * doc/gnulib.texi (Windows sockets): Fix typo.
27795
27796 2010-09-25  Bruno Haible  <bruno@clisp.org>
27797
27798         Tests for module 'regex-quote'.
27799         * modules/regex-quote-tests: New file.
27800         * tests/test-regex-quote.c: New file.
27801
27802         New module 'regex-quote'.
27803         * lib/regex-quote.h: New file.
27804         * lib/regex-quote.c: New file.
27805         * modules/regex-quote: New file.
27806         Suggested by Reuben Thomas <rrt@sc3d.org>.
27807
27808 2010-09-24  Bruno Haible  <bruno@clisp.org>
27809
27810         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27811         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27812
27813 2010-09-23  Bruno Haible  <bruno@clisp.org>
27814
27815         setenv: Relax license.
27816         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27817         Blake.
27818         Requested by Eric Blake.
27819
27820 2010-09-22  Bruno Haible  <bruno@clisp.org>
27821
27822         termios: Relax license.
27823         * modules/termios (License): Change to LGPLv2+.
27824         Requested by Eric Blake.
27825
27826 2010-09-22  Bruno Haible  <bruno@clisp.org>
27827
27828         threadlib: Allow the package to change the default to 'no'.
27829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27830         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27831         Reported by Paul Eggert.
27832
27833 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27834             Bruno Haible  <bruno@clisp.org>
27835
27836         Fix endless loop in mbmemcasecoll.
27837         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27838         byte.
27839         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27840
27841 2010-09-22  Bruno Haible  <bruno@clisp.org>
27842
27843         Tests for module 'memcoll'.
27844         * modules/memcoll-tests: New file.
27845         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27846
27847         memcoll, xmemcoll: Clarify size vs. length.
27848         * modules/memcoll.c (memcoll0): Clarify specification.
27849         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27850         passed to collate_error.
27851
27852 2010-09-22  Bruno Haible  <bruno@clisp.org>
27853
27854         Tests for module 'memcasecmp'.
27855         * modules/memcasecmp-tests: New file.
27856         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27857
27858 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27859
27860         * lib/pthread.in.h: Add split double-inclusion guard, and include
27861         system <pthread.h> if there is one.  Use @@-style as in other
27862         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27863         pthread.h doesn't.
27864         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27865         (pthread_mutexattr_settype, pthread_mutex_trylock):
27866         New static inline functions, if there's no system <pthread.h>.
27867         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27868         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27869         Approximate with mutexes if the system lacks spinlocks, as in
27870         MacOS.
27871         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27872         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27873         @@-style.  Check for spinlocks separately.
27874         (gl_PTHREAD_DEFAULTS): New macro.
27875         * modules/pthread: Redo to use a more typical style for in.h files.
27876
27877 2010-09-21  Eric Blake  <eblake@redhat.com>
27878
27879         net_if: enhance tests
27880         * tests/test-net_if.c (main): Move signature checks earlier.
27881         Print failures to stderr.
27882         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27883         Document the bug that we do not yet fix.
27884
27885 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27886
27887         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27888         about gnulib, not GSS.
27889
27890 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27891
27892         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27893         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27894         for Emacs.
27895         * build-aux/pmccabe2html: Make Makefile.am example code more
27896         cut-and-paste friendly.
27897
27898 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27899
27900         * tests/test-net_if.c: New file.
27901         * modules/net_if-tests: New file.
27902
27903 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27904
27905         pthread: add pthread_spin_destroy
27906         * lib/pthread.in.h (pthread_spin_destroy): New function.
27907
27908 2010-09-19  Bruno Haible  <bruno@clisp.org>
27909
27910         gnulib-tool: Fix --help output.
27911         * gnulib-tool (func_usage): Fix help message.
27912         Reported by Reuben Thomas <rrt@sc3d.org>.
27913
27914 2010-09-18  Jim Meyering  <meyering@redhat.com>
27915
27916         maint.mk: avoid unexpanded \n in two diagnostics
27917         * top/maint.mk (sc_prohibit_always_true_header_tests):
27918         Don't use a literal \n in a halt=... assignment.  It would not be
27919         expanded, and the two \n bytes would appear in the diagnostic output
27920         rather than the desired newline.  Use halt=$$(printf ... instead.
27921         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27922
27923 2010-09-18  Bruno Haible  <bruno@clisp.org>
27924
27925         netinet_in: Doc tweak.
27926         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27928
27929 2010-09-18  Jim Meyering  <meyering@redhat.com>
27930
27931         init.sh: correct an outdated comment
27932         * tests/init.sh (create_exe_shims_):  s/function/alias/
27933
27934         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27935         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27936         a file named "*.exe" is removed between the glob expansion and the
27937         processing of that oddly named file.
27938
27939 2010-09-17  Eric Blake  <eblake@redhat.com>
27940
27941         mirbsd: add some more support
27942         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27943         in BSD family.
27944         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27945         devices as OpenBSD.
27946         * m4/host-os.m4 (mirbsd): Add MirBSD.
27947
27948         tests: fix unportable assumption on sys/wait.h
27949         * tests/test-sys_wait.c (main): Relax test.
27950         * tests/test-stdlib.c (main): Likewise.
27951
27952         init.sh: accommodate directory with no .exes
27953         * tests/init.sh: Accomodate directory containing only scripts.
27954
27955         tests: avoid compiler warning
27956         * tests/test-stdlib.c (main): Use the variable.
27957
27958         fdutimens, fdutimensat: update signature, again
27959         * lib/utimens.h (gl_futimens): Delete, and move signature...
27960         (fdutimens): ...here.
27961         (fdutimensat): Rearrange signature.
27962         (lutimensat): Rename variable for clarity.
27963         * lib/fdutimensat.c (fdutimensat): Update signature.
27964         * lib/utimens.c (fdutimens): Likewise.
27965         (gl_futimens): Delete.
27966         (utimens, lutimens): Update callers.
27967         * lib/futimens.c (futimens): Likewise.
27968         * tests/test-fdutimensat.c: Likewise.
27969         * tests/test-utimens.c: Likewise.
27970         * tests/test-futimens.h: Update comment.
27971         * NEWS: Mention this.
27972         Suggested by Paul Eggert.
27973
27974 2010-09-17  Bruno Haible  <bruno@clisp.org>
27975
27976         Take over the maintenance of some older macros from Autoconf.
27977         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27978         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27979         GNU Autoconf.
27980         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27981         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27982
27983 2010-09-17  Eric Blake  <eblake@redhat.com>
27984
27985         fdutimensat: drop atflag validation
27986         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27987         with valid fd, to close a race scenario where futimens is
27988         unsupported and FILE was replaced by a symlink.
27989         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27990         accordingly.
27991         Suggested by Paul Eggert.
27992
27993 2010-09-16  Bruno Haible  <bruno@clisp.org>
27994
27995         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27996         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27997
27998 2010-09-16  Bruno Haible  <bruno@clisp.org>
27999
28000         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28001         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28002         login_tty exists.
28003         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28004
28005 2010-09-16  Bruno Haible  <bruno@clisp.org>
28006
28007         login_tty: Make the replacement code work on BSD systems.
28008         * lib/login_tty.c: Include <sys/ioctl.h>.
28009         (login_tty): Use ioctl TIOCSCTTY when available.
28010         * modules/login_tty (Depends-on): Add sys_ioctl.
28011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28012
28013 2010-09-16  Bruno Haible  <bruno@clisp.org>
28014
28015         login_tty: Stricter unit test.
28016         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28017         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28018         and tcgetsid() after login_tty.
28019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28020
28021 2010-09-16  Bruno Haible  <bruno@clisp.org>
28022
28023         New module 'tcgetsid'.
28024         * lib/tcgetsid.c: New file.
28025         * m4/tcgetsid.m4: New file.
28026         * modules/tcgetsid: New file.
28027         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28028         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28029         GNULIB_TCGETSID, HAVE_TCGETSID.
28030         * lib/termios.in.h: Include <sys/types.h>.
28031         (tcgetsid): New declaration.
28032         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28033         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28034         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28035         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28036
28037 2010-09-16  Bruno Haible  <bruno@clisp.org>
28038
28039         Tests for module 'termios'.
28040         * modules/termios-c++-tests: New file.
28041         * modules/termios-tests: New file.
28042         * tests/test-termios-c++.cc: New file.
28043         * tests/test-termios.c: New file.
28044
28045         New module 'termios'.
28046         * modules/termios: New file.
28047         * lib/termios.in.h: New file.
28048         * m4/termios_h.m4: New file.
28049         * doc/posix-headers/termios.texi: Mention the new module.
28050
28051 2010-09-16  Eric Blake  <eblake@redhat.com>
28052
28053         fdutimensat: add an atflag parameter
28054         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28055         * lib/utimens.h (fdutimensat): Update prototype.
28056         * tests/test-fdutimensat.c: Adjust test to match.
28057         * NEWS: Document the change.
28058         Suggested by Paul Eggert.
28059
28060 2010-09-16  Bruno Haible  <bruno@clisp.org>
28061
28062         Fix typos in comments.
28063         * lib/striconveh.h: Fix typo in comment.
28064         * lib/login_tty.c (login_tty): Likewise.
28065
28066 2010-09-15  Bruno Haible  <bruno@clisp.org>
28067
28068         stdlib: clarify MirBSD WEXITSTATUS bug
28069         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28070         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28071
28072 2010-09-15  Eric Blake  <eblake@redhat.com>
28073
28074         stdlib: work around MirBSD WEXITSTATUS bug
28075         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28076         * modules/stdlib (Depends-on): Add sys_wait.
28077         * tests/test-sys_wait.c (main): Enhance test.
28078         * tests/test-stdlib.c (main): Likewise.
28079         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28080
28081         docs: mention MacOS issue with WEXITSTATUS(constant)
28082         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28083         issue.
28084         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28085
28086         strnlen: add tests
28087         * modules/strnlen-tests: New file.
28088         * tests/test-strnlen.c: Likewise.
28089
28090 2010-09-14  Bruno Haible  <bruno@clisp.org>
28091
28092         unistr/base: Avoid link errors when module 'libunistring' is also used.
28093         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28094         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28095         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28096         Declare also when HAVE_LIBUNISTRING is set.
28097         Reported by Pádraig Brady <P@draigbrady.com>.
28098
28099 2010-09-14  Eric Blake  <eblake@redhat.com>
28100
28101         test-rawmemchr: make more robust
28102         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28103         (Depends-on, configure.ac): Add needed prerequisites to use it.
28104         * modules/memchr-tests (Files, Depends-on, configure.ac):
28105         Likewise, to avoid implicit reliance on memchr module prereqs.
28106         * tests/test-memchr.c (main): Ensure proper masking.
28107         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28108         reads.
28109
28110         memchr: detect glibc Alpha bug
28111         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28112         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28113         Alpha.
28114         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28115         * tests/test-memchr.c (main): Enhance test.
28116         Reported by Nelson H. F. Beebe.
28117
28118 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28119
28120         fts, getcwd, glob: audit for dirfd returning -1
28121         * lib/fts.c (opendir): Remove #define; no longer used.
28122         (opendirat): New arg PDIR_FD.  All callers changed.
28123         (fts_build, _opendir2): Use new opendirat to avoid the need for
28124         dirfd, or for checking whether dirfd returns a negative value.
28125         Don't use opendir; always use openat followed by fdopendir.
28126         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28127         it.
28128         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28129         returns -1 here.
28130         * modules/fts (Depends-on): Remove dirfd.
28131         * modules/getcwd (Depends-on): Likewise.
28132
28133 2010-09-13  Eric Blake  <eblake@redhat.com>
28134
28135         float: fix broken MirBSD header
28136         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28137         * doc/posix-headers/float.texi (float.h): Document it.
28138
28139 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28140
28141         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28142         * lib/fts.c (opendirat): New arg extra_flags.
28143         (__opendir2): Use it to avoid following symlinks when opening
28144         a directory, if symlinks are not supposed to be followed.  See
28145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28146
28147         fdopendir: preserve argument fd before returning
28148         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28149         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28150         (fdopendir): Use them, arranging for FD to be open to the same
28151         directory that it was when it started.  (It might be temporarily
28152         closed while fdopendir is running, so this not thread- or
28153         signal-safe.)  Be careful to do the right thing even when file
28154         descriptors are scarce and dup fails with errno == EMFILE.  See
28155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28156
28157 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28158
28159         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28160         * NEWS: Document change.
28161         * m4/regex.m4: Disable test for regoff_t size.
28162
28163 2010-09-13  Jim Meyering  <meyering@redhat.com>
28164
28165         fts: don't operate on an invalid file descriptor after failed dup
28166         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28167         negative file descriptor.
28168
28169 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28170
28171         savedir: add streamsavedir, deprecate fdsavedir
28172         * NEWS: Mention deprecation of fdsavedir.
28173         * lib/savedir.c (streamsavedir): New extern function, whose name
28174         ends in "savedir" to be consistent with the others.  This differs
28175         from savedirstream in that it doesn't close its argument.  The
28176         next version of GNU tar will use this instead of fdsavedir, to
28177         avoid some race conditions and conserve file descriptors.
28178         (savedirstream): Reimplement as a wrapper around streamsavedir.
28179         (fdsavedir): Add a comment deprecating this function.  As far as
28180         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28181         * lib/savedir.h (streamsavedir): New decl.
28182         (fdsavedir): Add a comment deprecating this.
28183
28184 2010-09-10  Bruno Haible  <bruno@clisp.org>
28185
28186         langinfo: Fix last commit.
28187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28188         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28190
28191 2010-09-10  Bruno Haible  <bruno@clisp.org>
28192
28193         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28194         * lib/progreloc.c (O_EXEC): Define fallback.
28195
28196 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28197
28198         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28199         * NEWS: Document recent changes to fcntl-h.
28200         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28201         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28202         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28203         Similarly for O_SEARCH; this last was already true, but not documented.
28204         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28205         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28206         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28207         Likewise.
28208         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28209         is zero, not whether it is defined.
28210         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28211         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28212         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28213
28214 2010-09-10  Bruno Haible  <bruno@clisp.org>
28215
28216         langinfo, nl_langinfo: Fix for IRIX 5.3.
28217         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28218         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28219         HAVE_LANGINFO_YESEXPR.
28220         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28221         HAVE_LANGINFO_YESEXPR.
28222         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28223         HAVE_LANGINFO_T_FMT_AMPM is 0.
28224         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28225         HAVE_LANGINFO_YESEXPR is 0.
28226         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28227         NOEXPR.
28228         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28229         * doc/posix-functions/nl_langinfo.texi: Likewise.
28230         Reported by Eric Blake.
28231
28232 2010-09-10  Bruno Haible  <bruno@clisp.org>
28233
28234         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28235         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28236         on FreeBSD 8.0 and OpenBSD 4.6.
28237         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28238         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28239         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28240         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28241         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28242         ac_includes_default.
28243         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28244
28245 2010-09-09  Eric Blake  <eblake@redhat.com>
28246
28247         strsignal: work around NetBSD bug
28248         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28249         * lib/string.in.h (includes): Likewise.
28250         * doc/posix-functions/strsignal.texi (strsignal): Document the
28251         bug.
28252         Reported by Nelson H. F. Beebe.
28253
28254         gnulib-tool: work with NetBSD /bin/sh
28255         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28256         (func_get_description, func_get_comment, func_get_status)
28257         (func_get_notice, func_get_applicability, func_get_filelist)
28258         (func_get_dependencies, func_get_autoconf_early_snippet)
28259         (func_get_autoconf_snippet, func_get_automake_snippet)
28260         (func_get_include_directive, func_get_link_directive)
28261         (func_get_license, func_get_maintainer, func_import): Avoid
28262         shell syntax errors from parsing syntax extensions.
28263
28264 2010-09-09  Bruno Haible  <bruno@clisp.org>
28265
28266         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28267         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28268         a reliable way to determine whether the 'alias' command works.
28269
28270 2010-09-08  Jim Meyering  <meyering@redhat.com>
28271
28272         init.sh: penalize a set-x-impaired shell; don't disqualify it
28273         * tests/init.sh: Too many shells corrupt application stderr when
28274         you set -x, so we can't afford to disqualify them, since at least
28275         on Irix-6.5, that would disqualify all bourne shells.
28276         Instead, use a two-pass approach.
28277         On the first pass, try to find a shell that meets the stricter
28278         condition that set -x does not corrupt stderr.
28279         If no shell meets the stricter condition, retest each candidate
28280         shell, but without that extra condition.  Finally, when
28281         VERBOSE=yes is requested and set -x might cause trouble, simply
28282         issue a warning and refrain from enabling debug output.
28283
28284 2010-09-08  Eric Blake  <eblake@redhat.com>
28285
28286         unsetenv: fix OpenBSD bug
28287         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28288         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28289         documentation.
28290         Reported by Jim Meyering.
28291
28292         strtod: work around IRIX 6.5 bug
28293         * lib/strtod.c (strtod): Reparse number on shorter string if
28294         exponent parse was invalid.
28295         * tests/test-strtod.c (main): Add check for "0x1p 2".
28296         Reported by Tom G. Christensen.
28297
28298         getopt: optimize previous patch
28299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28300         empty variable.  Speed up awk script.
28301         Reported by Paolo Bonzini.
28302
28303 2010-09-08  Jim Meyering  <meyering@redhat.com>
28304
28305         test.sh: disqualify shells for which set -x corrupts stderr
28306         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28307         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28308         appear in stderr output.  For example, this command:
28309             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28310         prints "P=1" on those two systems:
28311
28312 2010-09-08  Bruno Haible  <bruno@clisp.org>
28313
28314         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28315         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28316         commands, because some shells ignore redirections when there is an
28317         error in the command lookup.
28318         Reported by Eric Blake.
28319
28320 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28321
28322         * lib/regex.h: Fix a mention of `regex_compile' (should be
28323         `re_compile_pattern').
28324         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28325         (re_set_registers): Correct name of parameter in comment.
28326
28327         * doc/regex.texi: Add documentation for missing syntax flags.
28328         Remove commented-out documentation of defunct syntax option
28329         RE_NO_EMPTY_ALTS.
28330         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28331         Add documentation of re_set_registers.
28332         Document trick to re-use a pattern buffer by setting fastmap manually.
28333         Update documentation of struct re_pattern_buffer per public members.
28334         Uncomment documentation of equivalence class operators and
28335         collating symbol operators, since they are now implemented,
28336         Explain leftmost-longest matching in relation to alternatives.
28337         Tidy documentation of substring matching.
28338         Remove POSIX documentation, which is done better in
28339         glibc, and refer the reader there. Keep BSD API documentation, as
28340         that is not readily available elsewhere.
28341
28342 2010-09-07  Eric Blake  <eblake@redhat.com>
28343
28344         getopt: handle POSIXLY_CORRECT set but not exported
28345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28346         export state of POSIXLY_CORRECT, due to bash set -o posix.
28347         Reported by Dustin J. Mitchell.
28348
28349 2010-09-05  Bruno Haible  <bruno@clisp.org>
28350
28351         gnulib-tool: Highlight the changed options.
28352         * gnulib-tool (func_usage): Display the --import, --add-import,
28353         --remove-import explanations in bold font.
28354
28355 2010-09-06  Karl Berry  <karl@gnu.org>
28356
28357         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28358
28359 2010-09-05  Bruno Haible  <bruno@clisp.org>
28360
28361         uniwidth/width: Update comment.
28362         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28363         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28364
28365 2010-09-05  Bruno Haible  <bruno@clisp.org>
28366
28367         isinf, isnan: Relax license.
28368         * modules/isinf (License): Change from GPL to LGPL, with consent from
28369         Ben Pfaff.
28370         * modules/isnan (License): Likewise.
28371         Requested by Ludovic Courtès.
28372
28373 2010-09-04  Bruno Haible  <bruno@clisp.org>
28374
28375         gnulib-tool: Help migration from --import to --add-import or --update.
28376         * gnulib-tool: Emit a verbose error message when --import is used
28377         without any module name.
28378
28379 2010-09-04  Bruno Haible  <bruno@clisp.org>
28380
28381         Update doc about gnulib-tool.
28382         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28383         'gnulib-tool --update' in more detail.
28384         Reported by Eric Blake.
28385
28386 2010-09-04  Bruno Haible  <bruno@clisp.org>
28387
28388         gnulib-tool: Change --import. New options --add/remove-import.
28389         * gnulib-tool: New options --add-import, --remove-import.
28390         (func_usage): Document them.
28391         (have_associative): Define always.
28392         (func_import): In import mode, don't merge the specified settings with
28393         the cached settings. Implement remove-import mode.
28394         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28395         Explain when to use them versus --import.
28396         (Simple update): Use --add-import instead of --import.
28397         * NEWS: Mention the change.
28398
28399 2010-09-04  Bruno Haible  <bruno@clisp.org>
28400
28401         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28402         separate gnulib.mk.
28403
28404 2010-09-04  Bruno Haible  <bruno@clisp.org>
28405
28406         gnulib-tool: Don't talk about CVS any more.
28407         * gnulib-tool (func_usage, func_import): Write "version control"
28408         instead of CVS.
28409
28410 2010-09-04  Jim Meyering  <meyering@redhat.com>
28411
28412         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28413         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28414         false positives (whose names may be ill-chosen) when searching
28415         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28416         would cause a false-positive.
28417
28418         avoid coreutils "make distcheck" failure
28419         Coreutils tests with an absolute build directory name that contains
28420         a space.  Not quoting this directory name caused a failure.
28421         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28422         * tests/test-vc-list-files-cvs.sh: Likewise.
28423
28424 2010-09-04  Bruno Haible  <bruno@clisp.org>
28425
28426         gnulib-tool: Avoid error when run in a package without Makefile.am.
28427         * gnulib-tool: When collecting the m4dirs in a package that does not
28428         have a Makefile.am, eliminate those directories that contain no
28429         gnulib-cache.m4. Fix expression that counts these directories.
28430
28431 2010-09-04  Bruno Haible  <bruno@clisp.org>
28432
28433         update-copyright test: Improve output when perl is missing or too old.
28434         * tests/test-update-copyright.sh: Move test of Perl version down after
28435         the test whether Perl exists. Provide an explanation relating Perl's
28436         error message to Automake's SKIP: message.
28437
28438 2010-09-04  Bruno Haible  <bruno@clisp.org>
28439
28440         Don't augment PATH in TESTS_ENVIRONMENT.
28441         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28442         set abs_aux_dir instead of augmenting PATH.
28443         * modules/vc-list-files-tests (Makefile.am): Likewise.
28444         * tests/test-update-copyright.sh: Augment PATH here.
28445         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28446         path_prepend_.
28447         * tests/test-vc-list-files-git.sh: Likewise.
28448
28449 2010-09-04  Jim Meyering  <meyering@redhat.com>
28450
28451         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28452         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28453
28454 2010-09-04  Bruno Haible  <bruno@clisp.org>
28455
28456         strdup: Fix compilation error in C++ mode.
28457         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28458         the macro.
28459
28460 2010-09-04  Bruno Haible  <bruno@clisp.org>
28461
28462         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28463         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28464         macro into a function.
28465         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28466
28467 2010-09-04  Bruno Haible  <bruno@clisp.org>
28468
28469         Set PATH_SEPARATOR the same way autoconf does.
28470         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28471         the value of PATH_SEPARATOR the same way autoconf-generated configure
28472         scripts do.
28473         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28474         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28475
28476 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28477
28478         Set PATH_SEPARATOR the same way autoconf does.
28479         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28480         the same way autoconf-generated configure scripts do.
28481         * posix-modules: Likewise.
28482
28483 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         hash: fix safe_hasher const typo
28486         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28487         const; otherwise, there is a type error later.
28488
28489 2010-09-02  Jim Meyering  <meyering@redhat.com>
28490
28491         test-update-copyright.sh: require perl 5.8.0
28492         * tests/test-update-copyright.sh: Require 5.8.0,
28493         which Tom G. Christensen has confirmed is adequate,
28494         while 5.6.1 is not.
28495
28496 2010-09-02  Eric Blake  <eblake@redhat.com>
28497
28498         tests: init.sh improvements for re-exec'ing with zsh
28499         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28500         -vx through shell re-exec.
28501         Reported by Tom G. Christensen.
28502
28503         wctype: fix typo in previous commit
28504         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28505         Reported by Ludovic Courtès.
28506
28507 2010-09-02  Jim Meyering  <meyering@redhat.com>
28508
28509         test-update-copyright.sh: skip test if Perl is too old
28510         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28511         Reported by Tom G. Christensen.
28512
28513 2010-09-02  Bruno Haible  <bruno@clisp.org>
28514
28515         wctype: Avoid compilation error on IRIX 6.5.30.
28516         * lib/wctype.in.h (iswblank): Declare with a replacement if
28517         REPLACE_ISWBLANK is set.
28518         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28519         declared. Set REPLACE_ISWBLANK.
28520         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28521         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28522         * doc/posix-headers/wctype.texi: Likewise.
28523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28524
28525 2010-09-01  Bruno Haible  <bruno@clisp.org>
28526
28527         New module 'socketlib'.
28528         * modules/socketlib: New file.
28529         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28530         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28531         * modules/sockets (Depends-on): Add socketlib.
28532         Suggested by Sam Steingold <sds@gnu.org>.
28533
28534 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28535
28536         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28537
28538         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28539         when one needs search access to a directory but not read access.
28540         On systems where it is available, it works in some cases where
28541         O_RDONLY does not, namely on directories that are searchable but
28542         not readable, and which need only to be searchable.  If O_SEARCH
28543         is not available, fall back to the traditional method of using
28544         O_RDONLY.
28545
28546         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28547         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28548         when opening a directory that needs only to be searchable.
28549         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28550         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28551         * lib/openat-proc.c (openat_proc_name): Likewise.
28552         * lib/openat.c (openat_needs_fchdir): Likewise.
28553         * lib/save-cwd.c (save_cwd): Likewise.
28554         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28555
28556 2010-08-28  Bruno Haible  <bruno@clisp.org>
28557
28558         New module 'host-cpu-c-abi'.
28559         * modules/host-cpu-c-abi: New file.
28560         * m4/host-cpu-c-abi.m4: New file, based on part of
28561         clisp/src/m4/general.m4.
28562         Requested by Sam Steingold <sds@gnu.org>.
28563
28564 2010-08-31  Eric Blake  <eblake@redhat.com>
28565         and Jim Meyering  <meyering@redhat.com>
28566
28567         hash: factor, and guard against misbehaving hasher function
28568         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28569         of table->hasher's return value.  Also protect against a hash value
28570         so large that adding it to table->bucket results in a NULL pointer.
28571         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28572         Use it in place of open-coded check-and-abort.
28573
28574 2010-08-30  Bruno Haible  <bruno@clisp.org>
28575
28576         hash: silence spurious clang warning
28577         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28578         Reported by Eric Blake.
28579
28580 2010-08-30  Eric Blake  <eblake@redhat.com>
28581
28582         strstr, memmem, strcasestr: avoid leaked shell message
28583         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28584         FreeBSD.
28585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28587
28588         tests: silence clang warning
28589         * tests/test-malloca.c (do_allocation): Avoid dead store.
28590
28591 2010-08-29  Bruno Haible  <bruno@clisp.org>
28592
28593         gettext: Fix recent mistake.
28594         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28595
28596 2010-08-29  Bruno Haible  <bruno@clisp.org>
28597
28598         selinux-h: Offer a --without-selinux option.
28599         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28600         --without-selinux was specified, skip all tests and define
28601         HAVE_SELINUX_SELINUX_H to 0.
28602         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28603         set LIB_SELINUX to empty.
28604         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28605         gl_LIBSELINUX. If --without-selinux was specified, replace
28606         selinux/context.h.
28607         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28608
28609 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28610             Bruno Haible  <bruno@clisp.org>
28611
28612         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28613         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28614         of HAVE_REALLOC.
28615         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28616         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28617         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28618         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28619
28620 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28621             Bruno Haible  <bruno@clisp.org>
28622
28623         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28624         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28625         HAVE_CALLOC.
28626         * lib/xmalloc.c: Update accordingly.
28627         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28628         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28629         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28630
28631 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28632             Bruno Haible  <bruno@clisp.org>
28633
28634         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28635         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28636         HAVE_MALLOC.
28637         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28638         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28639         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28640
28641 2010-08-29  Bruno Haible  <bruno@clisp.org>
28642
28643         Update modules list.
28644         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28645         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28646         (String handling <string.h>): Add astrxfrm.
28647         (File system functions): Add readlinkat.
28648
28649 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28650
28651         Tests for module 'realloc-gnu'.
28652         * modules/realloc-gnu-tests: New file.
28653         * tests/test-realloc-gnu.c: New file.
28654
28655         Tests for module 'calloc-gnu'.
28656         * modules/calloc-gnu-tests: New file.
28657         * tests/test-calloc-gnu.c: New file.
28658
28659         Tests for module 'malloc-gnu'.
28660         * modules/malloc-gnu-tests: New file.
28661         * tests/test-malloc-gnu.c: New file.
28662
28663 2010-08-28  Bruno Haible  <bruno@clisp.org>
28664
28665         Rename module 'realloc' -> 'realloc-gnu'.
28666         * modules/realloc-gnu: New file, copied from modules/realloc.
28667         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28668         obsolete.
28669         * modules/mgetgroups (Depends-on): Update.
28670         * doc/posix-functions/realloc.texi: Update.
28671         * NEWS: Mention the change.
28672
28673         Rename module 'calloc' -> 'calloc-gnu'.
28674         * modules/calloc-gnu: New file, copied from modules/calloc.
28675         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28676         obsolete.
28677         * doc/posix-functions/calloc.texi: Update.
28678         * NEWS: Mention the change.
28679
28680         Rename module 'malloc' -> 'malloc-gnu'.
28681         * modules/malloc-gnu: New file, copied from modules/malloc.
28682         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28683         obsolete.
28684         * modules/argp (Depends-on): Update.
28685         * modules/regex (Depends-on): Update.
28686         * doc/posix-functions/malloc.texi: Update.
28687         * NEWS: Mention the change.
28688
28689 2010-08-28  Eric Blake  <eblake@redhat.com>
28690
28691         pread, pwrite: add missing dependency
28692         * modules/pread (Depends-on): Add extensions.
28693         * modules/pwrite (Depends-on): Likewise.
28694
28695 2010-08-28  Bruno Haible  <bruno@clisp.org>
28696
28697         unistr/u*-strchr: Fix tests dependencies.
28698         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28699         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28700         Reported by Ian Beckwith <ianb@erislabs.net>.
28701
28702 2010-08-28  Bruno Haible  <bruno@clisp.org>
28703
28704         read-file: Don't occupy too much unused memory.
28705         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28706
28707 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28708             Eric Blake  <eblake@redhat.com>
28709             Bruno Haible  <bruno@clisp.org>
28710
28711         read-file: Avoid memory reallocations with regular files.
28712         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28713         (fread_file): With regular files, use the remaining length as the
28714         initial buffer size.  Check against overflow.
28715         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28716         sys_stat.
28717
28718 2010-08-28  Bruno Haible  <bruno@clisp.org>
28719
28720         ftello: Relax license.
28721         * modules/ftello (License): Relax to LGPLv2+.
28722         Reported by Eric Blake.
28723
28724 2010-08-28  Bruno Haible  <bruno@clisp.org>
28725
28726         Avoid relocwrapper link errors due to gnulib replacement functions.
28727         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28728         function.
28729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28730
28731 2010-08-28  Bruno Haible  <bruno@clisp.org>
28732
28733         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28734         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28735         defined.
28736         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28737         Suggested by Eric Blake.
28738
28739 2010-08-28  Bruno Haible  <bruno@clisp.org>
28740
28741         sys_socket, netdb: Ensure socklen_t gets defined.
28742         * modules/sys_socket (Depends-on): Add socklen.
28743         * modules/netdb (Depends-on): Likewise.
28744         * modules/getaddrinfo (Depends-on): Remove socklen.
28745         * modules/getsockopt (Depends-on): Likewise.
28746         * modules/setsockopt (Depends-on): Likewise.
28747         * tests/test-sys_socket.c: Check that socklen_t is defined.
28748         * tests/test-netdb.c: Likewise.
28749         * m4/socklen.m4: Update comments.
28750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28751
28752 2010-08-27  Eric Blake  <eblake@redhat.com>
28753
28754         login_tty: add missing dependency
28755         * modules/login_tty (Depends-on): Add pty.
28756
28757 2010-08-26  Eric Blake  <eblake@redhat.com>
28758
28759         lib-symbol-versions: fix m4 quoting
28760         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28761         format for AC_LINK_IFELSE.
28762
28763         glob: fix compile test
28764         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28765
28766         btowc: fix missing file
28767         * modules/btowc (Files): Also ship locale-fr.m4.
28768
28769         lseek: fix link test
28770         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28771         AC_LINK_IFELSE.
28772
28773         include_next: silence autoconf 2.68 warning
28774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28775         AC_COMPILE_IFELSE as special.
28776         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28777         autoconf < 2.68.
28778
28779         acl: fix compilation test
28780         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28781         AC_COMPILE_IFELSE.
28782
28783 2010-08-26  Bruno Haible  <bruno@clisp.org>
28784
28785         Modernize AC_TRY_RUN invocations.
28786         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28787         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28788         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28789         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28790         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28791         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28794         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28795         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28797         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28798         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28801         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28802         gl_MBRLEN_NUL_RETVAL): Likewise.
28803         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28804         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28805         Likewise.
28806         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28807         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28808         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28809         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28810         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28811         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28812         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28813         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28814         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28815         Likewise.
28816         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28817         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28820         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28821         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28823         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28824         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28826
28827 2010-08-26  Bruno Haible  <bruno@clisp.org>
28828
28829         Modernize AC_TRY_LINK invocations.
28830         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28831         AC_TRY_LINK.
28832         * m4/argp.m4 (gl_ARGP): Likewise.
28833         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28834         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28835         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28836         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28837         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28838         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28839         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28840         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28841         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28842         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28843         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28844         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28845         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28846         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28847         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28848         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28849         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28850         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28851         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28852         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28853         Likewise.
28854         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28855         Likewise.
28856         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28857         Likewise.
28858         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28860         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28861         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28862         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28863         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28864         * m4/servent.m4 (gl_SERVENT): Likewise.
28865         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28866         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28867         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28868         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28869         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28870         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28873         * modules/tsearch-tests (configure.ac): Likewise.
28874
28875 2010-08-26  Bruno Haible  <bruno@clisp.org>
28876
28877         Modernize AC_TRY_COMPILE invocations.
28878         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28879         AC_TRY_COMPILE.
28880         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28881         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28882         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28883         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28884         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28885         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28886         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28887         * m4/lock.m4 (gl_LOCK): Likewise.
28888         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28889         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28890         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28891         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28892         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28893         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28894         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28896         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28897         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28898         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28899         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28900         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28901         extraneous semicolon.
28902
28903 2010-08-26  Jim Meyering  <meyering@redhat.com>
28904
28905         stat-time: relax license LGPL
28906         * modules/stat-time (License): Change from GPL to LGPL,
28907         with consent from all contributors, for use in libguile.
28908         Requested by Ludovic Courtès.
28909
28910 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28911
28912         poll: return immediately on POLLHUP.
28913         * lib/poll.c (poll): Always set timeout before wait_timeout is
28914         computed.
28915
28916 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28917
28918         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28919         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28920         rmdir ("dir/.//"), unlinkat.
28921
28922 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28923
28924         stdbool: avoid spurious failure with modern xlc
28925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28926
28927 2010-08-24  Bruno Haible  <bruno@clisp.org>
28928
28929         getloadavg: simplify code
28930         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28931         gl_have_func. Update comments.
28932
28933 2010-08-24  Eric Blake  <eblake@redhat.com>
28934
28935         getloadavg: don't define SVR4 on cygwin
28936         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28937         only define SVR4 when -lkvm is required.
28938         Reported by Yaakov Selkowitz.
28939
28940 2010-08-24  Bruno Haible  <bruno@clisp.org>
28941
28942         priv-set: fix comment
28943         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28944
28945 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         priv-set: fix comments
28948         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28949         to match code, as suggested by David Bartley in:
28950         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28951
28952 2010-08-23  Eric Blake  <eblake@redhat.com>
28953
28954         stdbool: avoid rejecting clang
28955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28956         * tests/test-stdbool.c: Enable more tests if using the system
28957         <stdbool.h> instead of the gnulib replacement.
28958         (main): Move xlc bug test to a runtime test for all compilers.
28959         Reported by Anders Kaseorg.
28960
28961         argz: fix shell quoting issue
28962         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28963         Reported by Charles Wilson.
28964
28965 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28966             Erik Faye-Lund <kusmabite@gmail.com>
28967
28968         poll, select: handle ERROR_BROKEN_PIPE.
28969         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28970         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28971         * lib/select.c (win32_compute_revents): Do not mark a pipe
28972         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28973
28974 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28975
28976         fts: allow compilation with C++
28977         * lib/fts_.h: Specify extern "C" linkage with C++.
28978
28979 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28980
28981         Fix gnulib-tool sed script de-commentation for AIX sed.
28982         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28983         sed.
28984
28985 2010-08-17  Eric Blake  <eblake@redhat.com>
28986
28987         test-stddef: test for (some) offsetof bugs
28988         * tests/test-stddef.c: Enhance test to ensure correct type of
28989         offsetof.
28990         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28991         that we are not fixing at this time.
28992
28993 2010-08-15  Bruno Haible  <bruno@clisp.org>
28994
28995         stpncpy: Allow stpncpy to be defined as a macro.
28996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28997         if it's already correctly declared.
28998         * lib/string.in.h (stpncpy): Undefine before redefining.
28999         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29000
29001 2010-08-14  Bruno Haible  <bruno@clisp.org>
29002
29003         Rename module 'memxfrm' to 'amemxfrm'.
29004         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29005         (amemxfrm): Renamed from memxfrm.
29006         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29007         (amemxfrm): Renamed from memxfrm.
29008         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29009         * NEWS: Mention the change.
29010         * MODULES.html.sh (String handling <string.h>): Update.
29011         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29012         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29013         * lib/unicase/u16-casexfrm.c: Likewise.
29014         * lib/unicase/u32-casexfrm.c: Likewise.
29015         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29016         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29017         * lib/uninorm/u16-normxfrm.c: Likewise.
29018         * lib/uninorm/u32-normxfrm.c: Likewise.
29019         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29020         memxfrm.
29021         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29022         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29023         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29024         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29025         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29026         Suggested by Paul Eggert.
29027
29028 2010-08-14  Bruno Haible  <bruno@clisp.org>
29029
29030         Tests for module 'astrxfrm'.
29031         * modules/astrxfrm-tests: New file.
29032         * tests/test-astrxfrm.c: New file.
29033
29034         New module 'astrxfrm'.
29035         * lib/astrxfrm.h: New file.
29036         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29037         * modules/astrxfrm: New file.
29038
29039 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29040
29041         regex: Tweak doc.
29042         * doc/regex.texi (Overview): Don't mention regex.c.
29043         (GNU Regular Expression Compiling): Likewise.
29044         (Match-end-of-line Operator): Mention 'not_eol'.
29045
29046 2010-08-14  Brian Gough  <bjg@gnu.org>
29047             Bruno Haible  <bruno@clisp.org>
29048
29049         git-merge-changelog: add doc relating to use with bzr and hg.
29050         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29051
29052 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29053
29054         pthread: fix pthread.h creation for srcdir != builddir
29055         * modules/pthread (Makefile.am): Fix the rule to work also in a
29056         non-srcdir build.
29057
29058 2010-08-13  Karl Berry  <karl@gnu.org>
29059
29060         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29061         * doc/posix-*/*: force line break before @url of POSIX
29062         specifications.
29063         Suggested by Werner Lemberg.
29064
29065 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29066
29067         strtod: fix const diagnostic
29068         * lib/strtod.c (strtod): Don't assign const char * to char *,
29069         as this elicits a warning from GCC when warnings are enabled.
29070
29071 2010-08-10  Pádraig Brady <P@draigbrady.com>
29072         and Eric Blake  <eblake@redhat.com>
29073
29074         copy-acl: ignore ENOTSUP on HP-UX
29075         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29076         so that it is available for HP-UX.
29077         * lib/copy-acl.c (qcopy_acl): Use it.
29078         Reported by Patrick M. Callahan.
29079
29080 2010-08-10  Eric Blake  <eblake@redhat.com>
29081
29082         open, chown: relax license
29083         * modules/open (License): Change to LGPLv2+, with consent by all
29084         authors, for use in augeas.
29085         * modules/chown (License): Likewise.
29086         * modules/lchown (Likewise): Likewise.
29087         Requested by Adam Stokes.
29088
29089 2010-08-09  Karl Berry  <karl@gnu.org>
29090
29091         * build-aux/ar-lib: new file, import from Automake.
29092         * config/srclist.txt: autocheck for updates.
29093
29094 2010-08-09  Eric Blake  <eblake@redhat.com>
29095
29096         readlinkat: adjust client modules
29097         * modules/areadlinkat (Depends-on): Use readlinkat, not
29098         symlinkat.
29099         * modules/areadlinkat-with-size (Depends-on): Likewise.
29100
29101         mknod: be more vocal about danger of running tests as root
29102         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29103         root, since that is just asking for problems.
29104         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29105
29106         readlinkat: split into its own module
29107         * modules/symlinkat: Split readlinkat...
29108         * modules/readlinkat: ...into separate module.
29109         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29110         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29111         * lib/symlinkat.c (readlinkat): Move...
29112         * lib/readlinkat.c: ...into new file.
29113         * modules/symlinkat-tests: Split readlinkat test...
29114         * modules/readlinkat-tests: ...into separate module.
29115         * tests/test-symlinkat.c: Split...
29116         * tests/test-readlinkat.c: ...into new file.
29117         * NEWS: Document the split.
29118         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29119         * lib/unistd.in.h (readlinkat): Likewise.
29120         Suggested by Bruno Haible.
29121
29122 2010-08-08  Bruno Haible  <bruno@clisp.org>
29123
29124         memxfrm: Speed up.
29125         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29126         that usually only one call to strxfrm is necessary for each string
29127         part.
29128         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29129
29130 2010-08-07  Karl Berry  <karl@gnu.org>
29131
29132         * doc/posix-headers/limits.texi,
29133         * doc/posix-functions/malloc.texi,
29134         * doc/posix-functions/strsignal.texi: missing @item.
29135         * doc/ld-version-script.texi: spurious leading i.
29136         * doc/regex.texi (Interval Operators): no commas inside @var.
29137
29138 2010-08-01  Bruno Haible  <bruno@clisp.org>
29139
29140         Integrate the regex documentation.
29141         * doc/gnulib.texi: Define 'cn' index.
29142         (Regular expressions): New a chapter that includes regex.texi and
29143         regexprops-generic.texi.
29144         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29145         syntax.
29146
29147         Whitespace cleanup.
29148         * doc/regex.texi: Remove trailing spaces.
29149
29150         Add regex documentation.
29151         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29152         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29153         Written by Kathy A. Hargreaves and Karl Berry.
29154
29155 2010-08-01  Bruno Haible  <bruno@clisp.org>
29156
29157         link: Update documentation.
29158         * doc/posix-functions/link.texi: Update regarding Solaris.
29159
29160 2010-07-31  Bruno Haible  <bruno@clisp.org>
29161
29162         Update modules list.
29163         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29164         (String handling <string.h>): Add memcmp2, memxfrm.
29165         (Container data structures): Add xlist, xsublist, xoset.
29166         (Core language properties): Add alignof, unused-parameter.
29167         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29168         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29169         (Unibyte characters <ctype.h>): New section.
29170         (String handling <string.h>): New section.
29171         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29172         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29173         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29174         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29175         tan, tanh, tanl, y0, y1, yn.
29176         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29177         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29178         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29179         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29180         unlockpt, vdprintf, vdprintf-posix.
29181         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29182         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29183         xconcat-filename.
29184         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29185         getdtablesize, pipe2, pipe2-safer.
29186         (Security): New section.
29187         (Networking functions): Add accept4.
29188         (Signal handling): Add sigpipe.
29189         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29190         mbmemcasecoll.
29191         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29192         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29193         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29194         pipe-filter-ii.
29195         (Misc): Add argp-version-etc, login_tty, parse-duration.
29196
29197 2010-07-31  Bruno Haible  <bruno@clisp.org>
29198
29199         Improve doc in MODULES.html.
29200         * modules/linkat (Description): Add the word "function".
29201         * modules/mkfifo (Description): Likewise.
29202         * modules/mknod (Description): Likewise.
29203         * modules/remove (Description): Likewise.
29204         * modules/renameat (Description): Likewise.
29205         * modules/stat (Description): Likewise.
29206         * modules/symlink (Description): Likewise.
29207         * modules/unlink (Description): Likewise.
29208
29209 2010-07-31  Bruno Haible  <bruno@clisp.org>
29210
29211         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29212         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29213         option --enable/disable-c++ instead of --enable/disable-cxx.
29214         * NEWS: Mention the change.
29215
29216 2010-07-31  Bruno Haible  <bruno@clisp.org>
29217
29218         readlink, areadlink: Relax test a bit.
29219         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29220         alternative to ENOTDIR.
29221         * tests/test-areadlink.h (test_areadlink): Likewise.
29222         Reported by Rainer Tammer.
29223
29224 2010-07-31  Bruno Haible  <bruno@clisp.org>
29225
29226         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29227         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29228         character, perform the search using U_STRCHR.
29229         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29230         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29231         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29232         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29233         Suggested by Paolo Bonzini.
29234
29235 2010-07-31  Bruno Haible  <bruno@clisp.org>
29236
29237         unistr/u*-strstr: Fix dependencies.
29238         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29239         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29240         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29241
29242 2010-07-31  Bruno Haible  <bruno@clisp.org>
29243
29244         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29245         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29246         the beginning of the loop.
29247         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29248         cases in 'switch' statement.
29249
29250         unistr/u8-strchr: Fix several bugs.
29251         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29252         the string. When not found, return NULL, not a pointer near the end.
29253
29254         More tests for unistr/u8-strchr.
29255         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29256         that the function does not read past the first occurrence of the byte
29257         being searched.
29258         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29259         * tests/unistr/test-u16-strchr.c (main): New function.
29260         * tests/unistr/test-u32-strchr.c (main): New function.
29261
29262 2010-07-31  Bruno Haible  <bruno@clisp.org>
29263
29264         posix-modules: Ignore backup files of documentation files.
29265         * posix-modules: grep only through files named *.texi.
29266
29267 2010-07-31  Bruno Haible  <bruno@clisp.org>
29268
29269         symlinkat: Fix documentation.
29270         * doc/posix-functions/readlinkat.texi: Fix module name.
29271
29272 2010-07-31  Bruno Haible  <bruno@clisp.org>
29273
29274         fchownat: Replace also when chown has the trailing slash bug.
29275         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29276         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29277         introduced on 2010-04-10.
29278         Reported by Rainer Tammer.
29279
29280 2010-07-31  Bruno Haible  <bruno@clisp.org>
29281
29282         linkat: Work around AIX 7.1 bug.
29283         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29284         whether linkat handles trailing slash correctly. If not, replace linkat
29285         and define LINKAT_TRAILING_SLASH_BUG.
29286         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29287         check whether (fd1,file1) points to a directory if file1 or file2 ends
29288         in a slash. Code taken from lib/link.c.
29289         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29290         Reported by Rainer Tammer.
29291
29292 2010-07-31  Bruno Haible  <bruno@clisp.org>
29293
29294         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29295         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29296         This disables an xlc optimization that was causing wrong test results.
29297         Reported by Rainer Tammer.
29298
29299 2010-07-31  Bruno Haible  <bruno@clisp.org>
29300
29301         iconv: Work around AIX 6.1..7.1 bug.
29302         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29303         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29304         cross-compiling, guess no on all versions of AIX.
29305         Reported by Rainer Tammer.
29306
29307 2010-07-31  Bruno Haible  <bruno@clisp.org>
29308
29309         readlink: Relax test a bit.
29310         * tests/test-readlink.h (test_readlink): Allow different errno value
29311         when readlink is called with a file name that ends in / and refers to
29312         a file.
29313         Suggested by Eric Blake.
29314         Reported by Rainer Tammer.
29315
29316 2010-07-31  Bruno Haible  <bruno@clisp.org>
29317
29318         copysign: Does not require -lm on glibc systems.
29319         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29320         gl_COMMON_DOUBLE_MATHFUNC.
29321         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29322
29323 2010-07-31  Bruno Haible  <bruno@clisp.org>
29324
29325         duplocale: Work around AIX 7.1 bug.
29326         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29327         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29328         * lib/duplocale.c (rpl_duplocale): Update comment.
29329         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29330         Reported by Rainer Tammer.
29331
29332 2010-07-30  Bruno Haible  <bruno@clisp.org>
29333
29334         dirfd: Avoid link error on AIX 7.1.
29335         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29336         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29337         exist, set REPLACE_DIRFD.
29338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29339         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29340         * doc/posix-functions/dirfd.texi: Update.
29341         Reported by Rainer Tammer.
29342
29343 2010-07-30  Eric Blake  <eblake@redhat.com>
29344
29345         strtod: next round of AIX fixes
29346         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29347         exponent.
29348         * tests/test-strtod.c (main): Enhance tests.
29349         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29350         Reported by Rainer Tammer.
29351
29352         futimens: fix configure check
29353         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29354         Reported by Bruno Haible.
29355
29356 2010-07-30  Bruno Haible  <bruno@clisp.org>
29357
29358         getline: Update regarding AIX.
29359         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29360         Reported by Rainer Tammer.
29361
29362 2010-07-30  Bruno Haible  <bruno@clisp.org>
29363
29364         wcwidth: Drop replacement on AIX 7.
29365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29366         AIX 7.
29367         Reported by Rainer Tammer.
29368
29369 2010-07-30  Bruno Haible  <bruno@clisp.org>
29370
29371         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29373         a 'char *'.
29374         Reported by Rainer Tammer.
29375
29376 2010-07-30  Bruno Haible  <bruno@clisp.org>
29377
29378         unlink: Update regarding AIX.
29379         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29380         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29381         Reported by Rainer Tammer.
29382
29383 2010-07-30  Bruno Haible  <bruno@clisp.org>
29384
29385         symlink: Update regarding AIX.
29386         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29387         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29388         Reported by Rainer Tammer.
29389
29390 2010-07-30  Bruno Haible  <bruno@clisp.org>
29391
29392         strndup: Update regarding AIX.
29393         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29394         AIX 7.
29395         Reported by Rainer Tammer.
29396
29397 2010-07-30  Bruno Haible  <bruno@clisp.org>
29398
29399         stat: Update regarding AIX.
29400         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29401         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29402         Reported by Rainer Tammer.
29403
29404 2010-07-30  Bruno Haible  <bruno@clisp.org>
29405
29406         truncl: Fix autoconf test.
29407         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29408         whether truncl works.
29409         Reported by Rainer Tammer.
29410
29411 2010-07-30  Bruno Haible  <bruno@clisp.org>
29412
29413         round: Update regarding AIX.
29414         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29415         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29416         Reported by Rainer Tammer.
29417
29418 2010-07-30  Bruno Haible  <bruno@clisp.org>
29419
29420         rename: Update regarding AIX.
29421         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29422         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29423         Reported by Rainer Tammer.
29424
29425 2010-07-30  Bruno Haible  <bruno@clisp.org>
29426
29427         printf.m4: Update regarding AIX.
29428         * m4/printf.m4: Update comments regarding AIX.
29429         Reported by Rainer Tammer.
29430
29431 2010-07-30  Bruno Haible  <bruno@clisp.org>
29432
29433         iconv: Update regarding AIX.
29434         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29435         AIX 7.
29436         Reported by Rainer Tammer.
29437
29438 2010-07-30  Bruno Haible  <bruno@clisp.org>
29439
29440         getopt: Update regarding AIX.
29441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29442         no on AIX.
29443         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29444         Reported by Rainer Tammer.
29445
29446 2010-07-30  Bruno Haible  <bruno@clisp.org>
29447
29448         ldexpl; Update regarding AIX.
29449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29450         on AIX 7.
29451         Reported by Rainer Tammer.
29452
29453 2010-07-30  Bruno Haible  <bruno@clisp.org>
29454
29455         frexpl: Update regarding AIX.
29456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29457         on AIX 7.
29458         Reported by Rainer Tammer.
29459
29460 2010-07-30  Bruno Haible  <bruno@clisp.org>
29461
29462         open, fopen: Update regarding AIX.
29463         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29464         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29465         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29466         * doc/posix-functions/fopen.texi: Likewise.
29467         Reported by Rainer Tammer.
29468
29469 2010-07-30  Bruno Haible  <bruno@clisp.org>
29470
29471         chown: Update doc regarding AIX.
29472         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29473         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29474         Reported by Rainer Tammer.
29475
29476 2010-07-30  Eric Blake  <eblake@redhat.com>
29477
29478         strtod: fix bug in replacement function on AIX
29479         * lib/strtod.c (strtod): Special case broken "0x" parse in
29480         underlying strtod.
29481         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29482         * doc/posix-functions/strtod.texi (strtod): Likewise.
29483         Reported by Rainer Tammer.
29484
29485 2010-07-30  Bruno Haible  <bruno@clisp.org>
29486
29487         mbrlen: Fix cross-compilation guess for AIX.
29488         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29489         guess. Leftover from 2008-12-22.
29490
29491 2010-07-30  Bruno Haible  <bruno@clisp.org>
29492
29493         mbrtowc: Fix cross-compilation guess for AIX.
29494         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29495         guess. Leftover from 2008-12-21.
29496
29497 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29498
29499         init.sh: work around trap limitation of some shells
29500         * tests/init.sh (setup_): Move exit trap outside of shell function.
29501
29502 2010-07-29  Eric Blake  <eblake@redhat.com>
29503
29504         strtod: aid debugging
29505         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29506         understanding why strtod is rejected.
29507
29508 2010-07-28  Bruno Haible  <bruno@clisp.org>
29509
29510         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29511         * lib/unistr/u8-chr.c: Include <string.h>.
29512         * tests/unistr/test-u8-chr.c: Likewise.
29513         * tests/unistr/test-u16-chr.c: Likewise.
29514         * tests/unistr/test-u32-chr.c: Likewise.
29515         * tests/unistr/test-u8-strchr.c: Likewise.
29516         * tests/unistr/test-u16-strchr.c: Likewise.
29517         * tests/unistr/test-u32-strchr.c: Likewise.
29518         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29519         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29520         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29521         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29522
29523 2010-07-28  Bruno Haible  <bruno@clisp.org>
29524
29525         Use spaces for indentation, not tabs.
29526         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29527
29528 2010-07-27  Bruno Haible  <bruno@clisp.org>
29529
29530         mbspcasecmp: Fix function specification.
29531         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29532         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29533         Reported by Eric Blake <eblake@redhat.com>.
29534
29535 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29536
29537         timespec: use cast and not conditional, as truncation isn't possible
29538         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29539         instead of a conditional.  Comment about the situation in more detail.
29540         This undoes most of the 2009-10-29 patch.
29541
29542 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29543
29544         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29545         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29546         * lib/unistr/u8-strchr.c: Likewise.
29547         * modules/unistr/u8-chr: Depend on memchr.
29548
29549         unistr/u*-strchr: add tests
29550         * modules/unistr/u8-strchr-tests: New file.
29551         * modules/unistr/u16-strchr-tests: New file.
29552         * modules/unistr/u32-strchr-tests: New file.
29553         * tests/unistr/test-strchr.h: New file.
29554         * tests/unistr/test-u8-strchr.c: New file.
29555         * tests/unistr/test-u16-strchr.c: New file.
29556         * tests/unistr/test-u32-strchr.c: New file.
29557
29558         unistr/u*-chr: test multibyte sequences more
29559         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29560         test vector.
29561         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29562         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29563         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29564
29565         unistr/u*-chr: test multibyte sequences
29566         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29567
29568         unistr/u*-chr: prepare for multibyte tests
29569         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29570         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29571         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29572         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29573         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29574         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29575
29576 2010-07-18  Bruno Haible  <bruno@clisp.org>
29577
29578         unistr/u8-strchr: Optimize non-ASCII argument case.
29579         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29580         because the first byte often matches anyway.
29581         Reported by Pádraig Brady <P@draigbrady.com>.
29582
29583 2010-07-15  Karl Berry  <karl@gnu.org>
29584
29585         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29586
29587 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29588
29589         getcwd: on Solaris, work better if ancestors are inaccessible
29590         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29591         buffer and size, try again with a large buffer.  This works better
29592         on Solaris, since its getcwd succeeds even if the path to the root
29593         is inaccessible, and this is helpful in common cases such as .zfs
29594         hidden directories.  Problem reported by J Chapman Flack in
29595         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29596         Use system getcwd if it's declared, not merely if it's partly
29597         working; use the partly-working test only to avoid needless effort
29598         if the system getcwd fails.
29599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29600         comment that was already obsolete and is now even more obsolete.
29601         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29602         now might call strdup.
29603
29604 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29605
29606         pthread: Add enough so that coreutils/src/sort.c compiles.
29607         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29608         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29609         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29610         Include <sys/types.h>, in case it defines pthread_t.
29611         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29612         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29613         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29614         (pthread_rwlockattr_t, pthread_spinlock_t):
29615         New typedefs, if HAVE_PTHREAD_T is not defined.
29616         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29617         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29618         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29619         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29620         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29621         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29622         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29623         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29624         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29625         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29626         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29627         New macros.
29628         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29629         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29630         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29631         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29632         (pthread_spin_unlock): New dummy functions.
29633         (pthread_create): Return EAGAIN; don't set errno.
29634         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29635         require AC_C_INLINE.
29636         * modules/pthread (Depends-on): Add sched, time.
29637         (pthread.h): Use AM_V_GEN.
29638
29639 2010-07-13  Bruno Haible  <bruno@clisp.org>
29640
29641         striconveh: Don't malloc memory if the result buffer is sufficient.
29642         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29643         buffer if its size is sufficient.
29644         Reported by Ludovic Courtès <ludo@gnu.org>.
29645
29646 2010-07-13  Bruno Haible  <bruno@clisp.org>
29647
29648         strtod: Add safety check.
29649         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29650
29651 2010-07-12  Bruno Haible  <bruno@clisp.org>
29652
29653         Unify tests that set gl_cv_func_ldexpl_no_libm.
29654         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29655         gl_FUNC_LDEXPL.
29656         (gl_FUNC_LDEXPL): Invoke it.
29657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29658
29659 2010-07-12  Bruno Haible  <bruno@clisp.org>
29660
29661         Unify tests that set gl_cv_func_ldexp_no_libm.
29662         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29663         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29664         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29665         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29666         * modules/strtod (Files): Add m4/ldexp.m4.
29667
29668 2010-07-12  Bruno Haible  <bruno@clisp.org>
29669
29670         Unify tests that set gl_cv_func_frexpl_no_libm.
29671         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29672         gl_FUNC_FREXPL_NO_LIBM.
29673         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29674         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29675
29676 2010-07-12  Bruno Haible  <bruno@clisp.org>
29677
29678         Unify tests that set gl_cv_func_frexp_no_libm.
29679         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29680         gl_FUNC_FREXP_NO_LIBM.
29681         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29682         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29683
29684 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29685
29686         memcoll: clarify sizes versus lengths, document better, and tweak perf
29687         * lib/memcoll.c (strcoll_loop, memcoll0):
29688         Improve quality of descriptive comments.  Name variables
29689         consistently as to whether they are lengths (which do not include
29690         terminating null) versus sizes (which do).
29691         * lib/xmemcoll.c (xmemcoll0): Likewise.
29692         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29693         returned when s1size == 0; this is easier to compile and saves
29694         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29695
29696 2010-07-12  Bruno Haible  <bruno@clisp.org>
29697
29698         Tests for module '_Exit'.
29699         * modules/_Exit-tests: New file.
29700         * tests/test-_Exit.sh: New file.
29701         * tests/test-_Exit.c: New file.
29702
29703         New module '_Exit'.
29704         * lib/stdlib.in.h (__attribute__): New macro.
29705         (_Exit): New declaration.
29706         * lib/_Exit.c: New file.
29707         * m4/_Exit.m4: New file.
29708         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29709         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29710         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29711         * modules/_Exit: New file.
29712         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29713         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29714
29715 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29716
29717         strtod: make it more-accurate typically, and don't require libm
29718         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29719         Include limits.h.  Don't include string.h.
29720         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29721         (locale_isspace): New function, so that no casts are needed to
29722         check whether *s is a space.
29723         (ldexp): Provide an unused dummy if not available.
29724         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29725         (strtod): Use them.  This implementation prefers to use the
29726         underlying strtod if available, falling back on our own code
29727         only to fix known bugs.  This is more likely to produce an
29728         accurate result.  Also, it avoids the use of libm functions.
29729         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29730         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29731         was absent, but it caused a test failure with coreutils.
29732         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29733         with libm.
29734         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29735         * modules/strtod-tests (Makefile.am): Likewise.
29736
29737 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29738             Bruno Haible  <bruno@clisp.org>
29739
29740         unistr/u8-strchr: Optimize ASCII argument case.
29741         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29742
29743 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29744
29745         (x)memcoll: minor tweaks
29746         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29747         is after the type that it qualifies.
29748         (memcoll0): Likewise.
29749         * lib/memcoll.h (memcoll0): Likewise.
29750         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29751         * lib/xmemcoll.h (xmemcoll0): Likewise.
29752         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29753         differs from memcoll in that the NUL byte is part of the argument.
29754         Omit the abort-checks, as performance is a real issue here.  Plus,
29755         the checks were wrong anyway (an off-by-one error).  Omit local
29756         variable 'diff', as it's a bit clearer that way.
29757         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29758         no longer needed.
29759
29760 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29761
29762         (x)memcoll: speedup when input is known to be NUL delimited
29763         * lib/memcoll.c: Include stdlib.
29764         (memcoll0): New function.
29765         (strcoll_loop): New function, refactored for use in both memcoll
29766         and memcoll0.
29767         * lib/memcoll.h (memcoll0): Add prototype.
29768         * lib/xmemcoll.c (xmemcoll0): New function.
29769         (collate_error): New function, refactored for use in both xmemcoll
29770         and xmemcoll0.
29771         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29772         * m4/memcoll.m4: add inline invocation.
29773
29774 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29775
29776         * build-aux/bootstrap: Remove any local translations
29777         from the translation project synchronization directory,
29778         so that local only translations are not distributed.
29779
29780 2010-07-04  Bruno Haible  <bruno@clisp.org>
29781
29782         fsusage: Clarify which code applies to which platforms.
29783         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29784         platform.
29785         * lib/fsusage.c (get_fs_usage): Likewise.
29786
29787 2010-07-04  Bruno Haible  <bruno@clisp.org>
29788
29789         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29790         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29791         Reported by Martin Lambers <marlam@marlam.de>.
29792
29793 2010-07-04  Jim Meyering  <meyering@redhat.com>
29794
29795         hash: once again explicitly disallow insertion of NULL
29796         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29797         inserting a NULL pointer cannot work with these functions.
29798         Add a comment with details.
29799         This reverts part of the 2010-07-01 commit, 5bef1a35
29800         "hash: extend module to deal with non-pointer keys".
29801
29802 2010-07-01  Bruno Haible  <bruno@clisp.org>
29803
29804         stdbool: Update doc.
29805         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29806         Info from Christian Weisgerber <naddy@mips.inka.de>.
29807
29808 2010-07-01  Jim Meyering  <meyering@redhat.com>
29809
29810         hash: extend module to deal with non-pointer keys
29811         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29812         but that allows insertion of non-pointer entries.
29813         Do not disallow an ENTRY value of NULL.
29814         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29815         * lib/hash.h (hash_insert0): Declare.
29816
29817 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29818
29819         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29820         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29821         not present (i.e. with autoconf 2.59 and when using gettextize, not
29822         gnulib), require AC_GNU_SOURCE instead.
29823
29824 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29825
29826         idpriv-drop: Fix tests.
29827         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29828         not to the test-idpriv-droptemp program.
29829
29830 2010-06-29  Bruno Haible  <bruno@clisp.org>
29831
29832         string: Fix syntax error with g++ 2.96.
29833         * lib/string.in.h (__pure__): Remove definition.
29834         (_GL_ATTRIBUTE_PURE): New macro.
29835         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29836         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29837         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29838
29839 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29840
29841         unitypes: Fix bug introduced on 2010-05-18.
29842         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29843
29844 2010-06-22  Eric Blake  <eblake@redhat.com>
29845
29846         memmem: slight optimization
29847         * lib/str-two-way.h (critical_factorization): Update comments.
29848         Reduce work during factorization phase.
29849         Reported by Carlos Bueno <carlos@bueno.org>.
29850
29851 2010-06-21  Bruno Haible  <bruno@clisp.org>
29852
29853         Fix HAVE_CALLOC_POSIX misnomer.
29854         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29855         !HAVE_CALLOC_POSIX.
29856         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29857         HAVE_CALLOC_POSIX.
29858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29859         instead of HAVE_CALLOC_POSIX.
29860         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29861         HAVE_CALLOC_POSIX.
29862
29863         Use modern idiom for calloc() replacement.
29864         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29865         AC_FUNC_CALLOC.
29866         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29867         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29868         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29869         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29870         (gl_REPLACE_CALLOC): New macro.
29871
29872 2010-06-21  Bruno Haible  <bruno@clisp.org>
29873
29874         Fix HAVE_REALLOC_POSIX misnomer.
29875         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29876         !HAVE_REALLOC_POSIX.
29877         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29878         HAVE_REALLOC_POSIX.
29879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29880         instead of HAVE_REALLOC_POSIX.
29881         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29882         HAVE_REALLOC_POSIX.
29883
29884         Use modern idiom for realloc() replacement.
29885         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29886         AC_FUNC_REALLOC.
29887         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29888         Autoconf's AC_FUNC_REALLOC.
29889         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29890         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29891         (gl_REPLACE_REALLOC): New macro.
29892         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29893
29894 2010-06-21  Bruno Haible  <bruno@clisp.org>
29895
29896         Fix HAVE_MALLOC_POSIX misnomer.
29897         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29898         !HAVE_MALLOC_POSIX.
29899         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29900         HAVE_MALLOC_POSIX.
29901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29902         instead of HAVE_MALLOC_POSIX.
29903         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29904         HAVE_MALLOC_POSIX.
29905
29906         Use modern idiom for malloc() replacement.
29907         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29908         AC_FUNC_MALLOC.
29909         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29910         Autoconf's AC_FUNC_MALLOC.
29911         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29912         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29913         (gl_REPLACE_MALLOC): New macro.
29914         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29915
29916 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29917
29918         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29919         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29920         This macro takes 3 arguments, not 4.
29921
29922 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29923
29924         ipv6: fix detection under mingw
29925         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29926         in6_addr.
29927
29928 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29929
29930         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29931         that strtod() works when cross-compiling to a glibc version known
29932         to work.
29933
29934 2010-06-15  Bruno Haible  <bruno@clisp.org>
29935
29936         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29937
29938 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29939
29940         select: Correct timeout.
29941         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29942
29943 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29944
29945         git-version-gen: init shell var to avoid env var influence
29946         * build-aux/git-version-gen (v): Init shell var to empty.
29947
29948 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         priv-set: Don't assume that priv.h exists merely because getppriv does.
29951         See Jan Andersen's bug report about AIX 5L in
29952         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29953         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29954         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29955         * lib/priv-set.h: Likewise.
29956         * tests/test-priv-set.c: Likewise.
29957
29958 2010-06-13  Bruno Haible  <bruno@clisp.org>
29959
29960         relocatable: Make it easier to test whether to install wrappers.
29961         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29962         RELOCATABLE_VIA_WRAPPER.
29963
29964 2010-06-13  Bruno Haible  <bruno@clisp.org>
29965
29966         gnulib-tool: Display specified modules and dependencies differently.
29967         * gnulib-tool (func_show_module_list): New function.
29968         (func_import, func_create_testdir): Invoke it.
29969         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29970
29971 2010-06-13  Bruno Haible  <bruno@clisp.org>
29972
29973         gnulib-tool: Align code of func_import and func_create_testdir.
29974         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29975         specified_modules.
29976
29977 2010-06-12  Jim Meyering  <meyering@redhat.com>
29978
29979         test-inttostr: avoid spurious failure on Solaris 9
29980         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29981         to accept "%ju".  Reported by Bruno Haible.
29982
29983 2010-06-11  Jim Meyering  <meyering@redhat.com>
29984
29985         test-sys_socket: mark variables as used more readably
29986         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29987         as "used" explicitly via (void) statement casts.  This is more
29988         readable than using them in an artificial return expression.
29989         Suggestion from Bruno Haible.
29990
29991 2010-06-11  Bruno Haible  <bruno@clisp.org>
29992
29993         Avoid some more warnings from "gcc -Wwrite-strings".
29994         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29995         to 'const char *'.
29996         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29997         * tests/test-c-strcasestr.c (main): Likewise.
29998         * tests/test-mbscasestr1.c (main): Likewise.
29999         * tests/test-mbscasestr2.c (main): Likewise.
30000         * tests/test-memmem.c (main): Likewise.
30001         * tests/test-strstr.c (main): Likewise.
30002         * tests/test-strcasestr.c (main): Likewise.
30003
30004 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30005
30006         init.sh: change framework_failure_ to fail with status 99, not 1
30007         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30008         automake's parallel-tests rule that this is an unexpected failure,
30009         even if the test is listed in XFAIL_TESTS.
30010
30011 2010-06-11  Jim Meyering  <meyering@redhat.com>
30012
30013         test-inttostr: avoid warnings about 4-6KB literal strings
30014         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30015         Include "macros.h", for its definition of ASSERT.
30016         (CK): s/assert/ASSERT/
30017         * modules/inttostr-tests (Files): Add macros.h.
30018
30019         init.sh: don't use $ME_ or skip_ before they are defined
30020         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30021         their first uses.  Also hoist their companions: warn_, fail_,
30022         framework_failure_, $stderr_fileno.  Prompted by a patch from
30023         Stefano Lattarini.
30024
30025         test-sys_socket: avoid set-but-not-used warnings from gcc
30026         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30027         avoid warning about set-but-not-used variables.
30028
30029         test-xvasprintf: avoid 'const' discard warnings
30030         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30031         "const" when assigning from literal strings.
30032         (test_xasprintf): Add "void" in function argument list to placate
30033         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30034
30035         tests: avoid compilation warnings in argmatch and exclude tests...
30036         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30037         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30038         Since it always exits, declare with the "noreturn" attribute.
30039         * tests/test-argmatch.c: Likewise.
30040
30041         tests: avoid 'const' discard warnings in mbsstr tests
30042         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30043         * tests/test-mbsstr2.c (main): Likewise.
30044
30045         test-verify: avoid warning from gcc's -Wmissing-declarations
30046         * tests/test-verify.c (function): Declare to be static.
30047
30048         test-inttostr.c: include <string.h> for use of strcmp
30049         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30050
30051         test-linkat: avoid failed assertion on "other" architectures
30052         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30053         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30054         sparc: https://bugs.launchpad.net/bugs/591968
30055
30056 2010-06-11  Jim Meyering  <meyering@redhat.com>
30057
30058         printf.m4: avoid autoconf's "Expanded Before Required" warning
30059         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30060         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30061         autoconf warning.
30062
30063 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30064
30065         Replacement header templates are now named with ".in", not "_".
30066         * doc/gnulib-intro.texi: Correct.
30067
30068 2010-06-10  Jim Meyering  <meyering@redhat.com>
30069
30070         inttostr-tests: depend on snprintf, not snprintf-posix
30071         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30072         snprintf-posix, to avoid this aclocal failure:
30073           missing file gnulib-tests/vasnprintf.c
30074           configure.ac:45: error: expected source file, required through \
30075           AC_LIBSOURCES, not found
30076
30077 2010-06-10  Jim Meyering  <meyering@redhat.com>
30078
30079         inttostr: add a new function, inttostr, and tests
30080         The namesake function was not available.  The existence of the
30081         template file, inttostr.c makes its addition nontrivial.
30082         * lib/anytostr.c: Rename from inttostr.c.
30083         (anytostr): Rename from inttostr.
30084         * lib/inttostr.c: New file.
30085         * modules/inttostr (Files): Add anytostr.c.
30086         (Makefile.am): Set lib_SOURCES instead of ...
30087         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30088         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30089         * lib/offtostr.c: Likewise.
30090         * lib/uinttostr.c: Likewise.
30091         * lib/umaxtostr.c: Likewise.
30092         * modules/inttostr-tests: New file.
30093         * tests/test-inttostr.c: New file.  Test these functions.
30094
30095 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30096             Bruno Haible  <bruno@clisp.org>
30097
30098         Add "Extending Gnulib" chapter to manual.
30099         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30100         chapter.
30101         (Extending Gnulib): New chapter.
30102         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30103         chapter.
30104
30105 2010-06-09  Bruno Haible  <bruno@clisp.org>
30106
30107         Avoid relocwrapper link errors due to gnulib replacement functions.
30108         * lib/areadlink.c: Use the system's malloc, realloc functions.
30109         (areadlink): Set errno to ENOMEM explicitly.
30110         * modules/areadlink (Depends-on): Remove malloc-posix.
30111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30112
30113 2010-06-09  Bruno Haible  <bruno@clisp.org>
30114
30115         Avoid relocwrapper link errors due to gnulib replacement functions.
30116         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30117         * lib/malloca.c: Likewise.
30118         * lib/relocatable.c: Likewise.
30119         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30120         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30121         * lib/setenv.c: Use the system's malloc, realloc functions.
30122         * lib/strerror.c: Use the system's sprintf function.
30123         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30124
30125 2010-06-04  Bruno Haible  <bruno@clisp.org>
30126
30127         Prefer documented low-level autoconf macro names.
30128         * m4/lib-link.m4: Use m4_translit instead of translit.
30129         * m4/environ.m4: Likewise.
30130         * m4/mathfunc.m4: Likewise.
30131         * m4/onceonly.m4: Likewise.
30132         * m4/stdint.m4: Likewise.
30133         Suggested by Eric Blake.
30134
30135 2010-06-04  Martin Lambers  <marlam@marlam.de>
30136             Bruno Haible  <bruno@clisp.org>
30137
30138         havelib: Allow library names with '+' characters.
30139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30140         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30141
30142 2010-06-09  Bruno Haible  <bruno@clisp.org>
30143
30144         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30145         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30146         realloc failed.
30147
30148 2010-06-08  Peter Simons  <simons@cryp.to>
30149
30150         maint.mk: make the news-check rule more configurable
30151         * top/maint.mk (news-check-lines-spec): New variable.
30152         (news-check): Use "sed -n 1,10p" in place of "head".
30153
30154 2010-06-07  Jim Meyering  <meyering@redhat.com>
30155
30156         do-release-commit-and-tag: fix typo in --help
30157         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30158
30159         regex: avoid new dead-code warning with gcc-4.6.0
30160         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30161         if-block containing a while-loop.  It's been unused for at least
30162         5 years.
30163
30164 2010-06-05  Bruno Haible  <bruno@clisp.org>
30165
30166         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30167         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30168
30169 2010-06-04  Bruno Haible  <bruno@clisp.org>
30170
30171         Update to GNU gettext 0.18.1.
30172         * modules/gettext (configure.ac): Require gettext infrastructure from
30173         version 0.18.1.
30174
30175 2010-06-03  Bruno Haible  <bruno@clisp.org>
30176
30177         Don't use AC_LIBOBJ with file names in subdirectories.
30178         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30179         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30180         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30181         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30182         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30183         gl_LIBUNISTRING_LIBSOURCE.
30184         (Makefile.am): Augment lib_SOURCES here, conditionally.
30185         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30186
30187 2010-06-03  Bruno Haible  <bruno@clisp.org>
30188
30189         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30190         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30191         expansion does not end with a newline.
30192         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30193         unnecessary newline.
30194
30195 2010-06-03  Bruno Haible  <bruno@clisp.org>
30196
30197         Reduce dependencies.
30198         * tests/test-quotearg.h: New file, extracted from
30199         tests/test-quotearg.c.
30200         * tests/test-quotearg-simple.c: New file, extracted from
30201         tests/test-quotearg.c.
30202         * tests/test-quotearg.c: Don't include <ctype.h>.
30203         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30204         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30205         use_quote_double_quotes, use_quotearg_colon): Moved to
30206         tests/test-quotearg.h.
30207         (results_g, flag_results, custom_quotes, custom_results): Moved
30208         to tests/test-quotearg-simple.c.
30209         (main): Moved the part that does not depend on gettext to
30210         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30211         performed.
30212         * modules/quotearg-simple: New file.
30213         * modules/quotearg-simple-tests: New file.
30214         * modules/quotearg (Depends-on): Add quotearg-simple.
30215         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30216         (Files): Add tests/test-quotearg.h.
30217         Reported by Paolo Bonzini.
30218
30219 2010-06-03  Bruno Haible  <bruno@clisp.org>
30220
30221         Reduce dependencies.
30222         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30223
30224 2010-06-03  Bruno Haible  <bruno@clisp.org>
30225
30226         time: Undefine more broken macros.
30227         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30228         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30229         Reported by Eric Blake.
30230
30231 2010-06-03  Bruno Haible  <bruno@clisp.org>
30232
30233         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30234         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30235         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30236         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30237         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30238         Reported by Ludovic Courtès <ludo@gnu.org>.
30239
30240 2010-06-02  Eric Blake  <eblake@redhat.com>
30241
30242         time: work with mingw + pthreads-win32 library
30243         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30244         if timespec is defined only in pthread.h.
30245         * modules/time (Makefile.am): Substitute it.
30246         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30247         <pthread.h>, when needed.
30248         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30249         from the library.
30250
30251 2010-05-31  Bruno Haible  <bruno@clisp.org>
30252
30253         Avoid expanding two macros in the wrong order.
30254         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30255         gl_LIBUNISTRING if it is defined.
30256         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30257         autoconf >= 2.64.
30258         Reported by Ludovic Courtès <ludo@gnu.org>.
30259
30260 2010-05-27  Jim Meyering  <meyering@redhat.com>
30261
30262         maint.mk: also prohibit "#undef" of always-defined symbols
30263         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30264         Allow more than one space before the symbol name.
30265         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30266         the regexp uses alternation.
30267
30268 2010-05-26  Eric Blake  <eblake@redhat.com>
30269
30270         maint.mk: avoid echo -e
30271         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30272         Convert all uses of echo -* to printf.
30273         Reported by Matthias Bolte.
30274
30275 2010-05-25  Bruno Haible  <bruno@clisp.org>
30276
30277         Update to GNU gettext 0.18, part 2.
30278         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30279         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30280
30281 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30282
30283         Add missing include in test-pwrite.c.
30284         * tests/test-pwrite.c: Include string.h, for strcmp.
30285
30286 2010-05-24  Bruno Haible  <bruno@clisp.org>
30287
30288         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30289
30290 2010-05-24  Bruno Haible  <bruno@clisp.org>
30291
30292         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30293         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30294         iconveh_error argument.
30295         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30296         U_STRCONV_TO_LOCALE.
30297         * lib/unistr/u16-strcoll.c: Likewise.
30298         * lib/unistr/u32-strcoll.c: Likewise.
30299         * modules/unistr/u8-strcoll (Depends-on): Add
30300         uniconv/u8-strconv-to-enc, localcharset. Remove
30301         uniconv/u8-strconv-to-locale.
30302         (configure.ac): Bump version number.
30303         * modules/unistr/u16-strcoll (Depends-on): Add
30304         uniconv/u16-strconv-to-enc, localcharset. Remove
30305         uniconv/u16-strconv-to-locale.
30306         (configure.ac): Bump version number.
30307         * modules/unistr/u32-strcoll (Depends-on): Add
30308         uniconv/u32-strconv-to-enc, localcharset. Remove
30309         uniconv/u32-strconv-to-locale.
30310         (configure.ac): Bump version number.
30311
30312 2010-05-24  Bruno Haible  <bruno@clisp.org>
30313
30314         Avoid a test failure on NetBSD 5.0.
30315         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30316         an iconv() bug.
30317
30318 2010-05-24  Bruno Haible  <bruno@clisp.org>
30319
30320         Adjust #include directive style.
30321         * modules/regex (Includes): Recommend to write <regex.h>.
30322
30323 2010-05-24  Bruno Haible  <bruno@clisp.org>
30324
30325         regex: Don't require alloca.
30326         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30327         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30328         only inside if (0).
30329
30330 2010-05-23  Jim Meyering  <meyering@redhat.com>
30331
30332         test-renameat.c: include <sys/stat.h>
30333         * tests/test-renameat.c: Include <sys/stat.h>; required for
30334         definition of S_IS* macros.
30335
30336 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30337
30338         Update maintainer documentation for 'relocatable-prog' module.
30339         * doc/relocatable-maint.texi: Update.
30340         Comments by Bruno Haible.
30341
30342 2010-05-23  Bruno Haible  <bruno@clisp.org>
30343
30344         git-merge-changelog: Enable --split-merged-entry by default.
30345         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30346         (usage): Don't mention this option any more.
30347         Reported by Ralf Wildenhues.
30348
30349 2010-05-23  Jim Meyering  <meyering@redhat.com>
30350
30351         test-pwrite: do not leave behind a test file named "out"
30352         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30353         The trivial-looking use of init.sh is really necessary.
30354         It ensures that the temporary file, "out", is created in
30355         a temporary directory, and removed upon termination.
30356         * tests/test-pwrite.sh: Re-add file.
30357         * modules/pwrite-tests: Reference it.
30358
30359 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30360
30361         Fix output redirection buglet in init.sh.
30362         * tests/init.sh: Fix redirection of stderr.
30363
30364 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30365
30366         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30367
30368 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30369
30370         * modules/valgrind-tests: New file.
30371         * m4/valgrind-tests.m4: New file.
30372         * doc/valgrind-tests.texi: New file.
30373         * doc/gnulib.texi (Running self-tests under valgrind): New
30374         section.
30375
30376 2010-05-19  Bruno Haible  <bruno@clisp.org>
30377
30378         Clean up dead code in recent commit.
30379         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30380         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30381         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30382         Suggested by Paolo Bonzini.
30383
30384 2010-05-19  Bruno Haible  <bruno@clisp.org>
30385
30386         Avoid valgrind error reports from libunistring.
30387         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30388         * modules/libunistring (Files): Add it.
30389         * modules/libunistring-optional (Files): Likewise.
30390
30391 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30392             Bruno Haible  <bruno@clisp.org>
30393
30394         New module 'libunistring-optional'.
30395         * modules/libunistring-optional: New file.
30396         * m4/libunistring-base.m4: New file.
30397         * m4/libunistring-optional.m4: New file.
30398         * lib/unicase.in.h: Renamed from lib/unicase.h.
30399         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30400         * lib/unictype.in.h: Renamed from lib/unictype.h.
30401         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30402         * lib/uniname.in.h: Renamed from lib/uniname.h.
30403         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30404         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30405         * lib/unistr.in.h: Renamed from lib/unistr.h.
30406         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30407         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30408         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30409         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30410         gl_LIBUNISTRING. If the library was found, determine the installed
30411         version and set LIBUNISTRING_VERSION.
30412         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30413         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30414         handle a configuration option --with-included-libunistring.
30415         * modules/libunistring (Files): Add m4/absolute-header.m4.
30416         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30417         Add m4/libunistring-base.m4.
30418         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30419         (Makefile.am): Build unicase.h from unicase.in.h.
30420         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30421         Add m4/libunistring-base.m4.
30422         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30423         (Makefile.am): Build uniconv.h from uniconv.in.h.
30424         * modules/unictype/base (Files): Use unictype.in.h instead of
30425         unictype.h. Add m4/libunistring-base.m4.
30426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30427         (Makefile.am): Build unictype.h from unictype.in.h.
30428         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30429         Add m4/libunistring-base.m4.
30430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30431         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30432         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30433         Add m4/libunistring-base.m4.
30434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30435         (Makefile.am): Build uniname.h from uniname.in.h.
30436         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30437         Add m4/libunistring-base.m4.
30438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30439         (Makefile.am): Build uninorm.h from uninorm.in.h.
30440         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30441         unistdio.h. Add m4/libunistring-base.m4.
30442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30443         (Makefile.am): Build unistdio.h from unistdio.in.h.
30444         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30445         Add m4/libunistring-base.m4.
30446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30447         (Makefile.am): Build unistr.h from unistr.in.h.
30448         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30449         Add m4/libunistring-base.m4.
30450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30451         (Makefile.am): Build unitypes.h from unitypes.in.h.
30452         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30453         Add m4/libunistring-base.m4.
30454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30455         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30456         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30457         uniwidth.h. Add m4/libunistring-base.m4.
30458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30459         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30460         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30461         instead of augmenting lib_SOURCES.
30462         * modules/unicase/empty-suffix-context: Likewise.
30463         * modules/unicase/locale-language: Likewise.
30464         * modules/unicase/tolower: Likewise.
30465         * modules/unicase/totitle: Likewise.
30466         * modules/unicase/toupper: Likewise.
30467         * modules/unicase/u8-casecmp: Likewise.
30468         * modules/unicase/u8-casecoll: Likewise.
30469         * modules/unicase/u8-casefold: Likewise.
30470         * modules/unicase/u8-casexfrm: Likewise.
30471         * modules/unicase/u8-ct-casefold: Likewise.
30472         * modules/unicase/u8-ct-tolower: Likewise.
30473         * modules/unicase/u8-ct-totitle: Likewise.
30474         * modules/unicase/u8-ct-toupper: Likewise.
30475         * modules/unicase/u8-is-cased: Likewise.
30476         * modules/unicase/u8-is-casefolded: Likewise.
30477         * modules/unicase/u8-is-lowercase: Likewise.
30478         * modules/unicase/u8-is-titlecase: Likewise.
30479         * modules/unicase/u8-is-uppercase: Likewise.
30480         * modules/unicase/u8-prefix-context: Likewise.
30481         * modules/unicase/u8-suffix-context: Likewise.
30482         * modules/unicase/u8-tolower: Likewise.
30483         * modules/unicase/u8-totitle: Likewise.
30484         * modules/unicase/u8-toupper: Likewise.
30485         * modules/unicase/u16-casecmp: Likewise.
30486         * modules/unicase/u16-casecoll: Likewise.
30487         * modules/unicase/u16-casefold: Likewise.
30488         * modules/unicase/u16-casexfrm: Likewise.
30489         * modules/unicase/u16-ct-casefold: Likewise.
30490         * modules/unicase/u16-ct-tolower: Likewise.
30491         * modules/unicase/u16-ct-totitle: Likewise.
30492         * modules/unicase/u16-ct-toupper: Likewise.
30493         * modules/unicase/u16-is-cased: Likewise.
30494         * modules/unicase/u16-is-casefolded: Likewise.
30495         * modules/unicase/u16-is-lowercase: Likewise.
30496         * modules/unicase/u16-is-titlecase: Likewise.
30497         * modules/unicase/u16-is-uppercase: Likewise.
30498         * modules/unicase/u16-prefix-context: Likewise.
30499         * modules/unicase/u16-suffix-context: Likewise.
30500         * modules/unicase/u16-tolower: Likewise.
30501         * modules/unicase/u16-totitle: Likewise.
30502         * modules/unicase/u16-toupper: Likewise.
30503         * modules/unicase/u32-casecmp: Likewise.
30504         * modules/unicase/u32-casecoll: Likewise.
30505         * modules/unicase/u32-casefold: Likewise.
30506         * modules/unicase/u32-casexfrm: Likewise.
30507         * modules/unicase/u32-ct-casefold: Likewise.
30508         * modules/unicase/u32-ct-tolower: Likewise.
30509         * modules/unicase/u32-ct-totitle: Likewise.
30510         * modules/unicase/u32-ct-toupper: Likewise.
30511         * modules/unicase/u32-is-cased: Likewise.
30512         * modules/unicase/u32-is-casefolded: Likewise.
30513         * modules/unicase/u32-is-lowercase: Likewise.
30514         * modules/unicase/u32-is-titlecase: Likewise.
30515         * modules/unicase/u32-is-uppercase: Likewise.
30516         * modules/unicase/u32-prefix-context: Likewise.
30517         * modules/unicase/u32-suffix-context: Likewise.
30518         * modules/unicase/u32-tolower: Likewise.
30519         * modules/unicase/u32-totitle: Likewise.
30520         * modules/unicase/u32-toupper: Likewise.
30521         * modules/unicase/ulc-casecmp: Likewise.
30522         * modules/unicase/ulc-casecoll: Likewise.
30523         * modules/unicase/ulc-casexfrm: Likewise.
30524         * modules/uniconv/u8-conv-from-enc: Likewise.
30525         * modules/uniconv/u8-conv-to-enc: Likewise.
30526         * modules/uniconv/u8-strconv-from-enc: Likewise.
30527         * modules/uniconv/u8-strconv-from-locale: Likewise.
30528         * modules/uniconv/u8-strconv-to-enc: Likewise.
30529         * modules/uniconv/u8-strconv-to-locale: Likewise.
30530         * modules/uniconv/u16-conv-from-enc: Likewise.
30531         * modules/uniconv/u16-conv-to-enc: Likewise.
30532         * modules/uniconv/u16-strconv-from-enc: Likewise.
30533         * modules/uniconv/u16-strconv-from-locale: Likewise.
30534         * modules/uniconv/u16-strconv-to-enc: Likewise.
30535         * modules/uniconv/u16-strconv-to-locale: Likewise.
30536         * modules/uniconv/u32-conv-from-enc: Likewise.
30537         * modules/uniconv/u32-conv-to-enc: Likewise.
30538         * modules/uniconv/u32-strconv-from-enc: Likewise.
30539         * modules/uniconv/u32-strconv-from-locale: Likewise.
30540         * modules/uniconv/u32-strconv-to-enc: Likewise.
30541         * modules/uniconv/u32-strconv-to-locale: Likewise.
30542         * modules/unictype/bidicategory-byname: Likewise.
30543         * modules/unictype/bidicategory-name: Likewise.
30544         * modules/unictype/bidicategory-of: Likewise.
30545         * modules/unictype/bidicategory-test: Likewise.
30546         * modules/unictype/block-list: Likewise.
30547         * modules/unictype/block-test: Likewise.
30548         * modules/unictype/category-C: Likewise.
30549         * modules/unictype/category-Cc: Likewise.
30550         * modules/unictype/category-Cf: Likewise.
30551         * modules/unictype/category-Cn: Likewise.
30552         * modules/unictype/category-Co: Likewise.
30553         * modules/unictype/category-Cs: Likewise.
30554         * modules/unictype/category-L: Likewise.
30555         * modules/unictype/category-Ll: Likewise.
30556         * modules/unictype/category-Lm: Likewise.
30557         * modules/unictype/category-Lo: Likewise.
30558         * modules/unictype/category-Lt: Likewise.
30559         * modules/unictype/category-Lu: Likewise.
30560         * modules/unictype/category-M: Likewise.
30561         * modules/unictype/category-Mc: Likewise.
30562         * modules/unictype/category-Me: Likewise.
30563         * modules/unictype/category-Mn: Likewise.
30564         * modules/unictype/category-N: Likewise.
30565         * modules/unictype/category-Nd: Likewise.
30566         * modules/unictype/category-Nl: Likewise.
30567         * modules/unictype/category-No: Likewise.
30568         * modules/unictype/category-P: Likewise.
30569         * modules/unictype/category-Pc: Likewise.
30570         * modules/unictype/category-Pd: Likewise.
30571         * modules/unictype/category-Pe: Likewise.
30572         * modules/unictype/category-Pf: Likewise.
30573         * modules/unictype/category-Pi: Likewise.
30574         * modules/unictype/category-Po: Likewise.
30575         * modules/unictype/category-Ps: Likewise.
30576         * modules/unictype/category-S: Likewise.
30577         * modules/unictype/category-Sc: Likewise.
30578         * modules/unictype/category-Sk: Likewise.
30579         * modules/unictype/category-Sm: Likewise.
30580         * modules/unictype/category-So: Likewise.
30581         * modules/unictype/category-Z: Likewise.
30582         * modules/unictype/category-Zl: Likewise.
30583         * modules/unictype/category-Zp: Likewise.
30584         * modules/unictype/category-Zs: Likewise.
30585         * modules/unictype/category-and: Likewise.
30586         * modules/unictype/category-and-not: Likewise.
30587         * modules/unictype/category-byname: Likewise.
30588         * modules/unictype/category-name: Likewise.
30589         * modules/unictype/category-none: Likewise.
30590         * modules/unictype/category-of: Likewise.
30591         * modules/unictype/category-or: Likewise.
30592         * modules/unictype/category-test: Likewise.
30593         * modules/unictype/combining-class: Likewise.
30594         * modules/unictype/ctype-alnum: Likewise.
30595         * modules/unictype/ctype-alpha: Likewise.
30596         * modules/unictype/ctype-blank: Likewise.
30597         * modules/unictype/ctype-cntrl: Likewise.
30598         * modules/unictype/ctype-digit: Likewise.
30599         * modules/unictype/ctype-graph: Likewise.
30600         * modules/unictype/ctype-lower: Likewise.
30601         * modules/unictype/ctype-print: Likewise.
30602         * modules/unictype/ctype-punct: Likewise.
30603         * modules/unictype/ctype-space: Likewise.
30604         * modules/unictype/ctype-upper: Likewise.
30605         * modules/unictype/ctype-xdigit: Likewise.
30606         * modules/unictype/decimal-digit: Likewise.
30607         * modules/unictype/digit: Likewise.
30608         * modules/unictype/mirror: Likewise.
30609         * modules/unictype/numeric: Likewise.
30610         * modules/unictype/property-alphabetic: Likewise.
30611         * modules/unictype/property-ascii-hex-digit: Likewise.
30612         * modules/unictype/property-bidi-arabic-digit: Likewise.
30613         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30614         * modules/unictype/property-bidi-block-separator: Likewise.
30615         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30616         * modules/unictype/property-bidi-common-separator: Likewise.
30617         * modules/unictype/property-bidi-control: Likewise.
30618         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30619         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30620         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30621         * modules/unictype/property-bidi-european-digit: Likewise.
30622         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30623         * modules/unictype/property-bidi-left-to-right: Likewise.
30624         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30625         * modules/unictype/property-bidi-other-neutral: Likewise.
30626         * modules/unictype/property-bidi-pdf: Likewise.
30627         * modules/unictype/property-bidi-segment-separator: Likewise.
30628         * modules/unictype/property-bidi-whitespace: Likewise.
30629         * modules/unictype/property-byname: Likewise.
30630         * modules/unictype/property-combining: Likewise.
30631         * modules/unictype/property-composite: Likewise.
30632         * modules/unictype/property-currency-symbol: Likewise.
30633         * modules/unictype/property-dash: Likewise.
30634         * modules/unictype/property-decimal-digit: Likewise.
30635         * modules/unictype/property-default-ignorable-code-point: Likewise.
30636         * modules/unictype/property-deprecated: Likewise.
30637         * modules/unictype/property-diacritic: Likewise.
30638         * modules/unictype/property-extender: Likewise.
30639         * modules/unictype/property-format-control: Likewise.
30640         * modules/unictype/property-grapheme-base: Likewise.
30641         * modules/unictype/property-grapheme-extend: Likewise.
30642         * modules/unictype/property-grapheme-link: Likewise.
30643         * modules/unictype/property-hex-digit: Likewise.
30644         * modules/unictype/property-hyphen: Likewise.
30645         * modules/unictype/property-id-continue: Likewise.
30646         * modules/unictype/property-id-start: Likewise.
30647         * modules/unictype/property-ideographic: Likewise.
30648         * modules/unictype/property-ids-binary-operator: Likewise.
30649         * modules/unictype/property-ids-trinary-operator: Likewise.
30650         * modules/unictype/property-ignorable-control: Likewise.
30651         * modules/unictype/property-iso-control: Likewise.
30652         * modules/unictype/property-join-control: Likewise.
30653         * modules/unictype/property-left-of-pair: Likewise.
30654         * modules/unictype/property-line-separator: Likewise.
30655         * modules/unictype/property-logical-order-exception: Likewise.
30656         * modules/unictype/property-lowercase: Likewise.
30657         * modules/unictype/property-math: Likewise.
30658         * modules/unictype/property-non-break: Likewise.
30659         * modules/unictype/property-not-a-character: Likewise.
30660         * modules/unictype/property-numeric: Likewise.
30661         * modules/unictype/property-other-alphabetic: Likewise.
30662         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30663         * modules/unictype/property-other-grapheme-extend: Likewise.
30664         * modules/unictype/property-other-id-continue: Likewise.
30665         * modules/unictype/property-other-id-start: Likewise.
30666         * modules/unictype/property-other-lowercase: Likewise.
30667         * modules/unictype/property-other-math: Likewise.
30668         * modules/unictype/property-other-uppercase: Likewise.
30669         * modules/unictype/property-paired-punctuation: Likewise.
30670         * modules/unictype/property-paragraph-separator: Likewise.
30671         * modules/unictype/property-pattern-syntax: Likewise.
30672         * modules/unictype/property-pattern-white-space: Likewise.
30673         * modules/unictype/property-private-use: Likewise.
30674         * modules/unictype/property-punctuation: Likewise.
30675         * modules/unictype/property-quotation-mark: Likewise.
30676         * modules/unictype/property-radical: Likewise.
30677         * modules/unictype/property-sentence-terminal: Likewise.
30678         * modules/unictype/property-soft-dotted: Likewise.
30679         * modules/unictype/property-space: Likewise.
30680         * modules/unictype/property-terminal-punctuation: Likewise.
30681         * modules/unictype/property-test: Likewise.
30682         * modules/unictype/property-titlecase: Likewise.
30683         * modules/unictype/property-unassigned-code-value: Likewise.
30684         * modules/unictype/property-unified-ideograph: Likewise.
30685         * modules/unictype/property-uppercase: Likewise.
30686         * modules/unictype/property-variation-selector: Likewise.
30687         * modules/unictype/property-white-space: Likewise.
30688         * modules/unictype/property-xid-continue: Likewise.
30689         * modules/unictype/property-xid-start: Likewise.
30690         * modules/unictype/property-zero-width: Likewise.
30691         * modules/unictype/scripts: Likewise.
30692         * modules/unictype/syntax-c-ident: Likewise.
30693         * modules/unictype/syntax-c-whitespace: Likewise.
30694         * modules/unictype/syntax-java-ident: Likewise.
30695         * modules/unictype/syntax-java-whitespace: Likewise.
30696         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30697         * modules/unilbrk/u8-width-linebreaks: Likewise.
30698         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30699         * modules/unilbrk/u16-width-linebreaks: Likewise.
30700         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30701         * modules/unilbrk/u32-width-linebreaks: Likewise.
30702         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30703         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30704         * modules/uniname/uniname: Likewise.
30705         * modules/uninorm/canonical-decomposition: Likewise.
30706         * modules/uninorm/composition: Likewise.
30707         * modules/uninorm/decomposing-form: Likewise.
30708         * modules/uninorm/decomposition: Likewise.
30709         * modules/uninorm/filter: Likewise.
30710         * modules/uninorm/nfc: Likewise.
30711         * modules/uninorm/nfd: Likewise.
30712         * modules/uninorm/nfkc: Likewise.
30713         * modules/uninorm/nfkd: Likewise.
30714         * modules/uninorm/u8-normalize: Likewise.
30715         * modules/uninorm/u8-normcmp: Likewise.
30716         * modules/uninorm/u8-normcoll: Likewise.
30717         * modules/uninorm/u8-normxfrm: Likewise.
30718         * modules/uninorm/u16-normalize: Likewise.
30719         * modules/uninorm/u16-normcmp: Likewise.
30720         * modules/uninorm/u16-normcoll: Likewise.
30721         * modules/uninorm/u16-normxfrm: Likewise.
30722         * modules/uninorm/u32-normalize: Likewise.
30723         * modules/uninorm/u32-normcmp: Likewise.
30724         * modules/uninorm/u32-normcoll: Likewise.
30725         * modules/uninorm/u32-normxfrm: Likewise.
30726         * modules/unistdio/u8-asnprintf: Likewise.
30727         * modules/unistdio/u8-asprintf: Likewise.
30728         * modules/unistdio/u8-snprintf: Likewise.
30729         * modules/unistdio/u8-sprintf: Likewise.
30730         * modules/unistdio/u8-u8-asnprintf: Likewise.
30731         * modules/unistdio/u8-u8-asprintf: Likewise.
30732         * modules/unistdio/u8-u8-snprintf: Likewise.
30733         * modules/unistdio/u8-u8-sprintf: Likewise.
30734         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30735         * modules/unistdio/u8-u8-vasprintf: Likewise.
30736         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30737         * modules/unistdio/u8-u8-vsprintf: Likewise.
30738         * modules/unistdio/u8-vasnprintf: Likewise.
30739         * modules/unistdio/u8-vasprintf: Likewise.
30740         * modules/unistdio/u8-vsnprintf: Likewise.
30741         * modules/unistdio/u8-vsprintf: Likewise.
30742         * modules/unistdio/u16-asnprintf: Likewise.
30743         * modules/unistdio/u16-asprintf: Likewise.
30744         * modules/unistdio/u16-snprintf: Likewise.
30745         * modules/unistdio/u16-sprintf: Likewise.
30746         * modules/unistdio/u16-u16-asnprintf: Likewise.
30747         * modules/unistdio/u16-u16-asprintf: Likewise.
30748         * modules/unistdio/u16-u16-snprintf: Likewise.
30749         * modules/unistdio/u16-u16-sprintf: Likewise.
30750         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30751         * modules/unistdio/u16-u16-vasprintf: Likewise.
30752         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30753         * modules/unistdio/u16-u16-vsprintf: Likewise.
30754         * modules/unistdio/u16-vasnprintf: Likewise.
30755         * modules/unistdio/u16-vasprintf: Likewise.
30756         * modules/unistdio/u16-vsnprintf: Likewise.
30757         * modules/unistdio/u16-vsprintf: Likewise.
30758         * modules/unistdio/u32-asnprintf: Likewise.
30759         * modules/unistdio/u32-asprintf: Likewise.
30760         * modules/unistdio/u32-snprintf: Likewise.
30761         * modules/unistdio/u32-sprintf: Likewise.
30762         * modules/unistdio/u32-u32-asnprintf: Likewise.
30763         * modules/unistdio/u32-u32-asprintf: Likewise.
30764         * modules/unistdio/u32-u32-snprintf: Likewise.
30765         * modules/unistdio/u32-u32-sprintf: Likewise.
30766         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30767         * modules/unistdio/u32-u32-vasprintf: Likewise.
30768         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30769         * modules/unistdio/u32-u32-vsprintf: Likewise.
30770         * modules/unistdio/u32-vasnprintf: Likewise.
30771         * modules/unistdio/u32-vasprintf: Likewise.
30772         * modules/unistdio/u32-vsnprintf: Likewise.
30773         * modules/unistdio/u32-vsprintf: Likewise.
30774         * modules/unistdio/ulc-asnprintf: Likewise.
30775         * modules/unistdio/ulc-asprintf: Likewise.
30776         * modules/unistdio/ulc-fprintf: Likewise.
30777         * modules/unistdio/ulc-snprintf: Likewise.
30778         * modules/unistdio/ulc-sprintf: Likewise.
30779         * modules/unistdio/ulc-vasnprintf: Likewise.
30780         * modules/unistdio/ulc-vasprintf: Likewise.
30781         * modules/unistdio/ulc-vfprintf: Likewise.
30782         * modules/unistdio/ulc-vsnprintf: Likewise.
30783         * modules/unistdio/ulc-vsprintf: Likewise.
30784         * modules/unistr/u8-check: Likewise.
30785         * modules/unistr/u8-chr: Likewise.
30786         * modules/unistr/u8-cmp: Likewise.
30787         * modules/unistr/u8-cmp2: Likewise.
30788         * modules/unistr/u8-cpy: Likewise.
30789         * modules/unistr/u8-cpy-alloc: Likewise.
30790         * modules/unistr/u8-endswith: Likewise.
30791         * modules/unistr/u8-mblen: Likewise.
30792         * modules/unistr/u8-mbsnlen: Likewise.
30793         * modules/unistr/u8-mbtouc: Likewise.
30794         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30795         * modules/unistr/u8-mbtoucr: Likewise.
30796         * modules/unistr/u8-move: Likewise.
30797         * modules/unistr/u8-next: Likewise.
30798         * modules/unistr/u8-prev: Likewise.
30799         * modules/unistr/u8-set: Likewise.
30800         * modules/unistr/u8-startswith: Likewise.
30801         * modules/unistr/u8-stpcpy: Likewise.
30802         * modules/unistr/u8-stpncpy: Likewise.
30803         * modules/unistr/u8-strcat: Likewise.
30804         * modules/unistr/u8-strchr: Likewise.
30805         * modules/unistr/u8-strcmp: Likewise.
30806         * modules/unistr/u8-strcoll: Likewise.
30807         * modules/unistr/u8-strcpy: Likewise.
30808         * modules/unistr/u8-strcspn: Likewise.
30809         * modules/unistr/u8-strdup: Likewise.
30810         * modules/unistr/u8-strlen: Likewise.
30811         * modules/unistr/u8-strmblen: Likewise.
30812         * modules/unistr/u8-strmbtouc: Likewise.
30813         * modules/unistr/u8-strncat: Likewise.
30814         * modules/unistr/u8-strncmp: Likewise.
30815         * modules/unistr/u8-strncpy: Likewise.
30816         * modules/unistr/u8-strnlen: Likewise.
30817         * modules/unistr/u8-strpbrk: Likewise.
30818         * modules/unistr/u8-strrchr: Likewise.
30819         * modules/unistr/u8-strspn: Likewise.
30820         * modules/unistr/u8-strstr: Likewise.
30821         * modules/unistr/u8-strtok: Likewise.
30822         * modules/unistr/u8-to-u16: Likewise.
30823         * modules/unistr/u8-to-u32: Likewise.
30824         * modules/unistr/u8-uctomb: Likewise.
30825         * modules/unistr/u16-check: Likewise.
30826         * modules/unistr/u16-chr: Likewise.
30827         * modules/unistr/u16-cmp: Likewise.
30828         * modules/unistr/u16-cmp2: Likewise.
30829         * modules/unistr/u16-cpy: Likewise.
30830         * modules/unistr/u16-cpy-alloc: Likewise.
30831         * modules/unistr/u16-endswith: Likewise.
30832         * modules/unistr/u16-mblen: Likewise.
30833         * modules/unistr/u16-mbsnlen: Likewise.
30834         * modules/unistr/u16-mbtouc: Likewise.
30835         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30836         * modules/unistr/u16-mbtoucr: Likewise.
30837         * modules/unistr/u16-move: Likewise.
30838         * modules/unistr/u16-next: Likewise.
30839         * modules/unistr/u16-prev: Likewise.
30840         * modules/unistr/u16-set: Likewise.
30841         * modules/unistr/u16-startswith: Likewise.
30842         * modules/unistr/u16-stpcpy: Likewise.
30843         * modules/unistr/u16-stpncpy: Likewise.
30844         * modules/unistr/u16-strcat: Likewise.
30845         * modules/unistr/u16-strchr: Likewise.
30846         * modules/unistr/u16-strcmp: Likewise.
30847         * modules/unistr/u16-strcoll: Likewise.
30848         * modules/unistr/u16-strcpy: Likewise.
30849         * modules/unistr/u16-strcspn: Likewise.
30850         * modules/unistr/u16-strdup: Likewise.
30851         * modules/unistr/u16-strlen: Likewise.
30852         * modules/unistr/u16-strmblen: Likewise.
30853         * modules/unistr/u16-strmbtouc: Likewise.
30854         * modules/unistr/u16-strncat: Likewise.
30855         * modules/unistr/u16-strncmp: Likewise.
30856         * modules/unistr/u16-strncpy: Likewise.
30857         * modules/unistr/u16-strnlen: Likewise.
30858         * modules/unistr/u16-strpbrk: Likewise.
30859         * modules/unistr/u16-strrchr: Likewise.
30860         * modules/unistr/u16-strspn: Likewise.
30861         * modules/unistr/u16-strstr: Likewise.
30862         * modules/unistr/u16-strtok: Likewise.
30863         * modules/unistr/u16-to-u32: Likewise.
30864         * modules/unistr/u16-to-u8: Likewise.
30865         * modules/unistr/u16-uctomb: Likewise.
30866         * modules/unistr/u32-check: Likewise.
30867         * modules/unistr/u32-chr: Likewise.
30868         * modules/unistr/u32-cmp: Likewise.
30869         * modules/unistr/u32-cmp2: Likewise.
30870         * modules/unistr/u32-cpy: Likewise.
30871         * modules/unistr/u32-cpy-alloc: Likewise.
30872         * modules/unistr/u32-endswith: Likewise.
30873         * modules/unistr/u32-mblen: Likewise.
30874         * modules/unistr/u32-mbsnlen: Likewise.
30875         * modules/unistr/u32-mbtouc: Likewise.
30876         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30877         * modules/unistr/u32-mbtoucr: Likewise.
30878         * modules/unistr/u32-move: Likewise.
30879         * modules/unistr/u32-next: Likewise.
30880         * modules/unistr/u32-prev: Likewise.
30881         * modules/unistr/u32-set: Likewise.
30882         * modules/unistr/u32-startswith: Likewise.
30883         * modules/unistr/u32-stpcpy: Likewise.
30884         * modules/unistr/u32-stpncpy: Likewise.
30885         * modules/unistr/u32-strcat: Likewise.
30886         * modules/unistr/u32-strchr: Likewise.
30887         * modules/unistr/u32-strcmp: Likewise.
30888         * modules/unistr/u32-strcoll: Likewise.
30889         * modules/unistr/u32-strcpy: Likewise.
30890         * modules/unistr/u32-strcspn: Likewise.
30891         * modules/unistr/u32-strdup: Likewise.
30892         * modules/unistr/u32-strlen: Likewise.
30893         * modules/unistr/u32-strmblen: Likewise.
30894         * modules/unistr/u32-strmbtouc: Likewise.
30895         * modules/unistr/u32-strncat: Likewise.
30896         * modules/unistr/u32-strncmp: Likewise.
30897         * modules/unistr/u32-strncpy: Likewise.
30898         * modules/unistr/u32-strnlen: Likewise.
30899         * modules/unistr/u32-strpbrk: Likewise.
30900         * modules/unistr/u32-strrchr: Likewise.
30901         * modules/unistr/u32-strspn: Likewise.
30902         * modules/unistr/u32-strstr: Likewise.
30903         * modules/unistr/u32-strtok: Likewise.
30904         * modules/unistr/u32-to-u16: Likewise.
30905         * modules/unistr/u32-to-u8: Likewise.
30906         * modules/unistr/u32-uctomb: Likewise.
30907         * modules/uniwbrk/u8-wordbreaks: Likewise.
30908         * modules/uniwbrk/u16-wordbreaks: Likewise.
30909         * modules/uniwbrk/u32-wordbreaks: Likewise.
30910         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30911         * modules/uniwbrk/wordbreak-property: Likewise.
30912         * modules/uniwidth/u8-strwidth: Likewise.
30913         * modules/uniwidth/u8-width: Likewise.
30914         * modules/uniwidth/u16-strwidth: Likewise.
30915         * modules/uniwidth/u16-width: Likewise.
30916         * modules/uniwidth/u32-strwidth: Likewise.
30917         * modules/uniwidth/u32-width: Likewise.
30918         * modules/uniwidth/width: Likewise.
30919         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30920         with $(LIBUNISTRING).
30921         * modules/unicase/ignorable-tests: Likewise.
30922         * modules/unicase/locale-language-tests: Likewise.
30923         * modules/unicase/tolower-tests: Likewise.
30924         * modules/unicase/totitle-tests: Likewise.
30925         * modules/unicase/toupper-tests: Likewise.
30926         * modules/unicase/u8-casecmp-tests: Likewise.
30927         * modules/unicase/u8-casecoll-tests: Likewise.
30928         * modules/unicase/u8-casefold-tests: Likewise.
30929         * modules/unicase/u8-is-cased-tests: Likewise.
30930         * modules/unicase/u8-is-casefolded-tests: Likewise.
30931         * modules/unicase/u8-is-lowercase-tests: Likewise.
30932         * modules/unicase/u8-is-titlecase-tests: Likewise.
30933         * modules/unicase/u8-is-uppercase-tests: Likewise.
30934         * modules/unicase/u8-tolower-tests: Likewise.
30935         * modules/unicase/u8-totitle-tests: Likewise.
30936         * modules/unicase/u8-toupper-tests: Likewise.
30937         * modules/unicase/u16-casecmp-tests: Likewise.
30938         * modules/unicase/u16-casecoll-tests: Likewise.
30939         * modules/unicase/u16-casefold-tests: Likewise.
30940         * modules/unicase/u16-is-cased-tests: Likewise.
30941         * modules/unicase/u16-is-casefolded-tests: Likewise.
30942         * modules/unicase/u16-is-lowercase-tests: Likewise.
30943         * modules/unicase/u16-is-titlecase-tests: Likewise.
30944         * modules/unicase/u16-is-uppercase-tests: Likewise.
30945         * modules/unicase/u16-tolower-tests: Likewise.
30946         * modules/unicase/u16-totitle-tests: Likewise.
30947         * modules/unicase/u16-toupper-tests: Likewise.
30948         * modules/unicase/u32-casecmp-tests: Likewise.
30949         * modules/unicase/u32-casecoll-tests: Likewise.
30950         * modules/unicase/u32-casefold-tests: Likewise.
30951         * modules/unicase/u32-is-cased-tests: Likewise.
30952         * modules/unicase/u32-is-casefolded-tests: Likewise.
30953         * modules/unicase/u32-is-lowercase-tests: Likewise.
30954         * modules/unicase/u32-is-titlecase-tests: Likewise.
30955         * modules/unicase/u32-is-uppercase-tests: Likewise.
30956         * modules/unicase/u32-tolower-tests: Likewise.
30957         * modules/unicase/u32-totitle-tests: Likewise.
30958         * modules/unicase/u32-toupper-tests: Likewise.
30959         * modules/unicase/ulc-casecmp-tests: Likewise.
30960         * modules/unicase/ulc-casecoll-tests: Likewise.
30961         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30962         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30963         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30964         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30965         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30966         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30967         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30968         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30969         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30970         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30971         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30972         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30973         * modules/unictype/bidicategory-byname-tests: Likewise.
30974         * modules/unictype/bidicategory-name-tests: Likewise.
30975         * modules/unictype/bidicategory-of-tests: Likewise.
30976         * modules/unictype/bidicategory-test-tests: Likewise.
30977         * modules/unictype/block-list-tests: Likewise.
30978         * modules/unictype/block-of-tests: Likewise.
30979         * modules/unictype/block-test-tests: Likewise.
30980         * modules/unictype/category-C-tests: Likewise.
30981         * modules/unictype/category-Cc-tests: Likewise.
30982         * modules/unictype/category-Cf-tests: Likewise.
30983         * modules/unictype/category-Cn-tests: Likewise.
30984         * modules/unictype/category-Co-tests: Likewise.
30985         * modules/unictype/category-Cs-tests: Likewise.
30986         * modules/unictype/category-L-tests: Likewise.
30987         * modules/unictype/category-Ll-tests: Likewise.
30988         * modules/unictype/category-Lm-tests: Likewise.
30989         * modules/unictype/category-Lo-tests: Likewise.
30990         * modules/unictype/category-Lt-tests: Likewise.
30991         * modules/unictype/category-Lu-tests: Likewise.
30992         * modules/unictype/category-M-tests: Likewise.
30993         * modules/unictype/category-Mc-tests: Likewise.
30994         * modules/unictype/category-Me-tests: Likewise.
30995         * modules/unictype/category-Mn-tests: Likewise.
30996         * modules/unictype/category-N-tests: Likewise.
30997         * modules/unictype/category-Nd-tests: Likewise.
30998         * modules/unictype/category-Nl-tests: Likewise.
30999         * modules/unictype/category-No-tests: Likewise.
31000         * modules/unictype/category-P-tests: Likewise.
31001         * modules/unictype/category-Pc-tests: Likewise.
31002         * modules/unictype/category-Pd-tests: Likewise.
31003         * modules/unictype/category-Pe-tests: Likewise.
31004         * modules/unictype/category-Pf-tests: Likewise.
31005         * modules/unictype/category-Pi-tests: Likewise.
31006         * modules/unictype/category-Po-tests: Likewise.
31007         * modules/unictype/category-Ps-tests: Likewise.
31008         * modules/unictype/category-S-tests: Likewise.
31009         * modules/unictype/category-Sc-tests: Likewise.
31010         * modules/unictype/category-Sk-tests: Likewise.
31011         * modules/unictype/category-Sm-tests: Likewise.
31012         * modules/unictype/category-So-tests: Likewise.
31013         * modules/unictype/category-Z-tests: Likewise.
31014         * modules/unictype/category-Zl-tests: Likewise.
31015         * modules/unictype/category-Zp-tests: Likewise.
31016         * modules/unictype/category-Zs-tests: Likewise.
31017         * modules/unictype/category-and-not-tests: Likewise.
31018         * modules/unictype/category-and-tests: Likewise.
31019         * modules/unictype/category-byname-tests: Likewise.
31020         * modules/unictype/category-name-tests: Likewise.
31021         * modules/unictype/category-none-tests: Likewise.
31022         * modules/unictype/category-of-tests: Likewise.
31023         * modules/unictype/category-or-tests: Likewise.
31024         * modules/unictype/category-test-withtable-tests: Likewise.
31025         * modules/unictype/combining-class-tests: Likewise.
31026         * modules/unictype/ctype-alnum-tests: Likewise.
31027         * modules/unictype/ctype-alpha-tests: Likewise.
31028         * modules/unictype/ctype-blank-tests: Likewise.
31029         * modules/unictype/ctype-cntrl-tests: Likewise.
31030         * modules/unictype/ctype-digit-tests: Likewise.
31031         * modules/unictype/ctype-graph-tests: Likewise.
31032         * modules/unictype/ctype-lower-tests: Likewise.
31033         * modules/unictype/ctype-print-tests: Likewise.
31034         * modules/unictype/ctype-punct-tests: Likewise.
31035         * modules/unictype/ctype-space-tests: Likewise.
31036         * modules/unictype/ctype-upper-tests: Likewise.
31037         * modules/unictype/ctype-xdigit-tests: Likewise.
31038         * modules/unictype/decimal-digit-tests: Likewise.
31039         * modules/unictype/digit-tests: Likewise.
31040         * modules/unictype/mirror-tests: Likewise.
31041         * modules/unictype/numeric-tests: Likewise.
31042         * modules/unictype/property-alphabetic-tests: Likewise.
31043         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31044         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31045         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31046         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31047         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31048         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31049         * modules/unictype/property-bidi-control-tests: Likewise.
31050         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31051         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31052         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31053         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31054         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31055         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31056         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31057         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31058         * modules/unictype/property-bidi-pdf-tests: Likewise.
31059         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31060         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31061         * modules/unictype/property-byname-tests: Likewise.
31062         * modules/unictype/property-combining-tests: Likewise.
31063         * modules/unictype/property-composite-tests: Likewise.
31064         * modules/unictype/property-currency-symbol-tests: Likewise.
31065         * modules/unictype/property-dash-tests: Likewise.
31066         * modules/unictype/property-decimal-digit-tests: Likewise.
31067         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31068         * modules/unictype/property-deprecated-tests: Likewise.
31069         * modules/unictype/property-diacritic-tests: Likewise.
31070         * modules/unictype/property-extender-tests: Likewise.
31071         * modules/unictype/property-format-control-tests: Likewise.
31072         * modules/unictype/property-grapheme-base-tests: Likewise.
31073         * modules/unictype/property-grapheme-extend-tests: Likewise.
31074         * modules/unictype/property-grapheme-link-tests: Likewise.
31075         * modules/unictype/property-hex-digit-tests: Likewise.
31076         * modules/unictype/property-hyphen-tests: Likewise.
31077         * modules/unictype/property-id-continue-tests: Likewise.
31078         * modules/unictype/property-id-start-tests: Likewise.
31079         * modules/unictype/property-ideographic-tests: Likewise.
31080         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31081         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31082         * modules/unictype/property-ignorable-control-tests: Likewise.
31083         * modules/unictype/property-iso-control-tests: Likewise.
31084         * modules/unictype/property-join-control-tests: Likewise.
31085         * modules/unictype/property-left-of-pair-tests: Likewise.
31086         * modules/unictype/property-line-separator-tests: Likewise.
31087         * modules/unictype/property-logical-order-exception-tests: Likewise.
31088         * modules/unictype/property-lowercase-tests: Likewise.
31089         * modules/unictype/property-math-tests: Likewise.
31090         * modules/unictype/property-non-break-tests: Likewise.
31091         * modules/unictype/property-not-a-character-tests: Likewise.
31092         * modules/unictype/property-numeric-tests: Likewise.
31093         * modules/unictype/property-other-alphabetic-tests: Likewise.
31094         * modules/unictype/property-other-default-ignorable-code-point-tests:
31095         Likewise.
31096         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31097         * modules/unictype/property-other-id-continue-tests: Likewise.
31098         * modules/unictype/property-other-id-start-tests: Likewise.
31099         * modules/unictype/property-other-lowercase-tests: Likewise.
31100         * modules/unictype/property-other-math-tests: Likewise.
31101         * modules/unictype/property-other-uppercase-tests: Likewise.
31102         * modules/unictype/property-paired-punctuation-tests: Likewise.
31103         * modules/unictype/property-paragraph-separator-tests: Likewise.
31104         * modules/unictype/property-pattern-syntax-tests: Likewise.
31105         * modules/unictype/property-pattern-white-space-tests: Likewise.
31106         * modules/unictype/property-private-use-tests: Likewise.
31107         * modules/unictype/property-punctuation-tests: Likewise.
31108         * modules/unictype/property-quotation-mark-tests: Likewise.
31109         * modules/unictype/property-radical-tests: Likewise.
31110         * modules/unictype/property-sentence-terminal-tests: Likewise.
31111         * modules/unictype/property-soft-dotted-tests: Likewise.
31112         * modules/unictype/property-space-tests: Likewise.
31113         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31114         * modules/unictype/property-test-tests: Likewise.
31115         * modules/unictype/property-titlecase-tests: Likewise.
31116         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31117         * modules/unictype/property-unified-ideograph-tests: Likewise.
31118         * modules/unictype/property-uppercase-tests: Likewise.
31119         * modules/unictype/property-variation-selector-tests: Likewise.
31120         * modules/unictype/property-white-space-tests: Likewise.
31121         * modules/unictype/property-xid-continue-tests: Likewise.
31122         * modules/unictype/property-xid-start-tests: Likewise.
31123         * modules/unictype/property-zero-width-tests: Likewise.
31124         * modules/unictype/scripts-tests: Likewise.
31125         * modules/unictype/syntax-c-ident-tests: Likewise.
31126         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31127         * modules/unictype/syntax-java-ident-tests: Likewise.
31128         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31129         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31130         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31131         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31132         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31133         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31134         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31135         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31136         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31137         * modules/uniname/uniname-tests: Likewise.
31138         * modules/uninorm/canonical-decomposition-tests: Likewise.
31139         * modules/uninorm/compat-decomposition-tests: Likewise.
31140         * modules/uninorm/composition-tests: Likewise.
31141         * modules/uninorm/decomposing-form-tests: Likewise.
31142         * modules/uninorm/decomposition-tests: Likewise.
31143         * modules/uninorm/filter-tests: Likewise.
31144         * modules/uninorm/nfc-tests: Likewise.
31145         * modules/uninorm/nfd-tests: Likewise.
31146         * modules/uninorm/nfkc-tests: Likewise.
31147         * modules/uninorm/nfkd-tests: Likewise.
31148         * modules/uninorm/u8-normcmp-tests: Likewise.
31149         * modules/uninorm/u8-normcoll-tests: Likewise.
31150         * modules/uninorm/u16-normcmp-tests: Likewise.
31151         * modules/uninorm/u16-normcoll-tests: Likewise.
31152         * modules/uninorm/u32-normcmp-tests: Likewise.
31153         * modules/uninorm/u32-normcoll-tests: Likewise.
31154         * modules/unistdio/u8-asnprintf-tests: Likewise.
31155         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31156         * modules/unistdio/u8-vasprintf-tests: Likewise.
31157         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31158         * modules/unistdio/u8-vsprintf-tests: Likewise.
31159         * modules/unistdio/u16-asnprintf-tests: Likewise.
31160         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31161         * modules/unistdio/u16-vasprintf-tests: Likewise.
31162         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31163         * modules/unistdio/u16-vsprintf-tests: Likewise.
31164         * modules/unistdio/u32-asnprintf-tests: Likewise.
31165         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31166         * modules/unistdio/u32-vasprintf-tests: Likewise.
31167         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31168         * modules/unistdio/u32-vsprintf-tests: Likewise.
31169         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31170         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31171         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31172         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31173         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31174         * modules/unistr/u8-check-tests: Likewise.
31175         * modules/unistr/u8-chr-tests: Likewise.
31176         * modules/unistr/u8-cmp-tests: Likewise.
31177         * modules/unistr/u8-cmp2-tests: Likewise.
31178         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31179         * modules/unistr/u8-cpy-tests: Likewise.
31180         * modules/unistr/u8-mblen-tests: Likewise.
31181         * modules/unistr/u8-mbsnlen-tests: Likewise.
31182         * modules/unistr/u8-mbtouc-tests: Likewise.
31183         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31184         * modules/unistr/u8-mbtoucr-tests: Likewise.
31185         * modules/unistr/u8-move-tests: Likewise.
31186         * modules/unistr/u8-next-tests: Likewise.
31187         * modules/unistr/u8-prev-tests: Likewise.
31188         * modules/unistr/u8-set-tests: Likewise.
31189         * modules/unistr/u8-stpcpy-tests: Likewise.
31190         * modules/unistr/u8-stpncpy-tests: Likewise.
31191         * modules/unistr/u8-strcat-tests: Likewise.
31192         * modules/unistr/u8-strcmp-tests: Likewise.
31193         * modules/unistr/u8-strcoll-tests: Likewise.
31194         * modules/unistr/u8-strcpy-tests: Likewise.
31195         * modules/unistr/u8-strdup-tests: Likewise.
31196         * modules/unistr/u8-strlen-tests: Likewise.
31197         * modules/unistr/u8-strmblen-tests: Likewise.
31198         * modules/unistr/u8-strmbtouc-tests: Likewise.
31199         * modules/unistr/u8-strncat-tests: Likewise.
31200         * modules/unistr/u8-strncmp-tests: Likewise.
31201         * modules/unistr/u8-strncpy-tests: Likewise.
31202         * modules/unistr/u8-strnlen-tests: Likewise.
31203         * modules/unistr/u8-to-u16-tests: Likewise.
31204         * modules/unistr/u8-to-u32-tests: Likewise.
31205         * modules/unistr/u8-uctomb-tests: Likewise.
31206         * modules/unistr/u16-check-tests: Likewise.
31207         * modules/unistr/u16-chr-tests: Likewise.
31208         * modules/unistr/u16-cmp-tests: Likewise.
31209         * modules/unistr/u16-cmp2-tests: Likewise.
31210         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31211         * modules/unistr/u16-cpy-tests: Likewise.
31212         * modules/unistr/u16-mblen-tests: Likewise.
31213         * modules/unistr/u16-mbsnlen-tests: Likewise.
31214         * modules/unistr/u16-mbtouc-tests: Likewise.
31215         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31216         * modules/unistr/u16-mbtoucr-tests: Likewise.
31217         * modules/unistr/u16-move-tests: Likewise.
31218         * modules/unistr/u16-next-tests: Likewise.
31219         * modules/unistr/u16-prev-tests: Likewise.
31220         * modules/unistr/u16-set-tests: Likewise.
31221         * modules/unistr/u16-stpcpy-tests: Likewise.
31222         * modules/unistr/u16-stpncpy-tests: Likewise.
31223         * modules/unistr/u16-strcat-tests: Likewise.
31224         * modules/unistr/u16-strcmp-tests: Likewise.
31225         * modules/unistr/u16-strcoll-tests: Likewise.
31226         * modules/unistr/u16-strcpy-tests: Likewise.
31227         * modules/unistr/u16-strdup-tests: Likewise.
31228         * modules/unistr/u16-strlen-tests: Likewise.
31229         * modules/unistr/u16-strmblen-tests: Likewise.
31230         * modules/unistr/u16-strmbtouc-tests: Likewise.
31231         * modules/unistr/u16-strncat-tests: Likewise.
31232         * modules/unistr/u16-strncmp-tests: Likewise.
31233         * modules/unistr/u16-strncpy-tests: Likewise.
31234         * modules/unistr/u16-strnlen-tests: Likewise.
31235         * modules/unistr/u16-to-u32-tests: Likewise.
31236         * modules/unistr/u16-to-u8-tests: Likewise.
31237         * modules/unistr/u16-uctomb-tests: Likewise.
31238         * modules/unistr/u32-check-tests: Likewise.
31239         * modules/unistr/u32-chr-tests: Likewise.
31240         * modules/unistr/u32-cmp-tests: Likewise.
31241         * modules/unistr/u32-cmp2-tests: Likewise.
31242         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31243         * modules/unistr/u32-cpy-tests: Likewise.
31244         * modules/unistr/u32-mblen-tests: Likewise.
31245         * modules/unistr/u32-mbsnlen-tests: Likewise.
31246         * modules/unistr/u32-mbtouc-tests: Likewise.
31247         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31248         * modules/unistr/u32-mbtoucr-tests: Likewise.
31249         * modules/unistr/u32-move-tests: Likewise.
31250         * modules/unistr/u32-next-tests: Likewise.
31251         * modules/unistr/u32-prev-tests: Likewise.
31252         * modules/unistr/u32-set-tests: Likewise.
31253         * modules/unistr/u32-stpcpy-tests: Likewise.
31254         * modules/unistr/u32-stpncpy-tests: Likewise.
31255         * modules/unistr/u32-strcat-tests: Likewise.
31256         * modules/unistr/u32-strcmp-tests: Likewise.
31257         * modules/unistr/u32-strcoll-tests: Likewise.
31258         * modules/unistr/u32-strcpy-tests: Likewise.
31259         * modules/unistr/u32-strdup-tests: Likewise.
31260         * modules/unistr/u32-strlen-tests: Likewise.
31261         * modules/unistr/u32-strmblen-tests: Likewise.
31262         * modules/unistr/u32-strmbtouc-tests: Likewise.
31263         * modules/unistr/u32-strncat-tests: Likewise.
31264         * modules/unistr/u32-strncmp-tests: Likewise.
31265         * modules/unistr/u32-strncpy-tests: Likewise.
31266         * modules/unistr/u32-strnlen-tests: Likewise.
31267         * modules/unistr/u32-to-u16-tests: Likewise.
31268         * modules/unistr/u32-to-u8-tests: Likewise.
31269         * modules/unistr/u32-uctomb-tests: Likewise.
31270         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31271         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31272         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31273         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31274         * modules/uniwidth/u8-strwidth-tests: Likewise.
31275         * modules/uniwidth/u8-width-tests: Likewise.
31276         * modules/uniwidth/u16-strwidth-tests: Likewise.
31277         * modules/uniwidth/u16-width-tests: Likewise.
31278         * modules/uniwidth/u32-strwidth-tests: Likewise.
31279         * modules/uniwidth/u32-width-tests: Likewise.
31280         * modules/uniwidth/width-tests: Likewise.
31281
31282 2010-05-18  Richard Jones  <rjones@redhat.com>
31283
31284         doc: users.txt: list hivex
31285         * users.txt: Add hivex.
31286
31287 2010-05-18  Richard Jones  <rjones@redhat.com>
31288
31289         doc: users.txt: list febootstrap
31290         * users.txt: Add febootstrap.
31291
31292 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31293
31294         bootstrap: fix an error when gnulib is not used as a git submodule
31295         * build-aux/bootstrap (gnulib_path): If its length is zero then
31296         assign "gnulib" to it.
31297         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31298
31299 2010-05-16  Bruno Haible  <bruno@clisp.org>
31300
31301         Avoid autoconf warnings about AM_ICONV.
31302         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31303         2.64.
31304
31305 2010-05-16  Bruno Haible  <bruno@clisp.org>
31306
31307         absolute-header: Make the macro usable in more situations.
31308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31309         from gl_ABSOLUTE_HEADER.
31310         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31311
31312 2010-05-16  James Youngman  <jay@gnu.org>
31313
31314         doc: update users.txt
31315         * users.txt: Add CSSC.
31316
31317 2010-05-16  Jim Meyering  <meyering@redhat.com>
31318
31319         init.sh: fix an error in the previous change; add more comments
31320         * tests/init.sh: Compare exit code in loop against 9, not 2.
31321         Patch by Bruno Haible.
31322         Make the two tests more similar by adding an empty "then" clause.
31323         Add comments.
31324
31325         init.sh: avoid unnecessary shell re-exec
31326         * tests/init.sh: Improve the re-exec-required check to first test the
31327         current shell.  If it passes the test, do not search for a shell that
31328         does pass, and do not re-exec.  This test is particularly contorted to
31329         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31330         of $(...) evokes a syntax error and causes immediate shell exit with
31331         status 2.  Bruno Haible reported that the re-exec made it impossible
31332         to single-step through any init.sh-using script.
31333
31334 2010-05-16  Bruno Haible  <bruno@clisp.org>
31335
31336         Fix collision between gnulib's and libintl's printf replacements.
31337         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31338         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31339         (printf): When using GNU C, map the __printf__ function to rpl_printf
31340         via __asm__. When not using GNU C, define rpl_printf instead of
31341         __printf__.
31342         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31343         commit.
31344         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31345         commit.
31346         * m4/asm-underscore.m4: New file.
31347         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31348         * modules/stdio (Files): Add m4/asm-underscore.m4.
31349         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31350         Reported by Ben Pfaff.
31351
31352 2010-05-16  Bruno Haible  <bruno@clisp.org>
31353
31354         verify: Avoid skipping the test on openSUSE 11.0.
31355         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31356
31357 2010-05-13  Bruno Haible  <bruno@clisp.org>
31358
31359         Avoid useless warnings from G++.
31360         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31361         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31363
31364 2010-05-11  Jim Meyering  <meyering@redhat.com>
31365
31366         maint.mk: tweak preceding change
31367         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31368         regexps tighter by anchoring at EOL, and make the new group "shy"
31369         for slightly decreased overhead.
31370
31371 2010-05-11  Eric Blake  <eblake@redhat.com>
31372
31373         maint.mk: gnulib doesn't guarantee NSIG
31374         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31375
31376 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31377
31378         test-pwrite.c: Remove unused variable declaration.
31379         * tests/test-pwrite.c (main): Remove read_buf declaration.
31380
31381         Remove useless test-pwrite.sh file.
31382         * tests/test-pwrite.sh: Delete file.
31383         * modules/pwrite-tests: Remove references.
31384         Reported by Bruno Haible.
31385
31386 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31387
31388         init.sh: fix a typo
31389         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31390
31391 2010-05-10  Jim Meyering  <meyering@redhat.com>
31392
31393         maint.mk: avoid using a temporary file in the always-defined-macros check
31394         * top/maint.mk (.re-defmac): Remove rule.
31395         (gl_trap_): Remove definition.
31396         (sc_prohibit_always-defined_macros): Rewrite not to create and
31397         depend on a temporary file.  Instead, depend on GNU grep's ability
31398         to read a list of regular expressions from stdin when given "-f -".
31399
31400 2010-05-09  Bruno Haible  <bruno@clisp.org>
31401
31402         Update to GNU gettext 0.18, part 1.
31403         * m4/gettext.m4: Update to GNU gettext 0.18.
31404         * m4/intl.m4: Likewise.
31405         * m4/po.m4: Likewise.
31406         * modules/gettext (Files): Add m4/fcntl-o.m4.
31407         (configure.ac): Require gettext infrastructure from version 0.18.
31408
31409 2010-05-09  Jim Meyering  <meyering@redhat.com>
31410
31411         init.sh: enable MALLOC_PERTURB_
31412         * tests/init.sh: Enable glibc's malloc-perturbing option.
31413
31414         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31415         With my recent change in init.sh from the two-line form:
31416             -#   : ${srcdir=.}
31417             -#   . "$srcdir/init.sh"; path_prepend_ .
31418             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31419         I noticed that using the one-line form would cause this test
31420         to fail with a false-positive, or to stop working altogether,
31421         depending on whether help-version changed or all the tests did.
31422         * top/maint.mk (_hv_regex): Remove this definition.
31423         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31424         (_hv_regex_strong): Use a stronger regex to check for conformance.
31425         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31426         Give a separate diagnostic for lack of conforming use.
31427
31428         maint.mk: prohibit definition of symbols defined by gnulib
31429         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31430         definition of symbols defined by gnulib.
31431
31432 2010-05-09  Bruno Haible  <bruno@clisp.org>
31433
31434         acl: Avoid test failure on Cygwin-hosted mingw.
31435         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31436
31437 2010-05-09  Bruno Haible  <bruno@clisp.org>
31438
31439         error: Use system's fcntl function.
31440         * lib/error.c (fcntl): Undefine.
31441
31442 2010-05-09  Jim Meyering  <meyering@redhat.com>
31443
31444         verify: adjust formatting to be more consistent
31445         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31446         argument-list '('s, and after one comma.
31447
31448 2010-05-09  Bruno Haible  <bruno@clisp.org>
31449
31450         error: More reliable output on mingw.
31451         * lib/error.c: Include <windows.h>.
31452         (is_open): New function.
31453         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31454         defined.
31455
31456 2010-05-09  Bruno Haible  <bruno@clisp.org>
31457
31458         vasnprintf: Fix syntax errors in libintl build on mingw.
31459         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31460         pad_ourselves and prec_ourselves after use.
31461
31462 2010-05-08  Bruno Haible  <bruno@clisp.org>
31463
31464         * lib/config.charset: Update comments for Cygwin 1.7.
31465         * lib/localcharset.c: Likewise.
31466
31467 2010-05-07  Jim Meyering  <meyering@redhat.com>
31468
31469         init.sh: improve comments
31470         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31471         . "${srcdir=.}/init.sh"; path_prepend_ .
31472         Add a note about path_prepend_ and the alternative of using
31473         TESTS_ENVIRONMENT.
31474
31475 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31476
31477         exclude: Unescape hashed patterns in wildcard mode.
31478         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31479         to the hash list.
31480         * tests/test-exclude8.sh: New test case.
31481         * modules/exclude-tests: Add new test.
31482
31483 2010-05-05  Eric Blake  <eblake@redhat.com>
31484
31485         verify: automate tests
31486         * modules/verify-tests: New module.
31487         * tests/test-verify.sh: New file.
31488         * tests/test-verify.c: Guard each negative test with a unique id.
31489         Also avoid warning about unused left hand of comma expressions.
31490
31491 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31492
31493         Further improvements to verify.h, suggested by Eric Blake.
31494         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31495         the GL_* versions, to avoid collision with OpenGL.
31496         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31497         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31498         than testing merely whether it's defined.
31499
31500         Modify verify.h to pacify gcc -Wredundant_decls.
31501         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31502         These use the prefix "GL_" since they're likely to be useful elsewhere.
31503         We may need to break them out into a different .h file.
31504         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31505         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31506         of verify_function__.
31507
31508 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31509
31510         Tests for module pwrite.
31511         * modules/pwrite-tests: New file.
31512         * tests/test-pwrite.sh: New file.
31513         * tests/test-pwrite.c: New file.
31514
31515         New module pwrite.
31516         * lib/unistd.in.h (pwrite): New declaration.
31517         * lib/pwrite.c: New file, from glibc with modifications.
31518         * m4/pwrite.m4: New file.
31519         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31520         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31521         REPLACE_PWRITE.
31522         * modules/pwrite: New file.
31523         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31524         REPLACE_PWRITE.
31525         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31526         * doc/posix-functions/pwrite.texi: Mention the new module.
31527
31528 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31529
31530         pread: Update documentation.
31531         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31532
31533 2010-05-04  Eric Blake  <eblake@redhat.com>
31534
31535         docs: update cygwin progress
31536         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31537         this bug.
31538         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31539         Added in cygwin 1.7.2.
31540         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31541         Likewise.
31542         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31543         Likewise.
31544         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31545         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31546         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31547         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31548         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31549         Mention nproc module.
31550         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31551         bug in cygwin 1.7.5 addition.
31552         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31553         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31554         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31555         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31556         1.7.5.
31557         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31558         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31559         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31560         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31561         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31562         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31563         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31564         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31565         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31566         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31567         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31568         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31569         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31570         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31571         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31572         Likewise.
31573         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31574         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31575         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31576         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31577         Likewise.
31578         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31579         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31580         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31581         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31582         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31583         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31584         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31585         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31586         Likewise.
31587         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31588         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31589         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31590         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31591         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31592         Likewise.
31593         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31594         Likewise.
31595         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31596         Likewise.
31597         * doc/glibc-functions/xdrrec_endofrecord.texi
31598         (xdrrec_endofrecord): Likewise.
31599         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31600         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31601         Likewise.
31602         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31603         Likewise.
31604
31605 2010-05-04  Jim Meyering  <meyering@redhat.com>
31606
31607         gendocs.sh: make its "-s FILE" option more useful
31608         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31609         $PACKAGE to reflect the probably-different basename of "FILE".
31610
31611 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31612
31613         bootstrap: don't ignore download_po_files failure
31614         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31615         failure.
31616
31617 2010-05-03  Jim Meyering  <meyering@redhat.com>
31618
31619         maint.mk: allow to pass options to gendocs.sh
31620         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31621         (gendocs_options_): New overridable variable.
31622
31623         gnu-web-doc-update: don't ignore configure or build failure
31624         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31625
31626         announce-gen: backslash-escape '@'s in --help output
31627         * build-aux/announce-gen: Fix syntax errors.
31628
31629         maint.mk, announce-gen: allow project-specific announcement mail headers
31630         * top/maint.mk (translation_project_): Define default.
31631         (announcement_Cc_, announcement_mail_headers_): Likewise.
31632         (announcement): Invoke announce-gen with new --mail-headers option.
31633         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31634
31635         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31636         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31637         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31638         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31639         line in the "err2" output file when running "make check" in verbose
31640         mode (i.e., with set -x enabled).
31641
31642 2010-05-03  Bruno Haible  <bruno@clisp.org>
31643
31644         wctob: Fix for weird platforms.
31645         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31646         argument value.
31647
31648 2010-05-03  Jim Meyering  <meyering@redhat.com>
31649
31650         maint.mk: prohibit unwarranted use of <strings.h>
31651         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31652         strings.h in a file that does not also use strcasecmp, strncasecmp,
31653         ffs or ffsll.
31654
31655         maint.mk: remove obsolete comments
31656         * top/maint.mk: Remove stale, commented-out rules.
31657
31658 2010-05-02  Bruno Haible  <bruno@clisp.org>
31659
31660         wcwidth: Declare also when it's aliased.
31661         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31662         macro.
31663
31664 2010-05-02  Bruno Haible  <bruno@clisp.org>
31665
31666         Fix regression from 2010-04-25.
31667         * gnulib-tool (func_modules_transitive_closure): Check the status of
31668         all modules, not only of the tests that are of the form foo-tests where
31669         foo is a module.
31670
31671 2010-05-02  Bruno Haible  <bruno@clisp.org>
31672
31673         wctob: Work around nasty Cygwin 1.7.2 bug.
31674         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31675         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31676
31677 2010-05-01  Bruno Haible  <bruno@clisp.org>
31678
31679         fpurge: Sharper test.
31680         * tests/test-fpurge.c (main): Add one more ftell check.
31681         * modules/fpurge-tests (Depends-on): Add ftell.
31682         Suggested by Eric Blake.
31683
31684 2010-05-01  Bruno Haible  <bruno@clisp.org>
31685
31686         ftello: Another test.
31687         * tests/test-ftello3.c: New file.
31688         * modules/ftello-tests (Files): Add it.
31689         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31690         MOSTLYCLEANFILES.
31691
31692         ftell: Another test.
31693         * tests/test-ftell3.c: New file.
31694         * modules/ftell-tests (Files): Add it.
31695         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31696         MOSTLYCLEANFILES.
31697
31698 2010-05-01  Bruno Haible  <bruno@clisp.org>
31699
31700         ftell, ftello: Work around Solaris bug.
31701         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31702         * lib/ftello.c: Include stdio-impl.h.
31703         (ftello): On Solaris, when _IOWRT is set, compute the result without
31704         looking at _IOREAD.
31705         * modules/ftello (Files): Add lib/stdio-impl.h.
31706         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31707         * doc/posix-functions/ftello.texi: Likewise.
31708         Reported by Eric Blake.
31709
31710 2010-05-01  Bruno Haible  <bruno@clisp.org>
31711
31712         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31713         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31714         the _IOWRT flag is also set.
31715
31716 2010-05-01  Bruno Haible  <bruno@clisp.org>
31717
31718         Fix doc about a HP-UX stdio bug.
31719         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31720         * doc/posix-functions/ftello.texi: Likewise.
31721
31722 2010-05-01  Bruno Haible  <bruno@clisp.org>
31723
31724         lseek test: Fix failure on Solaris.
31725         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31726         output.
31727
31728 2010-04-30  Jim Meyering  <meyering@redhat.com>
31729
31730         bootstrap: don't ignore failure to generate po*/Makevars
31731         * build-aux/bootstrap (with_gettext): Don't ignore failure
31732         to create po/Makevars or runtime-po/Makevars.
31733
31734 2010-04-29  Eric Blake  <eblake@redhat.com>
31735
31736         headers: relax license to LGPLv2+
31737         * modules/fcntl-h (License): Relax license.
31738         * modules/getopt-posix (License): Likewise.
31739         * modules/locale (License): Likewise.
31740         * modules/math (License): Likewise.
31741         * modules/pty (License): Likewise.
31742         * modules/sched (License): Likewise.
31743         * modules/search (License): Likewise.
31744         * modules/spawn (License): Likewise.
31745         * modules/stdarg (License): Likewise.
31746         * modules/sysexits (License): Likewise.
31747
31748 2010-04-29  Jim Meyering  <meyering@redhat.com>
31749
31750         inttypes: relax license to LGPLv2+
31751         * modules/inttypes (License): Relax license.
31752
31753 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31754
31755         * top/maint.mk (indent): Run twice to produce idempotent results.
31756
31757 2010-04-28  Bruno Haible  <bruno@clisp.org>
31758
31759         getdate: Generate getdate.c in the source directory.
31760         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31761         MOSTLYCLEANFILES.
31762         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31763
31764 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31765
31766         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31767         is not declared as a const *; avoid warnings in that case.
31768
31769 2010-04-28  Eric Blake  <eblake@redhat.com>
31770
31771         canonicalize-lgpl: avoid compiler warning
31772         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31773         declaration' / 'extraneous semicolon' warning with some compilers.
31774         Reported by Andreas Gruenbacher.
31775
31776 2010-04-28  Jim Meyering  <meyering@redhat.com>
31777
31778         init.sh: ensure a more reliable exit status when exiting via trap
31779         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31780         Inspired by patches from Dmitry V. Levin.
31781         Also trap on signal 3 (SIGQUIT).
31782
31783 2010-04-27  Bruno Haible  <bruno@clisp.org>
31784
31785         Update doc about utimes().
31786         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31787         'utimens' module.
31788         Reported by Andreas Gruenbacher <agruen@suse.de>.
31789
31790 2010-04-27  Eric Blake  <eblake@redhat.com>
31791
31792         full-read, full-write: relax license
31793         * modules/full-read (License): Drop to LGPLv2+.
31794         * modules/full-write (License): Likewise.
31795         * modules/safe-read (License): Likewise.
31796         * modules/safe-write (License): Likewise.
31797
31798         pthread: mention library for linking
31799         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31800
31801 2010-04-27  Jim Meyering  <meyering@redhat.com>
31802
31803         maint.mk: fix a bug introduced in last change
31804         * top/maint.mk (gl_assured_headers_): Now that all names are on
31805         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31806         is not anchored to end of word, it should be adequate.
31807
31808         maint.mk: avoid side-effect in latest syntax-check
31809         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31810         to run commands via $(shell...), and hence to incur cost only when
31811         the new rule is actually run.
31812
31813         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31814         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31815         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31816         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31817         (gl_assured_headers_, az_, AZ_): Define.
31818         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31819
31820 2010-04-26  Jim Meyering  <jim@meyering.net>
31821             Bruno Haible  <bruno@clisp.org>
31822
31823         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31824         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31825         Prompted by an exchange with Gilles Espinasse.
31826
31827 2010-04-26  Jim Meyering  <meyering@redhat.com>
31828
31829         git-version-gen: aesthetic tweak
31830         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31831         so that the command remains on a single line.
31832
31833 2010-04-26  Eric Blake  <eblake@redhat.com>
31834
31835         git-version-gen: allow use on EBCDIC hosts
31836         * build-aux/git-version-gen (dirty): Use literal rather than tying
31837         ourselves to ascii.
31838         Reported by Steve Goetze.
31839
31840 2010-04-25  Bruno Haible  <bruno@clisp.org>
31841
31842         netdb: Add support for GNULIB_POSIXCHECK.
31843         * lib/netdb.in.h: Include warn-on-use.h.
31844         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31845         functions are used when GNULIB_POSIXCHECK is defined and the
31846         getaddrinfo module is not in use.
31847         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31848         freeaddrinfo, gai_strerror, getnameinfo are declared.
31849         * modules/netdb (Depends-on): Add warn-on-use.
31850         (Makefile.am): Include warn-on-use.h in netdb.h.
31851
31852 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31853
31854         build: avoid "make check" failure without .git/ directory
31855         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31856         there is no .git/ directory.
31857
31858 2010-04-25  Bruno Haible  <bruno@clisp.org>
31859
31860         ptsname: Fix misuse of ttyname_r.
31861         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31862         of errno.
31863
31864 2010-04-25  Bruno Haible  <bruno@clisp.org>
31865
31866         ttyname_r: Make it work on Solaris 10.
31867         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31868         if the system function has the POSIX declaration. Test whether the
31869         function fails if the buffer is less than 128 bytes large.
31870         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31871         system's ttyname_r function. Provide a reasonably large buffer.
31872         * modules/ttyname_r (Depends-on): Add extensions.
31873         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31874
31875 2010-04-25  Bruno Haible  <bruno@clisp.org>
31876
31877         Use the 'extensions' module for some more functions on Solaris.
31878         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31879         module.
31880         * doc/posix-functions/ctime_r.texi: Likewise.
31881         * doc/posix-functions/getgrgid_r.texi: Likewise.
31882         * doc/posix-functions/getgrnam_r.texi: Likewise.
31883         * doc/posix-functions/getpwnam_r.texi: Likewise.
31884         * doc/posix-functions/getpwuid_r.texi: Likewise.
31885         * doc/posix-functions/readdir_r.texi: Likewise.
31886         * doc/posix-functions/sigwait.texi: Likewise.
31887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31888         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31889
31890 2010-04-25  Bruno Haible  <bruno@clisp.org>
31891
31892         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31893         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31894         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31895         * lib/ttyname_r.c: Include <limits.h>.
31896         (ttyname_r): Define using the system's ttyname_r function, if it exists
31897         and not on Solaris.
31898         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31899         set.
31900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31901         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31902         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31903         Reported by Simon Josefsson.
31904
31905 2010-04-25  Bruno Haible  <bruno@clisp.org>
31906
31907         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31908         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31909         * doc/posix-functions/ctime_r.texi: Likewise.
31910         * doc/posix-functions/getgrgid_r.texi: Likewise.
31911         * doc/posix-functions/getgrnam_r.texi: Likewise.
31912         * doc/posix-functions/getlogin_r.texi: Likewise.
31913         * doc/posix-functions/getpwnam_r.texi: Likewise.
31914         * doc/posix-functions/getpwuid_r.texi: Likewise.
31915         * doc/posix-functions/readdir_r.texi: Likewise.
31916         * doc/posix-functions/sigwait.texi: Likewise.
31917         * doc/posix-functions/ttyname_r.texi: Likewise.
31918         Reported by Simon Josefsson.
31919
31920 2010-04-25  Bruno Haible  <bruno@clisp.org>
31921
31922         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31923         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31924         also to --create-testdir.
31925         (func_acceptable): Don't consider the status of *-tests modules here.
31926         (func_modules_transitive_closure): Consider it here, before including a
31927         test module.
31928         (func_import, func_create_testdir): Set inc_all_direct_tests,
31929         inc_all_indirect_tests.
31930         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31931         --create-testdir and --create-megatestdir.
31932
31933 2010-04-25  Bruno Haible  <bruno@clisp.org>
31934
31935         gnulib-tool: Add --without-*-tests options.
31936         * gnulib-tool (func_usage): Document the --without-*-tests options.
31937         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31938         excl_unportable_tests): New variables.
31939         Fail if they are specified with --import or --update.
31940         (func_acceptable): Respect the excl_*_tests variables.
31941         (func_import): Set the excl_*_tests variables to empty.
31942
31943 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31944             Bruno Haible  <bruno@clisp.org>
31945
31946         Work around a MacOS X 10.4 bug with openpty.
31947         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31948         * tests/test-openpty.c (main): Close the master side explicitly.
31949
31950 2010-04-25  Bruno Haible  <bruno@clisp.org>
31951
31952         strnlen: Fix a C++ test error on MacOS X and Solaris.
31953         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31954         the function is not declared.
31955         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31956         Simon Josefsson.
31957
31958 2010-04-24  Bruno Haible  <bruno@clisp.org>
31959
31960         Avoid a gcc warning.
31961         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31962         of correct type for %08lx directive.
31963         Reported by Eric Blake.
31964
31965 2010-04-24  Bruno Haible  <bruno@clisp.org>
31966
31967         vasnprintf: Correct errno value in case of out-of-memory.
31968         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31969         or sprintf. Use the errno value from SNPRINTF or sprintf.
31970         Reported by Ian Beckwith <ianb@erislabs.net>.
31971
31972 2010-04-24  Bruno Haible  <bruno@clisp.org>
31973
31974         ansi-c++-opt: Find correct compiler when cross-compiling.
31975         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31976         AC_CHECK_PROGS.
31977         Reported by Simon Josefsson.
31978
31979 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31980
31981         vc-list-files: Add support for subversion
31982         * build-aux/vc-list-files: Use "svn list" to generate the list of
31983         files controlled by subversion.
31984
31985 2010-04-23  Jim Meyering  <meyering@redhat.com>
31986
31987         vc-list-files tests: convert to use init.sh
31988         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31989         path_prepend_.
31990         Use Exit, not exit.
31991         Use skip_ rather than open coding it.
31992         Remove trap set-up and compare definitions.
31993         * tests/test-vc-list-files-git.sh: Likewise.
31994         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31995
31996 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31997
31998         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31999         backup files.
32000
32001 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32002
32003         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32004
32005 2010-04-20  Eric Blake  <eblake@redhat.com>
32006
32007         tests: be robust to ignored SIGPIPE
32008         * tests/test-select-in.sh: Consume all output.
32009         * tests/test-lseek.sh: Check correct exit status, while avoiding
32010         EPIPE.
32011
32012 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32013             Bruno Haible  <bruno@clisp.org>
32014
32015         visibility: Don't use -fvisibility if it leads to a warning.
32016         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32017         yes, don't pretend that visibility works if it leads to a warning.
32018         Reported by Mike Gran <spk121@yahoo.com>.
32019
32020 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32021
32022         * build-aux/bootstrap: Use "git -h" for testing for supported options
32023         instead of "git --help".  The short-form option only shows a summary,
32024         and doesn't layout the full man page.  Grep for the full option name
32025         in the summary, too.
32026
32027 2010-04-19  Bruno Haible  <bruno@clisp.org>
32028
32029         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32030         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32031         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32032         mention of RELOCATABLE_STRIP.
32033         Reported by Sylvain Beucler <beuc@beuc.net>.
32034
32035 2010-04-19  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/diffseq.h: Fix typo in comment.
32038         Reported by Eric Blake.
32039
32040 2010-04-19  Bruno Haible  <bruno@clisp.org>
32041
32042         ioctl: Move autoconf macro to a .m4 file.
32043         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32044         * modules/ioctl (Files): Add it.
32045         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32046         Reported by Ian Beckwith <ianb@erislabs.net>.
32047
32048 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32049             Bruno Haible  <bruno@clisp.org>
32050
32051         diffseq: Accommodate use-case with abstract arrays.
32052         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32053         is not defined.
32054         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32055         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32056
32057 2010-04-18  Bruno Haible  <bruno@clisp.org>
32058
32059         * doc/posix-headers/stdbool.texi: More precise wording.
32060
32061 2010-04-17  Jim Meyering  <meyering@redhat.com>
32062
32063         maint.mk: use gnu-style indentation in an embedded perl script
32064         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32065         Rename variable: s/two/last_two_bytes/
32066
32067 2010-04-16  Eric Blake  <eblake@redhat.com>
32068
32069         test-stdbool: skip test that fails with Solaris CC
32070         * tests/test-stdbool.c (f): Skip test that causes compilation
32071         error under buggy C++ compiler.
32072         * lib/stdbool.in.h: Document the limitation.
32073         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32074
32075         setenv: allow compilation with C++
32076         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32077         register keyword.
32078
32079         stdint: allow test to pass with C++
32080         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32081
32082         getopt: allow compilation with C++
32083         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32084         struct.
32085         * lib/getopt.c (_getopt_internal_r): Use correct type.
32086         Reported by Dagobert Michelson, via Joel E. Denny.
32087
32088 2010-04-16  Bruno Haible  <bruno@clisp.org>
32089
32090         Override netdb.h always.
32091         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32092         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32093         Reported by Ludovic Courtès <ludo@gnu.org>.
32094
32095 2010-04-15  Bruno Haible  <bruno@clisp.org>
32096
32097         openpty: Fix mistake from 2010-03-21.
32098         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32099         Reported by Simon Josefsson.
32100
32101 2010-04-15  Eric Blake  <eblake@redhat.com>
32102
32103         test-forkpty: fix expected signature
32104         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32105         Reported by Simon Josefsson.
32106
32107 2010-04-15  Jim Meyering  <meyering@redhat.com>
32108
32109         maint.mk: texinfo_suffix_re_: correct the default regexp
32110         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32111
32112         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32113         make it configurable via texinfo_suffix_re_.
32114
32115 2010-04-14  Eric Blake  <eblake@redhat.com>
32116
32117         strtok_r: relax license to LGPLv2+
32118         * modules/strtok_r (License): Relax license.
32119         Reported by Matthias Bolte.
32120
32121 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32122
32123         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32124         version 1.4.4 by default instead of requiring the libgcrypt
32125         version used during build.  This makes it possible to use the
32126         application with older but still binary compatible libgcrypt
32127         versions.
32128
32129 2010-04-13  Eric Blake  <eblake@redhat.com>
32130
32131         getopt-gnu: match recent glibc fixes and posix ruling
32132         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32133         '+' handling, when requesting extensions.
32134         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32135         'W;' handling.
32136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32137         * doc/posix-functions/getopt.texi (getopt): Document this.
32138         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32140         Likewise.
32141
32142         getopt: merge bug fixes from glibc
32143         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32144         diagnostics.  Honor '+:' correctly.  Reject ';'.
32145
32146         getopt-posix: detect MacOS bug
32147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32148         optind when missing a required argument.
32149         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32150         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32151         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32152         Likewise.
32153
32154         getopt-posix: avoid spurious failure on Solaris
32155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32156         an indicator that setting optind=1 is sufficient for reset.
32157
32158         getopt-posix: avoid spurious failure on FreeBSD
32159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32160         in POSIX mode, since the m4 test uses it.
32161
32162         gnulib-tool: silence warning on BSD sh
32163         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32164
32165 2010-04-13  Jim Meyering  <meyering@redhat.com>
32166
32167         doc: users.txt: GNU patch now uses gnulib
32168         * users.txt: Add patch.
32169
32170 2010-04-12  Jim Meyering  <meyering@redhat.com>
32171
32172         maint.mk: generate more concise timing data for syntax-check rules
32173         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32174         " done" from each line that reports a syntax-check test duration.
32175
32176 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32177
32178         git-version-gen: use "git update-index..." rather than "git status"
32179         * build-aux/git-version-gen: Use git update-index --refresh, not
32180         "git status".  With some versions of git, "git status" would fail
32181         to update the index and result in an unwarranted "-dirty" suffix.
32182
32183 2010-04-11  Jim Meyering  <meyering@redhat.com>
32184
32185         openat: correct formatting (no semantic change)
32186         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32187         Suggested by Bruno Haible.
32188
32189 2010-04-11  Bruno Haible  <bruno@clisp.org>
32190
32191         Stricter declaration checking in testdirs.
32192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32193         If for_tests is true, augment AM_CPPFLAGS to define
32194         GNULIB_STRICT_CHECKING.
32195         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32196         GNULIB_STRICT_CHECKING is defined, verify that the function is
32197         declared.
32198
32199 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32200             Bruno Haible  <bruno@clisp.org>
32201
32202         libunistring: Improve configure output.
32203         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32204         Don't say "consider installing GNU libunistring" when checking again
32205         with libiconv.
32206
32207 2010-04-11  Bruno Haible  <bruno@clisp.org>
32208
32209         libunistring: Correct value of $LTLIBUNISTRING.
32210         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32211         correct the value of $LTLIBUNISTRING.
32212
32213 2010-04-11  Bruno Haible  <bruno@clisp.org>
32214
32215         havelib: Add static libraries to LIBS in the right order.
32216         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32217         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32218
32219 2010-04-11  Bruno Haible  <bruno@clisp.org>
32220
32221         libunistring: Detect libunistring also when it depends on libiconv.
32222         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32223         the second AC_LIB_HAVE_LINKFLAGS invocation.
32224
32225 2010-04-11  James Youngman  <jay@gnu.org>
32226
32227         close-stream: declare local scalars to be "const"
32228         * lib/close-stream.c (close_stream): Make boolean variables const
32229         to document the fact that we set but do not change them.
32230
32231 2010-04-11  Bruno Haible  <bruno@clisp.org>
32232
32233         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32234
32235 2010-04-11  Jim Meyering  <meyering@redhat.com>
32236
32237         maint.mk: don't include dist-check.mk
32238         * top/maint.mk: Remove bogus include directive.
32239
32240         maint.mk: improve empty-line-at-EOF check
32241         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32242         solution, rather than tail+Perl-based one.  The latter would read
32243         a few kilobytes from the end of each file, and did not handle empty
32244         files properly.
32245
32246         maint.mk: print the elapsed time for each syntax-check rule
32247         * top/maint.mk (sc_m_rules_): Save start time in a file.
32248         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32249         (local-check): Interpose the .z rules
32250
32251 2010-04-11  Jim Meyering  <meyering@redhat.com>
32252
32253         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32254         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32255         empty file with one that ends in an empty line.
32256
32257 2010-04-10  Bruno Haible  <bruno@clisp.org>
32258
32259         mkdir: Make it work on mingw64.
32260         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32261         * lib/mkdir.c: Update comment.
32262         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
32263
32264 2010-04-10  Bruno Haible  <bruno@clisp.org>
32265
32266         Don't override improved macro from newer autoconf.
32267         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32268         autoconf >= 2.62.
32269         Reported by Joel E. Denny <jdenny@clemson.edu>.
32270
32271 2010-04-10  Jim Meyering  <meyering@redhat.com>
32272
32273         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32274         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32275
32276         maint.mk: correct a diagnostic
32277         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32278         in diagnostic; now use $prohibit.
32279
32280 2010-04-10  Bruno Haible  <address@hidden>
32281
32282         fchownat: Fix a C++ test error on Solaris 8.
32283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32284         the function does not exist.
32285
32286 2010-04-10  Bruno Haible  <bruno@clisp.org>
32287
32288         vasnprintf: Add more tests.
32289         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32290         (test_function): Test converting an invalid wide string.
32291
32292         vasnprintf: Correct handling of unconvertible wide string arguments.
32293         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32294         VASNPRINTF.
32295         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32296         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32297         smaller than the expected maximum need for the directive. Set errno to
32298         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32299         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32301         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32302         * modules/vasnprintf (Files): Add m4/printf.m4.
32303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32304
32305 2010-04-10  Bruno Haible  <bruno@clisp.org>
32306
32307         vasnprintf: Fix crash in %ls directive.
32308         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32309         string is passed as argument to %ls, with no precision and no width.
32310         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32311
32312 2010-04-10  Bruno Haible  <bruno@clisp.org>
32313
32314         vasnprintf: Fix multiple test failures on mingw.
32315         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32316         _snprintf, or snwprintf, not _snwprintf.
32317
32318 2010-04-10  Bruno Haible  <bruno@clisp.org>
32319
32320         write: Fix a C++ test error on mingw.
32321         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32322
32323 2010-04-10  Bruno Haible  <bruno@clisp.org>
32324
32325         vasnprintf test: Reduce code duplication.
32326         * tests/test-vasnprintf.c (test_function): New function, extracted from
32327         test_vasnprintf.
32328         (test_vasnprintf, test_asnprintf): Invoke it.
32329
32330 2010-04-10  Bruno Haible  <bruno@clisp.org>
32331
32332         strnlen: Fix warning in C++ mode on MacOS X.
32333         * lib/string.in.h (strnlen): Use the modern idiom.
32334         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32335         defining strnlen as a macro already in <config.h>.
32336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32337         REPLACE_STRNLEN.
32338         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32340
32341 2010-04-08  James Youngman  <jay@gnu.org>
32342
32343         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32344         the example.
32345
32346 2010-04-09  Jim Meyering  <meyering@redhat.com>
32347
32348         maint.mk: print better diagnostic when there is no $(_hv_file)
32349         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32350         announce that when $(_hv_file) (aka help-version) does not exist.
32351
32352         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32353         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32354         not try to interpret its random input bytes.  Jarno Rajahalme reported
32355         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32356         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32357         (mktempd_): Likewise, just in case.
32358
32359         ftruncate: add two years to projected module removal date: 2012
32360         * m4/ftruncate.m4: Adjust comments.
32361
32362         ftruncate: mark module as obsolete; even MinGW provides it, now
32363         * modules/ftruncate (Status): Obsolete.
32364         (Notice): Say that.
32365         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32366         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32367
32368 2010-04-08  Bruno Haible  <bruno@clisp.org>
32369
32370         Fix side effects from tests-related modules.
32371         * modules/dprintf-posix (Comment): New section.
32372         * modules/fprintf-posix (Comment): Likewise.
32373         * modules/obstack-printf-posix (Comment): Likewise.
32374         * modules/printf-posix (Comment): Likewise.
32375         * modules/snprintf-posix (Comment): Likewise.
32376         * modules/sprintf-posix (Comment): Likewise.
32377         * modules/vasnprintf-posix (Comment): Likewise.
32378         * modules/vasprintf-posix (Comment): Likewise.
32379         * modules/vdprintf-posix (Comment): Likewise.
32380         * modules/vfprintf-posix (Comment): Likewise.
32381         * modules/vprintf-posix (Comment): Likewise.
32382         * modules/vsnprintf-posix (Comment): Likewise.
32383         * modules/vsprintf-posix (Comment): Likewise.
32384         * modules/xprintf-posix (Comment): Likewise.
32385         * modules/xvasprintf-posix (Comment): Likewise.
32386         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32387         * modules/floorf-tests (Depends-on): Likewise.
32388         * modules/round-tests (Depends-on): Likewise.
32389         * modules/roundf-tests (Depends-on): Likewise.
32390         * modules/trunc-tests (Depends-on): Likewise.
32391         * modules/truncf-tests (Depends-on): Likewise.
32392         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32393         'fprintf-posix' module is not present.
32394         * tests/test-floorf2.c (check): Likewise.
32395         * tests/test-trunc2.c (check): Likewise.
32396         * tests/test-truncf2.c (check): Likewise.
32397         * tests/test-round2.c (equal): Likewise.
32398         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32399
32400 2010-04-07  Karl Berry  <karl@gnu.org>
32401
32402         * config/srclist.txt,
32403         * config/srclistvars.sh,
32404         * config/srclist-update: doc fixes.
32405
32406 2010-04-07  Jim Meyering  <meyering@redhat.com>
32407
32408         maint.mk: add a PATH crosschecking syntax-check rule
32409         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32410         Useful if you use a test like the one in help-version (coreutils,
32411         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32412         printed by prog --version.
32413
32414 2010-04-06  Bruno Haible  <bruno@clisp.org>
32415
32416         Fix link error on mingw.
32417         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32418         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32419
32420 2010-04-06  Bruno Haible  <bruno@clisp.org>
32421
32422         Assume rmdir exists.
32423         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32424
32425 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32426
32427         doc: update users.txt
32428         * users.txt: Add gcal.
32429
32430 2010-04-06  Jim Meyering  <meyering@redhat.com>
32431
32432         init.sh: simply unset TMPDIR rather than risking env -i
32433         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32434         although it probably works fine on all Unix-based systems, some
32435         systems (Cygwin?) cannot tolerate a totally cleared environment.
32436         Suggestion from Eric Blake.
32437
32438 2010-04-06  Jim Meyering  <meyering@redhat.com>
32439
32440         init.sh: portability fix: use env's POSIX-specified -i option not -u
32441         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32442         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32443
32444 2010-04-05  Bruno Haible  <bruno@clisp.org>
32445
32446         btowc: Work around Cygwin 1.7.2 bug.
32447         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32448         does not map NUL to 0.
32449         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32450
32451 2010-04-05  Bruno Haible  <bruno@clisp.org>
32452
32453         Make the multithread modules work on Cygwin 1.7.2.
32454         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32455         imported symbols can be declared weak, so that it returns "no" on
32456         Cygwin 1.7.2.
32457
32458 2010-04-05  Bruno Haible  <bruno@clisp.org>
32459
32460         Use the module 'strncat'.
32461         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32462
32463         Tests for module 'strncat'.
32464         * modules/strncat-tests: New file.
32465         * tests/test-strncat.c: New file.
32466
32467         New module 'strncat'.
32468         * lib/string.in.h (strncat): New declaration.
32469         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32470         * m4/strncat.m4: New file, based on m4/memchr.m4.
32471         * modules/strncat: New file.
32472         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32473         is declared.
32474         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32475         REPLACE_STRNCAT.
32476         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32477         REPLACE_STRNCAT.
32478         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32479         module.
32480         * tests/test-string-c++.cc: Check signature of strncat.
32481
32482 2010-04-05  Jim Meyering  <meyering@redhat.com>
32483
32484         xstrtoumax-tests: convert to use init.sh
32485         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32486         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32487         Use Exit, not exit.
32488         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32489
32490         xstrtoimax-tests: convert to use init.sh
32491         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32492         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32493         Use Exit, not exit.
32494         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32495
32496 2010-04-05  Bruno Haible  <bruno@clisp.org>
32497
32498         sys_socket: Avoid #define replacements in C++ mode.
32499         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32500         warning to the function if possible, rather than #defining the symbol
32501         to a dysfunctional alias.
32502
32503 2010-04-05  Bruno Haible  <bruno@clisp.org>
32504
32505         fseeko: Fix C++ test error on mingw.
32506         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32507         gl_FUNC_FSEEKO.
32508         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32509         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32510         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32511         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32512
32513 2010-04-05  Bruno Haible  <bruno@clisp.org>
32514
32515         duplocale: Improve test output.
32516         * tests/test-duplocale.c (main): Print reason for skipped test.
32517
32518 2010-04-05  Bruno Haible  <bruno@clisp.org>
32519
32520         Assume rmdir exists.
32521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32522         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32523
32524 2010-04-05  Bruno Haible  <bruno@clisp.org>
32525
32526         Fix link error on Solaris 8 with cc.
32527         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32528
32529 2010-04-05  Bruno Haible  <bruno@clisp.org>
32530
32531         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32532         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32533
32534 2010-04-05  Bruno Haible  <bruno@clisp.org>
32535
32536         vasprintf: Update documentation.
32537         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32538
32539 2010-04-05  Bruno Haible  <bruno@clisp.org>
32540
32541         ptsname: Improve test.
32542         * tests/test-ptsname.c (main): Also try the various master names of BSD
32543         systems.
32544
32545 2010-04-05  Bruno Haible  <bruno@clisp.org>
32546
32547         memchr: Avoid a possible C++ test error.
32548         * lib/string.in.h (memchr): Provide declaration if function is missing.
32549         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32550         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32552         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32553
32554 2010-04-05  Bruno Haible  <bruno@clisp.org>
32555
32556         strtok_r: Improve idiom.
32557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32558         AC_LIBOBJ is used.
32559
32560 2010-04-05  Bruno Haible  <bruno@clisp.org>
32561
32562         strdup: Improve idiom.
32563         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32564         AC_LIBOBJ is used.
32565         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32566         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32567         when AC_LIBOBJ is used.
32568
32569 2010-04-05  Bruno Haible  <bruno@clisp.org>
32570
32571         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32573         don't set REPLACE_MBSINIT to 1.
32574         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32575         don't set REPLACE_MBRTOWC to 1.
32576         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32577         exist, don't set REPLACE_MBSRTOWCS to 1.
32578         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32579         exist, don't set REPLACE_MBSNRTOWCS to 1.
32580         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32581         don't set REPLACE_WCRTOMB to 1.
32582         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32583         exist, don't set REPLACE_WCSRTOMBS to 1.
32584         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32585         exist, don't set REPLACE_WCSNRTOMBS to 1.
32586
32587 2010-04-05  Bruno Haible  <bruno@clisp.org>
32588
32589         ldexpl: Improve idiom.
32590         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32591         make sure to set HAVE_DECL_LDEXPL to 0.
32592
32593 2010-04-05  Jim Meyering  <meyering@redhat.com>
32594
32595         xstrtol-tests: convert to use init.sh
32596         * modules/xstrtol-tests (Files): Add tests/init.sh.
32597         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32598         Use Exit, not exit.
32599         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32600
32601         atexit-tests: convert to use init.sh
32602         * modules/atexit-tests (Files): Add tests/init.sh.
32603         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32604         Use Exit, not exit.
32605         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32606
32607         init.sh: fix typo
32608         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32609
32610         init.sh: make it easier for a test script to write to the tty, ...
32611         when using automake's parallel-tests mode.
32612         * tests/init.sh (stderr_fileno_): Define overridable variable.
32613         (warn_): New function, to use it.
32614         (fail_, skip_, framework_failure_): Use warn_.
32615
32616 2010-04-04  Bruno Haible  <bruno@clisp.org>
32617
32618         btowc: Avoid warning.
32619         * lib/btowc.c: Include <stdlib.h>.
32620         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32621
32622 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32623             Bruno Haible  <bruno@clisp.org>
32624
32625         wchar: Port to NetBSD 1.5.
32626         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32627         * lib/wctype.in.h (WEOF): Likewise.
32628
32629 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32630             Bruno Haible  <bruno@clisp.org>
32631
32632         Port extended stdio to NetBSD 1.5.
32633         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32634         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32635         older.
32636
32637 2010-04-04  Bruno Haible  <bruno@clisp.org>
32638
32639         string: Remove unused substitution.
32640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32641         HAVE_DECL_STRERROR.
32642         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32643
32644 2010-04-04  Bruno Haible  <bruno@clisp.org>
32645
32646         strtod: Avoid a possible C++ test error.
32647         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32648         set REPLACE_STRTOD.
32649
32650 2010-04-04  Bruno Haible  <bruno@clisp.org>
32651
32652         strerror: Update documentation.
32653         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32654
32655 2010-04-04  Bruno Haible  <bruno@clisp.org>
32656
32657         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32658         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32659         _GL_CXXALIAS_SYS_CAST.
32660
32661 2010-04-04  Bruno Haible  <bruno@clisp.org>
32662
32663         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32664         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32665         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32666         REPLACE_FREXPL to 1.
32667         * doc/posix-functions/frexpl.texi: Update documentation.
32668
32669 2010-04-04  Bruno Haible  <bruno@clisp.org>
32670
32671         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32672         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32673
32674 2010-04-04  Bruno Haible  <bruno@clisp.org>
32675
32676         Implement nanosleep for native Windows.
32677         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32678
32679 2010-04-04  Bruno Haible  <bruno@clisp.org>
32680
32681         math: Fix some C++ test errors on Solaris 8.
32682         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32683
32684 2010-04-04  Bruno Haible  <bruno@clisp.org>
32685
32686         math: Fix some C++ test errors on Cygwin.
32687         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32688         truncl): Provide declaration if the system does not have it.
32689         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32690         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32691         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32692         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32693         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32694         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32695         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32696         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32697         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32698         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32699         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32700         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32701         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32702         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32703         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32704         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32706         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32707         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32708         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32709         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32710         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32711
32712 2010-04-04  Bruno Haible  <bruno@clisp.org>
32713
32714         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32715         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32716         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32717         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32718         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32719         * m4/isinf.m4 (gl_ISINF): Likewise.
32720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32721
32722 2010-04-04  Bruno Haible  <bruno@clisp.org>
32723
32724         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32725         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32726
32727 2010-04-04  Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32730         * modules/tmpfile (configure.ac): Update.
32731
32732         tmpfile: Fix C++ test error on mingw.
32733         * lib/stdio.in.h (tmpfile): New declaration.
32734         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32735         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32736         * modules/tmpfile (Depends-on): Add stdio.
32737         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32738         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32739         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32740         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32741         REPLACE_TMPFILE.
32742         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32743
32744 2010-04-04  Bruno Haible  <bruno@clisp.org>
32745
32746         ioctl: Fix C++ test error on mingw.
32747         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32748         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32749         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32750
32751 2010-04-03  Bruno Haible  <bruno@clisp.org>
32752
32753         wcwidth: Fix C++ test error on mingw.
32754         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32756         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32757
32758 2010-04-03  Bruno Haible  <bruno@clisp.org>
32759
32760         nanosleep: Fix C++ test error on mingw.
32761         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32762         * lib/time.in.h (nanosleep): Use modern idiom.
32763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32764         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32765         REPLACE_NANOSLEEP to 1.
32766         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32767         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32768
32769 2010-04-03  Bruno Haible  <bruno@clisp.org>
32770
32771         strptime: Fix C++ test error on mingw.
32772         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32773         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32774         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32775         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32777         not REPLACE_STRPTIME.
32778         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32779         REPLACE_STRPTIME.
32780
32781 2010-04-03  Bruno Haible  <bruno@clisp.org>
32782
32783         timegm: Fix C++ test error on mingw.
32784         * lib/time.in.h (timegm): Use modern idiom.
32785         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32786         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32788         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32789
32790 2010-04-03  Bruno Haible  <bruno@clisp.org>
32791
32792         timegm: Assume declaration if function exists.
32793         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32794         if it exists. Don't clobber ac_cv_func_timegm.
32795
32796 2010-04-03  Bruno Haible  <bruno@clisp.org>
32797
32798         time_r: Fix C++ test error on mingw.
32799         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32800         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32801         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32803         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32804
32805 2010-04-03  Bruno Haible  <bruno@clisp.org>
32806
32807         time_r: Minor updates.
32808         * modules/time_r (Description): Mention the provided functions.
32809         * lib/time_r.c: Don't include <string.h>.
32810         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32811         * doc/posix-functions/localtime_r.texi: Likewise.
32812
32813 2010-04-03  Bruno Haible  <bruno@clisp.org>
32814
32815         time: Fix regression introduced on 2010-03-08.
32816         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32817         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32818
32819 2010-04-03  Jim Meyering  <meyering@redhat.com>
32820
32821         maint.mk: don't silently disable project-specific syntax-check rules
32822         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32823         that they need to convert their project-specific syntax-check rules
32824         to use the new _sc_search_regexp.
32825
32826 2010-04-03  Bruno Haible  <bruno@clisp.org>
32827
32828         fchdir: Fix regression introduced on 2010-03-08.
32829         * lib/unistd.in.h (fchdir): Fix declaration.
32830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32832         REPLACE_FCHDIR.
32833         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32834         REPLACE_FCHDIR.
32835
32836 2010-04-03  Bruno Haible  <bruno@clisp.org>
32837
32838         getpagesize: Fix C++ test error on mingw.
32839         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32840         system does not declare the function.
32841         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32842         declared.
32843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32844         HAVE_DECL_GETPAGESIZE.
32845         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32846
32847 2010-04-03  Bruno Haible  <bruno@clisp.org>
32848
32849         stdio: Make C++ tests work on mingw.
32850         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32851         does not declare the function.
32852
32853 2010-04-03  Bruno Haible  <bruno@clisp.org>
32854
32855         ftello: Fix C++ test error on mingw.
32856         * lib/stdio.in.h (ftello): Use modern idiom.
32857         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32858         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32859         is missing and that it needs to be replaced.
32860         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32862         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32863
32864 2010-04-03  Bruno Haible  <bruno@clisp.org>
32865
32866         fseeko: Fix C++ test error on mingw.
32867         * lib/stdio.in.h (fseeko): Use modern idiom.
32868         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32870         is missing and that it needs to be replaced.
32871         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32873         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32874
32875 2010-04-03  Bruno Haible  <bruno@clisp.org>
32876
32877         mkstemp: Fix C++ test error on mingw.
32878         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32880         function is missing and that it needs to be replaced.
32881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32882         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32883
32884 2010-04-03  Bruno Haible  <bruno@clisp.org>
32885
32886         stpncpy: Fix C++ test error on mingw.
32887         * lib/string.in.h (stpncpy): Use modern idiom.
32888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32889         function is missing and that it needs to be replaced.
32890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32891         REPLACE_STPNCPY.
32892         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32893
32894 2010-04-03  Bruno Haible  <bruno@clisp.org>
32895
32896         sys_stat: Fix C++ test error on mingw.
32897         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32898         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32899
32900 2010-04-03  Bruno Haible  <bruno@clisp.org>
32901
32902         pty: Update doc.
32903         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32904
32905 2010-04-03  Bruno Haible  <bruno@clisp.org>
32906
32907         unistd: Fix C++ test error on mingw.
32908         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32909
32910 2010-04-03  Bruno Haible  <bruno@clisp.org>
32911
32912         Update doc regarding mingw.
32913         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32914         * doc/glibc-functions/login_tty.texi: Likewise.
32915         * doc/glibc-functions/forkpty.texi: Likewise.
32916
32917 2010-04-03  Bruno Haible  <bruno@clisp.org>
32918
32919         stdlib: Avoid compilation failure of c-strtold on mingw.
32920         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32921
32922 2010-04-03  Bruno Haible  <bruno@clisp.org>
32923
32924         locale: Make C++ tests work on Cygwin and mingw.
32925         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32926         cannot provide the function.
32927         Reported by Simon Josefsson.
32928
32929 2010-04-03  Bruno Haible  <bruno@clisp.org>
32930
32931         localename: Port to MacOS X 10.6.
32932         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32933         memory layout of the locales in MacOS X 10.6 as well.
32934         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32935
32936 2010-04-02  Bruno Haible  <bruno@clisp.org>
32937
32938         gnulib-tool: Ensure that long-running tests are executed last.
32939         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32940         running tests after the one for the other tests.
32941
32942 2010-04-02  Bruno Haible  <bruno@clisp.org>
32943
32944         gnulib-tool: Ensure the tests in the main directory are executed first.
32945         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32946         start with the current directory.
32947
32948 2010-04-02  Bruno Haible  <bruno@clisp.org>
32949
32950         Tests for module 'havelib', moved here from GNU gettext.
32951         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32952         modifications.
32953         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32954         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32955         with modifications.
32956         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32957         modifications.
32958         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32959         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32960         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32961         with modifications.
32962         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32963         with modifications.
32964         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32965         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32966         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32967         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32968         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32969         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32970         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32971         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32972         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32973         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32974         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32975         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32976         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32977         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32978         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32979         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32980         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32981         with modifications.
32982         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32983         with modifications.
32984         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32985         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32986         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32987         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32988         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32989         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32990         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32991         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32992         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32993         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32994         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32995         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32996         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32997         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32998         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32999         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33000         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33001         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33002         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33003         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33004         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33005         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33006         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33007         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33008         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33009         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33010         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33011         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33012         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33013         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33014         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33015         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33016         * tests/havelib/rpathx/rpathx.c: New file, from
33017         gettext/autoconf-lib-link.
33018         * tests/havelib/rpathx/Makefile.am: New file, from
33019         gettext/autoconf-lib-link.
33020         * tests/havelib/rpathx/configure.ac: New file, from
33021         gettext/autoconf-lib-link with modifications.
33022         * tests/havelib/rpathy/rpathy.c: New file, from
33023         gettext/autoconf-lib-link.
33024         * tests/havelib/rpathy/Makefile.am: New file, from
33025         gettext/autoconf-lib-link.
33026         * tests/havelib/rpathy/configure.ac: New file, from
33027         gettext/autoconf-lib-link with modifications.
33028         * tests/havelib/rpathz/rpathz.c: New file, from
33029         gettext/autoconf-lib-link.
33030         * tests/havelib/rpathz/Makefile.am: New file, from
33031         gettext/autoconf-lib-link.
33032         * tests/havelib/rpathz/configure.ac: New file, from
33033         gettext/autoconf-lib-link with modifications.
33034         * tests/havelib/rpathlx/usex.c: New file, from
33035         gettext/autoconf-lib-link.
33036         * tests/havelib/rpathlx/Makefile.am: New file, from
33037         gettext/autoconf-lib-link.
33038         * tests/havelib/rpathlx/configure.ac: New file, from
33039         gettext/autoconf-lib-link with modifications.
33040         * tests/havelib/rpathly/usey.c: New file, from
33041         gettext/autoconf-lib-link.
33042         * tests/havelib/rpathly/Makefile.am: New file, from
33043         gettext/autoconf-lib-link.
33044         * tests/havelib/rpathly/configure.ac: New file, from
33045         gettext/autoconf-lib-link with modifications.
33046         * tests/havelib/rpathlz/usez.c: New file, from
33047         gettext/autoconf-lib-link.
33048         * tests/havelib/rpathlz/Makefile.am: New file, from
33049         gettext/autoconf-lib-link.
33050         * tests/havelib/rpathlz/configure.ac: New file, from
33051         gettext/autoconf-lib-link with modifications.
33052         * tests/havelib/rpathlyx/usey.c: New file, from
33053         gettext/autoconf-lib-link.
33054         * tests/havelib/rpathlyx/Makefile.am: New file, from
33055         gettext/autoconf-lib-link.
33056         * tests/havelib/rpathlyx/configure.ac: New file, from
33057         gettext/autoconf-lib-link with modifications.
33058         * tests/havelib/rpathlzyx/usez.c: New file, from
33059         gettext/autoconf-lib-link.
33060         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33061         gettext/autoconf-lib-link.
33062         * tests/havelib/rpathlzyx/configure.ac: New file, from
33063         gettext/autoconf-lib-link with modifications.
33064         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33065         with modifications.
33066
33067 2010-04-02  Bruno Haible  <bruno@clisp.org>
33068
33069         gnulib-tool: Create distributed built sources also for the tests.
33070         * gnulib-tool (func_create_testdir): Also generate distributed built
33071         sources in the tests directory.
33072
33073 2010-04-02  Bruno Haible  <bruno@clisp.org>
33074
33075         gnulib-tool: Obey user's environment variables.
33076         * gnulib-tool (func_create_testdir): When creating built sources,
33077         respect the environment variables for autoconf, automake, etc. given by
33078         the user.
33079
33080 2010-04-02  Bruno Haible  <bruno@clisp.org>
33081
33082         gnulib-tool: Provide the value of --m4-base to modules.
33083         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33084         of gl_m4_base.
33085
33086 2010-04-02  Eric Blake  <eblake@redhat.com>
33087
33088         maint.mk: fix some fallout
33089         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33090         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33091
33092 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33093
33094         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33095         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33096         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33097         (sc_cast_of_x_alloc_return_value): Likewise.
33098         (sc_cast_of_alloca_return_value): Likewise.
33099         (sc_space_tab): Likewise.
33100         (sc_prohibit_atoi_atof): Likewise.
33101         (sc_prohibit_magic_number_exit): Likewise.
33102         (sc_error_exit_success): Likewise.
33103         (sc_file_system): Likewise.
33104         (sc_prohibit_have_config_h): Likewise.
33105         (sc_require_config_h): Likewise.
33106         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33107         (sc_obsolete_symbols): Likewise.
33108         (sc_changelog): Likewise.
33109         (sc_program_name): Likewise.
33110         (sc_the_the): Likewise.
33111         (sc_trailing_blank): Likewise.
33112         (sc_two_space_separator_in_usage): Likewise.
33113         (sc_useless_cpp_parens): Likewise.
33114         (sc_GPL_version): Likewise.
33115         (sc_GFDL_version): Likewise.
33116         (sc_texinfo_acronym): Likewise.
33117         (sc_prohibit_cvs_keyword): Likewise.
33118         (sc_prohibit_stat_st_blocks): Likewise.
33119         (sc_prohibit_S_IS_definition): Likewise.
33120         (sc_redundant_const): Likewise.
33121         (sc_makefile_TAB_only_indentation): Likewise.
33122         (sc_m4_quote_check): Likewise.
33123         (sc_makefile_path_separator_check): Likewise.
33124         (sc_copyright_check): Likewise.
33125         (sc_Wundef_boolean): Likewise.
33126         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33127
33128         maint.mk: match 0 or more whitespace-before-function-call '('
33129         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33130         that have zero or two-and-more spaces between the function name
33131         and the open parenthesis.
33132         (sc_error_message_warn_fatal): Likewise.
33133         (sc_error_message_uppercase): Likewise.
33134         (sc_error_message_period): Likewise.
33135
33136 2010-03-31  Eric Blake  <eblake@redhat.com>
33137
33138         maint.mk: check for [ as well as test
33139         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33140         Based on a libvirt report by Matthias Bolte.
33141
33142         gnumakefile: don't squelch _version output
33143         * top/GNUmakefile (_version): Create one-shot dependency rather
33144         than using $(shell) when version must be regenerated.
33145         (_autoreconf): Run verbosely, by default.
33146
33147         sys_time: avoid compiler warnings
33148         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33149         unconditional, fixing regression from 2010-03-29.
33150         Reported by Simon Josefsson.
33151
33152 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33153
33154         maint.mk: s/_header_without_use/_sc_header_without_use/
33155         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33156         (sc_prohibit_assert_without_use): Use the new name.
33157         (sc_prohibit_close_stream_without_use): Likewise.
33158         (sc_prohibit_getopt_without_use): Likewise.
33159         (sc_prohibit_quotearg_without_use): Likewise.
33160         (sc_prohibit_quote_without_use): Likewise.
33161         (sc_prohibit_long_options_without_use): Likewise.
33162         (sc_prohibit_inttostr_without_use): Likewise.
33163         (sc_prohibit_ignore_value_without_use): Likewise.
33164         (sc_prohibit_error_without_use): Likewise.
33165         (sc_prohibit_xalloc_without_use): Likewise.
33166         (sc_prohibit_hash_without_use): Likewise.
33167         (sc_prohibit_hash_pjw_without_use): Likewise.
33168         (sc_prohibit_safe_read_without_use): Likewise.
33169         (sc_prohibit_argmatch_without_use): Likewise.
33170         (sc_prohibit_canonicalize_without_use): Likewise.
33171         (sc_prohibit_root_dev_ino_without_use): Likewise.
33172         (sc_prohibit_openat_without_use): Likewise.
33173         (sc_prohibit_c_ctype_without_use): Likewise.
33174         (sc_prohibit_signal_without_use): Likewise.
33175         (sc_prohibit_intprops_without_use): Likewise.
33176
33177 2010-03-30  Eric Blake  <eblake@redhat.com>
33178
33179         maint: improve module indicators
33180         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33181         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33182         columns, and avoid extra macro expansion.
33183
33184         fdopendir: work around FreeBSD bug
33185         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33186         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33187         * modules/dirent (Makefile.am): Substitute it.
33188         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33189         declaration.
33190         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33191         fix.
33192         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33193
33194 2010-03-29  Bruno Haible  <bruno@clisp.org>
33195
33196         Emit #pragma system_header after the inclusion guard, not before.
33197         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33198         guard that spans the entire file, not before. This enables an
33199         optimization in GCC's preprocessor.
33200         * lib/ctype.in.h: Likewise.
33201         * lib/dirent.in.h: Likewise.
33202         * lib/errno.in.h: Likewise.
33203         * lib/float.in.h: Likewise.
33204         * lib/getopt.in.h: Likewise.
33205         * lib/iconv.in.h: Likewise.
33206         * lib/langinfo.in.h: Likewise.
33207         * lib/locale.in.h: Likewise.
33208         * lib/math.in.h: Likewise.
33209         * lib/netdb.in.h: Likewise.
33210         * lib/netinet_in.in.h: Likewise.
33211         * lib/pty.in.h: Likewise.
33212         * lib/sched.in.h: Likewise.
33213         * lib/se-selinux.in.h: Likewise.
33214         * lib/search.in.h: Likewise.
33215         * lib/spawn.in.h: Likewise.
33216         * lib/stdarg.in.h: Likewise.
33217         * lib/stdint.in.h: Likewise.
33218         * lib/string.in.h: Likewise.
33219         * lib/strings.in.h: Likewise.
33220         * lib/sys_file.in.h: Likewise.
33221         * lib/sys_ioctl.in.h: Likewise.
33222         * lib/sys_time.in.h: Likewise.
33223         * lib/sys_times.in.h: Likewise.
33224         * lib/sys_utsname.in.h: Likewise.
33225         * lib/sys_wait.in.h: Likewise.
33226         * lib/sysexits.in.h: Likewise.
33227         * lib/wctype.in.h: Likewise.
33228
33229 2010-03-28  James Youngman  <jay@gnu.org>
33230
33231         save-cwd: don't leak a file descriptor when the caller execs.
33232         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33233         saved file descriptor.
33234         * modules/save-cwd (Depends-on): Depend on cloexec.
33235
33236 2010-03-29  Bruno Haible  <bruno@clisp.org>
33237
33238         Remove vestiges of fts-lgpl module.
33239         * lib/fts_.h: Assume GNULIB_FTS is 1.
33240         * lib/fts.c: Likewise.
33241         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33242
33243 2010-03-28  Bruno Haible  <bruno@clisp.org>
33244
33245         Fix definition of tests witness macro.
33246         * gnulib-tool (func_import): Fix definition of witness macro.
33247
33248 2010-03-28  Bruno Haible  <bruno@clisp.org>
33249
33250         Fix ioctl's protoype on glibc systems.
33251         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33252         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33253         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33254         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33255         signature. If not, arrange to replace the ioctl function.
33256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33257         REPLACE_IOCTL.
33258         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33259         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33260         Reported by Ludovic Courtès <ludo@gnu.org>.
33261
33262 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33263
33264         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33265         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33266         made it so grep -r --include=GLOB* ... did not work.
33267
33268 2010-03-26  Jim Meyering  <meyering@redhat.com>
33269             Eric Blake  <eblake@redhat.com>
33270
33271         maint.mk: prohibit use of test's -o and -a operators
33272         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33273
33274 2010-03-28  Bruno Haible  <bruno@clisp.org>
33275
33276         Remove unused GNULIB_XYZ macro definitions.
33277         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33278         invocation.
33279
33280 2010-03-28  Bruno Haible  <bruno@clisp.org>
33281
33282         Mark privileged tests modules.
33283         * modules/idpriv-drop-tests (Status): New section.
33284         * modules/idpriv-droptemp-tests (Status): New section.
33285
33286 2010-03-28  Bruno Haible  <bruno@clisp.org>
33287
33288         Split C++ tests into separate tests modules.
33289         * modules/dirent-c++-tests: New file, extracted from
33290         modules/dirent-tests.
33291         * modules/dirent-tests: Depend on it.
33292         * modules/fcntl-h-c++-tests: New file, extracted from
33293         modules/fcntl-h-tests.
33294         * modules/fcntl-h-tests: Depend on it.
33295         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33296         * modules/glob-tests: Depend on it.
33297         * modules/iconv-h-c++-tests: New file, extracted from
33298         modules/iconv-h-tests.
33299         * modules/iconv-h-tests: Depend on it.
33300         * modules/langinfo-c++-tests: New file, extracted from
33301         modules/langinfo-tests.
33302         * modules/langinfo-tests: Depend on it.
33303         * modules/locale-c++-tests: New file, extracted from
33304         modules/locale-tests.
33305         * modules/locale-tests: Depend on it.
33306         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33307         * modules/math-tests: Depend on it.
33308         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33309         * modules/pty-tests: Depend on it.
33310         * modules/search-c++-tests: New file, extracted from
33311         modules/search-tests.
33312         * modules/search-tests: Depend on it.
33313         * modules/signal-c++-tests: New file, extracted from
33314         modules/signal-tests.
33315         * modules/signal-tests: Depend on it.
33316         * modules/spawn-c++-tests: New file, extracted from
33317         modules/spawn-tests.
33318         * modules/spawn-tests: Depend on it.
33319         * modules/stdio-c++-tests: New file, extracted from
33320         modules/stdio-tests.
33321         * modules/stdio-tests: Depend on it.
33322         * modules/stdlib-c++-tests: New file, extracted from
33323         modules/stdlib-tests.
33324         * modules/stdlib-tests: Depend on it.
33325         * modules/string-c++-tests: New file, extracted from
33326         modules/string-tests.
33327         * modules/string-tests: Depend on it.
33328         * modules/sys_ioctl-c++-tests: New file, extracted from
33329         modules/sys_ioctl-tests.
33330         * modules/sys_ioctl-tests: Depend on it.
33331         * modules/sys_select-c++-tests: New file, extracted from
33332         modules/sys_select-tests.
33333         * modules/sys_select-tests: Depend on it.
33334         * modules/sys_socket-c++-tests: New file, extracted from
33335         modules/sys_socket-tests.
33336         * modules/sys_socket-tests: Depend on it.
33337         * modules/sys_stat-c++-tests: New file, extracted from
33338         modules/sys_stat-tests.
33339         * modules/sys_stat-tests: Depend on it.
33340         * modules/sys_time-c++-tests: New file, extracted from
33341         modules/sys_time-tests.
33342         * modules/sys_time-tests: Depend on it.
33343         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33344         * modules/time-tests: Depend on it.
33345         * modules/unistd-c++-tests: New file, extracted from
33346         modules/unistd-tests.
33347         * modules/unistd-tests: Depend on it.
33348         * modules/wchar-c++-tests: New file, extracted from
33349         modules/wchar-tests.
33350         * modules/wchar-tests: Depend on it.
33351         * modules/wctype-c++-tests: New file, extracted from
33352         modules/wctype-tests.
33353         * modules/wctype-tests: Depend on it.
33354         Reported by Simon Josefsson.
33355
33356 2010-03-28  Bruno Haible  <bruno@clisp.org>
33357
33358         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33359         * gnulib-tool (func_exists_module): New function, extracted from
33360         func_verify_module.
33361         (func_verify_module): Use it.
33362         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33363         'foo' only if 'foo' exists.
33364         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33365         module.
33366
33367 2010-03-28  Bruno Haible  <bruno@clisp.org>
33368
33369         gnulib-tool: Add support for special categories of tests.
33370         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33371         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33372         (func_usage): Document them.
33373         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33374         inc_unportable_tests, inc_all_tests): New variables.
33375         (func_acceptable): Consider these variables.
33376         (func_modules_transitive_closure): Make it work when the 'Status' field
33377         consists of multiple words.
33378         (func_import): Store and restore the values of inc_cxx_tests,
33379         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33380         inc_all_tests in gnulib-comp.m4.
33381         (func_create_testdir): Set inc_all_tests to true.
33382         * doc/gnulib.texi (Extra tests modules): New section.
33383         Suggested by Jim Meyering.
33384
33385 2010-03-28  Bruno Haible  <bruno@clisp.org>
33386
33387         ansi-c++-opt: Allow turning off the C++ build by default.
33388         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33389         gl_CXX_CHOICE_DEFAULT_NO is defined.
33390         Requested by Eric Blake.
33391
33392 2010-03-28  Bruno Haible  <bruno@clisp.org>
33393
33394         unistd: Avoid #define replacements in C++ mode.
33395         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33396         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33397         setsockopt, shutdown, select): In C++, attach a warning to the function
33398         if possible, rather than #defining the symbol to a dysfunctional alias.
33399         Reported by John W. Eaton <jwe@gnu.org>.
33400
33401 2010-03-28  Bruno Haible  <bruno@clisp.org>
33402
33403         Fix link errors on mingw.
33404         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33405         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33406         $(LIBSOCKET).
33407         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33408         $(LIBSOCKET).
33409
33410 2010-03-28  Bruno Haible  <bruno@clisp.org>
33411             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33412
33413         lib-ignore: Determine different options for different compilers.
33414         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33415         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33416         Add comments.
33417         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33418         * NEWS: Mention the change.
33419
33420 2010-03-27  Bruno Haible  <bruno@clisp.org>
33421
33422         Remove unused GNULIB_XYZ macro definitions.
33423         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33424         * modules/fseek (configure.ac): Likewise.
33425         * modules/ioctl (configure.ac): Likewise.
33426         * modules/open (configure.ac): Likewise.
33427         * modules/stdlib-safer (configure.ac): Likewise.
33428
33429 2010-03-27  Bruno Haible  <bruno@clisp.org>
33430
33431         Add a remark about certain modules.
33432         * modules/malloc (Comment): New section.
33433         * modules/realloc (Comment): Likewise.
33434         * modules/sigpipe (Comment): Likewise.
33435
33436 2010-03-27  Bruno Haible  <bruno@clisp.org>
33437
33438         Resolve conflict between the two kinds of module indicators.
33439         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33440         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33441         * modules/canonicalize (configure.ac): Invoke
33442         gl_MODULE_INDICATOR_FOR_TESTS.
33443         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33444         GNULIB_XYZ.
33445         * tests/test-dirent-c++.cc: Likewise.
33446         * tests/test-dirent-safer.c: Likewise.
33447         * tests/test-dup2.c: Likewise.
33448         * tests/test-fchdir.c: Likewise.
33449         * tests/test-fcntl-h-c++.cc: Likewise.
33450         * tests/test-getopt.c: Likewise.
33451         * tests/test-getopt.h: Likewise.
33452         * tests/test-langinfo-c++.cc: Likewise.
33453         * tests/test-locale-c++.cc: Likewise.
33454         * tests/test-math-c++.cc: Likewise.
33455         * tests/test-pty-c++.cc: Likewise.
33456         * tests/test-search-c++.cc: Likewise.
33457         * tests/test-signal-c++.cc: Likewise.
33458         * tests/test-spawn-c++.cc: Likewise.
33459         * tests/test-stdio-c++.cc: Likewise.
33460         * tests/test-stdlib-c++.cc: Likewise.
33461         * tests/test-string-c++.cc: Likewise.
33462         * tests/test-sys_ioctl-c++.cc: Likewise.
33463         * tests/test-sys_select-c++.cc: Likewise.
33464         * tests/test-sys_socket-c++.cc: Likewise.
33465         * tests/test-sys_stat-c++.cc: Likewise.
33466         * tests/test-sys_time-c++.cc: Likewise.
33467         * tests/test-time-c++.cc: Likewise.
33468         * tests/test-unistd-c++.cc: Likewise.
33469         * tests/test-wchar-c++.cc: Likewise.
33470         * tests/uninorm/test-u8-nfc.c: Likewise.
33471         * tests/uninorm/test-u8-nfd.c: Likewise.
33472         * tests/uninorm/test-u8-nfkc.c: Likewise.
33473         * tests/uninorm/test-u8-nfkd.c: Likewise.
33474         * tests/uninorm/test-u16-nfc.c: Likewise.
33475         * tests/uninorm/test-u16-nfd.c: Likewise.
33476         * tests/uninorm/test-u16-nfkc.c: Likewise.
33477         * tests/uninorm/test-u16-nfkd.c: Likewise.
33478         * tests/uninorm/test-u32-nfc.c: Likewise.
33479         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33480         * tests/uninorm/test-u32-nfd.c: Likewise.
33481         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33482         * tests/uninorm/test-u32-nfkc.c: Likewise.
33483         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33484         * tests/uninorm/test-u32-nfkd.c: Likewise.
33485         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33486         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33487
33488 2010-03-27  Bruno Haible  <bruno@clisp.org>
33489
33490         Distinguish two kinds of module indicators.
33491         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33492         gl_MODULE_INDICATOR.
33493         (gl_MODULE_INDICATOR): New macro.
33494         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33495         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33496         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33497         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33498         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33499         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33500         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33501         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33502         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33503         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33504         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33505         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33507         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33508         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33509         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33510         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33511         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33513         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33514         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33515         * modules/cloexec (configure.ac): Likewise.
33516         * modules/getopt-gnu (configure.ac): Likewise.
33517         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33518         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33519         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33520         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33521
33522 2010-03-27  Bruno Haible  <bruno@clisp.org>
33523
33524         New module description field 'Comment'.
33525         * gnulib-tool: New option --extract-comment.
33526         (func_usage): Document it.
33527         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33528         (func_get_comment): New function.
33529         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33530
33531 2010-03-27  Bruno Haible  <bruno@clisp.org>
33532
33533         Addendum to 2010-02-07 commit.
33534         * gnulib-tool (func_usage): Document --extract-applicability option.
33535
33536 2010-03-27  Bruno Haible  <bruno@clisp.org>
33537
33538         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33539         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33540         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33541         rather than link errors.
33542
33543 2010-03-27  Bruno Haible  <bruno@clisp.org>
33544
33545         Avoid side effects from tests-related modules on the compilation of lib.
33546         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33547         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33548         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33549         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33550         macro.
33551         (func_import): Define a witness macro. Assign it a value that depends
33552         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33553         tests-related modules.
33554         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33555         Reported by Jim Meyering.
33556
33557 2010-03-27  Bruno Haible  <bruno@clisp.org>
33558
33559         Factorize common .m4 code.
33560         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33561         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33562         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33563         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33564         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33565         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33566         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33567         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33568         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33569         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33570         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33571         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33572         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33573         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33574         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33575         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33576         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33577         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33579         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33580         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33581         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33582         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33583         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33584         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33585         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33586         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33587         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33588         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33590         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33591         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33592
33593 2010-03-27  Bruno Haible  <bruno@clisp.org>
33594
33595         Fix a compilation error on Cygwin with g++ >= 4.3.
33596         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33597         if it is undefined or if we alias it to chmod.
33598         (lstat): Don't warn about the use of this function if it is undefined
33599         or if we alias it to stat.
33600         Reported by Simon Josefsson.
33601
33602 2010-03-27  Bruno Haible  <bruno@clisp.org>
33603
33604         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33605         * modules/getlogin (configure.ac): Update.
33606
33607         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33608         * modules/getlogin_r (configure.ac): Update.
33609
33610         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33611         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33612         * modules/inet_ntop (configure.ac): Update.
33613
33614         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33615         * modules/inet_pton (configure.ac): Update.
33616
33617         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33618         * modules/mbslen (configure.ac): Update.
33619
33620         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33621         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33622         * modules/forkpty (configure.ac): Update.
33623         * modules/openpty (configure.ac): Update.
33624
33625 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33626
33627         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33628         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33629
33630 2010-03-25  Eric Blake  <eblake@redhat.com>
33631
33632         maint: use pragma consistently across replacement headers
33633         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33634         * lib/dirent.in.h (system_header): Likewise.
33635         * lib/errno.in.h (system_header): Likewise.
33636         * lib/float.in.h (system_header): Likewise.
33637         * lib/getopt.in.h (system_header): Likewise.
33638         * lib/iconv.in.h (system_header): Likewise.
33639         * lib/inttypes.in.h (system_header): Likewise.
33640         * lib/langinfo.in.h (system_header): Likewise.
33641         * lib/locale.in.h (system_header): Likewise.
33642         * lib/math.in.h (system_header): Likewise.
33643         * lib/netdb.in.h (system_header): Likewise.
33644         * lib/netinet_in.in.h (system_header): Likewise.
33645         * lib/pty.in.h (system_header): Likewise.
33646         * lib/sched.in.h (system_header): Likewise.
33647         * lib/se-selinux.in.h (system_header): Likewise.
33648         * lib/search.in.h (system_header): Likewise.
33649         * lib/spawn.in.h (system_header): Likewise.
33650         * lib/stdarg.in.h (system_header): Likewise.
33651         * lib/stdint.in.h (system_header): Likewise.
33652         * lib/string.in.h (system_header): Likewise.
33653         * lib/strings.in.h (system_header): Likewise.
33654         * lib/sys_file.in.h (system_header): Likewise.
33655         * lib/sys_ioctl.in.h (system_header): Likewise.
33656         * lib/sys_socket.in.h (system_header): Likewise.
33657         * lib/sys_times.in.h (system_header): Likewise.
33658         * lib/sys_utsname.in.h (system_header): Likewise.
33659         * lib/sys_wait.in.h (system_header): Likewise.
33660         * lib/sysexits.in.h (system_header): Likewise.
33661         * lib/unistd.in.h (system_header): Likewise.
33662         * lib/wctype.in.h (system_header): Likewise.
33663
33664         arpa/inet: fix mingw compilation warning
33665         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33666         Reported by Matthew Bolte.
33667
33668 2010-03-25  Bruno Haible  <bruno@clisp.org>
33669
33670         Avoid collision between gnulib wrapper and libintl wrapper.
33671         * lib/printf.c (printf): Don't define if a printf wrapper is already
33672         defined in intl/printf.c.
33673         Reported by Michel Boaventura <michel@michelboaventura.com>.
33674
33675 2010-03-25  Bruno Haible  <bruno@clisp.org>
33676
33677         Use ANSI C.
33678         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33679
33680 2010-03-25  Bruno Haible  <bruno@clisp.org>
33681
33682         Minor formatting changes.
33683         * lib/acosl.c: Insert space before function argument list.
33684         * lib/argz.c: Likewise.
33685         * lib/asinl.c: Likewise.
33686         * lib/expl.c: Likewise.
33687         * lib/gen-uni-tables.c: Likewise.
33688         * lib/gettext.h: Likewise.
33689         * lib/glthread/lock.h: Likewise.
33690         * lib/tanl.c: Likewise.
33691         * lib/uniname/uniname.c: Likewise.
33692         * tests/test-idpriv-drop.c: Likewise.
33693         * tests/test-idpriv-droptemp.c: Likewise.
33694         * tests/test-lock.c: Likewise.
33695         * tests/test-tls.c: Likewise.
33696         * lib/argp-help.c: Insert space before function-like macro argument
33697         list.
33698         * lib/memcmp.c: Likewise.
33699         * tests/test-base64.c: Likewise.
33700         * lib/localename.c: Insert space before sizeof's argument list.
33701         * lib/safe-alloc.h: Likewise.
33702         * lib/file-set.h: Insert space before macro argument list.
33703         * tests/test-argp.c: Likewise.
33704         * lib/argp-namefrob.h: Insert space before function parameter list.
33705         * lib/getaddrinfo.c: Likewise.
33706         * lib/netdb.in.h: Likewise.
33707         * lib/parse-duration.h: Likewise.
33708         * lib/parse-duration.c: Likewise.
33709         * lib/poll.c: Likewise.
33710         * lib/select.c: Likewise.
33711         * lib/trim.h: Likewise.
33712         * tests/test-usleep.c: Likewise.
33713         * lib/ldexpl.c: Insert space before function parameter list and before
33714         function argument list.
33715         * lib/logl.c: Likewise.
33716         * lib/sqrtl.c: Likewise.
33717         * lib/trim.c: Likewise.
33718         * lib/cosl.c: Use GNU style indentation. Insert space before function
33719         argument list.
33720         * lib/sinl.c: Likewise.
33721         * lib/tsearch.c: Insert space after 'for'.
33722         Reported by Jim Meyering.
33723
33724 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33725
33726         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33727         config header before grepping, as it's not present before
33728         autoreconf/configure are run.  Reported by Simon Josefsson.
33729
33730 2010-03-23  Bruno Haible  <bruno@clisp.org>
33731
33732         pt_chown: Make it work with automake < 1.11.
33733         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33734         Reported by Simon Josefsson.
33735
33736 2010-03-23  Bruno Haible  <bruno@clisp.org>
33737
33738         pt_chown: Don't depend on GPLed modules.
33739         * lib/pt_chown.c: Don't include idpriv.h.
33740         (main): Don't drop privileges.
33741         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33742         Reported by Simon Josefsson.
33743
33744 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33745
33746         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33747         suggestions from karl@freefriends.org (Karl Berry).
33748
33749 2010-03-22  Eric Blake  <eblake@redhat.com>
33750
33751         gethostname: further tweaks
33752         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33753         are overriding gethostname.
33754         Suggested by Bruno Haible.
33755
33756 2010-03-21  Bruno Haible  <bruno@clisp.org>
33757
33758         Fix comments.
33759         * lib/forkpty.c (rpl_forkpty): Fix comment.
33760         * lib/openpty.c (rpl_openpty): Likewise.
33761         Reported by Eric Blake.
33762
33763 2010-03-22  Eric Blake  <eblake@redhat.com>
33764
33765         gethostname: fix build on mingw
33766         * lib/unistd.in.h (includes): Work around fact that mingw
33767         <winsock2.h> re-includes <unistd.h>, by avoiding any
33768         redeclarations if we are being included by <winsock2.h>.
33769         Reported by Matthias Bolte.
33770
33771 2010-03-21  Bruno Haible  <bruno@clisp.org>
33772
33773         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33774         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33775         modifications.
33776         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33777         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33778         provide the replacement.
33779         * modules/forkpty (Depends-on): Add openpty, login_tty.
33780         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33781         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33782         * doc/glibc-functions/forkpty.texi: More supported platforms.
33783         * config/srclist.txt: Add forkpty.c (commented).
33784
33785 2010-03-21  Bruno Haible  <bruno@clisp.org>
33786
33787         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33788         (Makefile.am): Verify that PTY_LIB is defined.
33789
33790         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33791
33792 2010-03-21  Bruno Haible  <bruno@clisp.org>
33793
33794         Tests for module 'login_tty'.
33795         * modules/login_tty-tests: New file.
33796         * tests/test-login_tty.c: New file.
33797
33798         New module 'login_tty'.
33799         * lib/login_tty.c: New file.
33800         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33801         * modules/login_tty: New file.
33802         * doc/glibc-functions/login_tty.texi: Mention the new module.
33803
33804 2010-03-21  Bruno Haible  <bruno@clisp.org>
33805
33806         login_tty: Documentation.
33807         * doc/glibc-functions/login_tty.texi: New file.
33808         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33809
33810 2010-03-21  Bruno Haible  <bruno@clisp.org>
33811
33812         pty: Consistent macro naming.
33813         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33814         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33815         * modules/pty (configure.ac): Update.
33816
33817 2010-03-21  Bruno Haible  <bruno@clisp.org>
33818
33819         Tests for openpty: Make stricter.
33820         * tests/test-openpty.c (main): Add test of canonical processing and
33821         erase.
33822         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33823
33824         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33825         * lib/openpty.c (openpty): New replacement function.
33826         * lib/pty.in.h: Include <termios.h>.
33827         (openpty): Update declaration. Add comments.
33828         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33829         is not declared, arrange to provide the replacement. Check for _getpty
33830         and posix_openpt.
33831         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33832         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33833         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33834         * modules/pty-tests (test_pty_c___LDADD): New variable.
33835         * doc/glibc-functions/openpty.texi: More supported platforms.
33836
33837 2010-03-21  Bruno Haible  <bruno@clisp.org>
33838
33839         setenv: Tweaks.
33840         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33841         the test program.
33842         * doc/posix-functions/setenv.texi: Update platforms list.
33843
33844 2010-03-21  Bruno Haible  <bruno@clisp.org>
33845
33846         New module 'unlockpt'.
33847         * lib/unlockpt.c: New file, from glibc with modifications.
33848         * m4/unlockpt.m4: New file.
33849         * modules/unlockpt: New file.
33850         * lib/stdlib.in.h (unlockpt): New declaration.
33851         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33852         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33853         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33854         HAVE_UNLOCKPT.
33855         * doc/posix-functions/unlockpt.texi: Mention the new module.
33856         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33857         * config/srclist.txt: Add unlockpt.c (commented).
33858
33859 2010-03-21  Jim Meyering  <meyering@redhat.com>
33860
33861         maint.mk: prohibit inclusion of "intprops.h" without use
33862         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33863
33864 2010-03-21  Bruno Haible  <bruno@clisp.org>
33865
33866         New module 'grantpt'.
33867         * lib/grantpt.c: New file, from glibc with modifications.
33868         * m4/grantpt.m4: New file.
33869         * modules/grantpt: New file.
33870         * lib/stdlib.in.h (grantpt): New declaration.
33871         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33872         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33873         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33874         HAVE_GRANTPT.
33875         * doc/posix-functions/grantpt.texi: Mention the new module.
33876         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33877         * config/srclist.txt: Add grantpt.c (commented).
33878
33879 2010-03-21  Bruno Haible  <bruno@clisp.org>
33880
33881         New module 'pt_chown'.
33882         * lib/pt_chown.c: New file, from glibc with modifications.
33883         * lib/pty-private.h: New file, from glibc with modifications.
33884         * modules/pt_chown: New file.
33885         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33886
33887 2010-03-21  Bruno Haible  <bruno@clisp.org>
33888
33889         Tests for module 'ptsname'.
33890         * modules/ptsname-tests: New file.
33891         * tests/test-ptsname.c: New file.
33892
33893         New module 'ptsname'.
33894         * lib/ptsname.c: New file, from glibc with modifications.
33895         * m4/ptsname.m4: New file.
33896         * modules/ptsname: New file.
33897         * lib/stdlib.in.h (ptsname): New declaration.
33898         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33899         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33900         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33901         HAVE_PTSNAME.
33902         * doc/posix-functions/ptsname.texi: Mention the new module.
33903         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33904         * config/srclist.txt: Add ptsname.c (commented).
33905
33906 2010-03-21  Bruno Haible  <bruno@clisp.org>
33907
33908         Tests for module 'ttyname_r'.
33909         * modules/ttyname_r-tests: New file.
33910         * tests/test-ttyname_r.c: New file.
33911
33912         New module 'ttyname_r'.
33913         * lib/ttyname_r.c: New file.
33914         * m4/ttyname_r.m4: New file.
33915         * modules/ttyname_r: New file.
33916         * lib/unistd.in.h (ttyname_r): New declaration.
33917         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33918         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33919         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33920         HAVE_TTYNAME_R.
33921         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33922         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33923
33924 2010-03-20  Bruno Haible  <bruno@clisp.org>
33925
33926         signal: Undefine macro definitions in C++ mode.
33927         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33928         sigfillset): Undefine macro definitions from the system header in C++
33929         mode.
33930         Reported by John W. Eaton <jwe@gnu.org>.
33931
33932 2010-03-20  Bruno Haible  <bruno@clisp.org>
33933
33934         Ensure no #include statements inside extern "C" { ... }.
33935         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33936         contain #include statements.
33937         * lib/time.in.h: Likewise.
33938
33939 2010-03-20  Bruno Haible  <bruno@clisp.org>
33940
33941         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33942         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33943         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33944         Reported by John W. Eaton <jwe@gnu.org>.
33945
33946 2010-03-20  Bruno Haible  <bruno@clisp.org>
33947
33948         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33949         Reported by Jim Meyering.
33950
33951 2010-03-20  Bruno Haible  <bruno@clisp.org>
33952
33953         pipe: Set errno upon failure.
33954         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33955         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33956         errno value in error message.
33957
33958 2010-03-20  Bruno Haible  <bruno@clisp.org>
33959             Jim Meyering  <meyering@redhat.com>
33960
33961         lchown: Avoid "unused variable" warning.
33962         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33963
33964 2010-03-20  Bruno Haible  <bruno@clisp.org>
33965
33966         Work around unlink() bug on MacOS X 10.5.6.
33967         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33968         attempting to unlink a parent directory.
33969         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33970         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33971         activate for the replacement function.
33972         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33973
33974 2010-03-20  Bruno Haible  <bruno@clisp.org>
33975
33976         Fix link errors on Solaris 8.
33977         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33978         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33979
33980 2010-03-19  Jim Meyering  <meyering@redhat.com>
33981
33982         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33983         The _LIBC implementation of build_range_exp correctly honors the
33984         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33985         However, the non-_LIBC implementation would ignore that syntax-bit
33986         flag and return REG_ERANGE unconditionally.
33987         This change makes it honor that flag.
33988         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33989         Make two pointer parameters "const".
33990         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33991         (parse_bracket_exp): Update caller.
33992
33993         regex.m4: correct the reversed range endpoint ([b-a]) test
33994         * m4/regex.m4: When requiring that [b-a] evoke failure,
33995         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33996         test pass once again for x86-based systems.
33997
33998 2010-03-19  Bruno Haible  <bruno@clisp.org>
33999
34000         scandir: Fix link error on Solaris 8.
34001         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34002         macros.
34003
34004 2010-03-19  Bruno Haible  <bruno@clisp.org>
34005
34006         getusershell: Fix documentation.
34007         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34008         module.
34009         * doc/glibc-functions/setusershell.texi: Likewise.
34010
34011         getusershell: Provide declaration, missing on Solaris 9.
34012         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34013         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34014         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34015         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34017         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34018         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34019         HAVE_GETUSERSHELL.
34020         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34021
34022 2010-03-19  Bruno Haible  <bruno@clisp.org>
34023
34024         wctype: Provide iswblank function.
34025         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34026         exists and is fine.
34027         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34028         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34029         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34030         * doc/posix-functions/iswblank.texi: Update.
34031
34032 2010-03-19  Bruno Haible  <bruno@clisp.org>
34033
34034         Tests of module 'pty' in C++ mode.
34035         * modules/pty-tests: New file.
34036         * tests/test-pty-c++.cc: New file.
34037         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34038
34039 2010-03-19  Eric Blake  <eblake@redhat.com>
34040
34041         logb: fix documentation
34042         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34043         1.5 declaration bug.
34044
34045         forkpty, openpty: prefer glibc's const-safe prototype
34046         * lib/forkpty.c (rpl_forkpty): New file.
34047         * lib/openpty.c (rpl_openpty): Likewise.
34048         * modules/forkpty (Files): Distribute it.
34049         * modules/openpty (Files): Likewise.
34050         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34051         check...
34052         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34053         replacement for for non-const BSD signature.
34054         * modules/pty (Makefile.am): Substitute witnesses.
34055         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34056         * tests/test-forkpty.c: Update signature check.
34057         * tests/test-openpty.c: Likewise.
34058         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34059         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34060
34061         forkpty, openpty: split functions into new modules
34062         * modules/pty (Makefile.am): Substitute new witnesses.
34063         (Libraries): Move library detection...
34064         * modules/forkpty: ...into new module.
34065         * modules/openpty: Another new module.
34066         * modules/pty-tests: Rename and split...
34067         * modules/forkpty-tests: ...to this...
34068         * modules/openpty-tests: ...and this.
34069         * tests/test-pty.c: Rename and split...
34070         * tests/test-forkpty.c: ...to this...
34071         * tests/test-openpty.c: ...and this.
34072         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34073         (gl_PTY): Split library searching...
34074         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34075         (gl_FORKPTY, gl_OPENPTY): New macros.
34076         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34077         * NEWS: Mention the split.
34078         * MODULES.html.sh (Misc): Document the modules.
34079         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34080         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34081
34082         pty: improve replacement header
34083         * lib/pty.in.h: New file.
34084         * modules/pty (Files): Ship it.
34085         (Makefile.am): Always build replacement.
34086         * m4/pty.m4: Rename...
34087         * m4/pty_h.m4: ...to this.
34088         (gl_PTY): Modernize setting of witness macros; update check of
34089         forkpty to take proper advantage of cache.
34090         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34091
34092         getopt: avoid compiler warning
34093         * lib/getopt.c (attribute_hidden): Remove unused macro.
34094
34095 2010-03-18  Bruno Haible  <bruno@clisp.org>
34096
34097         Fix link errors on Solaris 8.
34098         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34099         * modules/search-tests (test_search_c___LDADD): Likewise.
34100         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34101         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34102         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34103         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34104         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34105         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34106         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34107
34108 2010-03-18  Bruno Haible  <bruno@clisp.org>
34109
34110         Fix bug introduced on 2010-03-14.
34111         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34112         (gl_SPAWN_H): Require it.
34113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34114         Reported by Simon Josefsson.
34115
34116 2010-03-18  Bruno Haible  <bruno@clisp.org>
34117
34118         Fix typo introduced on 2009-12-31.
34119         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34120         posix_spawn_file_actions_adddup2.
34121
34122 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34123         and Eric Blake  <eblake@redhat.com>
34124
34125         test-vc-list-files-git: make more robust
34126         * tests/test-vc-list-files-git.sh: Unset problematic environment
34127         variables.  Chain commands together.
34128
34129 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34130
34131         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34132         `AC_CHECK_DECL' invocation.
34133
34134 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34135
34136         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34137         appears before executable statements. Suggested by Petr Sumbera
34138         <Petr.Sumbera@Sun.COM>.
34139
34140 2010-03-14  Bruno Haible  <bruno@clisp.org>
34141
34142         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34143         portability problems. Instead use a simpler test.
34144         (main): Check that invalid arguments are rejected only on Linux.
34145
34146 2010-03-14  Bruno Haible  <bruno@clisp.org>
34147
34148         Fix bug introduced on 2009-12-31.
34149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34150         gl_PREREQ_SYS_H_WINSOCK2 always.
34151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34152         SYS_SOCKET_H variable.
34153         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34154         Update comments.
34155         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34156         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34158         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34159         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34160
34161 2010-03-14  Bruno Haible  <bruno@clisp.org>
34162
34163         Fix values returned by sinl, cosl.
34164         * lib/trigl.h: Add specification comments.
34165         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34166         that combines the values from the precomputed table with the values of
34167         the Chebyshev polynomials.
34168
34169 2010-03-14  Bruno Haible  <bruno@clisp.org>
34170
34171         Fix compilation error when modules 'posix_spawn[p]' are not used.
34172         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34174
34175 2010-03-14  Bruno Haible  <bruno@clisp.org>
34176
34177         Fix compilation error on mingw when module 'time_r' is not used.
34178         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34179         is 1.
34180         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34181         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34182         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34184
34185 2010-03-14  Bruno Haible  <bruno@clisp.org>
34186
34187         Fix compilation error with Sun C.
34188         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34189         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34190         instead of GCC specific ULONG_LONG_MAX.
34191         * lib/xstrtoll.c: Likewise.
34192         * lib/xstrtoull.c: Likewise.
34193
34194 2010-03-13  Bruno Haible  <bruno@clisp.org>
34195
34196         Allow the user to disable C++ code and tests.
34197         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34198         (gl_PROG_ANSI_CXX): Require it.
34199
34200 2010-03-13  Bruno Haible  <bruno@clisp.org>
34201
34202         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34203         cases.
34204
34205 2010-03-13  Bruno Haible  <bruno@clisp.org>
34206
34207         Test that gnulib does not break the standard C++ headers.
34208         * tests/test-locale-c++2.cc: New file.
34209         * modules/locale-tests (Files): Add it.
34210         (Makefile.am): Compile it for test-locale-c++.
34211         * tests/test-math-c++2.cc: New file.
34212         * modules/math-tests (Files): Add it.
34213         (Makefile.am): Compile it for test-math-c++.
34214         * tests/test-signal-c++2.cc: New file.
34215         * modules/signal-tests (Files): Add it.
34216         (Makefile.am): Compile it for test-signal-c++.
34217         * tests/test-stdio-c++2.cc: New file.
34218         * modules/stdio-tests (Files): Add it.
34219         (Makefile.am): Compile it for test-stdio-c++.
34220         * tests/test-stdlib-c++2.cc: New file.
34221         * modules/stdlib-tests (Files): Add it.
34222         (Makefile.am): Compile it for test-stdlib-c++.
34223         * tests/test-string-c++2.cc: New file.
34224         * modules/string-tests (Files): Add it.
34225         (Makefile.am): Compile it for test-string-c++.
34226         * tests/test-time-c++2.cc: New file.
34227         * modules/time-tests (Files): Add it.
34228         (Makefile.am): Compile it for test-time-c++.
34229         Reported by John W. Eaton <jwe@gnu.org>.
34230
34231 2010-03-13  Bruno Haible  <bruno@clisp.org>
34232
34233         * gnulib-tool (func_usage): Clarify which options are available for
34234         --create-testdir and --create-megatestdir.
34235
34236 2010-03-13  Bruno Haible  <bruno@clisp.org>
34237
34238         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34239         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34240         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34241         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34242         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34243         when appropriate.
34244         Reported by Jim Meyering.
34245
34246 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34247
34248         * gnulib-tool (func_import): Explain origin of code.
34249
34250 2010-03-12  Bruno Haible  <bruno@clisp.org>
34251
34252         Fix problem with automake's definition of CXXLINK.
34253         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34254         Reported by Simon Josefsson and Ludovic Courtès.
34255
34256 2010-03-12  Bruno Haible  <bruno@clisp.org>
34257
34258         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34259         stable releases.
34260
34261 2010-03-11  Bruno Haible  <bruno@clisp.org>
34262
34263         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34264         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34265         whether the system provides one variant or multiple variants of the
34266         function.
34267         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34268         C++ compilers.
34269         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34270         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34271         Reported by Jim Meyering.
34272
34273 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34274
34275         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34276
34277 2010-03-08  Bruno Haible  <bruno@clisp.org>
34278
34279         gnulib-tool: Add support for --libtool in --create-testdir.
34280         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34281         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34282
34283 2010-03-08  Eric Blake  <eblake@redhat.com>
34284
34285         gnulib-tool.texi: mention possibility of git submodule
34286         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34287         submodules.
34288         * doc/.gitignore: Ignore another generated file.
34289
34290 2010-03-08  Karl Berry  <karl@gnu.org>
34291
34292         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34293         of committing gnulib files while skipping others.
34294
34295 2010-03-07  Bruno Haible  <bruno@clisp.org>
34296
34297         Tests of module 'wctype' in C++ mode.
34298         * tests/test-wctype-c++.cc: New file.
34299         * modules/wctype-tests (Files): Add it and tests/signature.h.
34300         (Depends-on): Add ansi-c++-opt.
34301         (Makefile.am): Arrange to compile and run test-wctype-c++.
34302
34303         Tests of module 'wchar' in C++ mode.
34304         * tests/test-wchar-c++.cc: New file.
34305         * modules/wchar-tests (Files): Add it and tests/signature.h.
34306         (Depends-on): Add ansi-c++-opt.
34307         (Makefile.am): Arrange to compile and run test-wchar-c++.
34308         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34309         gl_MODULE_INDICATOR.
34310
34311         Tests of module 'unistd' in C++ mode.
34312         * tests/test-unistd-c++.cc: New file.
34313         * modules/unistd-tests (Files): Add it and tests/signature.h.
34314         (Depends-on): Add ansi-c++-opt.
34315         (Makefile.am): Arrange to compile and run test-unistd-c++.
34316         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34317         gl_MODULE_INDICATOR.
34318
34319         Tests of module 'time' in C++ mode.
34320         * tests/test-time-c++.cc: New file.
34321         * modules/time-tests (Files): Add it and tests/signature.h.
34322         (Depends-on): Add ansi-c++-opt.
34323         (Makefile.am): Arrange to compile and run test-time-c++.
34324         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34325
34326         Tests of module 'sys_time' in C++ mode.
34327         * tests/test-sys_time-c++.cc: New file.
34328         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34329         (Depends-on): Add ansi-c++-opt.
34330         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34331         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34332         gl_MODULE_INDICATOR.
34333
34334         Tests of module 'sys_stat' in C++ mode.
34335         * tests/test-sys_stat-c++.cc: New file.
34336         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34337         (Depends-on): Add ansi-c++-opt.
34338         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34339         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34340         gl_MODULE_INDICATOR.
34341
34342         Tests of module 'sys_socket' in C++ mode.
34343         * tests/test-sys_socket-c++.cc: New file.
34344         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34345         (Depends-on): Add ansi-c++-opt.
34346         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34348         gl_MODULE_INDICATOR.
34349
34350         Tests of module 'sys_select' in C++ mode.
34351         * tests/test-sys_select-c++.cc: New file.
34352         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34353         (Depends-on): Add ansi-c++-opt.
34354         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34355         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34356         gl_MODULE_INDICATOR.
34357
34358         Tests of module 'sys_ioctl' in C++ mode.
34359         * tests/test-sys_ioctl-c++.cc: New file.
34360         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34361         (Depends-on): Add ansi-c++-opt.
34362         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34364         gl_MODULE_INDICATOR.
34365
34366         Tests of module 'string' in C++ mode.
34367         * tests/test-string-c++.cc: New file.
34368         * modules/string-tests (Files): Add it and tests/signature.h.
34369         (Depends-on): Add ansi-c++-opt.
34370         (Makefile.am): Arrange to compile and run test-string-c++.
34371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34372         gl_MODULE_INDICATOR.
34373
34374         Tests of module 'stdlib' in C++ mode.
34375         * tests/test-stdlib-c++.cc: New file.
34376         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34377         (Depends-on): Add ansi-c++-opt.
34378         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34379         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34380         gl_MODULE_INDICATOR.
34381
34382         Tests of module 'stdio' in C++ mode.
34383         * tests/test-stdio-c++.cc: New file.
34384         * modules/stdio-tests (Files): Add it and tests/signature.h.
34385         (Depends-on): Add ansi-c++-opt.
34386         (Makefile.am): Arrange to compile and run test-stdio-c++.
34387         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34388         gl_MODULE_INDICATOR.
34389
34390         Tests of module 'spawn' in C++ mode.
34391         * tests/test-spawn-c++.cc: New file.
34392         * modules/spawn-tests (Files): Add it and tests/signature.h.
34393         (Depends-on): Add ansi-c++-opt.
34394         (Makefile.am): Arrange to compile and run test-spawn-c++.
34395         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34396         gl_MODULE_INDICATOR.
34397
34398         Tests of module 'signal' in C++ mode.
34399         * tests/test-signal-c++.cc: New file.
34400         * modules/signal-tests (Files): Add it and tests/signature.h.
34401         (Depends-on): Add ansi-c++-opt.
34402         (Makefile.am): Arrange to compile and run test-signal-c++.
34403         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34404         gl_MODULE_INDICATOR.
34405
34406         Tests of module 'search' in C++ mode.
34407         * tests/test-search-c++.cc: New file.
34408         * modules/search-tests (Files): Add it and tests/signature.h.
34409         (Depends-on): Add ansi-c++-opt.
34410         (Makefile.am): Arrange to compile and run test-search-c++.
34411         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34412         gl_MODULE_INDICATOR.
34413
34414         Tests of module 'math' in C++ mode.
34415         * tests/test-math-c++.cc: New file.
34416         * modules/math-tests (Files): Add it and tests/signature.h.
34417         (Depends-on): Add ansi-c++-opt.
34418         (Makefile.am): Arrange to compile and run test-math-c++.
34419         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34420
34421         Tests of module 'locale' in C++ mode.
34422         * tests/test-locale-c++.cc: New file.
34423         * modules/locale-tests (Files): Add it and tests/signature.h.
34424         (Depends-on): Add ansi-c++-opt.
34425         (Makefile.am): Arrange to compile and run test-locale-c++.
34426         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34427         gl_MODULE_INDICATOR.
34428
34429         Tests of module 'langinfo' in C++ mode.
34430         * tests/test-langinfo-c++.cc: New file.
34431         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34432         (Depends-on): Add ansi-c++-opt.
34433         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34434         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34435         gl_MODULE_INDICATOR.
34436
34437         Tests of module 'iconv-h' in C++ mode.
34438         * tests/test-iconv-h-c++.cc: New file.
34439         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34440         (Depends-on): Add ansi-c++-opt.
34441         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34442
34443         Tests of module 'glob' in C++ mode.
34444         * tests/test-glob-c++.cc: New file.
34445         * modules/glob-tests (Files): Add it.
34446         (Depends-on): Add ansi-c++-opt.
34447         (Makefile.am): Arrange to compile and run test-glob-c++.
34448
34449         Tests of module 'fcntl-h' in C++ mode.
34450         * tests/test-fcntl-h-c++.cc: New file.
34451         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34452         (Depends-on): Add ansi-c++-opt.
34453         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34455         gl_MODULE_INDICATOR.
34456
34457         Tests of module 'dirent' in C++ mode.
34458         * tests/test-dirent-c++.cc: New file.
34459         * modules/dirent-tests (Files): Add it and tests/signature.h.
34460         (Depends-on): Add ansi-c++-opt.
34461         (Makefile.am): Arrange to compile and run test-dirent-c++.
34462         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34463         gl_MODULE_INDICATOR.
34464
34465         New module 'ansi-c++-opt'.
34466         * modules/ansi-c++-opt: New file.
34467         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34468
34469         Document C++ namespace mode.
34470         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34471
34472         wctype: Avoid #define replacements in C++ mode.
34473         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34474         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34475         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34476         In C++, define a namespaced alias symbol.
34477         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34478         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34479         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34480         rule.
34481
34482         wchar: Avoid #define replacements in C++ mode.
34483         * lib/wchar.in.h: Include c++defs.h.
34484         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34485         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34486         symbol.
34487         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34488         * modules/wchar (Depends-on): Add c++defs.
34489         (Makefile.am): Update wchar.h rule.
34490
34491         unistd: Avoid #define replacements in C++ mode.
34492         * lib/unistd.in.h: Include c++defs.h.
34493         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34494         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34495         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34496         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34497         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34498         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34499         symbol.
34500         (environ): Update.
34501         * modules/unistd (Depends-on): Add c++defs.
34502         (Makefile.am): Update unistd.h rule.
34503
34504         time: Avoid #define replacements in C++ mode.
34505         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34506         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34507         define a namespaced alias symbol.
34508         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34509         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34510         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34511         * modules/time (Depends-on): Add c++defs, warn-on-use.
34512         (Makefile.am): Update time.h rule.
34513         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34514         * modules/nanosleep (configure.ac): Likewise.
34515         * modules/strptime (configure.ac): Likewise.
34516         * modules/timegm (configure.ac): Likewise.
34517
34518         sys_time: Avoid #define replacements in C++ mode.
34519         * lib/sys_time.in.h: Include c++defs.h.
34520         (gettimeofday): In C++, define a namespaced alias symbol.
34521         * modules/sys_time (Depends-on): Add c++defs.
34522         (Makefile.am): Update sys/time.h rule.
34523
34524         sys_stat: Avoid #define replacements in C++ mode.
34525         * lib/sys_stat.in.h: Include c++defs.h.
34526         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34527         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34528         namespaced alias symbol.
34529         In C++, define a namespaced alias symbol.
34530         * modules/sys_stat (Depends-on): Add c++defs.
34531         (Makefile.am): Update sys/stat.h rule.
34532
34533         sys_socket: Avoid #define replacements in C++ mode.
34534         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34535         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34536         definitions also when the system has a <sys/socket.h>.
34537         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34538         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34539         In C++, define a namespaced alias symbol.
34540         * modules/sys_socket (Depends-on): Add c++defs.
34541         (Makefile.am): Update sys/socket.h rule.
34542
34543         sys_select: Avoid #define replacements in C++ mode.
34544         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34545         definitions also when the system has a <sys/select.h>.
34546         (select): In C++, define a namespaced alias symbol.
34547         * modules/sys_select (Depends-on): Add c++defs.
34548         (Makefile.am): Update sys/select.h rule.
34549
34550         sys_ioctl: Avoid #define replacements in C++ mode.
34551         * lib/sys_ioctl.in.h: Include c++defs.h.
34552         (ioctl): In C++, define a namespaced alias symbol.
34553         * modules/sys_ioctl (Depends-on): Add c++defs.
34554         (Makefile.am): Update sys/ioctl.h rule.
34555
34556         string: Avoid #define replacements in C++ mode.
34557         * lib/string.in.h: Include c++defs.h.
34558         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34559         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34560         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34561         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34562         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34563         * modules/string (Depends-on): Add c++defs.
34564         (Makefile.am): Update string.h rule.
34565
34566         stdlib: Avoid #define replacements in C++ mode.
34567         * lib/stdlib.in.h: Include c++defs.h.
34568         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34569         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34570         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34571         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34572         symbol.
34573         * modules/stdlib (Depends-on): Add c++defs.
34574         (Makefile.am): Update stdlib.h rule.
34575
34576         stdio: Avoid #define replacements in C++ mode.
34577         * lib/stdio.in.h: Include c++defs.h.
34578         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34579         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34580         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34581         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34582         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34583         namespaced alias symbol.
34584         * modules/stdio (Depends-on): Add c++defs.
34585         (Makefile.am): Update stdio.h rule.
34586
34587         spawn: Avoid #define replacements in C++ mode.
34588         * lib/spawn.in.h: Include c++defs.h.
34589         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34590         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34591         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34592         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34593         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34594         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34595         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34596         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34597         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34598         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34599         In C++, define a namespaced alias symbol.
34600         * modules/spawn (Depends-on): Add c++defs.
34601         (Makefile.am): Update spawn.h rule.
34602
34603         signal: Avoid #define replacements in C++ mode.
34604         * lib/signal.in.h: Include c++defs.h.
34605         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34606         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34607         namespaced alias symbol.
34608         * modules/signal (Depends-on): Add c++defs.
34609         (Makefile.am): Update signal.h rule.
34610
34611         search: Avoid #define replacements in C++ mode.
34612         * lib/search.in.h: Include c++defs.h.
34613         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34614         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34615         symbol.
34616         * modules/search (Depends-on): Add c++defs.
34617         (Makefile.am): Update search.h rule.
34618
34619         math: Avoid #define replacements in C++ mode.
34620         * lib/math.in.h: Include c++defs.h.
34621         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34622         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34623         trunc, truncl): In C++, define a namespaced alias symbol.
34624         * modules/math (Depends-on): Add c++defs.
34625         (Makefile.am): Update math.h rule.
34626
34627         locale: Avoid #define replacements in C++ mode.
34628         * lib/locale.in.h: Include c++defs.h.
34629         (duplocale): In C++, define a namespaced alias symbol.
34630         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34632         * modules/locale (Depends-on): Add c++defs.
34633         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34634
34635         langinfo: Avoid #define replacements in C++ mode.
34636         * lib/langinfo.in.h: Include c++defs.h.
34637         (nl_langinfo): In C++, define a namespaced alias symbol.
34638         * modules/langinfo (Depends-on): Add c++defs.
34639         (Makefile.am): Update langinfo.h rule.
34640
34641         iconv-h: Avoid #define replacements in C++ mode.
34642         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34643         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34644         symbol.
34645         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34646         whenever iconv is present.
34647         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34648         (Makefile.am): Update iconv.h rule.
34649
34650         glob: Avoid #define replacements in C++ mode.
34651         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34652         (_gl_glob_errfunc_fn): New type.
34653         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34654         symbol.
34655         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34656         (Makefile.am): Update glob.h rule.
34657
34658         fcntl-h: Avoid #define replacements in C++ mode.
34659         * lib/fcntl.in.h: Include c++defs.h.
34660         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34661         * modules/fcntl-h (Depends-on): Add c++defs.
34662         (Makefile.am): Update fcntl.h rule.
34663
34664         dirent: Avoid #define replacements in C++ mode.
34665         * lib/dirent.in.h: Include c++defs.h.
34666         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34667         namespaced alias symbol.
34668         (dirfd): Update declaration.
34669         * modules/dirent (Depends-on): Add c++defs.
34670         (Makefile.am): Update dirent.h rule.
34671
34672         ctype: Make it usable in C++ code.
34673         * lib/ctype.in.h: Include c++defs.h.
34674         (isblank): Declare as extern "C".
34675         * modules/ctype (Depends-on): Add c++defs.
34676         (Makefile.am): Update ctype.h rule.
34677
34678         New module 'c++defs'.
34679         * modules/c++defs: New file.
34680         * build-aux/c++defs.h: New file.
34681         Reported by John W. Eaton <jwe@gnu.org>.
34682
34683 2010-03-07  Bruno Haible  <bruno@clisp.org>
34684
34685         logb: Provide missing declaration for Cygwin.
34686         * lib/math.in.h (logb): New declaration.
34687         * m4/logb.m4: New file.
34688         * modules/logb (Files): Add m4/logb.m4.
34689         (Depends-on): Add math.
34690         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34691         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34693         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34694         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34695
34696 2010-03-07  Bruno Haible  <bruno@clisp.org>
34697
34698         Fix test-cond link error.
34699         * tests/test-cond.c: Include <stdio.h>.
34700
34701 2010-03-07  Bruno Haible  <bruno@clisp.org>
34702
34703         Fix test-dirent-safer link error.
34704         * modules/dirent-safer-tests (Makefile.am): Define
34705         test_dirent_safer_LDADD.
34706
34707 2010-03-07  Bruno Haible  <bruno@clisp.org>
34708
34709         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34710         among default module list.
34711
34712 2010-03-07  Bruno Haible  <bruno@clisp.org>
34713
34714         Fix link error on platforms with GNU libiconv.
34715         * modules/unistr/u8-strcoll-tests (Makefile): Define
34716         test_u8_strcoll_LDADD.
34717         * modules/unistr/u16-strcoll-tests (Makefile): Define
34718         test_u16_strcoll_LDADD.
34719         * modules/unistr/u32-strcoll-tests (Makefile): Define
34720         test_u32_strcoll_LDADD.
34721
34722 2010-03-07  Bruno Haible  <bruno@clisp.org>
34723
34724         Use POSIX declarations for socket functions.
34725         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34726         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34727         rpl_sendto): Change declaration to match POSIX.
34728         * lib/connect.c (rpl_connect): Likewise.
34729         * lib/accept.c (rpl_accept): Likewise.
34730         * lib/bind.c (rpl_bind): Likewise.
34731         * lib/getpeername.c (rpl_getpeername): Likewise.
34732         * lib/getsockname.c (rpl_getsockname): Likewise.
34733         * lib/recv.c (rpl_recv): Likewise.
34734         * lib/send.c (rpl_send): Likewise.
34735         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34736         * lib/sendto.c (rpl_sendto): Likewise.
34737
34738 2010-03-06  Bruno Haible  <bruno@clisp.org>
34739
34740         Clarify access, euidaccess, faccessat.
34741         * doc/posix-functions/faccessat.texi: Mention security problem under
34742         "Other problems", not "Portability problems".
34743         * doc/posix-functions/access.texi: Likewise. Mention a related security
34744         problem.
34745         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34746         * lib/euidaccess.c: Add comments about platforms.
34747         * lib/unistd.in.h (access, euidaccess): Add warnings.
34748
34749 2010-03-07  Bruno Haible  <bruno@clisp.org>
34750
34751         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34752         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34753         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34754         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34755         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34756         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34757         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34758         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34759         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34760         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34761         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34762         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34763         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34764         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34765         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34766         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34767         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34768         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34769         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34770         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34771         Likewise.
34772         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34773         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34774         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34775         Likewise.
34776         * tests/test-spawn.c (main): Make it work when
34777         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34778
34779 2010-03-07  Bruno Haible  <bruno@clisp.org>
34780
34781         Fix incorrect Makefile.am generation in German locale.
34782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34783         Execute sed command with character range in C locale.
34784
34785 2010-03-06  Bruno Haible  <bruno@clisp.org>
34786
34787         Tests for module 'iconv-h'.
34788         * modules/iconv-h-tests: New file.
34789         * tests/test-iconv-h.c: New file.
34790
34791         New module 'iconv-h'.
34792         * modules/iconv-h: New file.
34793         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34794         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34795         (configure.ac): Remove gl_ICONV_H.
34796         (Makefile.am): Remove rule for iconv.h.
34797
34798 2010-03-06  Bruno Haible  <bruno@clisp.org>
34799
34800         More consistent naming of *.m4 files.
34801         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34802         * modules/wctype (Files): Update.
34803
34804         More consistent naming of *.m4 files.
34805         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34806         * modules/wchar (Files): Update.
34807
34808 2010-03-06  Jim Meyering  <meyering@redhat.com>
34809
34810         euidaccess: relax license to LGPLv2+
34811         * modules/euidaccess (License): Relax to LGPLv2+.
34812
34813 2010-03-06  Bruno Haible  <bruno@clisp.org>
34814
34815         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34816         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34817         (Makefile.am): Augment lib_SOURCES instead.
34818
34819 2010-03-04  Jim Meyering  <meyering@redhat.com>
34820
34821         utime: remove obsolete module
34822         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34823         unnecessary for years, and has been marked as obsolete for 10 months.
34824         * modules/utime: Remove file.
34825         * lib/utime.c: Remove file.
34826         * m4/utime.m4: Remove file.
34827         * m4/utimes-null.m4: Remove file.
34828         * doc/posix-functions/utime.texi (utime): Remove reference to
34829         the module.  Move the sole "fixed by gnulib" item into the
34830         "problems not fixed by Gnulib" list.
34831         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34832
34833 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34834
34835         * modules/exit (License): Relax license to LGPLv2+.
34836         (Status): Mark as obsolete.
34837         * NEWS: Mention deprecated 'exit' module.
34838         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34839         of now obsolete 'exit'.
34840
34841 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34842
34843         fts-lgpl: remove unused module
34844         * modules/fts-lgpl: Remove.
34845         * MODULES.html.sh (func_all_modules): Adjust.
34846         * check-module (find_included_lib_files): Adjust.
34847         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34848
34849 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34850
34851         copy-acl: enhance Solaris ACL error handling
34852         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34853         * lib/set-mode-acl.c (qset_acl): Likewise.
34854
34855 2010-03-02  Bruno Haible  <bruno@clisp.org>
34856
34857         spawn: Don't override the system defined values on FreeBSD 8.
34858         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34859         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34860         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34861         if HAVE_POSIX_SPAWN is 1.
34862         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34863
34864 2010-03-01  Bruno Haible  <bruno@clisp.org>
34865
34866         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34867         regarding Automake.
34868
34869 2010-02-25  Bruno Haible  <bruno@clisp.org>
34870
34871         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34872         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34873         setting, not afterwards.
34874         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34875
34876 2010-02-24  Eric Blake  <eblake@redhat.com>
34877
34878         bootstrap, git-version-gen: use timestamp
34879         * build-aux/git-version-gen (scriptversion): Force UTC.
34880         * build-aux/bootstrap (scriptversion): New variable.
34881
34882         bootstrap: allow older git
34883         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34884         older than 1.6.4.  Requested by the libvirt project.
34885
34886 2010-02-23  Eric Blake  <eblake@redhat.com>
34887
34888         warn-on-use: work with old autoconf
34889         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34890         AS_VAR semantics of autoconf 2.60.
34891         Reported by Bruno Haible.
34892
34893         bootstrap: improve some comments
34894         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34895         clarification comments.
34896
34897         gettimeofday: provide correct function
34898         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34899         when replacement is declared, otherwise provide gettimeofday.
34900         Reported by Michael Goffioul.
34901
34902 2010-02-23  Jim Meyering  <meyering@redhat.com>
34903
34904         lib-ignore: relax license to "unlimited", not LGPLv2+
34905         * modules/lib-ignore (License): Relax to "unlimited".
34906
34907 2010-02-23  Jim Meyering  <meyering@redhat.com>
34908
34909         lib-ignore: relax license to LGPLv2+
34910         * modules/lib-ignore (License): Relax to LGPLv2+.
34911
34912 2010-02-22  Eric Blake  <eblake@redhat.com>
34913
34914         lseek: avoid bash 3.2 broken pipe bug
34915         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34916         warning from bash 3.2.
34917         Reported by Ben Pfaff, with analysis from Bruno Haible.
34918
34919         bootstrap: support non-FSF copyright holder
34920         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34921         bootstrap.conf override of COPYRIGHT_HOLDER.
34922         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34923
34924         bootstrap: interoperate with gettext 0.14.1
34925         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34926
34927         bootstrap: allow for alternate submodule location
34928         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34929         hardcoding submodule location.
34930         (gnulib_mk): Allow direct use of Makefile.am.
34931
34932         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34933         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34934         rather than reconfiguring where the submodule points.
34935
34936         gettimeofday: restore support for platforms that lack function
34937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34938         replacement if function is missing.
34939         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34940         * modules/sys_time (Makefile.am): Substitute it.
34941         * lib/sys_time.in.h (gettimeofday): Check it.
34942         Reported by Michael Goffioul.
34943
34944 2010-02-21  Bruno Haible  <bruno@clisp.org>
34945
34946         * lib/stdio.in.h (obstack_printf): Fix typo.
34947
34948 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34949
34950         vc-list-files: use bzr ls's -R option
34951         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34952         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34953
34954 2010-02-21  Jim Meyering  <meyering@redhat.com>
34955
34956         init.sh: fix EXEEXT shims to work also for names like test-prog
34957         * tests/init.sh: Re-exec a better shell, when needed.
34958         If the current shell lacks support for posix $(...), an init.sh-using
34959         test will now try to find a shell that supports that.  If EXEEXT is
34960         nonempty, we also require support for hyphen-in-alias-name and shell
34961         substitutions like ${var#glob}.  Failure to find such a shell results
34962         in a skipped test.
34963
34964 2010-02-21  Bruno Haible  <bruno@clisp.org>
34965
34966         Really work around around "broken pipe" error message from bash 3.2.
34967         * gnulib-tool (func_reset_sigpipe): Remove function.
34968         (echo): In bash 3.2, define to a function that uses printf.
34969         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34970
34971 2010-02-20  Bruno Haible  <bruno@clisp.org>
34972
34973         Restore support for automake 1.9.6 with autoconf 2.61.
34974         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34975         Reported by James Youngman <jay@gnu.org>.
34976
34977 2010-02-20  Bruno Haible  <bruno@clisp.org>
34978
34979         Improve *printf warning condition.
34980         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34981         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34982         and the function is overridden due to SIGPIPE emulation.
34983
34984 2010-02-20  Bruno Haible  <bruno@clisp.org>
34985
34986         * lib/stdio.in.h: Tweak comments.
34987
34988 2010-02-19  Bruno Haible  <bruno@clisp.org>
34989
34990         Make it easier to find modules. New gnulib-tool option '--find'.
34991         * gnulib-tool: New option --find.
34992         (func_usage): Document it.
34993         (func_sanitize_modulelist): New function, extracted from
34994         func_all_modules.
34995         (func_all_modules): Invoke it.
34996         * doc/gnulib-tool.texi (Which modules?): New node.
34997
34998 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34999
35000         * lib/sys_select.in.h: Provide select replacement even if
35001         sys/select.h exists on a system, for Interix.
35002
35003 2010-02-18  Jim Meyering  <meyering@redhat.com>
35004
35005         init.sh: don't use $(...) just yet
35006         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35007         to accommodate e.g., Solaris' /bin/sh.
35008
35009 2010-02-17  Bruno Haible  <bruno@clisp.org>
35010
35011         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35012         Reported by Ludovic Courtès <ludo@gnu.org>.
35013
35014 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35015
35016         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35017         linking with -lintl.
35018
35019 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35020
35021         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35022         if not provided by the system's netdb.h.  Reported by
35023         ludo@gnu.org (Ludovic Courtès).
35024
35025 2010-02-15  Jim Meyering  <meyering@redhat.com>
35026
35027         init.sh: improve portability and efficiency
35028         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35029         "dummy" in a for loop.
35030         Use '!', not '^' to select the complement of a character set used
35031         in a "case" statement.
35032         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35033         Suggestions from Eric Blake.
35034
35035         init.sh: automatically accommodate programs with the .exe suffix
35036         Automatically arrange for an invocation of "prog" to execute the
35037         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35038         may use the simpler "prog", yet still work when built on a system
35039         that requires specifying the added suffix.
35040         Do this by constructing a function named "prog" that invokes
35041         "prog.exe" for each .exe file in selected directories.
35042         * tests/init.sh (find_exe_basenames_): New function.
35043         (create_exe_shim_functions_): New function.
35044         (path_prepend_): Use it.
35045
35046         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35047         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35048         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35049
35050 2010-02-14  Jim Meyering  <meyering@redhat.com>
35051
35052         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35053         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35054         (sc_prohibit_hash_pjw_without_use): New rule.
35055
35056         maint.mk: allow the default upload destination dir to be overridden
35057         * top/maint.mk (upload_dest_dir_): Define with a default that
35058         preserves the status quo.
35059         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35060         Reported by Peter Simons.
35061
35062         maint.mk: prohibit inclusion of "hash.h" without_use
35063         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35064
35065 2010-02-10  Jim Meyering  <meyering@redhat.com>
35066
35067         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35068         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35069
35070 2010-02-09  Eric Blake  <ebb9@byu.net>
35071         and Bruno Haible  <bruno@clisp.org>
35072
35073         obstack-printf-posix: ensure declaration
35074         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35075         extracted from gl_FUNC_OBSTACK_PRINTF.
35076         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35077         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35078         Likewise.
35079         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35080         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35081         0.
35082
35083 2010-02-08  Bruno Haible  <bruno@clisp.org>
35084
35085         gnulib-tool: Fix typo in 2010-02-07 commit.
35086         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35087         Reported by Eric Blake.
35088
35089 2010-02-07  Bruno Haible  <bruno@clisp.org>
35090
35091         gnulib-tool: Fix up caching patches.
35092         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35093         option --no-cache. Use associative arrays when supported by the shell.
35094         (sed_comments): New variable.
35095         (modcache): Renamed from do_cache.
35096         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35097         abbreviate unnecessarily.
35098         (have_associative): New variable.
35099         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35100         way also for ksh and zsh.
35101         (func_init_sed_convert_to_cache_statements): New function, extracted
35102         from func_cache_lookup_module. Add support for associative arrays.
35103         Don't set the c_MODULE_cached variable here. Ignore all lines before
35104         the first field header. Remove only the final newline, not all trailing
35105         newlines. Support empty fields correctly. Limit the use of 'eval' to
35106         assignments.
35107         (func_get_description, func_get_status, func_get_notice,
35108         func_get_applicability, func_get_filelist, func_get_dependencies,
35109         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35110         func_get_automake_snippet, func_get_include_directive,
35111         func_get_link_directive, func_get_license, func_get_maintainer):
35112         Update documentation. List the unoptimized code first. Add support for
35113         associative arrays. Limit the use of 'eval' to assignments.
35114         (func_get_applicability): Undo stylistic pessimisations.
35115         (func_get_automake_snippet, func_get_include_directive): Reduce code
35116         duplication.
35117         (func_modules_transitive_closure, func_modules_add_dummy,
35118         func_modules_notice, func_modules_to_filelist, func_add_file,
35119         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35120         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35121         func_create_testdir, func_create_megatestdir): Update documentation.
35122
35123 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35124
35125         * gnulib-tool (func_cache_lookup_module): Store the module name
35126         belonging to the cache variable; error out if two different
35127         module names map to the same cache variable name.
35128
35129 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35130
35131         gnulib-tool: Make caching optional.
35132         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35133         Update matching short versions of --no-changelog.
35134         (func_usage): Update.
35135         (sed_extract_cache_prog): Renamed from ...
35136         (sed_extract_prog): ... this; revert to old extraction script.
35137         (func_get_description, func_get_status)
35138         (func_get_notice, func_get_applicability, func_get_filelist)
35139         (func_get_dependencies, func_get_autoconf_early_snippet)
35140         (func_get_autoconf_snippet, func_get_automake_snippet)
35141         (func_get_include_directive, func_get_link_directive)
35142         (func_get_license, func_get_maintainer): If $do_cache is false,
35143         use old, non-caching extraction scripts.
35144         Suggestion by Bruno Haible.
35145
35146 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35147
35148         gnulib-tool: cache module metainformation.
35149         * gnulib-tool (sed_extract_prog): Match newline before each
35150         header, and rewrite header to a shell variable suffix.
35151         (func_cache_var, func_cache_lookup_module): New functions,
35152         to turn a module name into a cache variable prefix, and to
35153         look up and cache module metainformation.
35154         (func_get_description, func_get_status)
35155         (func_get_notice, func_get_applicability, func_get_filelist)
35156         (func_get_dependencies, func_get_autoconf_early_snippet)
35157         (func_get_autoconf_snippet, func_get_automake_snippet)
35158         (func_get_include_directive, func_get_link_directive)
35159         (func_get_license, func_get_maintainer): Use
35160         func_cache_lookup_module.
35161
35162 2010-02-07  Bruno Haible  <bruno@clisp.org>
35163
35164         fnctl: Fix missing dependency.
35165         * modules/fcntl (Depends-on): Add getdtablesize.
35166         Reported by John W. Eaton <jwe@gnu.org>.
35167
35168 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35169
35170         Argp: fix recognition of short alias options.
35171
35172         * lib/argp-parse.c (convert_options): Fix improper use of
35173         `|' between character values.
35174         * tests/test-argp.c (group1_option): New alias option
35175         --read (-r).
35176         (group1_parser): Special handling for 'r'.
35177         (test15): New test case.
35178         (test_fun): Add test15.
35179         * tests/test-argp-2.sh: Update expected --help and --usage
35180         outputs.
35181
35182 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35183
35184         * tests/test-argp.c: Fix indentation.
35185
35186 2010-02-04  Eric Blake  <ebb9@byu.net>
35187
35188         gettimeofday: expose type of second argument
35189         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35190         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35191         * tests/test-gettimeofday.c: Use it to silence warning.
35192         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35193         the issue.
35194
35195 2010-02-03  Jim Meyering  <meyering@redhat.com>
35196
35197         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35198         * lib/regcomp.c (TYPE_SIGNED): Define.
35199         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35200
35201         regcomp.c: avoid a new -Wshadow warning
35202         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35203
35204 2010-02-01  Jim Meyering  <meyering@redhat.com>
35205
35206         removing useless parentheses in cpp #define directives
35207         For motivation, see commit c0221df4, "define STREQ(a,b)
35208         consistently, removing useless parentheses"
35209         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35210         * lib/mountlist.c (MNT_IGNORE): Likewise.
35211         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35212
35213 2010-02-01  Eric Blake  <ebb9@byu.net>
35214
35215         sys_time: use link-warning
35216         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35217         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35218         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35219         * modules/sys_time (Depends-on): Add warn-on-use.
35220         (Makefile.am): Always build replacement.
35221         (configure.ac): Update substitutions.
35222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35223         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35224         bother with SYS_TIME_H.
35225         * modules/gettimeofday (configure.ac): Declare indicator.
35226         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35227         in use.
35228
35229         closein-tests: silence compiler warning
35230         * tests/test-closein.c (main): Ignore fread result.
35231         * modules/closein-tests (Depends-on): Add ignore-value.
35232
35233         tests: silence warning about system return
35234         * tests/test-areadlink-with-size.c (main): Ignore system result.
35235         * tests/test-areadlink.c (main): Likewise.
35236         * tests/test-areadlinkat-with-size.c (main): Likewise.
35237         * tests/test-areadlinkat.c (main): Likewise.
35238         * tests/test-canonicalize-lgpl.c (main): Likewise.
35239         * tests/test-canonicalize.c (main): Likewise.
35240         * tests/test-chown.c (main): Likewise.
35241         * tests/test-fchownat.c (main): Likewise.
35242         * tests/test-fdutimensat.c (main): Likewise.
35243         * tests/test-fstatat.c (main): Likewise.
35244         * tests/test-futimens.c (main): Likewise.
35245         * tests/test-lchown.c (main): Likewise.
35246         * tests/test-link.c (main): Likewise.
35247         * tests/test-linkat.c (main): Likewise.
35248         * tests/test-lstat.c (main): Likewise.
35249         * tests/test-mkdir.c (main): Likewise.
35250         * tests/test-mkdirat.c (main): Likewise.
35251         * tests/test-mkfifo.c (main): Likewise.
35252         * tests/test-mkfifoat.c (main): Likewise.
35253         * tests/test-mknod.c (main): Likewise.
35254         * tests/test-readlink.c (main): Likewise.
35255         * tests/test-remove.c (main): Likewise.
35256         * tests/test-rename.c (main): Likewise.
35257         * tests/test-renameat.c (main): Likewise.
35258         * tests/test-rmdir.c (main): Likewise.
35259         * tests/test-symlink.c (main): Likewise.
35260         * tests/test-symlinkat.c (main): Likewise.
35261         * tests/test-unlink.c (main): Likewise.
35262         * tests/test-unlinkat.c (main): Likewise.
35263         * tests/test-utimens.c (main): Likewise.
35264         * tests/test-utimensat.c (main): Likewise.
35265         * modules/areadlink-tests (Depends-on): Add ignore-value.
35266         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35267         * modules/areadlinkat-tests (Depends-on): Likewise.
35268         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35269         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35270         * modules/canonicalize-tests (Depends-on): Likewise.
35271         * modules/chown-tests (Depends-on): Likewise.
35272         * modules/fdutimensat-tests (Depends-on): Likewise.
35273         * modules/futimens-tests (Depends-on): Likewise.
35274         * modules/lchown-tests (Depends-on): Likewise.
35275         * modules/link-tests (Depends-on): Likewise.
35276         * modules/linkat-tests (Depends-on): Likewise.
35277         * modules/lstat-tests (Depends-on): Likewise.
35278         * modules/mkdir-tests (Depends-on): Likewise.
35279         * modules/mkfifo-tests (Depends-on): Likewise.
35280         * modules/mkfifoat-tests (Depends-on): Likewise.
35281         * modules/mknod-tests (Depends-on): Likewise.
35282         * modules/openat-tests (Depends-on): Likewise.
35283         * modules/readlink-tests (Depends-on): Likewise.
35284         * modules/remove-tests (Depends-on): Likewise.
35285         * modules/rename-tests (Depends-on): Likewise.
35286         * modules/renameat-tests (Depends-on): Likewise.
35287         * modules/rmdir-tests (Depends-on): Likewise.
35288         * modules/symlink-tests (Depends-on): Likewise.
35289         * modules/symlinkat-tests (Depends-on): Likewise.
35290         * modules/unlink-tests (Depends-on): Likewise.
35291         * modules/utimens-tests (Depends-on): Likewise.
35292         * modules/utimensat-tests (Depends-on): Likewise.
35293
35294 2010-01-31  Bruno Haible  <bruno@clisp.org>
35295
35296         Perform the same test for many <math.h> functions.
35297         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35298         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35299         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35300         of gl_MATHFUNC.
35301         * modules/acos (configure.ac): Likewise.
35302         * modules/asin (configure.ac): Likewise.
35303         * modules/atan (configure.ac): Likewise.
35304         * modules/atan2 (configure.ac): Likewise.
35305         * modules/cbrt (configure.ac): Likewise.
35306         * modules/copysign (configure.ac): Likewise.
35307         * modules/cos (configure.ac): Likewise.
35308         * modules/cosh (configure.ac): Likewise.
35309         * modules/erf (configure.ac): Likewise.
35310         * modules/erfc (configure.ac): Likewise.
35311         * modules/exp (configure.ac): Likewise.
35312         * modules/fmod (configure.ac): Likewise.
35313         * modules/hypot (configure.ac): Likewise.
35314         * modules/j0 (configure.ac): Likewise.
35315         * modules/j1 (configure.ac): Likewise.
35316         * modules/jn (configure.ac): Likewise.
35317         * modules/lgamma (configure.ac): Likewise.
35318         * modules/log (configure.ac): Likewise.
35319         * modules/log10 (configure.ac): Likewise.
35320         * modules/log1p (configure.ac): Likewise.
35321         * modules/pow (configure.ac): Likewise.
35322         * modules/remainder (configure.ac): Likewise.
35323         * modules/sin (configure.ac): Likewise.
35324         * modules/sinh (configure.ac): Likewise.
35325         * modules/tan (configure.ac): Likewise.
35326         * modules/tanh (configure.ac): Likewise.
35327         * modules/y0 (configure.ac): Likewise.
35328         * modules/y1 (configure.ac): Likewise.
35329         * modules/yn (configure.ac): Likewise.
35330         Suggested by Paolo Bonzini.
35331
35332 2010-01-31  Bruno Haible  <bruno@clisp.org>
35333
35334         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35335
35336 2010-01-31  Bruno Haible  <bruno@clisp.org>
35337
35338         Work around getdelim() bug on FreeBSD 8.0.
35339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35340         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35341         not work.
35342         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35343         is 1.
35344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35345         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35346         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35347         a non-zero size.
35348         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35349
35350 2010-01-31  Bruno Haible  <bruno@clisp.org>
35351
35352         Work around getline() bug on FreeBSD 8.0.
35353         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35354         and a non-zero size.
35355         * tests/test-getline.c (main): Likewise.
35356         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35357         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35358
35359 2010-01-28  Eric Blake  <ebb9@byu.net>
35360
35361         regex: fix build failure
35362         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35363         platforms.
35364
35365 2010-01-28  Jim Meyering  <meyering@redhat.com>
35366
35367         regex: do not ignore memory allocation failure
35368         * lib/regex_internal.c (create_cd_newstate): Detect
35369         re_node_set_init_copy failure.   Extracted from glibc commit
35370         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35371
35372         regex: sync more white-space changes from libc
35373         * lib/regex_internal.c: White-space only changes.
35374         * lib/regexec.c: Likewise.
35375
35376         regex: add many uses of __attribute_warn_unused_result__
35377         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35378         * lib/regexec.c: Likewise.
35379         Extracted from a messy glibc commit.
35380
35381         regcomp.c: spelling and merge-artifact from glibc
35382         * lib/regcomp.c: Merge remainder of glibc's
35383         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35384
35385         regcomp.c: sync white-space changes from glibc
35386         * lib/regcomp.c: Merge to accommodate white space
35387         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35388
35389         regcomp.c: do not ignore internal return values
35390         * lib/regcomp.c: Do not ignore internal return values.
35391         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35392         but without its white-space changes and spelling fixes.
35393
35394         regex_internal.h: define __attribute_warn_unused_result__
35395         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35396
35397         maint: add a syntax-check rule to check for vulnerable Makefile.in
35398         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35399
35400 2010-01-27  Jim Meyering  <meyering@redhat.com>
35401
35402         ncftpput-ftp: clean up spaces
35403         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35404         Remove trailing blanks.
35405
35406 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35407
35408         * build-aux/git-version-gen: Fix copyright statement.
35409         * build-aux/gnupload: Likewise.
35410         * tests/test-arcfour.c: Likewise.
35411         * tests/test-arctwo.c: Likewise.
35412         * tests/test-count-one-bits.c: Likewise.
35413         * tests/test-crc.c: Likewise.
35414         * tests/test-des.c: Likewise.
35415         * tests/test-gc-arcfour.c: Likewise.
35416         * tests/test-gc-arctwo.c: Likewise.
35417         * tests/test-gc-des.c: Likewise.
35418         * tests/test-gc-hmac-md5.c: Likewise.
35419         * tests/test-gc-hmac-sha1.c: Likewise.
35420         * tests/test-gc-md2.c: Likewise.
35421         * tests/test-gc-md4.c: Likewise.
35422         * tests/test-gc-md5.c: Likewise.
35423         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35424         * tests/test-gc-rijndael.c: Likewise.
35425         * tests/test-gc-sha1.c: Likewise.
35426         * tests/test-gc.c: Likewise.
35427         * tests/test-gethostname.c: Likewise.
35428         * tests/test-gettimeofday.c: Likewise.
35429         * tests/test-hash.c: Likewise.
35430         * tests/test-hmac-md5.c: Likewise.
35431         * tests/test-hmac-sha1.c: Likewise.
35432         * tests/test-md2.c: Likewise.
35433         * tests/test-md4.c: Likewise.
35434         * tests/test-md5.c: Likewise.
35435         * tests/test-memchr.c: Likewise.
35436         * tests/test-memchr2.c: Likewise.
35437         * tests/test-memcmp.c: Likewise.
35438         * tests/test-memmem.c: Likewise.
35439         * tests/test-memrchr.c: Likewise.
35440         * tests/test-rawmemchr.c: Likewise.
35441         * tests/test-read-file.c: Likewise.
35442         * tests/test-rijndael.c: Likewise.
35443         * tests/test-sockets.c: Likewise.
35444         * tests/test-strchrnul.c: Likewise.
35445         * tests/test-strstr.c: Likewise.
35446         * tests/test-strtod.c: Likewise.
35447         * build-aux/ncftpput-ftp: Likewise.
35448
35449 2010-01-26  Eric Blake  <ebb9@byu.net>
35450
35451         ignore-value: update recommended header name
35452         * modules/ignore-value (Include): Only use <> for headers that
35453         exist in glibc.
35454
35455 2010-01-26  Jim Meyering  <meyering@redhat.com>
35456
35457         test-userspec.c: avoid compiler warnings
35458         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35459         and "initialization discards qualifiers..." warnings.
35460         Put the first "uid" in its own scope, and make char* members "const".
35461
35462 2010-01-25  Bruno Haible  <bruno@clisp.org>
35463
35464         gnulib-tool: Make warning diagnostics consistent.
35465         * gnulib-tool (func_warning): New function.
35466         Use it everywhere where gnulib-tool produces output to stderr and it is
35467         not a fatal error.
35468
35469 2010-01-25  Bruno Haible  <bruno@clisp.org>
35470
35471         Fix test dependencies.
35472         * modules/xstrtol-tests (Depends-on): Add inttypes.
35473         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35474
35475 2010-01-25 Pádraig Brady <P@draigBrady.com>
35476
35477         syntax-check: detect incorrect boolean macro values in config.h
35478         * modules/maintainer-makefile (configure.ac): Parameterize the location
35479         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35480         The logic is from Eric Blake and the location indicated by Jim Meyering.
35481         Note the more natural CONFIG_HEADER name is prohibited by automake
35482         for backwards compatibility reasons.
35483         * top/maint.mk (sc_Wundef_boolean): New rule.
35484
35485 2010-01-25  Jim Meyering  <meyering@redhat.com>
35486
35487         bootstrap: detect MacOS 10.6's shasum, too
35488         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35489         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35490
35491 2010-01-23  Jim Meyering  <meyering@redhat.com>
35492
35493         xstrtoll: new module
35494         * modules/xstrtoll: New file.
35495         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35496         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35497         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35498         ./configure fails if you use this module and lack "long long".
35499         * modules/xstrtoll-tests: New module.
35500         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35501         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35502         new init.sh-based test framework.
35503
35504 2010-01-24  Bruno Haible  <bruno@clisp.org>
35505
35506         Tests for module 'yn'.
35507         * modules/yn-tests: New file.
35508         * tests/test-yn.c: New file.
35509
35510         Tests for module 'y1'.
35511         * modules/y1-tests: New file.
35512         * tests/test-y1.c: New file.
35513
35514         Tests for module 'y0'.
35515         * modules/y0-tests: New file.
35516         * tests/test-y0.c: New file.
35517
35518         Tests for module 'tanh'.
35519         * modules/tanh-tests: New file.
35520         * tests/test-tanh.c: New file.
35521
35522         Tests for module 'tan'.
35523         * modules/tan-tests: New file.
35524         * tests/test-tan.c: New file.
35525
35526         Tests for module 'sqrt'.
35527         * modules/sqrt-tests: New file.
35528         * tests/test-sqrt.c: New file.
35529
35530         Tests for module 'sinh'.
35531         * modules/sinh-tests: New file.
35532         * tests/test-sinh.c: New file.
35533
35534         Tests for module 'sin'.
35535         * modules/sin-tests: New file.
35536         * tests/test-sin.c: New file.
35537
35538         Tests for module 'rint'.
35539         * modules/rint-tests: New file.
35540         * tests/test-rint.c: New file.
35541
35542         Tests for module 'remainder'.
35543         * modules/remainder-tests: New file.
35544         * tests/test-remainder.c: New file.
35545
35546         Tests for module 'pow'.
35547         * modules/pow-tests: New file.
35548         * tests/test-pow.c: New file.
35549
35550         Tests for module 'nextafter'.
35551         * modules/nextafter-tests: New file.
35552         * tests/test-nextafter.c: New file.
35553
35554         Tests for module 'modf'.
35555         * modules/modf-tests: New file.
35556         * tests/test-modf.c: New file.
35557
35558         Tests for module 'logb'.
35559         * modules/logb-tests: New file.
35560         * tests/test-logb.c: New file.
35561
35562         Tests for module 'log1p'.
35563         * modules/log1p-tests: New file.
35564         * tests/test-log1p.c: New file.
35565
35566         Tests for module 'log10'.
35567         * modules/log10-tests: New file.
35568         * tests/test-log10.c: New file.
35569
35570         Tests for module 'log'.
35571         * modules/log-tests: New file.
35572         * tests/test-log.c: New file.
35573
35574         Tests for module 'lgamma'.
35575         * modules/lgamma-tests: New file.
35576         * tests/test-lgamma.c: New file.
35577
35578         Tests for module 'ldexp'.
35579         * modules/ldexp-tests: New file.
35580         * tests/test-ldexp.c: New file.
35581
35582         Tests for module 'jn'.
35583         * modules/jn-tests: New file.
35584         * tests/test-jn.c: New file.
35585
35586         Tests for module 'j1'.
35587         * modules/j1-tests: New file.
35588         * tests/test-j1.c: New file.
35589
35590         Tests for module 'j0'.
35591         * modules/j0-tests: New file.
35592         * tests/test-j0.c: New file.
35593
35594         Tests for module 'hypot'.
35595         * modules/hypot-tests: New file.
35596         * tests/test-hypot.c: New file.
35597
35598         Tests for module 'fmod'.
35599         * modules/fmod-tests: New file.
35600         * tests/test-fmod.c: New file.
35601
35602         Tests for module 'fabs'.
35603         * modules/fabs-tests: New file.
35604         * tests/test-fabs.c: New file.
35605
35606         Tests for module 'exp'.
35607         * modules/exp-tests: New file.
35608         * tests/test-exp.c: New file.
35609
35610         Tests for module 'erfc'.
35611         * modules/erfc-tests: New file.
35612         * tests/test-erfc.c: New file.
35613
35614         Tests for module 'erf'.
35615         * modules/erf-tests: New file.
35616         * tests/test-erf.c: New file.
35617
35618         Tests for module 'cosh'.
35619         * modules/cosh-tests: New file.
35620         * tests/test-cosh.c: New file.
35621
35622         Tests for module 'cos'.
35623         * modules/cos-tests: New file.
35624         * tests/test-cos.c: New file.
35625
35626         Tests for module 'copysign'.
35627         * modules/copysign-tests: New file.
35628         * tests/test-copysign.c: New file.
35629
35630         Tests for module 'cbrt'.
35631         * modules/cbrt-tests: New file.
35632         * tests/test-cbrt.c: New file.
35633
35634         Tests for module 'atan2'.
35635         * modules/atan2-tests: New file.
35636         * tests/test-atan2.c: New file.
35637
35638         Tests for module 'atan'.
35639         * modules/atan-tests: New file.
35640         * tests/test-atan.c: New file.
35641
35642         Tests for module 'asin'.
35643         * modules/asin-tests: New file.
35644         * tests/test-asin.c: New file.
35645
35646         Tests for module 'acos'.
35647         * modules/acos-tests: New file.
35648         * tests/test-acos.c: New file.
35649
35650 2010-01-24  Bruno Haible  <bruno@clisp.org>
35651
35652         Fix tests for common <math.h> functions.
35653         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35654         code snippet that references the function pointer, rather than merely
35655         calling the function. Substitute the FUNC_LIBM variable.
35656         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35657         * modules/acos (configure.ac): Likewise.
35658         * modules/asin (configure.ac): Likewise.
35659         * modules/atan (configure.ac): Likewise.
35660         * modules/atan2 (configure.ac): Likewise.
35661         * modules/cbrt (configure.ac): Likewise.
35662         * modules/copysign (configure.ac): Likewise.
35663         * modules/cos (configure.ac): Likewise.
35664         * modules/cosh (configure.ac): Likewise.
35665         * modules/erf (configure.ac): Likewise.
35666         * modules/erfc (configure.ac): Likewise.
35667         * modules/exp (configure.ac): Likewise.
35668         * modules/fabs (configure.ac): Likewise.
35669         * modules/fmod (configure.ac): Likewise.
35670         * modules/hypot (configure.ac): Likewise.
35671         * modules/j0 (configure.ac): Likewise.
35672         * modules/j1 (configure.ac): Likewise.
35673         * modules/jn (configure.ac): Likewise.
35674         * modules/ldexp (configure.ac): Likewise.
35675         * modules/lgamma (configure.ac): Likewise.
35676         * modules/log (configure.ac): Likewise.
35677         * modules/log10 (configure.ac): Likewise.
35678         * modules/log1p (configure.ac): Likewise.
35679         * modules/logb (configure.ac): Likewise.
35680         * modules/modf (configure.ac): Likewise.
35681         * modules/nextafter (configure.ac): Likewise.
35682         * modules/pow (configure.ac): Likewise.
35683         * modules/remainder (configure.ac): Likewise.
35684         * modules/rint (configure.ac): Likewise.
35685         * modules/sin (configure.ac): Likewise.
35686         * modules/sinh (configure.ac): Likewise.
35687         * modules/tan (configure.ac): Likewise.
35688         * modules/tanh (configure.ac): Likewise.
35689         * modules/y0 (configure.ac): Likewise.
35690         * modules/y1 (configure.ac): Likewise.
35691         * modules/yn (configure.ac): Likewise.
35692
35693 2010-01-24  Bruno Haible  <bruno@clisp.org>
35694
35695         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35696         * tests/test-acosl.c (x): New variable.
35697         (main): Store argument in x and fetch it from x.
35698         * tests/test-asinl.c (x): New variable.
35699         (main): Store argument in x and fetch it from x.
35700         * tests/test-atanl.c (x): New variable.
35701         (main): Store argument in x and fetch it from x.
35702         * tests/test-cosl.c (x): New variable.
35703         (main): Store argument in x and fetch it from x.
35704         * tests/test-expl.c (x): New variable.
35705         (main): Store argument in x and fetch it from x.
35706         * tests/test-logl.c (x): New variable.
35707         (main): Store argument in x and fetch it from x.
35708         * tests/test-sinl.c (x): New variable.
35709         (main): Store argument in x and fetch it from x.
35710         * tests/test-sqrtl.c (x): New variable.
35711         (main): Store argument in x and fetch it from x.
35712         * tests/test-tanl.c (x): New variable.
35713         (main): Store argument in x and fetch it from x.
35714
35715 2010-01-24  Bruno Haible  <bruno@clisp.org>
35716
35717         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35718         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35719         assignments to the initial TESTS_ENVIRONMENT.
35720         * doc/gnulib.texi (Unit test modules): Document it.
35721         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35722         TESTS_ENVIRONMENT.
35723         * modules/btowc-tests (Makefile.am): Likewise.
35724         * modules/c-stack-tests (Makefile.am): Likewise.
35725         * modules/c-strcase-tests (Makefile.am): Likewise.
35726         * modules/copy-file-tests (Makefile.am): Likewise.
35727         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35728         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35729         * modules/mbrtowc-tests (Makefile.am): Likewise.
35730         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35731         * modules/mbscasestr-tests (Makefile.am): Likewise.
35732         * modules/mbschr-tests (Makefile.am): Likewise.
35733         * modules/mbscspn-tests (Makefile.am): Likewise.
35734         * modules/mbsinit-tests (Makefile.am): Likewise.
35735         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35736         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35737         * modules/mbspbrk-tests (Makefile.am): Likewise.
35738         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35739         * modules/mbsrchr-tests (Makefile.am): Likewise.
35740         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35741         * modules/mbsspn-tests (Makefile.am): Likewise.
35742         * modules/mbsstr-tests (Makefile.am): Likewise.
35743         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35744         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35745         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35746         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35747         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35748         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35749         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35750         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35751         * modules/wcrtomb-tests (Makefile.am): Likewise.
35752         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35753         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35754         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35755         assignments from TESTS_ENVIRONMENT.
35756         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35757         augmentation.
35758         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35759         * modules/atexit-tests (Makefile.am): Likewise.
35760         * modules/binary-io-tests (Makefile.am): Likewise.
35761         * modules/closein-tests (Makefile.am): Likewise.
35762         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35763         * modules/exclude-tests (Makefile.am): Likewise.
35764         * modules/fflush-tests (Makefile.am): Likewise.
35765         * modules/fpending-tests (Makefile.am): Likewise.
35766         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35767         * modules/freadahead-tests (Makefile.am): Likewise.
35768         * modules/freadptr-tests (Makefile.am): Likewise.
35769         * modules/freadseek-tests (Makefile.am): Likewise.
35770         * modules/fseek-tests (Makefile.am): Likewise.
35771         * modules/fseeko-tests (Makefile.am): Likewise.
35772         * modules/ftell-tests (Makefile.am): Likewise.
35773         * modules/ftello-tests (Makefile.am): Likewise.
35774         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35775         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35776         * modules/lseek-tests (Makefile.am): Likewise.
35777         * modules/parse-duration-tests (Makefile.am): Likewise.
35778         * modules/perror-tests (Makefile.am): Likewise.
35779         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35780         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35781         * modules/pipe-tests (Makefile.am): Likewise.
35782         * modules/pread-tests (Makefile.am): Likewise.
35783         * modules/printf-posix-tests (Makefile.am): Likewise.
35784         * modules/select-tests (Makefile.am): Likewise.
35785         * modules/sigpipe-tests (Makefile.am): Likewise.
35786         * modules/tsearch-tests (Makefile.am): Likewise.
35787         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35788         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35789         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35790         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35791         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35792         * modules/version-etc-tests (Makefile.am): Likewise.
35793         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35794         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35795         * modules/xalloc-die-tests (Makefile.am): Likewise.
35796         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35797         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35798         * modules/xstrtol-tests (Makefile.am): Likewise.
35799         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35800         * modules/yesno-tests (Makefile.am): Likewise.
35801         Suggested by Jim Meyering.
35802
35803 2010-01-24  Bruno Haible  <bruno@clisp.org>
35804
35805         More documentation.
35806         * doc/gnulib.texi (Writing modules): New chapter.
35807         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35808         the new chapter.
35809
35810 2010-01-24  Jim Meyering  <meyering@redhat.com>
35811
35812         maint.mk: do not prepend "./" after filtering
35813         * top/maint.mk (_prepend_srcdir_prefix): New variable
35814         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35815         "./" when $(srcdir) is ".".
35816
35817         define STREQ(a,b) consistently, removing useless parentheses
35818         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35819         since the only risk is that "a" or "b" contains an unparenthesized
35820         comma, but if either did that, STREQ would have 3 or more arguments.
35821         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35822         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35823         * lib/hash-triple.c (STREQ): Likewise.
35824         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35825         * lib/getugroups.c (STREQ): Likewise.
35826
35827 2010-01-23  Jim Meyering  <meyering@redhat.com>
35828
35829         maint.mk: fix syntax-check in a non-srcdir build directory
35830         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35831         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35832
35833 2010-01-22  Jim Meyering  <meyering@redhat.com>
35834
35835         userspec: add unit tests
35836         * tests/test-userspec.c: New file.
35837         * modules/userspec-tests: Likewise.
35838
35839 2010-01-21  Jim Meyering  <meyering@redhat.com>
35840
35841         maint.mk: handle source file names containing "." robustly
35842         * top/maint.mk (_dot_escaped_srcdir): Define.
35843         (VC_LIST): Use it in LHS of sed substitution.
35844
35845 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35846
35847         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35848         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35849         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35850         from a non-srcdir build.
35851
35852 2010-01-20  Eric Blake  <ebb9@byu.net>
35853
35854         warn-on-use: use instead of link-warning
35855         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35856         * modules/unistd (Depends-on, Makefile.am): Likewise.
35857         * modules/arpa_inet (Depends-on): Replace link-warning with
35858         warn-on-use.
35859         (Makefile.am): Update rules accordingly.
35860         * modules/ctype (Depends-on, Makefile.am): Likewise.
35861         * modules/dirent (Depends-on, Makefile.am): Likewise.
35862         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35863         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35864         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35865         * modules/locale (Depends-on, Makefile.am): Likewise.
35866         * modules/math (Depends-on, Makefile.am): Likewise.
35867         * modules/search (Depends-on, Makefile.am): Likewise.
35868         * modules/signal (Depends-on, Makefile.am): Likewise.
35869         * modules/spawn (Depends-on, Makefile.am): Likewise.
35870         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35871         * modules/string (Depends-on, Makefile.am): Likewise.
35872         * modules/strings (Depends-on, Makefile.am): Likewise.
35873         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35874         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35875         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35876         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35877         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35878         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35879         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35880         * modules/wchar (Depends-on, Makefile.am): Likewise.
35881         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35882         should be poisoned.
35883         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35884         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35885         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35886         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35887         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35888         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35889         * m4/math_h.m4 (gl_MATH_H): Likewise.
35890         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35891         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35892         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35893         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35894         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35895         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35896         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35897         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35898         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35902         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35904         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35905         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35906         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35907         GL_LINK_WARNING.
35908         * lib/ctype.in.h: Likewise.
35909         * lib/dirent.in.h: Likewise.
35910         * lib/fcntl.in.h: Likewise.
35911         * lib/inttypes.in.h: Likewise.
35912         * lib/langinfo.in.h: Likewise.
35913         * lib/locale.in.h: Likewise.
35914         * lib/math.in.h: Likewise.
35915         * lib/search.in.h: Likewise.
35916         * lib/signal.in.h: Likewise.
35917         * lib/spawn.in.h: Likewise.
35918         * lib/stdio.in.h: Likewise.
35919         * lib/stdlib.in.h: Likewise.
35920         * lib/string.in.h: Likewise.
35921         * lib/strings.in.h: Likewise.
35922         * lib/sys_file.in.h: Likewise.
35923         * lib/sys_ioctl.in.h: Likewise.
35924         * lib/sys_select.in.h: Likewise.
35925         * lib/sys_socket.in.h: Likewise.
35926         * lib/sys_stat.in.h: Likewise.
35927         * lib/sys_times.in.h: Likewise.
35928         * lib/sys_utsname.in.h: Likewise.
35929         * lib/unistd.in.h: Likewise.
35930         * lib/wchar.in.h: Likewise.
35931
35932 2010-01-20  Bruno Haible  <bruno@clisp.org>
35933
35934         Avoid duplicate -lm.
35935         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35936         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35938         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35939         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35940         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35941         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35942         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35943         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35944         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35945         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35946         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35947         Reported by Paolo Bonzini.
35948
35949 2010-01-19  Bruno Haible  <bruno@clisp.org>
35950
35951         langinfo, nl_langinfo: Relicense under LGPLv2+.
35952         * modules/langinfo (License): Change to LGPLv2+.
35953         * modules/nl_langinfo (License): Likewise.
35954         Patch by David Lutterkort <lutter@redhat.com>.
35955
35956 2010-01-19  Bruno Haible  <bruno@clisp.org>
35957
35958         Avoid compilation error with cc on OSF/1 5.1.
35959         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35960         statement, not before.
35961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35962
35963 2010-01-18  Bruno Haible  <bruno@clisp.org>
35964
35965         Avoid a link error due to the __printf__ symbol.
35966         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35967         and 2.6.x.
35968         (__format__, __printf__): Remove definitions.
35969         * lib/argp-fmtstream.h: Likewise.
35970         * lib/argp.h: Likewise.
35971         * lib/error.h: Likewise.
35972         * lib/vasnprintf.h: Likewise.
35973         * lib/xprintf.h: Likewise.
35974         * lib/xvasprintf.h: Likewise.
35975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35976
35977 2010-01-18  Bruno Haible  <bruno@clisp.org>
35978
35979         Tests for module 'tanl'.
35980         * modules/tanl-tests: New file.
35981         * tests/test-tanl.c: New file.
35982
35983         Tests for module 'sqrtl'.
35984         * modules/sqrtl-tests: New file.
35985         * tests/test-sqrtl.c: New file.
35986
35987         Tests for module 'sinl'.
35988         * modules/sinl-tests: New file.
35989         * tests/test-sinl.c: New file.
35990
35991         Tests for module 'logl'.
35992         * modules/logl-tests: New file.
35993         * tests/test-logl.c: New file.
35994
35995         Tests for module 'expl'.
35996         * modules/expl-tests: New file.
35997         * tests/test-expl.c: New file.
35998
35999         Tests for module 'cosl'.
36000         * modules/cosl-tests: New file.
36001         * tests/test-cosl.c: New file.
36002
36003         Tests for module 'atanl'.
36004         * modules/atanl-tests: New file.
36005         * tests/test-atanl.c: New file.
36006
36007         Tests for module 'asinl'.
36008         * modules/asinl-tests: New file.
36009         * tests/test-asinl.c: New file.
36010
36011         Tests for module 'acosl'.
36012         * modules/acosl-tests: New file.
36013         * tests/test-acosl.c: New file.
36014
36015         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36016         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36017         tanl): Use the standard gnulib idiom.
36018         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36019         * lib/sinl.c: Likewise.
36020         * lib/tanl.c: Don't include trigl.c.
36021         (kernel_tanl): Make static.
36022         * lib/sincosl.c: Include trigl.h first.
36023         * lib/trigl.c: Likewise.
36024         * m4/acosl.m4: New file.
36025         * m4/asinl.m4: New file.
36026         * m4/atanl.m4: New file.
36027         * m4/cosl.m4: New file.
36028         * m4/expl.m4: New file.
36029         * m4/logl.m4: New file.
36030         * m4/sinl.m4: New file.
36031         * m4/sqrtl.m4: New file.
36032         * m4/tanl.m4: New file.
36033         * m4/mathl.m4: Remove file.
36034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36035         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36036         Don't initialize GNULIB_MATHL.
36037         * modules/acosl: New file.
36038         * modules/asinl: New file.
36039         * modules/atanl: New file.
36040         * modules/cosl: New file.
36041         * modules/expl: New file.
36042         * modules/logl: New file.
36043         * modules/sinl: New file.
36044         * modules/sqrtl: New file.
36045         * modules/tanl: New file.
36046         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36047         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36048         substitute GNULIB_MATHL.
36049         * modules/mathl: Rewritten.
36050         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36051         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36052         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36053         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36054         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36055         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36056         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36057         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36058         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36059
36060 2010-01-18  Bruno Haible  <bruno@clisp.org>
36061
36062         sqrt: Make gl_FUNC_SQRT requirable.
36063         * m4/sqrt.m4: New file.
36064         * modules/sqrt (Files): Add it.
36065         (configure.ac): Invoke gl_FUNC_SQRT.
36066
36067 2010-01-18  Bruno Haible  <bruno@clisp.org>
36068
36069         New modules for common <math.h> functions.
36070         * m4/mathfunc.m4: New file.
36071         * modules/acos: New file.
36072         * modules/asin: New file.
36073         * modules/atan: New file.
36074         * modules/atan2: New file.
36075         * modules/cbrt: New file.
36076         * modules/copysign: New file.
36077         * modules/cos: New file.
36078         * modules/cosh: New file.
36079         * modules/erf: New file.
36080         * modules/erfc: New file.
36081         * modules/exp: New file.
36082         * modules/fabs: New file.
36083         * modules/fmod: New file.
36084         * modules/hypot: New file.
36085         * modules/j0: New file.
36086         * modules/j1: New file.
36087         * modules/jn: New file.
36088         * modules/ldexp: New file.
36089         * modules/lgamma: New file.
36090         * modules/log: New file.
36091         * modules/log10: New file.
36092         * modules/log1p: New file.
36093         * modules/logb: New file.
36094         * modules/modf: New file.
36095         * modules/nextafter: New file.
36096         * modules/pow: New file.
36097         * modules/remainder: New file.
36098         * modules/rint: New file.
36099         * modules/sin: New file.
36100         * modules/sinh: New file.
36101         * modules/sqrt: New file.
36102         * modules/tan: New file.
36103         * modules/tanh: New file.
36104         * modules/y0: New file.
36105         * modules/y1: New file.
36106         * modules/yn: New file.
36107         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36108         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36109         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36110         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36111         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36112         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36113         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36114         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36115         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36116         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36117         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36118         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36119         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36120         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36121         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36122         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36123         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36124         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36125         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36126         * doc/posix-functions/log.texi: Mention the 'log' module.
36127         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36128         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36129         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36130         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36131         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36132         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36133         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36134         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36135         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36136         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36137         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36138         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36139         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36140         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36141         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36142         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36143
36144 2010-01-18  Jim Meyering  <meyering@redhat.com>
36145
36146         ignore-value: relax license to LGPLv2+
36147         * modules/ignore-value (License): Relax to LGPLv2+.
36148
36149         getdate: don't leak when TZ contains two or more '"'s
36150         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36151         double quote in TZ after the first one.
36152
36153         readtokens: do not leak internal token_lengths buffer
36154         * lib/readtokens.c (readtokens): Free the local, lengths,
36155         when the supplied "token_lengths" parameter is NULL.
36156
36157 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36158
36159         Fix a couple of missing LIBTHREAD link failures on AIX.
36160         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36161         $(LIBTHREAD).
36162         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36163
36164         Link test-poll against INET_PTON_LIB.
36165         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36166         for inet_pton on Solaris 10.
36167
36168 2010-01-17  Bruno Haible  <bruno@clisp.org>
36169
36170         unistdio/*-sprintf: Fix typo in module description.
36171         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36172         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36173         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36174         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36175         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36176         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36177         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36179
36180 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36181
36182         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36183         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36184         variables in shell case patterns, for AIX and HP-UX ksh.
36185
36186         Split large sed scripts, for HP-UX sed.
36187         * modules/stdio: Split sed scripts around 50 sed commands,
36188         to avoid HP-UX limit of 99 commands, in the near future.
36189         * modules/string: Likewise.
36190         * modules/unistd: Likewise.
36191
36192         gnulib-tool: avoid writing in the current directory.
36193         * gnulib-tool (func_emit_lib_Makefile_am)
36194         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36195         not in the current directory, so concurrent gnulib-tool
36196         instances do not interfere.
36197
36198 2010-01-16  Jim Meyering  <meyering@redhat.com>
36199
36200         doc: update users.txt
36201         * users.txt: Add grep.
36202         (diffutils, gzip): Update URLs.
36203
36204 2010-01-12  Bruno Haible  <bruno@clisp.org>
36205
36206         posix_spawn: Avoid test failure on Cygwin.
36207         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36208         characters.
36209         Reported by Simon Josefsson.
36210
36211 2010-01-12  Bruno Haible  <bruno@clisp.org>
36212
36213         * tests/test-cond.c (main): When skipping the test, show the reason.
36214
36215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36216
36217         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36218
36219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36220
36221         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36222         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36223
36224 2010-01-12  Eric Blake  <ebb9@byu.net>
36225
36226         build: guarantee AS_VAR_IF
36227         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36228         (gl_AS_VAR_IF): Move...
36229         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36230         Reported by Simon Josefsson.
36231
36232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36233
36234         * lib/stdio.in.h: Fix typo.
36235
36236 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36237
36238         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36239         libgpg-error.
36240
36241 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36242
36243         * tests/test-xalloc-die.sh: Use $EXEEXT.
36244
36245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36246             Bruno Haible  <bruno@clisp.org>
36247
36248         getlogin, getlogin_r: Avoid test failure.
36249         * tests/test-getlogin.c: Include <stdio.h>.
36250         (main): Skip the test when the function fails because stdin is not a
36251         tty.
36252         * tests/test-getlogin_r.c: Include <stdio.h>.
36253         (main): Skip the test when the function fails because stdin is not a
36254         tty.
36255
36256 2010-01-11  Eric Blake  <ebb9@byu.net>
36257
36258         tests: avoid more large file warnings
36259         * tests/test-fflush.c: Avoid warning about ftell use.
36260         * tests/test-fseek.c: Avoid warning about fseek use.
36261
36262 2010-01-10  Bruno Haible  <bruno@clisp.org>
36263
36264         nproc: Work better on Linux when /proc and /sys are not mounted.
36265         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36266         as lower bound when, on glibc/Linux systems,
36267         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36268         Suggested by Pádraig Brady <P@draigbrady.com>.
36269         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36270
36271         nproc: Refactor.
36272         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36273         extracted from num_processors.
36274         (num_processors): Call it.
36275
36276 2010-01-11  Jim Meyering  <meyering@redhat.com>
36277
36278         utimecmp: avoid new warning from upcoming gcc-4.5.0
36279         * lib/utimecmp.c (BILLION): Define using #define rather than an
36280         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36281
36282 2010-01-11  Eric Blake  <ebb9@byu.net>
36283
36284         math: add portability warnings for classification macros
36285         * modules/math (Depends-on): Add warn-on-use.
36286         (Makefile.am): Provide new substitutions.
36287         * m4/math_h.m4 (gl_MATH_H): Require inline.
36288         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36289         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36290         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36291         implement warnings.
36292
36293         unistd: warn on use of environ without module
36294         * modules/unistd (Depends-on): Add warn-on-use.
36295         (Makefile.am): Provide new substitutions.
36296         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36297         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36298
36299         stdio: warn on suspicious uses
36300         * modules/stdio (Depends-on): Add warn-on-use.
36301         (Makefile.am): Provide new substitutions.
36302         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36303         fseeko.
36304         * lib/stdio.in.h (gets): Always warn on use.
36305         (fseek, ftell): Adjust when warnings are issued, and honor
36306         _GL_NO_LARGE_FILES as a way to silence the warning.
36307         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36308         any warning about large file offsets.
36309         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36310         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36311         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36312         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36313         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36314         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36315         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36316         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36317
36318         warn-on-use: new module
36319         * modules/warn-on-use: New file.
36320         * build-aux/warn-on-use.h: Likewise.
36321         * m4/warn-on-use.m4: Likewise.
36322         * MODULES.html.sh (Support for building): Mention it.
36323
36324 2010-01-10  Bruno Haible  <bruno@clisp.org>
36325
36326         Tests for module 'unistr/u32-strdup'.
36327         * modules/unistr/u32-strdup-tests: New file.
36328         * tests/unistr/test-u32-strdup.c: New file.
36329
36330         Tests for module 'unistr/u16-strdup'.
36331         * modules/unistr/u16-strdup-tests: New file.
36332         * tests/unistr/test-u16-strdup.c: New file.
36333
36334         Tests for module 'unistr/u8-strdup'.
36335         * modules/unistr/u8-strdup-tests: New file.
36336         * tests/unistr/test-u8-strdup.c: New file.
36337         * tests/unistr/test-strdup.h: New file.
36338
36339         Tests for module 'unistr/u32-strncmp'.
36340         * modules/unistr/u32-strncmp-tests: New file.
36341         * tests/unistr/test-u32-strncmp.c: New file.
36342
36343         Tests for module 'unistr/u16-strncmp'.
36344         * modules/unistr/u16-strncmp-tests: New file.
36345         * tests/unistr/test-u16-strncmp.c: New file.
36346
36347         Tests for module 'unistr/u8-strncmp'.
36348         * modules/unistr/u8-strncmp-tests: New file.
36349         * tests/unistr/test-u8-strncmp.c: New file.
36350         * tests/unistr/test-strncmp.h: New file.
36351
36352         Tests for module 'unistr/u32-strcoll'.
36353         * modules/unistr/u32-strcoll-tests: New file.
36354         * tests/unistr/test-u32-strcoll.c: New file.
36355
36356         Tests for module 'unistr/u16-strcoll'.
36357         * modules/unistr/u16-strcoll-tests: New file.
36358         * tests/unistr/test-u16-strcoll.c: New file.
36359
36360         Tests for module 'unistr/u8-strcoll'.
36361         * modules/unistr/u8-strcoll-tests: New file.
36362         * tests/unistr/test-u8-strcoll.c: New file.
36363
36364         Tests for module 'unistr/u32-strcmp'.
36365         * modules/unistr/u32-strcmp-tests: New file.
36366         * tests/unistr/test-u32-strcmp.c: New file.
36367         * tests/unistr/test-u32-strcmp.h: New file.
36368
36369         Tests for module 'unistr/u16-strcmp'.
36370         * modules/unistr/u16-strcmp-tests: New file.
36371         * tests/unistr/test-u16-strcmp.c: New file.
36372         * tests/unistr/test-u16-strcmp.h: New file.
36373
36374         Tests for module 'unistr/u8-strcmp'.
36375         * modules/unistr/u8-strcmp-tests: New file.
36376         * tests/unistr/test-u8-strcmp.c: New file.
36377         * tests/unistr/test-u8-strcmp.h: New file.
36378         * tests/unistr/test-strcmp.h: New file.
36379
36380         Tests for module 'unistr/u32-strncat'.
36381         * modules/unistr/u32-strncat-tests: New file.
36382         * tests/unistr/test-u32-strncat.c: New file.
36383
36384         Tests for module 'unistr/u16-strncat'.
36385         * modules/unistr/u16-strncat-tests: New file.
36386         * tests/unistr/test-u16-strncat.c: New file.
36387
36388         Tests for module 'unistr/u8-strncat'.
36389         * modules/unistr/u8-strncat-tests: New file.
36390         * tests/unistr/test-u8-strncat.c: New file.
36391         * tests/unistr/test-strncat.h: New file.
36392
36393         Tests for module 'unistr/u32-strcat'.
36394         * modules/unistr/u32-strcat-tests: New file.
36395         * tests/unistr/test-u32-strcat.c: New file.
36396
36397         Tests for module 'unistr/u16-strcat'.
36398         * modules/unistr/u16-strcat-tests: New file.
36399         * tests/unistr/test-u16-strcat.c: New file.
36400
36401         Tests for module 'unistr/u8-strcat'.
36402         * modules/unistr/u8-strcat-tests: New file.
36403         * tests/unistr/test-u8-strcat.c: New file.
36404         * tests/unistr/test-strcat.h: New file.
36405
36406         Tests for module 'unistr/u32-stpncpy'.
36407         * modules/unistr/u32-stpncpy-tests: New file.
36408         * tests/unistr/test-u32-stpncpy.c: New file.
36409
36410         Tests for module 'unistr/u16-stpncpy'.
36411         * modules/unistr/u16-stpncpy-tests: New file.
36412         * tests/unistr/test-u16-stpncpy.c: New file.
36413
36414         Tests for module 'unistr/u8-stpncpy'.
36415         * modules/unistr/u8-stpncpy-tests: New file.
36416         * tests/unistr/test-u8-stpncpy.c: New file.
36417         * tests/unistr/test-stpncpy.h: New file.
36418
36419         Tests for module 'unistr/u32-strncpy'.
36420         * modules/unistr/u32-strncpy-tests: New file.
36421         * tests/unistr/test-u32-strncpy.c: New file.
36422
36423         Tests for module 'unistr/u16-strncpy'.
36424         * modules/unistr/u16-strncpy-tests: New file.
36425         * tests/unistr/test-u16-strncpy.c: New file.
36426
36427         Tests for module 'unistr/u8-strncpy'.
36428         * modules/unistr/u8-strncpy-tests: New file.
36429         * tests/unistr/test-u8-strncpy.c: New file.
36430         * tests/unistr/test-strncpy.h: New file.
36431
36432         Tests for module 'unistr/u32-stpcpy'.
36433         * modules/unistr/u32-stpcpy-tests: New file.
36434         * tests/unistr/test-u32-stpcpy.c: New file.
36435
36436         Tests for module 'unistr/u16-stpcpy'.
36437         * modules/unistr/u16-stpcpy-tests: New file.
36438         * tests/unistr/test-u16-stpcpy.c: New file.
36439
36440         Tests for module 'unistr/u8-stpcpy'.
36441         * modules/unistr/u8-stpcpy-tests: New file.
36442         * tests/unistr/test-u8-stpcpy.c: New file.
36443         * tests/unistr/test-stpcpy.h: New file.
36444
36445         Tests for module 'unistr/u32-strcpy'.
36446         * modules/unistr/u32-strcpy-tests: New file.
36447         * tests/unistr/test-u32-strcpy.c: New file.
36448
36449         Tests for module 'unistr/u16-strcpy'.
36450         * modules/unistr/u16-strcpy-tests: New file.
36451         * tests/unistr/test-u16-strcpy.c: New file.
36452
36453         Tests for module 'unistr/u8-strcpy'.
36454         * modules/unistr/u8-strcpy-tests: New file.
36455         * tests/unistr/test-u8-strcpy.c: New file.
36456         * tests/unistr/test-strcpy.h: New file.
36457
36458         Tests for module 'unistr/u32-strnlen'.
36459         * modules/unistr/u32-strnlen-tests: New file.
36460         * tests/unistr/test-u32-strnlen.c: New file.
36461
36462         Tests for module 'unistr/u16-strnlen'.
36463         * modules/unistr/u16-strnlen-tests: New file.
36464         * tests/unistr/test-u16-strnlen.c: New file.
36465
36466         Tests for module 'unistr/u8-strnlen'.
36467         * modules/unistr/u8-strnlen-tests: New file.
36468         * tests/unistr/test-u8-strnlen.c: New file.
36469         * tests/unistr/test-strnlen.h: New file.
36470
36471         Tests for module 'unistr/u32-strlen'.
36472         * modules/unistr/u32-strlen-tests: New file.
36473         * tests/unistr/test-u32-strlen.c: New file.
36474
36475         Tests for module 'unistr/u16-strlen'.
36476         * modules/unistr/u16-strlen-tests: New file.
36477         * tests/unistr/test-u16-strlen.c: New file.
36478
36479         Tests for module 'unistr/u8-strlen'.
36480         * modules/unistr/u8-strlen-tests: New file.
36481         * tests/unistr/test-u8-strlen.c: New file.
36482
36483         Tests for module 'unistr/u32-prev'.
36484         * modules/unistr/u32-prev-tests: New file.
36485         * tests/unistr/test-u32-prev.c: New file.
36486
36487         Tests for module 'unistr/u16-prev'.
36488         * modules/unistr/u16-prev-tests: New file.
36489         * tests/unistr/test-u16-prev.c: New file.
36490
36491         Tests for module 'unistr/u8-prev'.
36492         * modules/unistr/u8-prev-tests: New file.
36493         * tests/unistr/test-u8-prev.c: New file.
36494
36495         Tests for module 'unistr/u32-next'.
36496         * modules/unistr/u32-next-tests: New file.
36497         * tests/unistr/test-u32-next.c: New file.
36498
36499         Tests for module 'unistr/u16-next'.
36500         * modules/unistr/u16-next-tests: New file.
36501         * tests/unistr/test-u16-next.c: New file.
36502
36503         Tests for module 'unistr/u8-next'.
36504         * modules/unistr/u8-next-tests: New file.
36505         * tests/unistr/test-u8-next.c: New file.
36506
36507         Tests for module 'unistr/u32-strmbtouc'.
36508         * modules/unistr/u32-strmbtouc-tests: New file.
36509         * tests/unistr/test-u32-strmbtouc.c: New file.
36510
36511         Tests for module 'unistr/u16-strmbtouc'.
36512         * modules/unistr/u16-strmbtouc-tests: New file.
36513         * tests/unistr/test-u16-strmbtouc.c: New file.
36514
36515         Tests for module 'unistr/u8-strmbtouc'.
36516         * modules/unistr/u8-strmbtouc-tests: New file.
36517         * tests/unistr/test-u8-strmbtouc.c: New file.
36518
36519         Tests for module 'unistr/u32-strmblen'.
36520         * modules/unistr/u32-strmblen-tests: New file.
36521         * tests/unistr/test-u32-strmblen.c: New file.
36522
36523         Tests for module 'unistr/u16-strmblen'.
36524         * modules/unistr/u16-strmblen-tests: New file.
36525         * tests/unistr/test-u16-strmblen.c: New file.
36526
36527         Tests for module 'unistr/u8-strmblen'.
36528         * modules/unistr/u8-strmblen-tests: New file.
36529         * tests/unistr/test-u8-strmblen.c: New file.
36530
36531         Tests for module 'unistr/u32-cpy-alloc'.
36532         * modules/unistr/u32-cpy-alloc-tests: New file.
36533         * tests/unistr/test-u32-cpy-alloc.c: New file.
36534
36535         Tests for module 'unistr/u16-cpy-alloc'.
36536         * modules/unistr/u16-cpy-alloc-tests: New file.
36537         * tests/unistr/test-u16-cpy-alloc.c: New file.
36538
36539         Tests for module 'unistr/u8-cpy-alloc'.
36540         * modules/unistr/u8-cpy-alloc-tests: New file.
36541         * tests/unistr/test-u8-cpy-alloc.c: New file.
36542         * tests/unistr/test-cpy-alloc.h: New file.
36543
36544         Tests for module 'unistr/u32-mbsnlen'.
36545         * modules/unistr/u32-mbsnlen-tests: New file.
36546         * tests/unistr/test-u32-mbsnlen.c: New file.
36547
36548         Tests for module 'unistr/u16-mbsnlen'.
36549         * modules/unistr/u16-mbsnlen-tests: New file.
36550         * tests/unistr/test-u16-mbsnlen.c: New file.
36551
36552         Tests for module 'unistr/u8-mbsnlen'.
36553         * modules/unistr/u8-mbsnlen-tests: New file.
36554         * tests/unistr/test-u8-mbsnlen.c: New file.
36555
36556         Tests for module 'unistr/u32-chr'.
36557         * modules/unistr/u32-chr-tests: New file.
36558         * tests/unistr/test-u32-chr.c: New file.
36559
36560         Tests for module 'unistr/u16-chr'.
36561         * modules/unistr/u16-chr-tests: New file.
36562         * tests/unistr/test-u16-chr.c: New file.
36563
36564         Tests for module 'unistr/u8-chr'.
36565         * modules/unistr/u8-chr-tests: New file.
36566         * tests/unistr/test-u8-chr.c: New file.
36567         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36568
36569         Tests for module 'unistr/u32-cmp2'.
36570         * modules/unistr/u32-cmp2-tests: New file.
36571         * tests/unistr/test-u32-cmp2.c: New file.
36572
36573         Tests for module 'unistr/u16-cmp2'.
36574         * modules/unistr/u16-cmp2-tests: New file.
36575         * tests/unistr/test-u16-cmp2.c: New file.
36576
36577         Tests for module 'unistr/u8-cmp2'.
36578         * modules/unistr/u8-cmp2-tests: New file.
36579         * tests/unistr/test-u8-cmp2.c: New file.
36580         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36581
36582         Tests for module 'unistr/u32-cmp'.
36583         * modules/unistr/u32-cmp-tests: New file.
36584         * tests/unistr/test-u32-cmp.c: New file.
36585
36586         Tests for module 'unistr/u16-cmp'.
36587         * modules/unistr/u16-cmp-tests: New file.
36588         * tests/unistr/test-u16-cmp.c: New file.
36589
36590         Tests for module 'unistr/u8-cmp'.
36591         * modules/unistr/u8-cmp-tests: New file.
36592         * tests/unistr/test-u8-cmp.c: New file.
36593         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36594
36595         Tests for module 'unistr/u32-set'.
36596         * modules/unistr/u32-set-tests: New file.
36597         * tests/unistr/test-u32-set.c: New file.
36598
36599         Tests for module 'unistr/u16-set'.
36600         * modules/unistr/u16-set-tests: New file.
36601         * tests/unistr/test-u16-set.c: New file.
36602
36603         Tests for module 'unistr/u8-set'.
36604         * modules/unistr/u8-set-tests: New file.
36605         * tests/unistr/test-u8-set.c: New file.
36606         * tests/unistr/test-set.h: New file.
36607
36608         Tests for module 'unistr/u32-move'.
36609         * modules/unistr/u32-move-tests: New file.
36610         * tests/unistr/test-u32-move.c: New file.
36611
36612         Tests for module 'unistr/u16-move'.
36613         * modules/unistr/u16-move-tests: New file.
36614         * tests/unistr/test-u16-move.c: New file.
36615
36616         Tests for module 'unistr/u8-move'.
36617         * modules/unistr/u8-move-tests: New file.
36618         * tests/unistr/test-u8-move.c: New file.
36619         * tests/unistr/test-move.h: New file.
36620
36621         Tests for module 'unistr/u32-cpy'.
36622         * modules/unistr/u32-cpy-tests: New file.
36623         * tests/unistr/test-u32-cpy.c: New file.
36624
36625         Tests for module 'unistr/u16-cpy'.
36626         * modules/unistr/u16-cpy-tests: New file.
36627         * tests/unistr/test-u16-cpy.c: New file.
36628
36629         Tests for module 'unistr/u8-cpy'.
36630         * modules/unistr/u8-cpy-tests: New file.
36631         * tests/unistr/test-u8-cpy.c: New file.
36632         * tests/unistr/test-cpy.h: New file.
36633
36634 2010-01-09  Bruno Haible  <bruno@clisp.org>
36635
36636         Tests for module 'unistr/u32-uctomb'.
36637         * modules/unistr/u32-uctomb-tests: New file.
36638         * tests/unistr/test-u32-uctomb.c: New file.
36639
36640         Tests for module 'unistr/u16-uctomb'.
36641         * modules/unistr/u16-uctomb-tests: New file.
36642         * tests/unistr/test-u16-uctomb.c: New file.
36643
36644         Tests for module 'unistr/u8-uctomb'.
36645         * modules/unistr/u8-uctomb-tests: New file.
36646         * tests/unistr/test-u8-uctomb.c: New file.
36647
36648         Tests for module 'unistr/u32-mbtoucr'.
36649         * modules/unistr/u32-mbtoucr-tests: New file.
36650         * tests/unistr/test-u32-mbtoucr.c: New file.
36651
36652         Tests for module 'unistr/u16-mbtoucr'.
36653         * modules/unistr/u16-mbtoucr-tests: New file.
36654         * tests/unistr/test-u16-mbtoucr.c: New file.
36655
36656         Tests for module 'unistr/u8-mbtoucr'.
36657         * modules/unistr/u8-mbtoucr-tests: New file.
36658         * tests/unistr/test-u8-mbtoucr.c: New file.
36659
36660         Tests for module 'unistr/u32-mbtouc'.
36661         * modules/unistr/u32-mbtouc-tests: New file.
36662         * tests/unistr/test-u32-mbtouc.c: New file.
36663
36664         Tests for module 'unistr/u16-mbtouc'.
36665         * modules/unistr/u16-mbtouc-tests: New file.
36666         * tests/unistr/test-u16-mbtouc.c: New file.
36667
36668         Tests for module 'unistr/u8-mbtouc'.
36669         * modules/unistr/u8-mbtouc-tests: New file.
36670         * tests/unistr/test-u8-mbtouc.c: New file.
36671
36672         Tests for module 'unistr/u32-mbtouc-unsafe'.
36673         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36674         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36675         * tests/unistr/test-u32-mbtouc.h: New file.
36676
36677         Tests for module 'unistr/u16-mbtouc-unsafe'.
36678         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36679         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36680         * tests/unistr/test-u16-mbtouc.h: New file.
36681
36682         Tests for module 'unistr/u8-mbtouc-unsafe'.
36683         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36684         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36685         * tests/unistr/test-u8-mbtouc.h: New file.
36686
36687         Tests for module 'unistr/u32-mblen'.
36688         * modules/unistr/u32-mblen-tests: New file.
36689         * tests/unistr/test-u32-mblen.c: New file.
36690
36691         Tests for module 'unistr/u16-mblen'.
36692         * modules/unistr/u16-mblen-tests: New file.
36693         * tests/unistr/test-u16-mblen.c: New file.
36694
36695         Tests for module 'unistr/u8-mblen'.
36696         * modules/unistr/u8-mblen-tests: New file.
36697         * tests/unistr/test-u8-mblen.c: New file.
36698
36699         Tests for module 'unistr/u32-to-u16'.
36700         * modules/unistr/u32-to-u16-tests: New file.
36701         * tests/unistr/test-u32-to-u16.c: New file.
36702
36703         Tests for module 'unistr/u32-to-u8'.
36704         * modules/unistr/u32-to-u8-tests: New file.
36705         * tests/unistr/test-u32-to-u8.c: New file.
36706
36707         Tests for module 'unistr/u16-to-u32'.
36708         * modules/unistr/u16-to-u32-tests: New file.
36709         * tests/unistr/test-u16-to-u32.c: New file.
36710
36711         Tests for module 'unistr/u16-to-u8'.
36712         * modules/unistr/u16-to-u8-tests: New file.
36713         * tests/unistr/test-u16-to-u8.c: New file.
36714
36715         Tests for module 'unistr/u8-to-u32'.
36716         * modules/unistr/u8-to-u32-tests: New file.
36717         * tests/unistr/test-u8-to-u32.c: New file.
36718
36719         Tests for module 'unistr/u8-to-u16'.
36720         * modules/unistr/u8-to-u16-tests: New file.
36721         * tests/unistr/test-u8-to-u16.c: New file.
36722
36723         Tests for module 'unistr/u32-check'.
36724         * modules/unistr/u32-check-tests: New file.
36725         * tests/unistr/test-u32-check.c: New file.
36726
36727         Tests for module 'unistr/u16-check'.
36728         * modules/unistr/u16-check-tests: New file.
36729         * tests/unistr/test-u16-check.c: New file.
36730
36731         Tests for module 'unistr/u8-check'.
36732         * modules/unistr/u8-check-tests: New file.
36733         * tests/unistr/test-u8-check.c: New file.
36734
36735         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36736         (category_equals): New function.
36737         (main): Add more tests.
36738         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36739
36740         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36741
36742 2010-01-10  Bruno Haible  <bruno@clisp.org>
36743
36744         unistr/u*-strcoll: Try harder to distinguish different strings.
36745         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36746         compare s1 and s2 to see if they are different.
36747
36748 2010-01-10  Bruno Haible  <bruno@clisp.org>
36749
36750         unistr/u*-stpncpy: Fix the return value.
36751         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36752         description of the return value consistent with stpncpy in glibc.
36753         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36754         written non-NUL unit.
36755
36756 2010-01-10  Bruno Haible  <bruno@clisp.org>
36757
36758         unistr/u*-next: Add missing dependencies.
36759         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36760         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36761         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36762
36763 2010-01-10  Bruno Haible  <bruno@clisp.org>
36764
36765         unistr/u8-mbsnlen: Fix return value for incomplete character.
36766         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36767         u8_mblen.
36768         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36769         Remove unistr/u8-mblen.
36770         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36771         u16_mblen.
36772         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36773         Remove unistr/u16-mblen.
36774
36775 2010-01-10  Bruno Haible  <bruno@clisp.org>
36776
36777         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36778         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36779         Reported by Brian Gough <bjg@gnu.org> and
36780         Chris Clayton <chris2553@googlemail.com> via
36781         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36782
36783 2010-01-09  Bruno Haible  <bruno@clisp.org>
36784
36785         unistr/u16-to-u32: Reject invalid input.
36786         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36787         u16_mbtouc.
36788         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36789         Remove unistr/u16-mbtouc.
36790
36791         unistr/u16-to-u8: Reject invalid input.
36792         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36793         u16_mbtouc.
36794         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36795         Remove unistr/u16-mbtouc.
36796
36797         unistr/u8-to-u32: Reject invalid input.
36798         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36799         u8_mbtouc.
36800         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36801         Remove unistr/u8-mbtouc.
36802
36803         unistr/u8-to-u16: Reject invalid input.
36804         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36805         u8_mbtouc.
36806         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36807         Remove unistr/u8-mbtouc.
36808
36809 2010-01-09  Bruno Haible  <bruno@clisp.org>
36810
36811         Tests for module 'getlogin'.
36812         * modules/getlogin-tests: New file.
36813         * tests/test-getlogin.c: New file.
36814
36815         New module 'getlogin'.
36816         * lib/unistd.in.h (getlogin): New declaration.
36817         * lib/getlogin.c: New file.
36818         * m4/getlogin.m4: New file.
36819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36820         HAVE_GETLOGIN.
36821         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36822         HAVE_GETLOGIN.
36823         * modules/getlogin: New file.
36824         * doc/posix-functions/getlogin.texi: Mention the new module.
36825         Reported by John W. Eaton <jwe@gnu.org>.
36826
36827 2010-01-09  Bruno Haible  <bruno@clisp.org>
36828
36829         getlogin_r: Support for native Windows.
36830         * lib/getlogin_r.c: Include <windows.h>
36831         (getlogin_r): Implement for native Windows.
36832         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36833         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36834         via John W. Eaton <jwe@gnu.org>.
36835
36836 2010-01-09  Bruno Haible  <bruno@clisp.org>
36837
36838         getlogin_r: Small fixes.
36839         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36840         succeeds.
36841         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36842         before testing whether getlogin_r is declared. No need to set
36843         HAVE_DECL_GETLOGIN_R to 1.
36844         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36845
36846 2010-01-09  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/unistd.in.h (getlogin_r): Add comment.
36849
36850 2010-01-09  Bruno Haible  <bruno@clisp.org>
36851
36852         Tests for module 'getlogin_r'.
36853         * modules/getlogin_r-tests: New file.
36854         * tests/test-getlogin_r.c: New file.
36855
36856 2010-01-09  Jim Meyering  <meyering@redhat.com>
36857
36858         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36859         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36860         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36861
36862 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36863
36864         * lib/dup2.c (rpl_dup2): Improve comment.
36865
36866 2010-01-08  Eric Blake  <ebb9@byu.net>
36867
36868         maint.mk: allow packages to add makefile @@ exceptions
36869         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36870         (sc_makefile_check): Rename...
36871         (sc_makefile_at_at_check): ...to this, and use hook.
36872
36873         dup2: work around mingw bug
36874         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36875         Reported by Simon Josefsson.
36876
36877 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36878
36879         glob: Fix C++ compilation.
36880         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36881         C++.
36882
36883 2010-01-07  Bruno Haible  <bruno@clisp.org>
36884
36885         Fix indentation of wctype.in.h, broken since 2007-01-06.
36886         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36887
36888 2010-01-07  Bruno Haible  <bruno@clisp.org>
36889
36890         mbslen: Avoid collision with system function.
36891         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36892         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36893         * m4/mbslen.m4: New file.
36894         * modules/mbslen (Files): Add it.
36895         (configure.ac): Invoke gl_MBSLEN.
36896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36897         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36898         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36899         via Ian Beckwith <ianb@erislabs.net>.
36900
36901 2010-01-07  Bruno Haible  <bruno@clisp.org>
36902
36903         dirent: Document the last fix.
36904         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36905
36906 2010-01-07  Bruno Haible  <bruno@clisp.org>
36907
36908         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36909         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36910         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36911         va_list are defined.
36912         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36913         Reported by Eric Blake.
36914
36915 2010-01-07  Bruno Haible  <bruno@clisp.org>
36916
36917         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36918         * modules/xlist (Depends-on): Add 'list',
36919         * modules/xoset (Depends-on): Add 'oset'.
36920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36921
36922 2010-01-07  Bruno Haible  <bruno@clisp.org>
36923
36924         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36925         * doc/posix-functions/strncasecmp.texi: Likewise.
36926
36927 2010-01-07  Bruno Haible  <bruno@clisp.org>
36928
36929         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36930
36931 2010-01-07  John W. Eaton  <jwe@octave.org>
36932
36933         wctype: allow C++ use
36934         * lib/wctype.in.h: Add extern "C" block for C++.
36935
36936 2010-01-06  Eric Blake  <ebb9@byu.net>
36937
36938         maint.mk: detect incorrect GFDL usage
36939         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36940
36941 2010-01-06  Jim Meyering  <meyering@redhat.com>
36942         and Eric Blake  <ebb9@byu.net>
36943
36944         maint.mk: ignore multi-line copyright in NEWS
36945         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36946
36947 2010-01-06  Eric Blake  <ebb9@byu.net>
36948
36949         select: add missing dependency
36950         * modules/select-tests (Depends-on): Move sockets dependency...
36951         * modules/select (Depends-on): ...here.
36952         Reported by Ian Beckwith.
36953
36954         doc: regenerate INSTALL
36955         * doc/INSTALL: Reflect recent autoconf update.
36956         * doc/INSTALL.ISO: Likewise.
36957         * doc/INSTALL.UTF-8: Likewise.
36958
36959         pread: fix compilation on glibc
36960         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36961         Reported by Ralf Wildenhues.
36962
36963         dirent: fix test failure
36964         * lib/dirent.in.h (includes): Guarantee ino_t.
36965         Reported by Ralf Wildenhues.
36966
36967 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36968
36969         linkat, renameat: avoid bad free
36970         * lib/at-func2.c (at_func2): Fix typo.
36971         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36972
36973 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36974
36975         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36976         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36977         to avoid failure of symlink test later.
36978
36979 2010-01-06  Eric Blake  <ebb9@byu.net>
36980
36981         stdio, unistd: guarantee ssize_t
36982         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36983         2008 are exposed when needed.
36984         * lib/stdio.in.h (includes): Likewise.
36985         Reported by Ralf Wildenhues.
36986
36987 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36988
36989         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36990         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36991         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36992
36993 2010-01-06  Jim Meyering  <meyering@redhat.com>
36994
36995         readtokens: this module *does* require xalloc.h
36996         It uses only functions that were omitted by the old syntax-check rule.
36997         * lib/readtokens.c: Include "xalloc.h" once again.
36998         * modules/readtokens (Depends-on): Add xalloc.
36999         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37000
37001 2010-01-05  Eric Blake  <ebb9@byu.net>
37002
37003         maint: support 'make announcement' from a VPATH build
37004         * top/maint.mk (announcement): Look for correct NEWS file.
37005
37006 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37007
37008         utimens (fdutimens): ignore a negative FD, per contract
37009         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37010         when we have a valid file descriptor.  Otherwise, using a brand
37011         new glibc (with just-patched futimens that now fails with EBADF)
37012         would cause this function to fail with ENOSYS.
37013         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37014         See also http://bugzilla.redhat.com/552320.
37015
37016 2010-01-05  Eric Blake  <ebb9@byu.net>
37017
37018         strcase: document what it provides
37019         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37020         gnulib module.
37021         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37022         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37023
37024 2010-01-05  Jim Meyering  <meyering@redhat.com>
37025
37026         maint: remove useless inclusions of "xalloc.h"
37027         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37028         * lib/readtokens.c: Likewise.
37029         * lib/same.c: Likewise.
37030         * modules/getloadavg (Depends-on): Remove xalloc.
37031         * modules/readtokens: Likewise.
37032         * modules/same: Likewise.
37033
37034         maint.mk: include 4 more function names in alloca.h-checking regexp
37035         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37036         regexp.  Before, we would give a false-positive (saying alloca.h
37037         is included unnecessarily) when the only uses involved omitted symbols.
37038
37039         xalloc.h: use consistent formatting
37040         * lib/xalloc.h: Move declarations to start in the first column.
37041
37042 2010-01-05  Eric Blake  <ebb9@byu.net>
37043
37044         mkdir: avoid xalloc
37045         * lib/mkdir.c (includes): Drop unused header.
37046         Reported by John W. Eaton.
37047
37048 2010-01-04  Jim Meyering  <meyering@redhat.com>
37049
37050         nl_langinfo: avoid configure-time syntax error
37051         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37052         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37053         the empty string.  Don't let that provoke a shell syntax error.
37054
37055         regcomp, regexec, fnmatch: avoid array bounds read error
37056         * lib/regcomp.c (build_equiv_class): From glibc:
37057         Use only the low 24 bits of a findidx return value as an index
37058         into the weights array.  Patch by Ulrich Drepper:
37059         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37060         * lib/regexec.c (check_node_accept_bytes): Likewise.
37061         * lib/fnmatch_loop.c (FCT): Likewise.
37062
37063         regcomp: skip collseq lookup when there are no rules
37064         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37065         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37066
37067         regcomp: recognize ill-formed { } expressions
37068         * lib/regcomp.c (parse_dup_op): From glibc:
37069         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37070
37071         regcomp: fix typo in comment
37072         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37073         s/satisfy/satisfies/.
37074
37075         regcomp: sync from glibc: remove dead store
37076         * lib/regcomp.c (duplicate_node_closure): Remove useless
37077         search_duplicated_node call and dead store.
37078
37079         regcomp: sync from glibc; always use nl_langinfo
37080         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37081         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37082         * modules/regex (Depends-on): Add nl_langinfo.
37083
37084 2010-01-04  Eric Blake  <ebb9@byu.net>
37085
37086         fdopendir: fix configure test
37087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37088
37089 2010-01-01  Bruno Haible  <bruno@clisp.org>
37090
37091         wchar: Remove unused configure check.
37092         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37093
37094 2010-01-01  Eric Blake  <ebb9@byu.net>
37095
37096         headers: make check of system header explicit
37097         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37098         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37099         ourselves.
37100         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37103         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37104         internals.
37105         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37106         missing.
37107         Suggested by Bruno Haible.
37108
37109 2010-01-01  Jim Meyering  <meyering@redhat.com>
37110
37111         ChangeLog: tweak to eliminate unnecessary copyright line
37112         * ChangeLog: Remove a copyright line that was mistakenly updated
37113         by today's update-copyright run.  Reported by Eric Blake.
37114
37115         test-update-copyright: don't let envvar setting cause test failure
37116         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37117
37118 2010-01-01  Bruno Haible  <bruno@clisp.org>
37119
37120         localename: Avoid gcc warning.
37121         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37122         function if it is not used.
37123
37124 2010-01-01  Jim Meyering  <meyering@redhat.com>
37125
37126         update nearly all FSF copyright year lists to include 2010
37127         Use the same procedure as for 2009, outlined in
37128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37129
37130         version-etc: set COPYRIGHT_YEAR to 2010
37131         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37132
37133 2009-12-31  Eric Blake  <ebb9@byu.net>
37134
37135         doc: correct availability of cygwin 1.5.x getopt
37136         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37137         variables.
37138         * doc/posix-functions/opterr.texi (opterr): Likewise.
37139         * doc/posix-functions/optind.texi (optind): Likewise.
37140         * doc/posix-functions/optopt.texi (optopt): Likewise.
37141         * doc/posix-functions/tzname.texi (tzname): Likewise.
37142
37143         openat: update maintainer
37144         * modules/openat (Maintainer): Add myself.
37145
37146         utimens: avoid shadowing warning
37147         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37148         buffers into one, to avoid shadowing, as well as avoiding a
37149         redundant stat.
37150         Reported by Jim Meyering.
37151
37152         test-dup2: avoid compiler warning
37153         * tests/test-dup2.c (is_inheritable): Only define if used.
37154
37155 2010-01-01  Bruno Haible  <bruno@clisp.org>
37156
37157         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37158         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37159         defined, use wctomb instead of wcrtomb.
37160
37161 2010-01-01  Bruno Haible  <bruno@clisp.org>
37162
37163         iconv: Reject native Solaris iconv.
37164         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37165         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37166
37167 2009-12-31  Bruno Haible  <bruno@clisp.org>
37168
37169         * tests/test-signal.c (main): Remove test of 'SIG'.
37170
37171 2009-12-31  Bruno Haible  <bruno@clisp.org>
37172
37173         spawn: Fix incomplete fix.
37174         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37175         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37176         warnings for GNULIB_POSIXCHECK again.
37177         Reported by Eric Blake.
37178
37179 2009-12-31  Bruno Haible  <bruno@clisp.org>
37180
37181         Avoid namespace pollution on glibc systems.
37182         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37183         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37184         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37185         glibc systems.
37186
37187 2009-12-31  Bruno Haible  <bruno@clisp.org>
37188
37189         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37190         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37191         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37192         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37193         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37194         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37195         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37196
37197 2009-12-31  Bruno Haible  <bruno@clisp.org>
37198
37199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37200         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37201         afterwards.
37202
37203 2009-12-31  Bruno Haible  <bruno@clisp.org>
37204
37205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37206         SYS_UTSNAME_H.
37207
37208 2009-12-31  Bruno Haible  <bruno@clisp.org>
37209
37210         spawn: Fix misapplied patch.
37211         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37212         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37213         warnings for GNULIB_POSIXCHECK.
37214
37215 2009-12-31  Bruno Haible  <bruno@clisp.org>
37216
37217         times: Update after sys_times changed.
37218         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37219         * modules/times (Files): Add it.
37220         (configure.ac): Invoke gl_FUNC_TIMES.
37221
37222 2009-12-31  Bruno Haible  <bruno@clisp.org>
37223
37224         Use AC_C_INLINE where necessary.
37225         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37226         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37228         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37229         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37230         * m4/mbiter.m4 (gl_MBITER): Likewise.
37231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37232         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37233         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37234         * modules/u64 (configure.ac): Likewise.
37235
37236 2009-12-31  Bruno Haible  <bruno@clisp.org>
37237
37238         Use AC_C_INLINE instead of module 'inline' where possible.
37239         * modules/inline (Description): Clarify purpose.
37240         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37241         * modules/count-one-bits (Depends-on): Remove inline.
37242         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37243         * modules/openat (Depends-on): Remove inline.
37244         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37245         instead of depending on module 'inline'.
37246         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37247         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37248         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37249         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37250         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37251         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37252         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37253         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37254         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37255         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37256         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37257         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37258         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37259         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37260         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37261         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37262         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37263         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37264         Likewise.
37265         * modules/unictype/property-ascii-hex-digit (Depends-on,
37266         configure.ac): Likewise.
37267         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37268         configure.ac): Likewise.
37269         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37270         configure.ac): Likewise.
37271         * modules/unictype/property-bidi-block-separator (Depends-on,
37272         configure.ac): Likewise.
37273         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37274         configure.ac): Likewise.
37275         * modules/unictype/property-bidi-common-separator (Depends-on,
37276         configure.ac): Likewise.
37277         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37278         Likewise.
37279         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37280         configure.ac): Likewise.
37281         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37282         configure.ac): Likewise.
37283         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37284         configure.ac): Likewise.
37285         * modules/unictype/property-bidi-european-digit (Depends-on,
37286         configure.ac): Likewise.
37287         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37288         configure.ac): Likewise.
37289         * modules/unictype/property-bidi-left-to-right (Depends-on,
37290         configure.ac): Likewise.
37291         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37292         configure.ac): Likewise.
37293         * modules/unictype/property-bidi-other-neutral (Depends-on,
37294         configure.ac): Likewise.
37295         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37296         Likewise.
37297         * modules/unictype/property-bidi-segment-separator (Depends-on,
37298         configure.ac): Likewise.
37299         * modules/unictype/property-bidi-whitespace (Depends-on,
37300         configure.ac): Likewise.
37301         * modules/unictype/property-combining (Depends-on, configure.ac):
37302         Likewise.
37303         * modules/unictype/property-composite (Depends-on, configure.ac):
37304         Likewise.
37305         * modules/unictype/property-currency-symbol (Depends-on,
37306         configure.ac): Likewise.
37307         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37308         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37309         Likewise.
37310         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37311         configure.ac): Likewise.
37312         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37313         Likewise.
37314         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37315         Likewise.
37316         * modules/unictype/property-extender (Depends-on, configure.ac):
37317         Likewise.
37318         * modules/unictype/property-format-control (Depends-on, configure.ac):
37319         Likewise.
37320         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37321         Likewise.
37322         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37323         Likewise.
37324         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37325         Likewise.
37326         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37327         Likewise.
37328         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37329         Likewise.
37330         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37331         Likewise.
37332         * modules/unictype/property-id-start (Depends-on, configure.ac):
37333         Likewise.
37334         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37335         Likewise.
37336         * modules/unictype/property-ids-binary-operator (Depends-on,
37337         configure.ac): Likewise.
37338         * modules/unictype/property-ids-trinary-operator (Depends-on,
37339         configure.ac): Likewise.
37340         * modules/unictype/property-ignorable-control (Depends-on,
37341         configure.ac): Likewise.
37342         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37343         Likewise.
37344         * modules/unictype/property-join-control (Depends-on, configure.ac):
37345         Likewise.
37346         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37347         Likewise.
37348         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37349         Likewise.
37350         * modules/unictype/property-logical-order-exception (Depends-on,
37351         configure.ac): Likewise.
37352         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37353         Likewise.
37354         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37355         * modules/unictype/property-non-break (Depends-on, configure.ac):
37356         Likewise.
37357         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37358         Likewise.
37359         * modules/unictype/property-numeric (Depends-on, configure.ac):
37360         Likewise.
37361         * modules/unictype/property-other-alphabetic (Depends-on,
37362         configure.ac): Likewise.
37363         * modules/unictype/property-other-default-ignorable-code-point
37364         (Depends-on, configure.ac): Likewise.
37365         * modules/unictype/property-other-grapheme-extend (Depends-on,
37366         configure.ac): Likewise.
37367         * modules/unictype/property-other-id-continue (Depends-on,
37368         configure.ac): Likewise.
37369         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37370         Likewise.
37371         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37372         Likewise.
37373         * modules/unictype/property-other-math (Depends-on, configure.ac):
37374         Likewise.
37375         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37376         Likewise.
37377         * modules/unictype/property-paired-punctuation (Depends-on,
37378         configure.ac): Likewise.
37379         * modules/unictype/property-paragraph-separator (Depends-on,
37380         configure.ac): Likewise.
37381         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37382         Likewise.
37383         * modules/unictype/property-pattern-white-space (Depends-on,
37384         configure.ac): Likewise.
37385         * modules/unictype/property-private-use (Depends-on, configure.ac):
37386         Likewise.
37387         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37388         Likewise.
37389         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37390         Likewise.
37391         * modules/unictype/property-radical (Depends-on, configure.ac):
37392         Likewise.
37393         * modules/unictype/property-sentence-terminal (Depends-on,
37394         configure.ac): Likewise.
37395         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37396         Likewise.
37397         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37398         * modules/unictype/property-terminal-punctuation (Depends-on,
37399         configure.ac): Likewise.
37400         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37401         Likewise.
37402         * modules/unictype/property-unassigned-code-value (Depends-on,
37403         configure.ac): Likewise.
37404         * modules/unictype/property-unified-ideograph (Depends-on,
37405         configure.ac): Likewise.
37406         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37407         Likewise.
37408         * modules/unictype/property-variation-selector (Depends-on,
37409         configure.ac): Likewise.
37410         * modules/unictype/property-white-space (Depends-on, configure.ac):
37411         Likewise.
37412         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37413         Likewise.
37414         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37415         Likewise.
37416         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37417         Likewise.
37418         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37419         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37420         Likewise.
37421
37422 2009-12-31  Bruno Haible  <bruno@clisp.org>
37423
37424         Remove unnecessary AC_C_INLINE invocation.
37425         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37426         since 2009-08-21.
37427
37428 2009-12-31  Jim Meyering  <meyering@redhat.com>
37429
37430         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37431         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37432         With this change, we can all remove the gpg_key_ID = ... definition
37433         from our respective cfg.mk files.
37434
37435         maint.mk: create announcement template in ~/, not in /tmp
37436         * top/maint.mk (emit_upload_commands): Adjust.
37437         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37438         Remove temporary file, .ci-msg.
37439
37440 2009-12-31  Eric Blake  <ebb9@byu.net>
37441
37442         link-warning: always build headers with link warnings
37443         * modules/arpa_inet (Makefile.am): Always build replacement
37444         header.
37445         * modules/ctype (Makefile.am): Likewise.
37446         * modules/dirent (Makefile.am): Likewise.
37447         * modules/inttypes (Makefile.am): Likewise.
37448         * modules/langinfo (Makefile.am): Likewise.
37449         * modules/locale (Makefile.am): Likewise.
37450         * modules/spawn (Makefile.am): Likewise.
37451         * modules/sys_file (Makefile.am): Likewise.
37452         * modules/sys_ioctl (Makefile.am): Likewise.
37453         * modules/sys_select (Makefile.am): Likewise.
37454         * modules/sys_socket (Makefile.am): Likewise.
37455         * modules/sys_times (Makefile.am): Likewise.
37456         * modules/sys_utsname (Makefile.am): Likewise.
37457         * modules/sys_wait (Makefile.am): Likewise.
37458         * modules/wchar (Makefile.am): Likewise.
37459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37460         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37461         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37462         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37463         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37464         Likewise.
37465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37466         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37467         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37468         Likewise.
37469         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37470         Likewise.
37471         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37473         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37475         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37476         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37477         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37478         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37479         (gl_WCHAR_H_DEFAULTS): Likewise.
37480
37481 2009-12-31  Eric Blake  <ebb9@byu.net>
37482
37483         signal, spawn: use link warnings
37484         * lib/signal.in.h (sigset_t): Make unconditional.
37485         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37486         (sigpending, sigprocmask, sigaction): Add link warnings.
37487         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37488         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37489         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37490         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37491         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37492         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37493         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37494         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37495         (posix_spawn_file_actions_destroy)
37496         (posix_spawn_file_actions_addopen)
37497         (posix_spawn_file_actions_addclose)
37498         (posix_spawn_file_actions_adddup2): Likewise.
37499         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37500         * tests/test-signal.c (main): Enhance test.
37501
37502         spawn: improve wrapper support
37503         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37504         (gl_SPAWN_H_DEFAULTS): New defaults.
37505         * modules/spawn (Makefile.am): Substitute them.
37506         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37507         Only declare if missing or broken.
37508
37509         sys_times, sys_utsname: use include_next
37510         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37511         header.
37512         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37513         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37514         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37515         * modules/sys_times (Depends-on): Add include_next.
37516         (Makefile.am): Substitute additional values.
37517         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37518         * lib/sys_times.in.h (includes): Include native header, if
37519         available.
37520         * lib/sys_utsname.in.h (includes): Likewise.
37521         * tests/test-sys_times.c (main): Enhance test.
37522
37523         fdutimensat: revert prior patch
37524         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37525         utimens.h.
37526         Reported by Bruno Haible.
37527
37528 2009-12-30  Eric Blake  <ebb9@byu.net>
37529
37530         sys_wait: drop link-warning dependency
37531         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37532         link-warning efforts.
37533         * lib/sys_wait.in.h: Likewise.
37534
37535         fdutimensat: remove bogus dependency
37536         * modules/fdutimensat (Depends-on): Drop inline.
37537
37538         unistd: fix typo
37539         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37540
37541 2009-12-30  Bruno Haible  <bruno@clisp.org>
37542
37543         Fix compilation error with Solaris cc.
37544         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37545         * lib/unicase/u16-is-invariant.c: Likewise.
37546         * lib/unicase/u32-is-invariant.c: Likewise.
37547         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37548
37549 2009-12-30  Bruno Haible  <bruno@clisp.org>
37550
37551         Fix test crash.
37552         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37553         locales.
37554         Reported by Simon Josefsson <simon@josefsson.org>.
37555
37556 2009-12-30  Bruno Haible  <bruno@clisp.org>
37557
37558         Fix compilation error on most platforms.
37559         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37560         Reported by Simon Josefsson <simon@josefsson.org>
37561         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37562
37563 2009-12-30  Eric Blake  <ebb9@byu.net>
37564
37565         futimens, utimensat: work around ntfs-3g bug
37566         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37567         a ctime bug is present, and expand workaround to cover ntfs-3g.
37568         * lib/utimens.c (fdutimens, lutimens): Likewise.
37569         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37570         (validate_timespec): Adjust return value.
37571         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37572         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37573         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37574
37575 2009-12-29  Eric Blake  <ebb9@byu.net>
37576
37577         link-warning: make usage consistent
37578         * modules/ctype (Depends-on): Add link-warning.
37579         (Makefile.am): Update rules accordingly.
37580         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37581         * modules/locale (Depends-on, Makefile.am): Likewise.
37582         * modules/sys_file (Makefile.am): Likewise.
37583         * modules/getopt-posix (Makefile.am): Delete unused link warning
37584         efforts.
37585         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37586         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37587         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37588         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37589
37590         stdio: remove unused variables
37591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37592         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37593         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37594
37595         tests: test more substitute headers
37596         * modules/ctype-tests: New file.
37597         * modules/dirent-tests: Likewise.
37598         * modules/spawn-tests: Likewise.
37599         * modules/sys_file-tests: Likewise.
37600         * modules/sys_ioctl-tests: Likewise.
37601         * modules/sys_wait-tests: Likewise.
37602         * tests/test-ctype.c: Likewise.
37603         * tests/test-dirent.c: Likewise.
37604         * tests/test-spawn.c: Likewise.
37605         * tests/test-sys_file.c: Likewise.
37606         * tests/test-sys_ioctl.c: Likewise.
37607         * tests/test-sys_wait.c: Likewise.
37608         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37609         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37610         whether or not flock is in use.
37611
37612         tests: remove License section from module
37613         * modules/arpa_inet-tests: Remove unneeded section.
37614         * modules/byteswap-tests: Likewise.
37615         * modules/ceilf-tests: Likewise.
37616         * modules/ceill-tests: Likewise.
37617         * modules/crypto/des-tests: Likewise.
37618         * modules/crypto/gc-arcfour-tests: Likewise.
37619         * modules/crypto/gc-arctwo-tests: Likewise.
37620         * modules/crypto/gc-des-tests: Likewise.
37621         * modules/crypto/gc-hmac-md5-tests: Likewise.
37622         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37623         * modules/crypto/gc-md2-tests: Likewise.
37624         * modules/crypto/gc-md4-tests: Likewise.
37625         * modules/crypto/gc-md5-tests: Likewise.
37626         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37627         * modules/crypto/gc-rijndael-tests: Likewise.
37628         * modules/crypto/gc-sha1-tests: Likewise.
37629         * modules/crypto/gc-tests: Likewise.
37630         * modules/crypto/md2-tests: Likewise.
37631         * modules/crypto/md4-tests: Likewise.
37632         * modules/fcntl-h-tests: Likewise.
37633         * modules/floorf-tests: Likewise.
37634         * modules/floorl-tests: Likewise.
37635         * modules/frexp-nolibm-tests: Likewise.
37636         * modules/frexp-tests: Likewise.
37637         * modules/frexpl-nolibm-tests: Likewise.
37638         * modules/frexpl-tests: Likewise.
37639         * modules/getaddrinfo-tests: Likewise.
37640         * modules/inttypes-tests: Likewise.
37641         * modules/isfinite-tests: Likewise.
37642         * modules/isinf-tests: Likewise.
37643         * modules/ldexpl-tests: Likewise.
37644         * modules/locale-tests: Likewise.
37645         * modules/math-tests: Likewise.
37646         * modules/netdb-tests: Likewise.
37647         * modules/netinet_in-tests: Likewise.
37648         * modules/printf-frexp-tests: Likewise.
37649         * modules/printf-frexpl-tests: Likewise.
37650         * modules/priv-set-tests: Likewise.
37651         * modules/random_r-tests: Likewise.
37652         * modules/round-tests: Likewise.
37653         * modules/roundf-tests: Likewise.
37654         * modules/roundl-tests: Likewise.
37655         * modules/search-tests: Likewise.
37656         * modules/select-tests: Likewise.
37657         * modules/signal-tests: Likewise.
37658         * modules/stdbool-tests: Likewise.
37659         * modules/stddef-tests: Likewise.
37660         * modules/stdint-tests: Likewise.
37661         * modules/stdio-tests: Likewise.
37662         * modules/stdlib-tests: Likewise.
37663         * modules/string-tests: Likewise.
37664         * modules/strings-tests: Likewise.
37665         * modules/sys_select-tests: Likewise.
37666         * modules/sys_socket-tests: Likewise.
37667         * modules/sys_stat-tests: Likewise.
37668         * modules/sys_time-tests: Likewise.
37669         * modules/sys_utsname-tests: Likewise.
37670         * modules/sysexits-tests: Likewise.
37671         * modules/time-tests: Likewise.
37672         * modules/trunc-tests: Likewise.
37673         * modules/truncf-tests: Likewise.
37674         * modules/truncl-tests: Likewise.
37675         * modules/tsearch-tests: Likewise.
37676         * modules/unistd-tests: Likewise.
37677         * modules/wchar-tests: Likewise.
37678         * modules/wctype-tests: Likewise.
37679
37680         tests: fix license on several tests
37681         * tests/test-des.c: Update to GPLv3+.
37682         * tests/test-flock.c: Likewise.
37683         * tests/test-fsync.c: Likewise.
37684         * tests/test-futimens.h: Likewise.
37685         * tests/test-gc-arcfour.c: Likewise.
37686         * tests/test-gc-arctwo.c: Likewise.
37687         * tests/test-gc-des.c: Likewise.
37688         * tests/test-gc-hmac-md5.c: Likewise.
37689         * tests/test-gc-hmac-sha1.c: Likewise.
37690         * tests/test-gc-md2.c: Likewise.
37691         * tests/test-gc-md4.c: Likewise.
37692         * tests/test-gc-md5.c: Likewise.
37693         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37694         * tests/test-gc-rijndael.c: Likewise.
37695         * tests/test-gc-sha1.c: Likewise.
37696         * tests/test-gc.c: Likewise.
37697         * tests/test-getcwd.c: Likewise.
37698         * tests/test-link.c: Likewise.
37699         * tests/test-link.h: Likewise.
37700         * tests/test-lutimens.h: Likewise.
37701         * tests/test-md2.c: Likewise.
37702         * tests/test-md4.c: Likewise.
37703         * tests/test-mkdir.h: Likewise.
37704         * tests/test-rename.c: Likewise.
37705         * tests/test-rename.h: Likewise.
37706         * tests/test-safe-alloc.c: Likewise.
37707         * tests/test-utimens-common.h: Likewise.
37708         * tests/test-utimens.h: Likewise.
37709
37710         maint: sync license texts
37711         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37712         * doc/gpl-3.0.texi: Revert copyright year update.
37713         * doc/lgpl-3.0.texi: Likewise.
37714
37715 2009-12-29  Jim Meyering  <meyering@redhat.com>
37716
37717         update nearly all FSF copyright year lists to include 2009
37718         The files named by the following are exempted:
37719             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37720               test -f "$dst" && { echo "$dst"; continue; }
37721               test -d "$dst" || continue
37722               echo "$dst"/$(basename "$src")
37723             done > exempt
37724             git ls-files tests/unictype >> exempt
37725         In the remaining files, convert to all-interval notation if
37726         - there is already at least one year interval like 2000-2003
37727         - the file is maintained by me
37728         - the file is in lib/uni*/, where that style already prevails
37729         Otherwise, use update-copyright's default.
37730
37731 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37732         and Eric Blake  <ebb9@byu.net>
37733
37734         tests: don't require debug system() to pass
37735         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37736         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37737         * tests/test-unlink.h (test_unlink_func): Likewise.
37738         * tests/test-fstatat.c (main): ...into callers.
37739         * tests/test-lstat.c (main): Likewise.
37740         * tests/test-rmdir.c (main): Likewise.
37741         * tests/test-unlink.c (main): Likewise.
37742         * tests/test-unlinkat.c (main): Likewise.
37743         * tests/test-areadlink-with-size.c (main): Don't require a
37744         debug-only system call to pass, aiding cross-testing to mingw.
37745         * tests/test-areadlink.c (main): Likewise.
37746         * tests/test-areadlinkat-with-size.c (main): Likewise.
37747         * tests/test-areadlinkat.c (main): Likewise.
37748         * tests/test-canonicalize-lgpl.c (main): Likewise.
37749         * tests/test-canonicalize.c (main): Likewise.
37750         * tests/test-chown.c (main): Likewise.
37751         * tests/test-fchownat.c (main): Likewise.
37752         * tests/test-lchown.c (main): Likewise.
37753         * tests/test-fdutimensat.c (main): Likewise.
37754         * tests/test-futimens.c (main): Likewise.
37755         * tests/test-link.c (main): Likewise.
37756         * tests/test-linkat.c (main): Likewise.
37757         * tests/test-mkdir.c (main): Likewise.
37758         * tests/test-mkdirat.c (main): Likewise.
37759         * tests/test-mkfifo.c (main): Likewise.
37760         * tests/test-mkfifoat.c (main): Likewise.
37761         * tests/test-mknod.c (main): Likewise.
37762         * tests/test-readlink.c (main): Likewise.
37763         * tests/test-remove.c (main): Likewise.
37764         * tests/test-rename.c (main): Likewise.
37765         * tests/test-renameat.c (main): Likewise.
37766         * tests/test-symlink.c (main): Likewise.
37767         * tests/test-symlinkat.c (main): Likewise.
37768         * tests/test-utimens.c (main): Likewise.
37769         * tests/test-utimensat.c (main): Likewise.
37770
37771 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37772
37773         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37774         on $(UNUSED_PARAMETER_H) to avoid build failure.
37775
37776 2009-12-28  Jim Meyering  <meyering@redhat.com>
37777
37778         update-copyright: you may specify a max. line length other than 72
37779         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37780
37781         maint: use consistent FSF copyright line syntax
37782         * lib/posixtm.c: Add missing comma in FSF copyright line.
37783         * lib/posixtm.h: Likewise.
37784         * lib/getugroups.c: Add missing ", Inc.".
37785
37786         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37787         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37788         FSF copyright line.  Remove trailing blanks.
37789
37790 2009-12-28  Eric Blake  <ebb9@byu.net>
37791
37792         test-dup2: reduce dependencies
37793         * modules/cloexec (Configure.ac): Set witness.
37794         * modules/dup2-tests (Depends-on): Drop cloexec.
37795         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37796         not present.
37797         Suggested by Bruno Haible.
37798
37799 2009-12-26  Bruno Haible  <bruno@clisp.org>
37800
37801         Remove an unneeded dependency.
37802         * modules/fseterr (Depends-on): Remove dup2.
37803
37804 2009-12-26  Eric Blake  <ebb9@byu.net>
37805
37806         tests: use macros.h in more places
37807         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37808         (ASSERT_STREAM): Provide default of stderr.
37809         * tests/test-dirent-safer.c: Include macros.h, using alternate
37810         stream for assertions.
37811         * tests/test-dup-safer.c: Likewise.
37812         * tests/test-freopen-safer.c: Likewise.
37813         * tests/test-getopt.c: Likewise.
37814         * tests/test-openat-safer.c: Likewise.
37815         * tests/test-pipe.c: Likewise.
37816         * tests/test-popen-safer.c: Likewise.
37817         * modules/dirent-safer-tests (Files): Include macros.h.
37818         * modules/unistd-safer-tests (Files): Likewise.
37819         * modules/freopen-safer-tests (Files): Likewise.
37820         * modules/getopt-posix-tests (Files): Likewise.
37821         * modules/openat-safer-tests (Files): Likewise.
37822         * modules/pipe-tests (Files): Likewise.
37823
37824 2009-12-26  Bruno Haible  <bruno@clisp.org>
37825
37826         javacomp: Portability fix.
37827         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37828         that it also works on Solaris.
37829
37830 2009-12-26  Bruno Haible  <bruno@clisp.org>
37831
37832         localename: Fix storage allocation of gl_locale_name_thread's result.
37833         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37834         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37835         all platforms that have 'uselocale'.
37836         (gl_locale_name_thread_unsafe): New function, extracted from
37837         gl_locale_name_thread.
37838         (gl_locale_name_thread): Call struniq on all platforms that have
37839         'uselocale'.
37840         * tests/test-localename.c (test_locale_name_thread): Check that the
37841         resulting strings are permanently allocated.
37842         * modules/localename-tests (Depends-on): Add strdup.
37843
37844 2009-12-26  Bruno Haible  <bruno@clisp.org>
37845
37846         * tests/test-localename.c (categories): Fill in the strings.
37847
37848 2009-12-26  Jim Meyering  <meyering@redhat.com>
37849
37850         isdir: complete the removal of m4/isdir.m4
37851         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37852
37853         isdir: clean up, since at least grep still uses it
37854         * lib/isdir.c: Include "isdir.h".
37855         (S_ISDIR): Remove now-unneeded definition.
37856         * modules/isdir (Files): Add lib/isdir.h.
37857         * lib/isdir.h: New file, with declaration.
37858         * m4/isdir.m4: Remove file -- unneeded.
37859
37860 2009-12-25  Bruno Haible  <bruno@clisp.org>
37861
37862         selinux-h: Make generated .h files standalone.
37863         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37864         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37865         * lib/se-selinux.in.h: Likewise.
37866         * modules/selinux-h (Depends-on): Add unused-parameter.
37867         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37868         selinux/selinux.h and selinux/context.h.
37869         Suggested by Eric Blake.
37870
37871 2009-12-25  Bruno Haible  <bruno@clisp.org>
37872
37873         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37874         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37875         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37876         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37877         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37878
37879 2009-12-24  Bruno Haible  <bruno@clisp.org>
37880
37881         openat: Fix warning.
37882         * lib/openat-proc.c: Include <unistd.h>.
37883
37884 2009-12-24  Bruno Haible  <bruno@clisp.org>
37885
37886         New module 'unused-parameter'.
37887         * build-aux/unused-parameter.h: New file, extracted from earlier
37888         gnulib-common.m4.
37889         * modules/unused-parameter: New file.
37890         * lib/unistr.h: Include unused-parameter.h.
37891         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37892         _GL_UNUSED.
37893         * modules/unistr/base (Depends-on): Add unused-parameter.
37894
37895 2009-12-24  Bruno Haible  <bruno@clisp.org>
37896
37897         Add missing dependencies to 'extensions' module.
37898         * m4/extensions.m4: Add comment.
37899         * modules/accept4 (Depends-on): Add extensions.
37900         * modules/dup3 (Depends-on): Likewise.
37901         * modules/fcntl (Depends-on): Likewise.
37902         * modules/futimens (Depends-on): Likewise.
37903         * modules/mknod (Depends-on): Likewise.
37904         * modules/pipe2 (Depends-on): Likewise.
37905         * modules/stat-time (Depends-on): Likewise.
37906         * modules/strcasestr-simple (Depends-on): Likewise.
37907         * modules/strsignal (Depends-on): Likewise.
37908         * modules/utimensat (Depends-on): Likewise.
37909         * modules/localcharset (Depends-on): Likewise. Needed because of
37910         gl_FCNTL_O_FLAGS.
37911         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37912         AC_TYPE_MBSTATE_T.
37913         * modules/wcsnrtombs (Depends-on): Likewise.
37914         * modules/wcsrtombs (Depends-on): Likewise.
37915
37916 2009-12-24  Bruno Haible  <bruno@clisp.org>
37917
37918         binary-io: Avoid gcc warning due to SET_BINARY.
37919         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37920         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37921
37922 2009-12-24  Bruno Haible  <bruno@clisp.org>
37923
37924         Avoid future namespace pollution on glibc systems.
37925         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37926         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37927         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37928         glibc systems.
37929
37930 2009-12-24  Bruno Haible  <bruno@clisp.org>
37931
37932         Refactor common macros used in tests.
37933         * tests/macros.h: New file.
37934         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37935         and/or <stdlib.h>, if appropriate.
37936         (ASSERT, SIZEOF): Remove macros.
37937         * tests/test-areadlink-with-size.c: Likewise.
37938         * tests/test-areadlinkat.c: Likewise.
37939         * tests/test-areadlinkat-with-size.c: Likewise.
37940         * tests/test-argmatch.c: Likewise.
37941         * tests/test-argv-iter.c: Likewise.
37942         * tests/test-array-mergesort.c: Likewise.
37943         * tests/test-array_list.c: Likewise.
37944         * tests/test-array_oset.c: Likewise.
37945         * tests/test-avltree_list.c: Likewise.
37946         * tests/test-avltree_oset.c: Likewise.
37947         * tests/test-avltreehash_list.c: Likewise.
37948         * tests/test-base64.c: Likewise.
37949         * tests/test-binary-io.c: Likewise.
37950         * tests/test-bitrotate.c: Likewise.
37951         * tests/test-btowc.c: Likewise.
37952         * tests/test-byteswap.c: Likewise.
37953         * tests/test-c-ctype.c: Likewise.
37954         * tests/test-c-stack.c: Likewise.
37955         * tests/test-c-strcasecmp.c: Likewise.
37956         * tests/test-c-strcasestr.c: Likewise.
37957         * tests/test-c-strncasecmp.c: Likewise.
37958         * tests/test-c-strstr.c: Likewise.
37959         * tests/test-canonicalize-lgpl.c: Likewise.
37960         * tests/test-canonicalize.c: Likewise.
37961         * tests/test-carray_list.c: Likewise.
37962         * tests/test-ceilf1.c: Likewise.
37963         * tests/test-ceilf2.c: Likewise.
37964         * tests/test-ceill.c: Likewise.
37965         * tests/test-chown.c: Likewise.
37966         * tests/test-cloexec.c: Likewise.
37967         * tests/test-copy-acl.c: Likewise.
37968         * tests/test-copy-file.c: Likewise.
37969         * tests/test-count-one-bits.c: Likewise.
37970         * tests/test-dprintf-posix.c: Likewise.
37971         * tests/test-dup2.c: Likewise.
37972         * tests/test-dup3.c: Likewise.
37973         * tests/test-duplocale.c: Likewise.
37974         * tests/test-fbufmode.c: Likewise.
37975         * tests/test-fchdir.c: Likewise.
37976         * tests/test-fchownat.c: Likewise.
37977         * tests/test-fcntl-safer.c: Likewise.
37978         * tests/test-fcntl.c: Likewise.
37979         * tests/test-fdopendir.c: Likewise.
37980         * tests/test-fdutimensat.c: Likewise.
37981         * tests/test-fflush2.c: Likewise.
37982         * tests/test-file-has-acl.c: Likewise.
37983         * tests/test-filevercmp.c: Likewise.
37984         * tests/test-flock.c: Likewise.
37985         * tests/test-floorf1.c: Likewise.
37986         * tests/test-floorf2.c: Likewise.
37987         * tests/test-floorl.c: Likewise.
37988         * tests/test-fnmatch.c: Likewise.
37989         * tests/test-fopen.h: Likewise.
37990         * tests/test-fpending.c: Likewise.
37991         * tests/test-fprintf-posix.c: Likewise.
37992         * tests/test-fpurge.c: Likewise.
37993         * tests/test-freadable.c: Likewise.
37994         * tests/test-freadahead.c: Likewise.
37995         * tests/test-freading.c: Likewise.
37996         * tests/test-freadptr.c: Likewise.
37997         * tests/test-freadptr2.c: Likewise.
37998         * tests/test-freadseek.c: Likewise.
37999         * tests/test-freopen.c: Likewise.
38000         * tests/test-frexp.c: Likewise.
38001         * tests/test-frexpl.c: Likewise.
38002         * tests/test-fseek.c: Likewise.
38003         * tests/test-fseeko.c: Likewise.
38004         * tests/test-fstatat.c: Likewise.
38005         * tests/test-fstrcmp.c: Likewise.
38006         * tests/test-fsync.c: Likewise.
38007         * tests/test-ftell.c: Likewise.
38008         * tests/test-ftello.c: Likewise.
38009         * tests/test-func.c: Likewise.
38010         * tests/test-futimens.c: Likewise.
38011         * tests/test-fwritable.c: Likewise.
38012         * tests/test-fwriting.c: Likewise.
38013         * tests/test-getcwd.c: Likewise.
38014         * tests/test-getdate.c: Likewise.
38015         * tests/test-getdelim.c: Likewise.
38016         * tests/test-getdtablesize.c: Likewise.
38017         * tests/test-getgroups.c: Likewise.
38018         * tests/test-getline.c: Likewise.
38019         * tests/test-getndelim2.c: Likewise.
38020         * tests/test-glob.c: Likewise.
38021         * tests/test-hash.c: Likewise.
38022         * tests/test-i-ring.c: Likewise.
38023         * tests/test-iconv-utf.c: Likewise.
38024         * tests/test-iconv.c: Likewise.
38025         * tests/test-idpriv-drop.c: Likewise.
38026         * tests/test-idpriv-droptemp.c: Likewise.
38027         * tests/test-inet_ntop.c: Likewise.
38028         * tests/test-inet_pton.c: Likewise.
38029         * tests/test-isblank.c: Likewise.
38030         * tests/test-isfinite.c: Likewise.
38031         * tests/test-isinf.c: Likewise.
38032         * tests/test-isnan.c: Likewise.
38033         * tests/test-isnand.h: Likewise.
38034         * tests/test-isnanf.h: Likewise.
38035         * tests/test-isnanl.h: Likewise.
38036         * tests/test-lchown.c: Likewise.
38037         * tests/test-ldexpl.c: Likewise.
38038         * tests/test-link.c: Likewise.
38039         * tests/test-linkat.c: Likewise.
38040         * tests/test-linked_list.c: Likewise.
38041         * tests/test-linkedhash_list.c: Likewise.
38042         * tests/test-localename.c: Likewise.
38043         * tests/test-lseek.c: Likewise.
38044         * tests/test-lstat.c: Likewise.
38045         * tests/test-mbmemcasecmp.c: Likewise.
38046         * tests/test-mbmemcasecoll.c: Likewise.
38047         * tests/test-mbrtowc.c: Likewise.
38048         * tests/test-mbscasecmp.c: Likewise.
38049         * tests/test-mbscasestr1.c: Likewise.
38050         * tests/test-mbscasestr2.c: Likewise.
38051         * tests/test-mbscasestr3.c: Likewise.
38052         * tests/test-mbscasestr4.c: Likewise.
38053         * tests/test-mbschr.c: Likewise.
38054         * tests/test-mbscspn.c: Likewise.
38055         * tests/test-mbsinit.c: Likewise.
38056         * tests/test-mbsncasecmp.c: Likewise.
38057         * tests/test-mbsnrtowcs.c: Likewise.
38058         * tests/test-mbspbrk.c: Likewise.
38059         * tests/test-mbspcasecmp.c: Likewise.
38060         * tests/test-mbsrchr.c: Likewise.
38061         * tests/test-mbsrtowcs.c: Likewise.
38062         * tests/test-mbsspn.c: Likewise.
38063         * tests/test-mbsstr1.c: Likewise.
38064         * tests/test-mbsstr2.c: Likewise.
38065         * tests/test-mbsstr3.c: Likewise.
38066         * tests/test-memchr.c: Likewise.
38067         * tests/test-memchr2.c: Likewise.
38068         * tests/test-memcmp.c: Likewise.
38069         * tests/test-memmem.c: Likewise.
38070         * tests/test-memrchr.c: Likewise.
38071         * tests/test-mkdir.c: Likewise.
38072         * tests/test-mkdirat.c: Likewise.
38073         * tests/test-mkfifo.c: Likewise.
38074         * tests/test-mkfifoat.c: Likewise.
38075         * tests/test-mknod.c: Likewise.
38076         * tests/test-nanosleep.c: Likewise.
38077         * tests/test-nl_langinfo.c: Likewise.
38078         * tests/test-obstack-printf.c: Likewise.
38079         * tests/test-open.c: Likewise.
38080         * tests/test-openat.c: Likewise.
38081         * tests/test-pipe-filter-gi1.c: Likewise.
38082         * tests/test-pipe-filter-gi2-main.c: Likewise.
38083         * tests/test-pipe-filter-ii1.c: Likewise.
38084         * tests/test-pipe-filter-ii2-main.c: Likewise.
38085         * tests/test-pipe2.c: Likewise.
38086         * tests/test-popen.h: Likewise.
38087         * tests/test-posixtm.c: Likewise.
38088         * tests/test-pread.c: Likewise.
38089         * tests/test-printf-frexp.c: Likewise.
38090         * tests/test-printf-frexpl.c: Likewise.
38091         * tests/test-printf-posix.c: Likewise.
38092         * tests/test-priv-set.c: Likewise.
38093         * tests/test-quotearg.c: Likewise.
38094         * tests/test-random_r.c: Likewise.
38095         * tests/test-rawmemchr.c: Likewise.
38096         * tests/test-rbtree_list.c: Likewise.
38097         * tests/test-rbtree_oset.c: Likewise.
38098         * tests/test-rbtreehash_list.c: Likewise.
38099         * tests/test-readlink.c: Likewise.
38100         * tests/test-remove.c: Likewise.
38101         * tests/test-rename.c: Likewise.
38102         * tests/test-renameat.c: Likewise.
38103         * tests/test-rmdir.c: Likewise.
38104         * tests/test-round1.c: Likewise.
38105         * tests/test-roundf1.c: Likewise.
38106         * tests/test-roundl.c: Likewise.
38107         * tests/test-safe-alloc.c: Likewise.
38108         * tests/test-sameacls.c: Likewise.
38109         * tests/test-set-mode-acl.c: Likewise.
38110         * tests/test-setenv.c: Likewise.
38111         * tests/test-sigaction.c: Likewise.
38112         * tests/test-signbit.c: Likewise.
38113         * tests/test-sleep.c: Likewise.
38114         * tests/test-snprintf-posix.c: Likewise.
38115         * tests/test-snprintf.c: Likewise.
38116         * tests/test-sprintf-posix.c: Likewise.
38117         * tests/test-stat-time.c: Likewise.
38118         * tests/test-stat.c: Likewise.
38119         * tests/test-strcasestr.c: Likewise.
38120         * tests/test-strchrnul.c: Likewise.
38121         * tests/test-strerror.c: Likewise.
38122         * tests/test-striconv.c: Likewise.
38123         * tests/test-striconveh.c: Likewise.
38124         * tests/test-striconveha.c: Likewise.
38125         * tests/test-strsignal.c: Likewise.
38126         * tests/test-strstr.c: Likewise.
38127         * tests/test-strtod.c: Likewise.
38128         * tests/test-strverscmp.c: Likewise.
38129         * tests/test-symlink.c: Likewise.
38130         * tests/test-symlinkat.c: Likewise.
38131         * tests/test-trunc1.c: Likewise.
38132         * tests/test-trunc2.c: Likewise.
38133         * tests/test-truncf1.c: Likewise.
38134         * tests/test-truncf2.c: Likewise.
38135         * tests/test-truncl.c: Likewise.
38136         * tests/test-uname.c: Likewise.
38137         * tests/test-unlink.c: Likewise.
38138         * tests/test-unlinkat.c: Likewise.
38139         * tests/test-unsetenv.c: Likewise.
38140         * tests/test-usleep.c: Likewise.
38141         * tests/test-utimens.c: Likewise.
38142         * tests/test-utimensat.c: Likewise.
38143         * tests/test-vasnprintf-posix.c: Likewise.
38144         * tests/test-vasnprintf-posix2.c: Likewise.
38145         * tests/test-vasnprintf.c: Likewise.
38146         * tests/test-vasprintf-posix.c: Likewise.
38147         * tests/test-vasprintf.c: Likewise.
38148         * tests/test-vdprintf-posix.c: Likewise.
38149         * tests/test-vfprintf-posix.c: Likewise.
38150         * tests/test-vprintf-posix.c: Likewise.
38151         * tests/test-vsnprintf-posix.c: Likewise.
38152         * tests/test-vsnprintf.c: Likewise.
38153         * tests/test-vsprintf-posix.c: Likewise.
38154         * tests/test-wcrtomb.c: Likewise.
38155         * tests/test-wcsnrtombs.c: Likewise.
38156         * tests/test-wcsrtombs.c: Likewise.
38157         * tests/test-wctype.c: Likewise.
38158         * tests/test-wcwidth.c: Likewise.
38159         * tests/test-xfprintf-posix.c: Likewise.
38160         * tests/test-xmemdup0.c: Likewise.
38161         * tests/test-xprintf-posix.c: Likewise.
38162         * tests/test-xvasprintf.c: Likewise.
38163         * tests/unicase/test-locale-language.c: Likewise.
38164         * tests/unicase/test-mapping-part1.h: Likewise.
38165         * tests/unicase/test-predicate-part1.h: Likewise.
38166         * tests/unicase/test-u8-casecmp.c: Likewise.
38167         * tests/unicase/test-u8-casecoll.c: Likewise.
38168         * tests/unicase/test-u8-casefold.c: Likewise.
38169         * tests/unicase/test-u8-is-cased.c: Likewise.
38170         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38171         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38172         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38173         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38174         * tests/unicase/test-u8-tolower.c: Likewise.
38175         * tests/unicase/test-u8-totitle.c: Likewise.
38176         * tests/unicase/test-u8-toupper.c: Likewise.
38177         * tests/unicase/test-u16-casecmp.c: Likewise.
38178         * tests/unicase/test-u16-casecoll.c: Likewise.
38179         * tests/unicase/test-u16-casefold.c: Likewise.
38180         * tests/unicase/test-u16-is-cased.c: Likewise.
38181         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38182         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38183         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38184         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38185         * tests/unicase/test-u16-tolower.c: Likewise.
38186         * tests/unicase/test-u16-totitle.c: Likewise.
38187         * tests/unicase/test-u16-toupper.c: Likewise.
38188         * tests/unicase/test-u32-casecmp.c: Likewise.
38189         * tests/unicase/test-u32-casecoll.c: Likewise.
38190         * tests/unicase/test-u32-casefold.c: Likewise.
38191         * tests/unicase/test-u32-is-cased.c: Likewise.
38192         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38193         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38194         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38195         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38196         * tests/unicase/test-u32-tolower.c: Likewise.
38197         * tests/unicase/test-u32-totitle.c: Likewise.
38198         * tests/unicase/test-u32-toupper.c: Likewise.
38199         * tests/unicase/test-ulc-casecmp.c: Likewise.
38200         * tests/unicase/test-ulc-casecoll.c: Likewise.
38201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38202         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38203         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38204         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38205         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38206         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38207         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38208         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38209         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38210         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38211         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38212         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38213         * tests/unictype/test-bidi_byname.c: Likewise.
38214         * tests/unictype/test-bidi_name.c: Likewise.
38215         * tests/unictype/test-bidi_of.c: Likewise.
38216         * tests/unictype/test-bidi_test.c: Likewise.
38217         * tests/unictype/test-block_list.c: Likewise.
38218         * tests/unictype/test-block_of.c: Likewise.
38219         * tests/unictype/test-block_test.c: Likewise.
38220         * tests/unictype/test-categ_and.c: Likewise.
38221         * tests/unictype/test-categ_and_not.c: Likewise.
38222         * tests/unictype/test-categ_byname.c: Likewise.
38223         * tests/unictype/test-categ_name.c: Likewise.
38224         * tests/unictype/test-categ_none.c: Likewise.
38225         * tests/unictype/test-categ_of.c: Likewise.
38226         * tests/unictype/test-categ_or.c: Likewise.
38227         * tests/unictype/test-categ_test_withtable.c: Likewise.
38228         * tests/unictype/test-combining.c: Likewise.
38229         * tests/unictype/test-decdigit.c: Likewise.
38230         * tests/unictype/test-digit.c: Likewise.
38231         * tests/unictype/test-mirror.c: Likewise.
38232         * tests/unictype/test-numeric.c: Likewise.
38233         * tests/unictype/test-pr_byname.c: Likewise.
38234         * tests/unictype/test-pr_test.c: Likewise.
38235         * tests/unictype/test-predicate-part1.h: Likewise.
38236         * tests/unictype/test-scripts.c: Likewise.
38237         * tests/unictype/test-sy_c_ident.c: Likewise.
38238         * tests/unictype/test-sy_java_ident.c: Likewise.
38239         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38240         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38241         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38242         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38243         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38244         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38245         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38246         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38247         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38248         * tests/uninorm/test-compat-decomposition.c: Likewise.
38249         * tests/uninorm/test-composition.c: Likewise.
38250         * tests/uninorm/test-decomposing-form.c: Likewise.
38251         * tests/uninorm/test-decomposition.c: Likewise.
38252         * tests/uninorm/test-u8-nfc.c: Likewise.
38253         * tests/uninorm/test-u8-nfd.c: Likewise.
38254         * tests/uninorm/test-u8-nfkc.c: Likewise.
38255         * tests/uninorm/test-u8-nfkd.c: Likewise.
38256         * tests/uninorm/test-u8-normcmp.c: Likewise.
38257         * tests/uninorm/test-u8-normcoll.c: Likewise.
38258         * tests/uninorm/test-u16-nfc.c: Likewise.
38259         * tests/uninorm/test-u16-nfd.c: Likewise.
38260         * tests/uninorm/test-u16-nfkc.c: Likewise.
38261         * tests/uninorm/test-u16-nfkd.c: Likewise.
38262         * tests/uninorm/test-u16-normcmp.c: Likewise.
38263         * tests/uninorm/test-u16-normcoll.c: Likewise.
38264         * tests/uninorm/test-u32-nfc.c: Likewise.
38265         * tests/uninorm/test-u32-nfd.c: Likewise.
38266         * tests/uninorm/test-u32-nfkc.c: Likewise.
38267         * tests/uninorm/test-u32-nfkd.c: Likewise.
38268         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38269         * tests/uninorm/test-u32-normcmp.c: Likewise.
38270         * tests/uninorm/test-u32-normcoll.c: Likewise.
38271         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38272         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38273         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38274         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38275         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38276         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38277         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38278         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38279         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38280         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38281         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38282         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38283         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38284         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38285         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38286         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38287         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38288         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38289         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38290         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38291         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38292         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38293         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38294         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38295         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38296         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38297         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38298         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38299         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38300         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38301         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38302         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38303         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38304         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38305         * tests/uniwidth/test-u8-width.c: Likewise.
38306         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38307         * tests/uniwidth/test-u16-width.c: Likewise.
38308         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38309         * tests/uniwidth/test-u32-width.c: Likewise.
38310         * tests/uniwidth/test-uc_width.c: Likewise.
38311         * tests/uniwidth/test-uc_width2.c: Likewise.
38312         * modules/acl-tests (Files): Add tests/macros.h.
38313         * modules/areadlink-tests (Files): Likewise.
38314         * modules/areadlink-with-size-tests (Files): Likewise.
38315         * modules/areadlinkat-tests (Files): Likewise.
38316         * modules/areadlinkat-with-size-tests (Files): Likewise.
38317         * modules/argmatch-tests (Files): Likewise.
38318         * modules/argv-iter-tests (Files): Likewise.
38319         * modules/array-list-tests (Files): Likewise.
38320         * modules/array-mergesort-tests (Files): Likewise.
38321         * modules/array-oset-tests (Files): Likewise.
38322         * modules/avltree-list-tests (Files): Likewise.
38323         * modules/avltree-oset-tests (Files): Likewise.
38324         * modules/avltreehash-list-tests (Files): Likewise.
38325         * modules/base64-tests (Files): Likewise.
38326         * modules/binary-io-tests (Files): Likewise.
38327         * modules/bitrotate-tests (Files): Likewise.
38328         * modules/btowc-tests (Files): Likewise.
38329         * modules/byteswap-tests (Files): Likewise.
38330         * modules/c-ctype-tests (Files): Likewise.
38331         * modules/c-stack-tests (Files): Likewise.
38332         * modules/c-strcase-tests (Files): Likewise.
38333         * modules/c-strcasestr-tests (Files): Likewise.
38334         * modules/c-strstr-tests (Files): Likewise.
38335         * modules/canonicalize-lgpl-tests (Files): Likewise.
38336         * modules/canonicalize-tests (Files): Likewise.
38337         * modules/carray-list-tests (Files): Likewise.
38338         * modules/ceilf-tests (Files): Likewise.
38339         * modules/ceill-tests (Files): Likewise.
38340         * modules/chown-tests (Files): Likewise.
38341         * modules/cloexec-tests (Files): Likewise.
38342         * modules/copy-file-tests (Files): Likewise.
38343         * modules/count-one-bits-tests (Files): Likewise.
38344         * modules/dprintf-posix-tests (Files): Likewise.
38345         * modules/dup2-tests (Files): Likewise.
38346         * modules/dup3-tests (Files): Likewise.
38347         * modules/duplocale-tests (Files): Likewise.
38348         * modules/fbufmode-tests (Files): Likewise.
38349         * modules/fchdir-tests (Files): Likewise.
38350         * modules/fcntl-safer-tests (Files): Likewise.
38351         * modules/fcntl-tests (Files): Likewise.
38352         * modules/fdopendir-tests (Files): Likewise.
38353         * modules/fdutimensat-tests (Files): Likewise.
38354         * modules/fflush-tests (Files): Likewise.
38355         * modules/filevercmp-tests (Files): Likewise.
38356         * modules/flock-tests (Files): Likewise.
38357         * modules/floorf-tests (Files): Likewise.
38358         * modules/floorl-tests (Files): Likewise.
38359         * modules/fnmatch-tests (Files): Likewise.
38360         * modules/fopen-safer-tests (Files): Likewise.
38361         * modules/fopen-tests (Files): Likewise.
38362         * modules/fpending-tests (Files): Likewise.
38363         * modules/fprintf-posix-tests (Files): Likewise.
38364         * modules/fpurge-tests (Files): Likewise.
38365         * modules/freadable-tests (Files): Likewise.
38366         * modules/freadahead-tests (Files): Likewise.
38367         * modules/freading-tests (Files): Likewise.
38368         * modules/freadptr-tests (Files): Likewise.
38369         * modules/freadseek-tests (Files): Likewise.
38370         * modules/freopen-tests (Files): Likewise.
38371         * modules/frexp-nolibm-tests (Files): Likewise.
38372         * modules/frexp-tests (Files): Likewise.
38373         * modules/frexpl-nolibm-tests (Files): Likewise.
38374         * modules/frexpl-tests (Files): Likewise.
38375         * modules/fseek-tests (Files): Likewise.
38376         * modules/fseeko-tests (Files): Likewise.
38377         * modules/fstrcmp-tests (Files): Likewise.
38378         * modules/fsync-tests (Files): Likewise.
38379         * modules/ftell-tests (Files): Likewise.
38380         * modules/ftello-tests (Files): Likewise.
38381         * modules/func-tests (Files): Likewise.
38382         * modules/futimens-tests (Files): Likewise.
38383         * modules/fwritable-tests (Files): Likewise.
38384         * modules/fwriting-tests (Files): Likewise.
38385         * modules/getcwd-tests (Files): Likewise.
38386         * modules/getdate-tests (Files): Likewise.
38387         * modules/getdelim-tests (Files): Likewise.
38388         * modules/getdtablesize-tests (Files): Likewise.
38389         * modules/getgroups-tests (Files): Likewise.
38390         * modules/getline-tests (Files): Likewise.
38391         * modules/getndelim2-tests (Files): Likewise.
38392         * modules/glob-tests (Files): Likewise.
38393         * modules/hash-tests (Files): Likewise.
38394         * modules/i-ring-tests (Files): Likewise.
38395         * modules/iconv-tests (Files): Likewise.
38396         * modules/iconv_open-utf-tests (Files): Likewise.
38397         * modules/idpriv-drop-tests (Files): Likewise.
38398         * modules/idpriv-droptemp-tests (Files): Likewise.
38399         * modules/inet_ntop-tests (Files): Likewise.
38400         * modules/inet_pton-tests (Files): Likewise.
38401         * modules/isblank-tests (Files): Likewise.
38402         * modules/isfinite-tests (Files): Likewise.
38403         * modules/isinf-tests (Files): Likewise.
38404         * modules/isnan-tests (Files): Likewise.
38405         * modules/isnand-nolibm-tests (Files): Likewise.
38406         * modules/isnand-tests (Files): Likewise.
38407         * modules/isnanf-nolibm-tests (Files): Likewise.
38408         * modules/isnanf-tests (Files): Likewise.
38409         * modules/isnanl-nolibm-tests (Files): Likewise.
38410         * modules/isnanl-tests (Files): Likewise.
38411         * modules/lchown-tests (Files): Likewise.
38412         * modules/ldexpl-tests (Files): Likewise.
38413         * modules/link-tests (Files): Likewise.
38414         * modules/linkat-tests (Files): Likewise.
38415         * modules/linked-list-tests (Files): Likewise.
38416         * modules/linkedhash-list-tests (Files): Likewise.
38417         * modules/localename-tests (Files): Likewise.
38418         * modules/lseek-tests (Files): Likewise.
38419         * modules/lstat-tests (Files): Likewise.
38420         * modules/mbmemcasecmp-tests (Files): Likewise.
38421         * modules/mbmemcasecoll-tests (Files): Likewise.
38422         * modules/mbrtowc-tests (Files): Likewise.
38423         * modules/mbscasecmp-tests (Files): Likewise.
38424         * modules/mbscasestr-tests (Files): Likewise.
38425         * modules/mbschr-tests (Files): Likewise.
38426         * modules/mbscspn-tests (Files): Likewise.
38427         * modules/mbsinit-tests (Files): Likewise.
38428         * modules/mbsncasecmp-tests (Files): Likewise.
38429         * modules/mbsnrtowcs-tests (Files): Likewise.
38430         * modules/mbspbrk-tests (Files): Likewise.
38431         * modules/mbspcasecmp-tests (Files): Likewise.
38432         * modules/mbsrchr-tests (Files): Likewise.
38433         * modules/mbsrtowcs-tests (Files): Likewise.
38434         * modules/mbsspn-tests (Files): Likewise.
38435         * modules/mbsstr-tests (Files): Likewise.
38436         * modules/memchr-tests (Files): Likewise.
38437         * modules/memchr2-tests (Files): Likewise.
38438         * modules/memcmp-tests (Files): Likewise.
38439         * modules/memmem-tests (Files): Likewise.
38440         * modules/memrchr-tests (Files): Likewise.
38441         * modules/mkdir-tests (Files): Likewise.
38442         * modules/mkfifo-tests (Files): Likewise.
38443         * modules/mkfifoat-tests (Files): Likewise.
38444         * modules/mknod-tests (Files): Likewise.
38445         * modules/nanosleep-tests (Files): Likewise.
38446         * modules/nl_langinfo-tests (Files): Likewise.
38447         * modules/obstack-printf-tests (Files): Likewise.
38448         * modules/open-tests (Files): Likewise.
38449         * modules/openat-tests (Files): Likewise.
38450         * modules/pipe-filter-gi-tests (Files): Likewise.
38451         * modules/pipe-filter-ii-tests (Files): Likewise.
38452         * modules/pipe2-tests (Files): Likewise.
38453         * modules/popen-safer-tests (Files): Likewise.
38454         * modules/popen-tests (Files): Likewise.
38455         * modules/posixtm-tests (Files): Likewise.
38456         * modules/pread-tests (Files): Likewise.
38457         * modules/printf-frexp-tests (Files): Likewise.
38458         * modules/printf-frexpl-tests (Files): Likewise.
38459         * modules/printf-posix-tests (Files): Likewise.
38460         * modules/priv-set-tests (Files): Likewise.
38461         * modules/quotearg-tests (Files): Likewise.
38462         * modules/random_r-tests (Files): Likewise.
38463         * modules/rawmemchr-tests (Files): Likewise.
38464         * modules/rbtree-list-tests (Files): Likewise.
38465         * modules/rbtree-oset-tests (Files): Likewise.
38466         * modules/rbtreehash-list-tests (Files): Likewise.
38467         * modules/readlink-tests (Files): Likewise.
38468         * modules/remove-tests (Files): Likewise.
38469         * modules/rename-tests (Files): Likewise.
38470         * modules/renameat-tests (Files): Likewise.
38471         * modules/rmdir-tests (Files): Likewise.
38472         * modules/round-tests (Files): Likewise.
38473         * modules/roundf-tests (Files): Likewise.
38474         * modules/roundl-tests (Files): Likewise.
38475         * modules/safe-alloc-tests (Files): Likewise.
38476         * modules/setenv-tests (Files): Likewise.
38477         * modules/sigaction-tests (Files): Likewise.
38478         * modules/signbit-tests (Files): Likewise.
38479         * modules/sleep-tests (Files): Likewise.
38480         * modules/snprintf-posix-tests (Files): Likewise.
38481         * modules/snprintf-tests (Files): Likewise.
38482         * modules/sprintf-posix-tests (Files): Likewise.
38483         * modules/stat-tests (Files): Likewise.
38484         * modules/stat-time-tests (Files): Likewise.
38485         * modules/strcasestr-tests (Files): Likewise.
38486         * modules/strchrnul-tests (Files): Likewise.
38487         * modules/strerror-tests (Files): Likewise.
38488         * modules/striconv-tests (Files): Likewise.
38489         * modules/striconveh-tests (Files): Likewise.
38490         * modules/striconveha-tests (Files): Likewise.
38491         * modules/strsignal-tests (Files): Likewise.
38492         * modules/strstr-tests (Files): Likewise.
38493         * modules/strtod-tests (Files): Likewise.
38494         * modules/strverscmp-tests (Files): Likewise.
38495         * modules/symlink-tests (Files): Likewise.
38496         * modules/symlinkat-tests (Files): Likewise.
38497         * modules/trunc-tests (Files): Likewise.
38498         * modules/truncf-tests (Files): Likewise.
38499         * modules/truncl-tests (Files): Likewise.
38500         * modules/uname-tests (Files): Likewise.
38501         * modules/unicase/cased-tests (Files): Likewise.
38502         * modules/unicase/ignorable-tests (Files): Likewise.
38503         * modules/unicase/locale-language-tests (Files): Likewise.
38504         * modules/unicase/tolower-tests (Files): Likewise.
38505         * modules/unicase/totitle-tests (Files): Likewise.
38506         * modules/unicase/toupper-tests (Files): Likewise.
38507         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38508         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38509         * modules/unicase/u8-casefold-tests (Files): Likewise.
38510         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38511         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38512         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38513         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38514         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38515         * modules/unicase/u8-tolower-tests (Files): Likewise.
38516         * modules/unicase/u8-totitle-tests (Files): Likewise.
38517         * modules/unicase/u8-toupper-tests (Files): Likewise.
38518         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38519         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38520         * modules/unicase/u16-casefold-tests (Files): Likewise.
38521         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38522         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38523         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38524         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38525         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38526         * modules/unicase/u16-tolower-tests (Files): Likewise.
38527         * modules/unicase/u16-totitle-tests (Files): Likewise.
38528         * modules/unicase/u16-toupper-tests (Files): Likewise.
38529         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38530         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38531         * modules/unicase/u32-casefold-tests (Files): Likewise.
38532         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38533         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38534         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38535         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38536         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38537         * modules/unicase/u32-tolower-tests (Files): Likewise.
38538         * modules/unicase/u32-totitle-tests (Files): Likewise.
38539         * modules/unicase/u32-toupper-tests (Files): Likewise.
38540         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38541         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38542         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38543         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38544         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38545         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38546         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38547         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38548         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38549         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38550         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38551         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38552         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38553         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38554         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38555         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38556         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38557         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38558         * modules/unictype/block-list-tests (Files): Likewise.
38559         * modules/unictype/block-of-tests (Files): Likewise.
38560         * modules/unictype/block-test-tests (Files): Likewise.
38561         * modules/unictype/category-C-tests (Files): Likewise.
38562         * modules/unictype/category-Cc-tests (Files): Likewise.
38563         * modules/unictype/category-Cf-tests (Files): Likewise.
38564         * modules/unictype/category-Cn-tests (Files): Likewise.
38565         * modules/unictype/category-Co-tests (Files): Likewise.
38566         * modules/unictype/category-Cs-tests (Files): Likewise.
38567         * modules/unictype/category-L-tests (Files): Likewise.
38568         * modules/unictype/category-Ll-tests (Files): Likewise.
38569         * modules/unictype/category-Lm-tests (Files): Likewise.
38570         * modules/unictype/category-Lo-tests (Files): Likewise.
38571         * modules/unictype/category-Lt-tests (Files): Likewise.
38572         * modules/unictype/category-Lu-tests (Files): Likewise.
38573         * modules/unictype/category-M-tests (Files): Likewise.
38574         * modules/unictype/category-Mc-tests (Files): Likewise.
38575         * modules/unictype/category-Me-tests (Files): Likewise.
38576         * modules/unictype/category-Mn-tests (Files): Likewise.
38577         * modules/unictype/category-N-tests (Files): Likewise.
38578         * modules/unictype/category-Nd-tests (Files): Likewise.
38579         * modules/unictype/category-Nl-tests (Files): Likewise.
38580         * modules/unictype/category-No-tests (Files): Likewise.
38581         * modules/unictype/category-P-tests (Files): Likewise.
38582         * modules/unictype/category-Pc-tests (Files): Likewise.
38583         * modules/unictype/category-Pd-tests (Files): Likewise.
38584         * modules/unictype/category-Pe-tests (Files): Likewise.
38585         * modules/unictype/category-Pf-tests (Files): Likewise.
38586         * modules/unictype/category-Pi-tests (Files): Likewise.
38587         * modules/unictype/category-Po-tests (Files): Likewise.
38588         * modules/unictype/category-Ps-tests (Files): Likewise.
38589         * modules/unictype/category-S-tests (Files): Likewise.
38590         * modules/unictype/category-Sc-tests (Files): Likewise.
38591         * modules/unictype/category-Sk-tests (Files): Likewise.
38592         * modules/unictype/category-Sm-tests (Files): Likewise.
38593         * modules/unictype/category-So-tests (Files): Likewise.
38594         * modules/unictype/category-Z-tests (Files): Likewise.
38595         * modules/unictype/category-Zl-tests (Files): Likewise.
38596         * modules/unictype/category-Zp-tests (Files): Likewise.
38597         * modules/unictype/category-Zs-tests (Files): Likewise.
38598         * modules/unictype/category-and-not-tests (Files): Likewise.
38599         * modules/unictype/category-and-tests (Files): Likewise.
38600         * modules/unictype/category-byname-tests (Files): Likewise.
38601         * modules/unictype/category-name-tests (Files): Likewise.
38602         * modules/unictype/category-none-tests (Files): Likewise.
38603         * modules/unictype/category-of-tests (Files): Likewise.
38604         * modules/unictype/category-or-tests (Files): Likewise.
38605         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38606         * modules/unictype/combining-class-tests (Files): Likewise.
38607         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38608         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38609         * modules/unictype/ctype-blank-tests (Files): Likewise.
38610         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38611         * modules/unictype/ctype-digit-tests (Files): Likewise.
38612         * modules/unictype/ctype-graph-tests (Files): Likewise.
38613         * modules/unictype/ctype-lower-tests (Files): Likewise.
38614         * modules/unictype/ctype-print-tests (Files): Likewise.
38615         * modules/unictype/ctype-punct-tests (Files): Likewise.
38616         * modules/unictype/ctype-space-tests (Files): Likewise.
38617         * modules/unictype/ctype-upper-tests (Files): Likewise.
38618         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38619         * modules/unictype/decimal-digit-tests (Files): Likewise.
38620         * modules/unictype/digit-tests (Files): Likewise.
38621         * modules/unictype/mirror-tests (Files): Likewise.
38622         * modules/unictype/numeric-tests (Files): Likewise.
38623         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38624         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38625         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38626         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38627         Likewise.
38628         * modules/unictype/property-bidi-block-separator-tests (Files):
38629         Likewise.
38630         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38631         Likewise.
38632         * modules/unictype/property-bidi-common-separator-tests (Files):
38633         Likewise.
38634         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38635         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38636         Likewise.
38637         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38638         Likewise.
38639         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38640         Likewise.
38641         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38642         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38643         Likewise.
38644         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38645         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38646         Likewise.
38647         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38648         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38649         * modules/unictype/property-bidi-segment-separator-tests (Files):
38650         Likewise.
38651         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38652         * modules/unictype/property-byname-tests (Files): Likewise.
38653         * modules/unictype/property-combining-tests (Files): Likewise.
38654         * modules/unictype/property-composite-tests (Files): Likewise.
38655         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38656         * modules/unictype/property-dash-tests (Files): Likewise.
38657         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38658         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38659         Likewise.
38660         * modules/unictype/property-deprecated-tests (Files): Likewise.
38661         * modules/unictype/property-diacritic-tests (Files): Likewise.
38662         * modules/unictype/property-extender-tests (Files): Likewise.
38663         * modules/unictype/property-format-control-tests (Files): Likewise.
38664         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38665         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38666         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38667         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38668         * modules/unictype/property-hyphen-tests (Files): Likewise.
38669         * modules/unictype/property-id-continue-tests (Files): Likewise.
38670         * modules/unictype/property-id-start-tests (Files): Likewise.
38671         * modules/unictype/property-ideographic-tests (Files): Likewise.
38672         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38673         * modules/unictype/property-ids-trinary-operator-tests (Files):
38674         Likewise.
38675         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38676         * modules/unictype/property-iso-control-tests (Files): Likewise.
38677         * modules/unictype/property-join-control-tests (Files): Likewise.
38678         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38679         * modules/unictype/property-line-separator-tests (Files): Likewise.
38680         * modules/unictype/property-logical-order-exception-tests (Files):
38681         Likewise.
38682         * modules/unictype/property-lowercase-tests (Files): Likewise.
38683         * modules/unictype/property-math-tests (Files): Likewise.
38684         * modules/unictype/property-non-break-tests (Files): Likewise.
38685         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38686         * modules/unictype/property-numeric-tests (Files): Likewise.
38687         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38688         * modules/unictype/property-other-default-ignorable-code-point-tests
38689         (Files): Likewise.
38690         * modules/unictype/property-other-grapheme-extend-tests (Files):
38691         Likewise.
38692         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38693         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38694         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38695         * modules/unictype/property-other-math-tests (Files): Likewise.
38696         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38697         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38698         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38699         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38700         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38701         * modules/unictype/property-private-use-tests (Files): Likewise.
38702         * modules/unictype/property-punctuation-tests (Files): Likewise.
38703         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38704         * modules/unictype/property-radical-tests (Files): Likewise.
38705         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38706         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38707         * modules/unictype/property-space-tests (Files): Likewise.
38708         * modules/unictype/property-terminal-punctuation-tests (Files):
38709         Likewise.
38710         * modules/unictype/property-test-tests (Files): Likewise.
38711         * modules/unictype/property-titlecase-tests (Files): Likewise.
38712         * modules/unictype/property-unassigned-code-value-tests (Files):
38713         Likewise.
38714         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38715         * modules/unictype/property-uppercase-tests (Files): Likewise.
38716         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38717         * modules/unictype/property-white-space-tests (Files): Likewise.
38718         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38719         * modules/unictype/property-xid-start-tests (Files): Likewise.
38720         * modules/unictype/property-zero-width-tests (Files): Likewise.
38721         * modules/unictype/scripts-tests (Files): Likewise.
38722         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38723         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38724         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38725         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38726         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38727         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38728         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38729         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38730         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38731         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38732         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38733         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38734         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38735         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38736         * modules/uninorm/composition-tests (Files): Likewise.
38737         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38738         * modules/uninorm/decomposition-tests (Files): Likewise.
38739         * modules/uninorm/filter-tests (Files): Likewise.
38740         * modules/uninorm/nfc-tests (Files): Likewise.
38741         * modules/uninorm/nfd-tests (Files): Likewise.
38742         * modules/uninorm/nfkc-tests (Files): Likewise.
38743         * modules/uninorm/nfkd-tests (Files): Likewise.
38744         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38745         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38746         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38747         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38748         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38749         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38750         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38751         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38752         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38753         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38754         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38755         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38756         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38757         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38758         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38759         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38760         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38761         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38762         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38763         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38764         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38765         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38766         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38767         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38768         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38769         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38770         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38771         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38772         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38773         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38774         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38775         * modules/uniwidth/u8-width-tests (Files): Likewise.
38776         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38777         * modules/uniwidth/u16-width-tests (Files): Likewise.
38778         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38779         * modules/uniwidth/u32-width-tests (Files): Likewise.
38780         * modules/uniwidth/width-tests (Files): Likewise.
38781         * modules/unlink-tests (Files): Likewise.
38782         * modules/unsetenv-tests (Files): Likewise.
38783         * modules/usleep-tests (Files): Likewise.
38784         * modules/utimens-tests (Files): Likewise.
38785         * modules/utimensat-tests (Files): Likewise.
38786         * modules/vasnprintf-posix-tests (Files): Likewise.
38787         * modules/vasnprintf-tests (Files): Likewise.
38788         * modules/vasprintf-posix-tests (Files): Likewise.
38789         * modules/vasprintf-tests (Files): Likewise.
38790         * modules/vdprintf-posix-tests (Files): Likewise.
38791         * modules/vfprintf-posix-tests (Files): Likewise.
38792         * modules/vprintf-posix-tests (Files): Likewise.
38793         * modules/vsnprintf-posix-tests (Files): Likewise.
38794         * modules/vsnprintf-tests (Files): Likewise.
38795         * modules/vsprintf-posix-tests (Files): Likewise.
38796         * modules/wcrtomb-tests (Files): Likewise.
38797         * modules/wcsnrtombs-tests (Files): Likewise.
38798         * modules/wcsrtombs-tests (Files): Likewise.
38799         * modules/wctype-tests (Files): Likewise.
38800         * modules/wcwidth-tests (Files): Likewise.
38801         * modules/xmemdup0-tests (Files): Likewise.
38802         * modules/xprintf-posix-tests (Files): Likewise.
38803         * modules/xvasprintf-tests (Files): Likewise.
38804
38805 2009-12-24  Eric Blake  <ebb9@byu.net>
38806
38807         test-nanosleep: fix typo
38808         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38809         patch.
38810         Reported by Bruno Haible.
38811
38812 2009-12-24  Bruno Haible  <bruno@clisp.org>
38813
38814         Reduce namespace pollution on glibc systems.
38815         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38816         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38817         systems.
38818         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38819         <getopt.h> on glibc systems.
38820         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38821         systems.
38822         * lib/fcntl.c: Include <unistd.h> here instead.
38823
38824 2009-12-24  Bruno Haible  <bruno@clisp.org>
38825
38826         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38827
38828 2009-12-24  Eric Blake  <ebb9@byu.net>
38829
38830         tests: add signature checks
38831         * tests/signature.h (SIGNATURE_CHECK): New file.
38832         * modules/atexit-tests (Files): Use it.
38833         * modules/btowc-tests (Files): Likewise.
38834         * modules/canonicalize-lgpl-tests (Files): Likewise.
38835         * modules/ceilf-tests (Files): Likewise.
38836         * modules/ceill-tests (Files): Likewise.
38837         * modules/chown-tests (Files): Likewise.
38838         * modules/dprintf-posix-tests (Files): Likewise.
38839         * modules/dup2-tests (Files): Likewise.
38840         * modules/dup3-tests (Files): Likewise.
38841         * modules/duplocale-tests (Files): Likewise.
38842         * modules/fchdir-tests (Files): Likewise.
38843         * modules/fcntl-tests (Files): Likewise.
38844         * modules/fdopendir-tests (Files): Likewise.
38845         * modules/fflush-tests (Files): Likewise.
38846         * modules/flock-tests (Files): Likewise.
38847         * modules/floorf-tests (Files): Likewise.
38848         * modules/floorl-tests (Files): Likewise.
38849         * modules/fnmatch-tests (Files): Likewise.
38850         * modules/fopen-tests (Files): Likewise.
38851         * modules/fprintf-posix-tests (Files): Likewise.
38852         * modules/freopen-tests (Files): Likewise.
38853         * modules/frexp-nolibm-tests (Files): Likewise.
38854         * modules/frexp-tests (Files): Likewise.
38855         * modules/frexpl-nolibm-tests (Files): Likewise.
38856         * modules/frexpl-tests (Files): Likewise.
38857         * modules/fseek-tests (Files): Likewise.
38858         * modules/fseeko-tests (Files): Likewise.
38859         * modules/fsync-tests (Files): Likewise.
38860         * modules/ftell-tests (Files): Likewise.
38861         * modules/ftello-tests (Files): Likewise.
38862         * modules/futimens-tests (Files): Likewise.
38863         * modules/getaddrinfo-tests (Files): Likewise.
38864         * modules/getcwd-tests (Files): Likewise.
38865         * modules/getdelim-tests (Files): Likewise.
38866         * modules/getdtablesize-tests (Files): Likewise.
38867         * modules/getgroups-tests (Files): Likewise.
38868         * modules/gethostname-tests (Files): Likewise.
38869         * modules/getline-tests (Files): Likewise.
38870         * modules/getopt-posix-tests (Files): Likewise.
38871         * modules/gettimeofday-tests (Files): Likewise.
38872         * modules/glob-tests (Files): Likewise.
38873         * modules/iconv-tests (Files): Likewise.
38874         * modules/inet_ntop-tests (Files): Likewise.
38875         * modules/inet_pton-tests (Files): Likewise.
38876         * modules/isblank-tests (Files): Likewise.
38877         * modules/lchown-tests (Files): Likewise.
38878         * modules/ldexpl-tests (Files): Likewise.
38879         * modules/link-tests (Files): Likewise.
38880         * modules/linkat-tests (Files): Likewise.
38881         * modules/lseek-tests (Files): Likewise.
38882         * modules/lstat-tests (Files): Likewise.
38883         * modules/mbrtowc-tests (Files): Likewise.
38884         * modules/mbsinit-tests (Files): Likewise.
38885         * modules/mbsnrtowcs-tests (Files): Likewise.
38886         * modules/mbsrtowcs-tests (Files): Likewise.
38887         * modules/memchr-tests (Files): Likewise.
38888         * modules/memcmp-tests (Files): Likewise.
38889         * modules/memmem-tests (Files): Likewise.
38890         * modules/memrchr-tests (Files): Likewise.
38891         * modules/mkdir-tests (Files): Likewise.
38892         * modules/mkfifo-tests (Files): Likewise.
38893         * modules/mkfifoat-tests (Files): Likewise.
38894         * modules/mknod-tests (Files): Likewise.
38895         * modules/nanosleep-tests (Files): Likewise.
38896         * modules/nl_langinfo-tests (Files): Likewise.
38897         * modules/obstack-printf-tests (Files): Likewise.
38898         * modules/open-tests (Files): Likewise.
38899         * modules/openat-tests (Files): Likewise.
38900         * modules/perror-tests (Files): Likewise.
38901         * modules/pipe2-tests (Files): Likewise.
38902         * modules/poll-tests (Files): Likewise.
38903         * modules/popen-tests (Files): Likewise.
38904         * modules/posix_spawn-tests (Files): Likewise.
38905         * modules/posix_spawnp-tests (Files): Likewise.
38906         * modules/pread-tests (Files): Likewise.
38907         * modules/printf-posix-tests (Files): Likewise.
38908         * modules/pty-tests (Files): Likewise.
38909         * modules/random_r-tests (Files): Likewise.
38910         * modules/rawmemchr-tests (Files): Likewise.
38911         * modules/readlink-tests (Files): Likewise.
38912         * modules/remove-tests (Files): Likewise.
38913         * modules/rename-tests (Files): Likewise.
38914         * modules/renameat-tests (Files): Likewise.
38915         * modules/rmdir-tests (Files): Likewise.
38916         * modules/round-tests (Files): Likewise.
38917         * modules/roundf-tests (Files): Likewise.
38918         * modules/roundl-tests (Files): Likewise.
38919         * modules/select-tests (Files): Likewise.
38920         * modules/setenv-tests (Files): Likewise.
38921         * modules/sigaction-tests (Files): Likewise.
38922         * modules/sleep-tests (Files): Likewise.
38923         * modules/snprintf-posix-tests (Files): Likewise.
38924         * modules/snprintf-tests (Files): Likewise.
38925         * modules/sprintf-posix-tests (Files): Likewise.
38926         * modules/stat-tests (Files): Likewise.
38927         * modules/strcasestr-tests (Files): Likewise.
38928         * modules/strchrnul-tests (Files): Likewise.
38929         * modules/strerror-tests (Files): Likewise.
38930         * modules/strsignal-tests (Files): Likewise.
38931         * modules/strstr-tests (Files): Likewise.
38932         * modules/strtod-tests (Files): Likewise.
38933         * modules/strverscmp-tests (Files): Likewise.
38934         * modules/symlink-tests (Files): Likewise.
38935         * modules/symlinkat-tests (Files): Likewise.
38936         * modules/times-tests (Files): Likewise.
38937         * modules/trunc-tests (Files): Likewise.
38938         * modules/truncf-tests (Files): Likewise.
38939         * modules/truncl-tests (Files): Likewise.
38940         * modules/tsearch-tests (Files): Likewise.
38941         * modules/uname-tests (Files): Likewise.
38942         * modules/unlink-tests (Files): Likewise.
38943         * modules/unsetenv-tests (Files): Likewise.
38944         * modules/usleep-tests (Files): Likewise.
38945         * modules/utimensat-tests (Files): Likewise.
38946         * modules/vasprintf-tests (Files): Likewise.
38947         * modules/vdprintf-posix-tests (Files): Likewise.
38948         * modules/vfprintf-posix-tests (Files): Likewise.
38949         * modules/vprintf-posix-tests (Files): Likewise.
38950         * modules/vsnprintf-posix-tests (Files): Likewise.
38951         * modules/vsnprintf-tests (Files): Likewise.
38952         * modules/vsprintf-posix-tests (Files): Likewise.
38953         * modules/wcrtomb-tests (Files): Likewise.
38954         * modules/wcsnrtombs-tests (Files): Likewise.
38955         * modules/wcsrtombs-tests (Files): Likewise.
38956         * modules/wcwidth-tests (Files): Likewise.
38957         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38958         * tests/test-isinf.c (isinf): Likewise.
38959         * tests/test-isnan.c (isnan): Likewise.
38960         * tests/test-signbit.c (signbit): Likewise.
38961         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38962         declaration, either as macro or with correct signature.
38963         (select): Ensure function under test is declared with correct
38964         signature in correct header.
38965         * tests/test-atexit.c (atexit): Likewise.
38966         * tests/test-btowc.c (btowc): Likewise.
38967         * tests/test-canonicalize-lgpl.c (realpath)
38968         (canonicalize_file_name): Likewise.
38969         * tests/test-ceilf1.c (ceilf): Likewise.
38970         * tests/test-ceill.c (ceill): Likewise.
38971         * tests/test-chown.c (chown): Likewise.
38972         * tests/test-dprintf-posix.c (dprintf): Likewise.
38973         * tests/test-dup2.c (dup2): Likewise.
38974         * tests/test-dup3.c (dup3): Likewise.
38975         * tests/test-duplocale.c (duplocale): Likewise.
38976         * tests/test-fchdir.c (fchdir): Likewise.
38977         * tests/test-fchownat.c (fchownat): Likewise.
38978         * tests/test-fcntl.c (fcntl): Likewise.
38979         * tests/test-fdopendir.c (fdopendir): Likewise.
38980         * tests/test-fflush.c (fflush): Likewise.
38981         * tests/test-flock.c (flock): Likewise.
38982         * tests/test-floorf1.c (floorf): Likewise.
38983         * tests/test-floorl.c (floorl): Likewise.
38984         * tests/test-fnmatch.c (fnmatch): Likewise.
38985         * tests/test-fopen.c (fopen): Likewise.
38986         * tests/test-fprintf-posix.c (fprintf): Likewise.
38987         * tests/test-freopen.c (freopen): Likewise.
38988         * tests/test-frexp.c (frexp): Likewise.
38989         * tests/test-frexpl.c (frexpl): Likewise.
38990         * tests/test-fseek.c (fseek): Likewise.
38991         * tests/test-fseeko.c (fseeko): Likewise.
38992         * tests/test-fstatat.c (fstatat): Likewise.
38993         * tests/test-fsync.c (fsync): Likewise.
38994         * tests/test-ftell.c (ftell): Likewise.
38995         * tests/test-ftello.c (ftello): Likewise.
38996         * tests/test-futimens.c (futimens): Likewise.
38997         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38998         (gai_strerror): Likewise.
38999         * tests/test-getcwd.c (getcwd): Likewise.
39000         * tests/test-getdelim.c (getdelim): Likewise.
39001         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39002         * tests/test-getgroups.c (getgroups): Likewise.
39003         * tests/test-gethostname.c (gethostname): Likewise.
39004         * tests/test-getline.c (getline): Likewise.
39005         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39006         Likewise.
39007         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39008         * tests/test-glob.c (glob, globfree): Likewise.
39009         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39010         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39011         * tests/test-inet_pton.c (inet_pton): Likewise.
39012         * tests/test-isblank.c (isblank): Likewise.
39013         * tests/test-lchown.c (lchown): Likewise.
39014         * tests/test-ldexpl.c (ldexpl): Likewise.
39015         * tests/test-link.c (link): Likewise.
39016         * tests/test-linkat.c (linkat): Likewise.
39017         * tests/test-lseek.c (lseek): Likewise.
39018         * tests/test-lstat.c (lstat): Likewise.
39019         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39020         * tests/test-mbsinit.c (mbsinit): Likewise.
39021         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39022         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39023         * tests/test-memchr.c (memchr): Likewise.
39024         * tests/test-memcmp.c (memcmp): Likewise.
39025         * tests/test-memmem.c (memmem): Likewise.
39026         * tests/test-memrchr.c (memrchr): Likewise.
39027         * tests/test-mkdir.c (mkdir): Likewise.
39028         * tests/test-mkdirat.c (mkdirat): Likewise.
39029         * tests/test-mkfifo.c (mkfifo): Likewise.
39030         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39031         * tests/test-mknod.c (mknod): Likewise.
39032         * tests/test-nanosleep.c (nanosleep): Likewise.
39033         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39034         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39035         Likewise.
39036         * tests/test-open.c (open): Likewise.
39037         * tests/test-openat.c (openat): Likewise.
39038         * tests/test-perror.c (perror): Likewise.
39039         * tests/test-pipe2.c (pipe2): Likewise.
39040         * tests/test-poll.c (poll): Likewise.
39041         * tests/test-popen.c (popen, pclose): Likewise.
39042         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39043         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39044         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39045         (posix_spawn_file_actions_destroy)
39046         (posix_spawn_file_actions_addclose)
39047         (posix_spawn_file_actions_addopen)
39048         (posix_spawn_file_actions_adddup2): Likewise.
39049         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39050         * tests/test-pread.c (pread): Likewise.
39051         * tests/test-printf-posix.c (printf): Likewise.
39052         * tests/test-pty.c (openpty, forkpty): Likewise.
39053         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39054         (random_r): Likewise.
39055         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39056         * tests/test-readlink.c (readlink): Likewise.
39057         * tests/test-remove.c (remove): Likewise.
39058         * tests/test-rename.c (rename): Likewise.
39059         * tests/test-renameat.c (renameat): Likewise.
39060         * tests/test-rmdir.c (rmdir): Likewise.
39061         * tests/test-round1.c (round): Likewise.
39062         * tests/test-roundf1.c (roundf): Likewise.
39063         * tests/test-roundl.c (roundl): Likewise.
39064         * tests/test-setenv.c (setenv): Likewise.
39065         * tests/test-sigaction.c (sigaction): Likewise.
39066         * tests/test-sleep.c (sleep): Likewise.
39067         * tests/test-snprintf.c (snprintf): Likewise.
39068         * tests/test-sprintf-posix.c (sprintf): Likewise.
39069         * tests/test-stat.c (stat): Likewise.
39070         * tests/test-stpncpy.c (stpncpy): Likewise.
39071         * tests/test-strcasestr.c (strcasestr): Likewise.
39072         * tests/test-strchrnul.c (strchrnul): Likewise.
39073         * tests/test-strerror.c (strerror): Likewise.
39074         * tests/test-strsignal.c (strsignal): Likewise.
39075         * tests/test-strstr.c (strstr): Likewise.
39076         * tests/test-strtod.c (strtod): Likewise.
39077         * tests/test-strverscmp.c (strverscmp): Likewise.
39078         * tests/test-symlink.c (symlink): Likewise.
39079         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39080         * tests/test-times.c (times): Likewise.
39081         * tests/test-trunc1.c (trunc): Likewise.
39082         * tests/test-truncf1.c (truncf): Likewise.
39083         * tests/test-truncl.c (truncl): Likewise.
39084         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39085         Likewise.
39086         * tests/test-uname.c (uname): Likewise.
39087         * tests/test-unlink.c (unlink): Likewise.
39088         * tests/test-unlinkat.c (unlinkat): Likewise.
39089         * tests/test-unsetenv.c (unsetenv): Likewise.
39090         * tests/test-usleep.c (usleep): Likewise.
39091         * tests/test-utimensat.c (utimensat): Likewise.
39092         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39093         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39094         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39095         * tests/test-vprintf-posix.c (vprintf): Likewise.
39096         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39097         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39098         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39099         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39100         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39101         * tests/test-wcwidth.c (wcwidth): Likewise.
39102
39103         build: pull in conditional headers during GNULIB_POSIXCHECK
39104         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39105         definitions from any conditionally-included headers.
39106         * lib/stdlib.in.h (includes): Likewise.
39107         * lib/unistd.in.h (includes): Likewise.
39108
39109 2009-12-24  Bruno Haible  <bruno@clisp.org>
39110
39111         * tests/test-argv-iter.c: Include header file being tested immediately
39112         after config.h.
39113         * tests/test-base64.c: Likewise.
39114         * tests/test-flock.c: Likewise.
39115         * tests/test-fsync.c: Likewise.
39116         * tests/test-getdate.c: Likewise.
39117         * tests/test-getndelim2.c: Likewise.
39118         * tests/test-isfinite.c: Likewise.
39119         * tests/test-isinf.c: Likewise.
39120         * tests/test-strerror.c: Likewise.
39121         * tests/test-strsignal.c: Likewise.
39122
39123 2009-12-23  Eric Blake  <ebb9@byu.net>
39124
39125         unistd: work around cygwin bug
39126         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39127         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39128         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39129
39130 2009-12-23  Bruno Haible  <bruno@clisp.org>
39131
39132         localename: More tests.
39133         * tests/test-localename.c (SIZEOF): New macro.
39134         (categories): New variable.
39135         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39136         test_locale_name_default): Add test w.r.t. thread locale.
39137         (test_locale_name_thread): New function.
39138         (main): Invoke it.
39139
39140         localename: Make aware of thread locale.
39141         * lib/localename.h (gl_locale_name_thread): New declaration.
39142         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39143         behaviour with respect to thread locale.
39144         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39145         <langinfo.h>, glthread/lock.h.
39146         (SIZE_BITS): New macro.
39147         (string_hash): New function.
39148         (struct hash_node): New type.
39149         (HASH_TABLE_SIZE): New macro.
39150         (struniq_hash_table, struniq_lock): New variables.
39151         (struniq): New function.
39152         (gl_locale_name_thread): New function.
39153         (gl_locale_name): Invoke it.
39154         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39155         * modules/localename (Depends-on): Add lock.
39156         Reported by Mike Gran <spk121@yahoo.com>.
39157
39158 2009-12-23  Eric Blake  <ebb9@byu.net>
39159
39160         va-args: new module
39161         * modules/va-args: New file.
39162         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39163         * MODULES.html.sh (Core language properties): Mention it.
39164
39165         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39166         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39167         named alias for __attribute__((__unused__)).
39168         * lib/chown.c: Update client.
39169         * lib/fchmodat.c: Likewise.
39170         * lib/fts.c: Likewise.
39171         * lib/getdate.y: Likewise.
39172         * lib/getgroups.c: Likewise.
39173         * lib/getopt.c: Likewise.
39174         * lib/getugroups.c: Likewise.
39175         * lib/mkdir.c: Likewise.
39176         * lib/mkfifo.c: Likewise.
39177         * lib/mkfifoat.c: Likewise.
39178         * lib/mknod.c: Likewise.
39179         * lib/mknodat.c: Likewise.
39180         * lib/readlink.c: Likewise.
39181         * lib/se-context.in.h: Likewise.
39182         * lib/se-selinux.in.h: Likewise.
39183         * lib/sockets.c: Likewise.
39184         * lib/symlink.c: Likewise.
39185         * lib/symlinkat.c: Likewise.
39186         * lib/unicodeio.c: Likewise.
39187         * lib/unistr.h: Likewise.
39188         * tests/test-areadlink.c: Likewise.
39189         * tests/test-areadlinkat.c: Likewise.
39190         * tests/test-filenamecat.c: Likewise.
39191         * tests/test-fseeko.c: Likewise.
39192         * tests/test-ftello.c: Likewise.
39193         * tests/test-getdate.c: Likewise.
39194         * tests/test-getgroups.c: Likewise.
39195         * tests/test-gethostname.c: Likewise.
39196         * tests/test-quotearg.c: Likewise.
39197         * tests/test-version-etc.c: Likewise.
39198         * tests/test-xalloc-die.c: Likewise.
39199         * tests/test-xfprintf-posix.c: Likewise.
39200         * tests/test-xprintf-posix.c: Likewise.
39201         * tests/test-xvasprintf.c: Likewise.
39202
39203         tests: avoid compiler warnings
39204         * tests/test-fcntl.c (main): Delete unused parameters.
39205         * tests/test-freopen-safer.c (main): Likewise.
39206         * tests/test-xalloc-die.c (main): Mark unused parameters.
39207         * tests/test-fseeko.c (main): Likewise.
39208         * tests/test-ftello.c (main): Likewise.
39209         * tests/test-nanosleep.c (main): Avoid declaration warning.
39210         * tests/test-sleep.c (main): Likewise.
39211         * tests/test-unsetenv.c (main): Silence warning about string
39212         literal.
39213         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39214
39215 2009-12-23  Bruno Haible  <bruno@clisp.org>
39216
39217         * tests/test-localename.c (test_locale_name): New function, extracted
39218         from main. Also test mixed situations.
39219         (test_locale_name_posix, test_locale_name_environ,
39220         test_locale_name_default): New functions.
39221         (main): Invoke them all.
39222         * modules/localename-tests (configure.ac): Test for newlocale.
39223
39224 2009-12-23  Bruno Haible  <bruno@clisp.org>
39225
39226         unistd: Ensure getcwd gets declared before being overridden.
39227         * lib/unistd.in.h: Conditionally include <io.h>.
39228
39229 2009-12-22  Bruno Haible  <bruno@clisp.org>
39230
39231         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39232         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39233         (gl_WCHAR_H): Invoke it.
39234         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39235         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39236         Reported by Karl Berry <karl@freefriends.org>.
39237
39238 2009-12-22  Eric Blake  <ebb9@byu.net>
39239
39240         math, unistd: avoid redundant includes
39241         * lib/math.in.h (isnan): No need to re-include <math.h>.
39242         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39243
39244         getsubopt: work around cygwin bug
39245         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39246         avoid conflicting with system getsubopt.
39247         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39248         bug.
39249
39250         getopt: synchronize from glibc
39251         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39252         parameter order.  Adjust all callers.
39253         (_getopt_internal_r, main): Adjust quoting in error messages.
39254         Drop considerations for outdated POSIX 1003.2 error message.
39255         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39256         callers.
39257         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39258
39259         test-getopt: test stderr behavior
39260         * modules/getopt-posix-tests (Depends-on): Add dup2.
39261         * tests/test-getopt.c (ASSERT): Avoid stderr.
39262         (main): Move stderr to a temporary file.
39263         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39264         Instead, add parameter to inform caller if output occurred.
39265         (test_getopt): Adjust all existing tests to expect silence, and
39266         add new tests of leading ":".
39267         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39268         glibc shortcomings with leading "-:" or "+:" in optstring.
39269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39270         Likewise.
39271         * doc/posix-functions/getopt.texi (getopt): Likewise.
39272
39273         test-getopt: enhance test
39274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39275         supports optind=0.
39276         * tests/test-getopt.c (OPTIND_MIN): Move...
39277         * tests/test-getopt.h (OPTIND_MIN): ...here.
39278         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39279         Require that optind=0 works, since modern BSD supports it in
39280         addition to optreset, and since coreutils expects it.
39281         (test_getopt_long_only): New test.
39282         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39283         glibc shortcomings with 'W;', and enforcement of optind=0.
39284         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39285         Likewise.
39286
39287 2009-12-21  Bruno Haible  <bruno@clisp.org>
39288
39289         localename: Improvements for MacOS X and Cygwin.
39290         * lib/localename.h (gl_locale_name_environ): New declaration.
39291         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39292         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39293         (gl_locale_name_posix): Invoke it.
39294         (gl_locale_name_default): Add comments. Use Windows native API also on
39295         Cygwin.
39296
39297 2009-12-21  Bruno Haible  <bruno@clisp.org>
39298
39299         Update list of Win32 locale ids.
39300         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39301         (LANG_SAMI): Renamed from LANG_SAAMI.
39302         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39303         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39304         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39305         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39306         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39307         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39308         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39309         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39310         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39311         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39312         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39313         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39314         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39315         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39316         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39317         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39318         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39319         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39320         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39321         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39322         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39323         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39324         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39325         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39326         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39327         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39328         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39329         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39330         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39331         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39332         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39333         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39334         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39335         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39336         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39337         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39338         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39339         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39340         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39341         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39342         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39343         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39344         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39345         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39346         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39347         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39348         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39349         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39350         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39351         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39352         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39353         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39354         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39355         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39356         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39357         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39358         Add more languages and countries for Sami, Sorbian. Add more countries
39359         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39360         for Pashto. Change country for Syriac, Tswana.
39361
39362 2009-12-21  Eric Blake  <ebb9@byu.net>
39363
39364         test-utimens: avoid spurious failure
39365         * tests/test-chown.h (nap): Factor...
39366         * tests/nap.h: ...into new file.
39367         * tests/test-lchown.h (nap): Avoid duplication.
39368         * tests/test-utimens-common.h (nap): Use shared implementation,
39369         necessary on file systems with 1-second resolution.
39370         * modules/chown-tests (Files): Include new file.
39371         * modules/fdutimensat-tests (Files): Likewise.
39372         * modules/futimens-tests (Files): Likewise.
39373         * modules/lchown-tests (Files): Likewise.
39374         * modules/openat-tests (Files): Likewise.
39375         * modules/utimens-tests (Files): Likewise.
39376         * modules/utimensat-tests (Files): Likewise.
39377
39378 2009-12-19  Eric Blake  <ebb9@byu.net>
39379
39380         futimens, utimensat: work around Linux bug
39381         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39382         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39383         * lib/utimensat.c (rpl_utimensat): Work around it.
39384         * lib/futimens.c (rpl_futimens): Adjust comment.
39385
39386         utimens: work around Linux ctime bug
39387         * lib/utimens.c (detect_ctime_bug): New helper function.
39388         (update_timespec): Differentiate between workaround needed for
39389         this bug vs. what is needed for systems that lack utimensat.
39390         (fdutimens, lutimens): Work around bug.
39391
39392         utimens: check for ctime update
39393         * tests/test-utimens-common.h (check_ctime): Define.
39394         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39395         * tests/test-futimens.h (test_futimens): Likewise.
39396         * tests/test-lutimens.h (test_lutimens): Likewise.
39397         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39398         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39399
39400 2009-12-19  Bruno Haible  <bruno@clisp.org>
39401
39402         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39403         * tests/test-dprintf-posix2.sh: New file.
39404         * tests/test-dprintf-posix2.c: New file.
39405         * modules/dprintf-posix-tests (Files): Add them.
39406         (configure.ac): Check for getrlimit and setrlimit.
39407         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39408
39409 2009-12-19  Bruno Haible  <bruno@clisp.org>
39410
39411         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39412         * tests/test-fprintf-posix3.sh: New file.
39413         * tests/test-fprintf-posix3.c: New file.
39414         * modules/fprintf-posix-tests (Files): Add them.
39415         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39416
39417 2009-12-19  Eric Blake  <ebb9@byu.net>
39418
39419         dirfd: fix prototype
39420         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39421         * lib/dirfd.c (dirfd): Likewise.
39422
39423         canonicalize: reduce memory usage
39424         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39425         allocation to size.
39426         Reported by Solar Designer <solar@openwall.com>.
39427
39428 2009-12-19  Bruno Haible  <bruno@clisp.org>
39429
39430         New module attribute 'Applicability'.
39431         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39432         * gnulib-tool: New option --extract-applicability.
39433         (func_usage): Document it.
39434         (sed_extract_prog): Recognize it.
39435         (func_get_applicability): New function.
39436         (func_import): Generalize handling of 'link-warning' module.
39437         * modules/link-warning (Applicability): New section.
39438         * modules/arg-nonnull (Applicability): New section.
39439         Repoted by Simon Josefsson <simon@josefsson.org>.
39440
39441 2009-12-19  Bruno Haible  <bruno@clisp.org>
39442
39443         fflush: tweak
39444         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39445         * lib/fseeko.c (rpl_fseeko): Likewise.
39446
39447 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39448
39449         * lib/gl_list.h: Fix typo in comment.
39450
39451 2009-12-16  Eric Blake  <ebb9@byu.net>
39452
39453         fcntl: use to simplify other modules
39454         * modules/cloexec (Depends-on): Add fcntl.
39455         * modules/fchdir (Depends-on): Likewise.
39456         * modules/fd-safer-flag (Depends-on): Likewise.
39457         * modules/unistd-safer (Depends-on): Likewise.
39458         * modules/dup3 (configure.ac): Set module indicator.
39459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39460         missing.
39461         * lib/fchdir.c (_gl_register_dup): Fix comment.
39462         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39463         * lib/dup-safer.c (dup_safer): Likewise.
39464         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39465         * lib/dup3.c (dup3): Likewise.
39466         * tests/test-fchdir.c (main): Enhance test.
39467         Fixes a dup_cloexec bug reported by Ondřej Vašík.
39468
39469         fcntl: port portions of fcntl to mingw
39470         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39471         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39472         replacement for mingw.
39473         * modules/fcntl (Description): Update.
39474         (Depends-on): Add dup2.
39475         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39476         * modules/fcntl-h (Makefile.am): Substitute it.
39477         * lib/fcntl.in.h (fcntl): Update declaration.
39478         (F_DUPFD, F_GETFD): New macros, when needed.
39479         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39480         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39481         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39482         we now guarantee.
39483
39484         fcntl: work around cygwin bug in F_DUPFD
39485         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39486         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39487         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39488         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39489         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39490
39491         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39492         * modules/fcntl (Files): List new files.
39493         (configure.ac): Run a test.
39494         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39495         * lib/fcntl.c (rpl_fcntl): Likewise.
39496         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39497         (gl_FCNTL_H): Always replace fcntl.h.
39498         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39499         * lib/fcntl.in.h (fcntl): Declare replacement.
39500         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39501         needed, plus a witness.
39502         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39503         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39504         * tests/test-fcntl.c: New file.
39505         * modules/fcntl-tests: Likewise.
39506
39507         binary-io: avoid potential compilation warning
39508         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39509         directives.
39510
39511         fflush: avoid compilation error on NetBSD
39512         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39513         between off_t and fpos_t, since the latter is sometimes a struct.
39514         * lib/fseeko.c (rpl_fseeko): Likewise.
39515         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39516
39517 2009-12-15  Eric Blake  <ebb9@byu.net>
39518
39519         fcntl-h, stdio, sys_ioctl: fix declarations
39520         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39521         function must not take arguments.
39522         * lib/sys_ioctl.in.h (ioctl): Likewise.
39523         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39524         (open): Add a link warning.
39525
39526 2009-12-15  Jim Meyering  <meyering@redhat.com>
39527
39528         areadlink, areadlink-with-size: relax license to LGPLv2+
39529         * modules/areadlink (License): Relax to LGPLv2+.
39530         * modules/areadlink-with-size (License): Likewise.
39531
39532 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39533             Bruno Haible  <bruno@clisp.org>
39534
39535         *printf: Fix memory leak.
39536         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39537         * lib/vfprintf.c (vfprintf): Likewise.
39538         * lib/dprintf.c (dprintf): Likewise.
39539         * lib/vdprintf.c (vdprintf): Likewise.
39540
39541 2009-12-14  Eric Blake  <ebb9@byu.net>
39542
39543         accept4: adjust module dependencies
39544         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39545
39546         utimens: one more try at avoiding compiler warning
39547         * lib/utimens.c (lutimens): Lower scope of result.
39548
39549 2009-12-13  Bruno Haible  <bruno@clisp.org>
39550
39551         Move the malloc checking from module 'list' to new module 'xlist'.
39552         * modules/xlist: New file.
39553         * lib/gl_xlist.h: New file.
39554         * lib/gl_xlist.c: New file.
39555         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39556         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39557         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39558         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39559         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39560         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39561         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39562         gl_sortedlist_nx_add): New declarations.
39563         (struct gl_list_implementation): Rename and change methods accordingly.
39564         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39565         (gl_list_nx_create): Renamed from gl_list_create.
39566         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39567         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39568         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39569         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39570         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39571         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39572         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39573         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39574         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39575         gl_list_create_empty.
39576         (gl_list_nx_create): Renamed from gl_list_create.
39577         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39578         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39579         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39580         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39581         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39582         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39583         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39584         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39585         * lib/gl_array_list.c: Don't include xalloc.h.
39586         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39587         NULL upon out-of-memory.
39588         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39589         out-of-memory.
39590         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39591         Change return type to 'int'.
39592         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39593         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39594         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39595         upon out-of-memory.
39596         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39597         upon out-of-memory.
39598         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39599         upon out-of-memory.
39600         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39601         upon out-of-memory.
39602         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39603         out-of-memory.
39604         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39605         Update.
39606         (gl_array_list_implementation): Update.
39607         * lib/gl_carray_list.c: Don't include xalloc.h.
39608         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39609         Return NULL upon out-of-memory.
39610         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39611         out-of-memory.
39612         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39613         Change return type to 'int'.
39614         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39615         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39616         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39617         upon out-of-memory.
39618         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39619         upon out-of-memory.
39620         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39621         out-of-memory.
39622         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39623         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39624         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39625         Update.
39626         (gl_carray_list_implementation): Update.
39627         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39628         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39629         gl_linked_create_empty. Return NULL upon out-of-memory.
39630         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39631         out-of-memory.
39632         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39633         Change return type to 'int'. Return -1 upon out-of-memory.
39634         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39635         out-of-memory.
39636         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39637         upon out-of-memory.
39638         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39639         upon out-of-memory.
39640         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39641         NULL upon out-of-memory.
39642         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39643         upon out-of-memory.
39644         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39645         out-of-memory.
39646         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39647         Update.
39648         * lib/gl_linked_list.c: Don't include xalloc.h.
39649         (gl_linked_list_implementation): Update.
39650         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39651         (add_to_bucket): Change return type to 'int'.
39652         (gl_linkedhash_list_implementation): Update.
39653         * lib/gl_anytree_list1.h (free_subtree): New function.
39654         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39655         gl_tree_create_empty. Return NULL upon out-of-memory.
39656         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39657         Change return type to 'int'. Return -1 upon out-of-memory.
39658         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39659         out-of-memory.
39660         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39661         (gl_tree_remove_node): New function, moved here from
39662         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39663         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39664         Update.
39665         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39666         malloc, not xmalloc. Return NULL upon out-of-memory.
39667         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39668         out-of-memory.
39669         (gl_tree_remove_node_from_tree): New function, extracted from
39670         gl_tree_remove_node.
39671         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39672         upon out-of-memory.
39673         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39674         out-of-memory.
39675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39676         upon out-of-memory.
39677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39678         upon out-of-memory.
39679         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39680         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39681         not xmalloc. Return NULL upon out-of-memory.
39682         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39683         out-of-memory.
39684         (gl_tree_remove_node_from_tree): New function, extracted from
39685         gl_tree_remove_node.
39686         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39687         upon out-of-memory.
39688         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39689         out-of-memory.
39690         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39691         upon out-of-memory.
39692         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39693         upon out-of-memory.
39694         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39695         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39696         gl_anytree_list1.h before gl_anyavltree_list2.h.
39697         (gl_avltree_list_implementation): Update.
39698         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39699         gl_anytree_list1.h before gl_anyavltree_list2.h.
39700         (gl_rbtree_list_implementation): Update.
39701         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39702         Change return type to 'int'. Return -1 upon out-of-memory. Use
39703         __builtin_expect.
39704         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39705         (gl_avltreehash_list_implementation): Update.
39706         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39707         (gl_rbtreehash_list_implementation): Update.
39708         * modules/array-list (Depends-on): Remove xalloc.
39709         * modules/carray-list (Depends-on): Likewise.
39710         * modules/linked-list (Depends-on): Likewise.
39711         * modules/linkedhash-list (Depends-on): Likewise.
39712         * modules/avltree-list (Depends-on): Likewise.
39713         * modules/rbtree-list (Depends-on): Likewise.
39714         * modules/avltreehash-list (Depends-on): Likewise.
39715         * modules/rbtreehash-list (Depends-on): Likewise.
39716
39717         * modules/xsublist: New file.
39718         * lib/gl_xsublist.h: New file.
39719         * lib/gl_xsublist.c: New file.
39720         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39721         (gl_sublist_nx_create): New declaration.
39722         * lib/gl_sublist.c: Don't include xalloc.h.
39723         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39724         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39725         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39726         Change return type to 'int'. Return -1 upon out-of-memory.
39727         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39728         upon out-of-memory.
39729         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39730         NULL upon out-of-memory.
39731         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39732         upon out-of-memory.
39733         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39734         NULL upon out-of-memory.
39735         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39736         NULL upon out-of-memory.
39737         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39738         upon out-of-memory.
39739         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39740         (gl_sublist_list_implementation): Update.
39741         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39742         upon out-of-memory.
39743         * modules/sublist (Depends-on): Remove xalloc.
39744
39745         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39746         * tests/test-carray_list.c: Likewise.
39747         * tests/test-linked_list.c: Likewise.
39748         * tests/test-linkedhash_list.c: Likewise.
39749         * tests/test-avltree_list.c: Likewise.
39750         * tests/test-rbtree_list.c: Likewise.
39751         * tests/test-avltreehash_list.c: Likewise.
39752         * tests/test-rbtreehash_list.c: Likewise.
39753         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39754         * modules/carray-list-tests (Makefile.am): Likewise.
39755         * modules/linked-list-tests (Makefile.am): Likewise.
39756         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39757         * modules/avltree-list-tests (Makefile.am): Likewise.
39758         * modules/rbtree-list-tests (Makefile.am): Likewise.
39759         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39760         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39761
39762         * NEWS: Mention the changes.
39763
39764         * lib/clean-temp.c: Include gl_xlist.h.
39765         * modules/clean-temp (Depends-on): Add xlist.
39766
39767         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39768         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39769
39770         * tests/test-array_oset.c: Include gl_xlist.h.
39771         * modules/array-oset-tests (Depends-on): Add xlist.
39772
39773         Reported by José E. Marchesi <jemarch@gnu.org>.
39774
39775 2009-12-13  Bruno Haible  <bruno@clisp.org>
39776
39777         Move the malloc checking from module 'oset' to new module 'xoset'.
39778         * modules/xoset: New file.
39779         * lib/gl_xoset.h: New file.
39780         * lib/gl_xoset.c: New file.
39781         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39782         declarations.
39783         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39784         (struct gl_oset_implementation): Rename and change methods accordingly.
39785         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39786         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39787         'int'. Mark as __warn_unused_result__.
39788         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39789         gl_oset_create_empty.
39790         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39791         'int'.
39792         * lib/gl_array_oset.c: Don't include xalloc.h.
39793         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39794         malloc, not xmalloc.
39795         (grow): Change return type to 'int'. Don't call xalloc_die.
39796         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39797         to 'int'.
39798         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39799         'int'.
39800         (gl_array_oset_implementation): Update.
39801         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39802         gl_tree_create_empty.
39803         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39804         'int'.
39805         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39806         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39807         xmalloc.
39808         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39809         not xmalloc.
39810         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39811         xmalloc.
39812         (gl_avltree_oset_implementation): Update.
39813         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39814         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39815         xmalloc.
39816         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39817         not xmalloc.
39818         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39819         xmalloc.
39820         (gl_rbtree_oset_implementation): Update.
39821         * modules/array-oset (Depends-on): Remove xalloc.
39822         * modules/avltree-oset (Depends-on): Likewise.
39823         * modules/rbtree-oset (Depends-on): Likewise.
39824         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39825         * tests/test-avltree_oset.c: Likewise.
39826         * tests/test-rbtree_oset.c: Likewise.
39827         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39828         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39829         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39830         * NEWS: Mention the change.
39831
39832 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39833
39834         maint.mk: allow a project to override release-prep commands
39835         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39836         commands into a new rule.
39837         (release-prep): New rule.
39838         (release-prep-hook): New overridable variable.
39839
39840 2009-12-13  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39843
39844 2009-12-13  Jim Meyering  <meyering@redhat.com>
39845
39846         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39847         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39848
39849 2009-12-12  Bruno Haible  <bruno@clisp.org>
39850
39851         duplocale: Tweak.
39852         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39853
39854 2009-12-12  Karl Berry  <karl@gnu.org>
39855
39856         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39857
39858 2009-12-12  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/po.m4: Undo incorrect untabification.
39861
39862 2009-12-12  Bruno Haible  <bruno@clisp.org>
39863
39864         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39865         * modules/c-strtod (Depends-on): Add locale.
39866         * modules/c-strtold (Depends-on): Likewise.
39867
39868 2009-12-12  Bruno Haible  <bruno@clisp.org>
39869
39870         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39871
39872 2009-12-11  Eric Blake  <ebb9@byu.net>
39873
39874         setenv: relax requirement in light of POSIX ruling
39875         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39876         not NULL.
39877         * tests/test-setenv.c (main): Relax test.
39878         * tests/test-unsetenv.c (main): Likewise.
39879         * doc/posix-functions/setenv.texi (setenv): Document this.
39880         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39881
39882 2009-12-11  Bruno Haible  <bruno@clisp.org>
39883
39884         New module 'fd-safer-flag'.
39885         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39886         * lib/dup-safer.c (dup_safer_flag): Remove function.
39887         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39888         * lib/fd-safer.c (fd_safer_flag): Remove function.
39889         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39890         * modules/cloexec (configure.ac): Drop indicator macro.
39891         * modules/fd-safer-flag: New file.
39892         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39893         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39894         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39895
39896 2009-12-11  Bruno Haible  <bruno@clisp.org>
39897
39898         Tests for module 'nl_langinfo'.
39899         * modules/nl_langinfo-tests: New file.
39900         * tests/test-nl_langinfo.sh: New file.
39901         * tests/test-nl_langinfo.c: New file.
39902
39903         New module 'nl_langinfo'.
39904         * lib/nl_langinfo.c: New file.
39905         * m4/nl_langinfo.m4: New file.
39906         * modules/nl_langinfo: New file.
39907         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39908
39909 2009-12-11  Bruno Haible  <bruno@clisp.org>
39910
39911         Tests for module 'langinfo'.
39912         * modules/langinfo-tests: New file.
39913         * tests/test-langinfo.c: New file.
39914
39915         New module 'langinfo'.
39916         * lib/langinfo.in.h: New file.
39917         * m4/langinfo_h.m4: New file.
39918         * modules/langinfo: New file.
39919         * doc/posix-headers/langinfo.texi: Mention the new module.
39920
39921 2009-12-11  Bruno Haible  <bruno@clisp.org>
39922
39923         * lib/config.charset: Untabify.
39924
39925 2009-12-11  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/unistd-safer (configure.ac): Drop indicator macro.
39928
39929 2009-12-11  Bruno Haible  <bruno@clisp.org>
39930
39931         Move pipe2-safer code to its own file.
39932         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39933         * lib/pipe-safer.c (pipe2_safer): Remove function.
39934         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39935         (Makefile.am): Add it to lib_SOURCES.
39936
39937 2009-12-10  Bruno Haible  <bruno@clisp.org>
39938
39939         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39940
39941 2009-12-10  Bruno Haible  <bruno@clisp.org>
39942
39943         Declare which arguments expect non-NULL values, for GCC and clang.
39944         * build-aux/arg-nonnull.h: New file.
39945         * modules/arg-nonnull: New file.
39946         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39947         (inet_ntop, inet_pton): Use it.
39948         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39949         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39950         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39951         (open, openat): Use it.
39952         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39953         (fnmatch): Use it.
39954         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39955         (getopt, getopt_long, getopt_long_only): Use it.
39956         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39957         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39958         Use it.
39959         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39960         (iconv_open): Use it.
39961         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39962         (strtoimax, strtoumax): Use it.
39963         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39964         (duplocale): Use it.
39965         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39966         (frexp, frexpl): Use it.
39967         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39968         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39969         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39970         (tsearch, tfind, tdelete, twalk): Use it.
39971         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39972         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39973         sigpending): Use it.
39974         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39975         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39976         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39977         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39978         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39979         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39980         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39981         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39982         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39983         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39984         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39985         Use it.
39986         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39987         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39988         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39989         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39990         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39991         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39992         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39993         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39994         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39995         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39996         strtoull, unsetenv): Use it.
39997         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39998         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39999         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40000         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40001         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40002         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40003         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40004         (strcasecmp, strncasecmp): Use it.
40005         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40006         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40007         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40008         rpl_setsockopt): Use it.
40009         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40010         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40011         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40012         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40013         (gettimeofday): Use it.
40014         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40015         (times): Use it.
40016         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40017         (uname): Use it.
40018         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40019         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40020         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40021         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40022         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40023         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40024         unlinkat, write): Use it.
40025         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40026         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40027         * lib/argv-iter.h: Include arg-nonnull.h.
40028         (_ATTRIBUTE_NONNULL_): Remove macro.
40029         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40030         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40031         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40032         optimization.
40033         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40034         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40035         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40036         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40037         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40038         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40039         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40040         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40041         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40042         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40043         * modules/dirent (Depends-on): Add arg-nonnull.
40044         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40045         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40046         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40047         * modules/fnmatch (Depends-on): Add arg-nonnull.
40048         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40049         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40050         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40051         * modules/glob (Depends-on): Add arg-nonnull.
40052         (Makefile.am): Insert arg-nonnull.h into glob.h.
40053         * modules/iconv_open (Depends-on): Add arg-nonnull.
40054         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40055         * modules/inttypes (Depends-on): Add arg-nonnull.
40056         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40057         * modules/locale (Depends-on): Add arg-nonnull.
40058         (Makefile.am): Insert arg-nonnull.h into locale.h.
40059         * modules/math (Depends-on): Add arg-nonnull.
40060         (Makefile.am): Insert arg-nonnull.h into math.h.
40061         * modules/netdb (Depends-on): Add arg-nonnull.
40062         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40063         * modules/search (Depends-on): Add arg-nonnull.
40064         (Makefile.am): Insert arg-nonnull.h into search.h.
40065         * modules/signal (Depends-on): Add arg-nonnull.
40066         (Makefile.am): Insert arg-nonnull.h into signal.h.
40067         * modules/spawn (Depends-on): Add arg-nonnull.
40068         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40069         * modules/stdio (Depends-on): Add arg-nonnull.
40070         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40071         * modules/stdlib (Depends-on): Add arg-nonnull.
40072         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40073         * modules/string (Depends-on): Add arg-nonnull.
40074         (Makefile.am): Insert arg-nonnull.h into string.h.
40075         * modules/strings (Depends-on): Add arg-nonnull.
40076         (Makefile.am): Insert arg-nonnull.h into strings.h.
40077         * modules/sys_socket (Depends-on): Add arg-nonnull.
40078         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40079         * modules/sys_stat (Depends-on): Add arg-nonnull.
40080         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40081         * modules/sys_time (Depends-on): Add arg-nonnull.
40082         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40083         * modules/sys_times (Depends-on): Add arg-nonnull.
40084         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40085         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40086         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40087         * modules/time (Depends-on): Add arg-nonnull.
40088         (Makefile.am): Insert arg-nonnull.h into time.h.
40089         * modules/unistd (Depends-on): Add arg-nonnull.
40090         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40091         * modules/wchar (Depends-on): Add arg-nonnull.
40092         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40093         * modules/argv-iter (Depends-on): Add arg-nonnull.
40094         * tests/test-canonicalize.c (null_ptr): New function.
40095         (main): Use it.
40096         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40097         (main): Use it.
40098         * tests/test-memmem.c (null_ptr): New function.
40099         (main): Use it.
40100         Reported by Jim Meyering.
40101
40102 2009-12-10  Bruno Haible  <bruno@clisp.org>
40103
40104         Use spaces for indentation, not tabs.
40105         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40106         * m4/*.m4: Untabify.
40107         * build-aux/*.h: Untabify.
40108         * tests/**/*.[hc]: Untabify.
40109         * README: New section "Indent with spaces, not TABs", based on
40110         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40111         * NEWS: Mention the change.
40112
40113 2009-12-10  Bruno Haible  <bruno@clisp.org>
40114
40115         pty test: Fix link error.
40116         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40117         test_pty_LDADD.
40118
40119 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40120
40121         * modules/pty: New file.
40122         * modules/pty-tests: New file.
40123         * m4/pty.m4: New file.
40124         * tests/test-pty.c: New file.
40125         * doc/glibc-headers/pty.texi: Modified.
40126         * doc/glibc-functions/forkpty.texi: Modified.
40127         * doc/glibc-functions/openpty.texi: Modified.
40128
40129 2009-12-10  Bruno Haible  <bruno@clisp.org>
40130
40131         Avoid syntax error in C++ mode.
40132         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40133
40134 2009-12-10  Bruno Haible  <bruno@clisp.org>
40135
40136         Use sed with option -e.
40137         * gnulib-tool (func_version, func_emit_copyright_notice,
40138         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40139         option -e to sed.
40140         * modules/link-warning (Makefile.am): Likewise.
40141
40142 2009-12-10  Jim Meyering  <meyering@redhat.com>
40143
40144         mgetgroups: do not write bytes beyond end of malloc'd buffer
40145         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40146         username, we call getgroups with a one-element-shorter buffer,
40147         but still told it the length was original, max_n_groups.
40148
40149 2009-12-09  Eric Blake  <ebb9@byu.net>
40150
40151         cloexec: relax license
40152         * modules/cloexec (Maintainer): Add myself.
40153         (License): Use LGPL, not GPL.
40154
40155         link-warning: optimize generation
40156         * modules/link-warning (Makefile.am): Reduce process usage.
40157
40158 2009-12-09  Bruno Haible  <bruno@clisp.org>
40159
40160         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40161         workaround was added on 2009-11-17.
40162
40163 2009-12-09  Jim Meyering  <meyering@redhat.com>
40164             Bruno Haible  <bruno@clisp.org>
40165
40166         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40167         * modules/link-warning (Makefile.am): Make the comment-removing sed
40168         command more robust in the face of bootstrap-prepended comment lines.
40169
40170 2009-12-09  Bruno Haible  <bruno@clisp.org>
40171
40172         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40173         most one group.
40174
40175 2009-12-09  Simon Josefsson <simon@josefsson.org>
40176             Bruno Haible  <bruno@clisp.org>
40177
40178         * build-aux/link-warning.h: Add copyright notice.
40179         * modules/link-warning (Makefile.am): Generate link-warning.h from
40180         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40181         * NEWS: Mention change in link-warning module.
40182         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40183         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40184         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40185         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40186         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40187         * modules/math (Makefile.am): Add dependency to math.h.
40188         * modules/search (Makefile.am): Add dependency to search.h.
40189         * modules/signal (Makefile.am): Add dependency to signal.h.
40190         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40191         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40192         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40193         * modules/string (Makefile.am): Add dependency to string.h.
40194         * modules/strings (Makefile.am): Add dependency to strings.h.
40195         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40196         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40197         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40198         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40199         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40200         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40201         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40202         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40203         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40204
40205 2009-12-09  Bruno Haible  <bruno@clisp.org>
40206
40207         fchdir: Optimize away rpl_fstat when possible.
40208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40209         REPLACE_OPEN_DIRECTORY.
40210         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40211
40212 2009-12-09  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/fchdir.c: Update comment.
40215
40216 2009-12-09  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40219
40220 2009-12-08  Eric Blake  <ebb9@byu.net>
40221
40222         fchdir: avoid memory leak on re-registration.
40223         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40224
40225 2009-12-08  Jim Meyering  <meyering@redhat.com>
40226
40227         init.sh: avoid Solaris 10 /bin/sh portability problem
40228         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40229         sourced script:
40230           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40231           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40232           bar
40233         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40234         and two tests used that idiom.
40235         * tests/init.sh: Update suggested usage comments.
40236         (path_prepend_): New function, to be used in place
40237         of the --src-path=DIR option.
40238         (setup_): Move PATH-prepending code into path_prepend_.
40239         * tests/test-pread.sh: Adapt to new usage.
40240         * tests/test-xalloc-die.sh: Likewise.
40241
40242 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40243
40244         * doc/gnulib.texi (Glibc pty.h): Add.
40245         * doc/glibc-functions/forkpty.texi: Add.
40246         * doc/glibc-functions/openpty.texi: Add.
40247         Suggested by Bruno Haible.
40248
40249 2009-12-08  Eric Blake  <ebb9@byu.net>
40250
40251         fchdir: fix logic bugs
40252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40253         * tests/test-fchdir.c (main): Enhance test.
40254         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40255         is in use.
40256
40257         dup2: fix logic bugs
40258         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40259         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40260         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40261         exists.
40262         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40263
40264 2009-12-07  Eric Blake  <ebb9@byu.net>
40265
40266         unlink: fix m4 detection
40267         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40268
40269         unistd-safer: add unit test
40270         * modules/unistd-safer-tests: New file.
40271         * tests/test-dup-safer.c: Likewise.
40272         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40273         * tests/test-dup2.c (setmode): Likewise.
40274         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40275
40276         cloexec: preserve text vs. binary across dup_cloexec
40277         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40278         mode.
40279         * modules/dup2-tests (Depends-on): Add binary-io.
40280         * modules/cloexec-tests (Depends-on): Likewise.
40281         * tests/test-dup2.c (setmode, is_mode): New helpers.
40282         (main): Add tests that translation mode is preserved.
40283         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40284         Reported by Bruno Haible.
40285
40286         mgetgroups: reduce duplicate listings
40287         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40288         resulting array.
40289         * tests/test-chown.h (test_chown): Simplify client.
40290         * tests/test-lchown.h (test_lchown): Likewise.
40291
40292 2009-12-06  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40295         value.
40296
40297 2009-12-06  Bruno Haible  <bruno@clisp.org>
40298
40299         * lib/progname.c: Include stdio.h, stdlib.h.
40300         (set_program_name): Reject a NULL argument.
40301
40302 2009-12-05  Eric Blake  <ebb9@byu.net>
40303
40304         pipe2-safer: new module
40305         * modules/pipe2-safer: New file.
40306         * lib/unistd-safer.h (pipe2_safer): New prototype.
40307         * lib/unistd--.h (pipe2): New wrapper.
40308         * lib/pipe-safer.c (pipe2_safer): New function.
40309         * modules/pipe (Depends-on): Add pipe2-safer.
40310         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40311
40312         stdlib-safer: preserve cloexec flag for mkostemp[s]
40313         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40314         fd_safer_flag.
40315
40316         unistd-safer: allow preservation of cloexec status via flag
40317         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40318         prototypes.
40319         * lib/dup-safer.c (dup_safer_flag): New function.
40320         * lib/fd-safer.c (fd_safer_flag): Likewise.
40321         * modules/cloexec (configure.ac): Set witness.
40322
40323         test-dup2: enhance test
40324         * modules/dup2-tests (Depends-on): Add cloexec.
40325         * tests/test-dup2.c (main): Enhance test.
40326
40327         cloexec: add dup_cloexec
40328         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40329         header and comments.
40330         * lib/cloexec.c (set_cloexec_flag): Add comments.
40331         (dup_cloexec): New function, with mingw implementation borrowed
40332         from...
40333         * lib/w32spawn.h (dup_noinherit): ...here.
40334         * modules/execute (Depends-on): Add cloexec.
40335         * modules/pipe (Depends-on): Likewise.
40336         * modules/cloexec (Depends-on): Add dup2.
40337         * modules/cloexec-tests (Files): New file.
40338         * tests/test-cloexec.c: Likewise.
40339
40340         test-xalloc-die: fix test for mingw
40341         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40342         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40343         directory and .exe suffix off argv[0] output.
40344
40345         test-fseeko: fix test for mingw
40346         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40347         than undefining fseek, so test will pass on mingw.
40348
40349 2009-12-05  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/progname.h (set_program_name): Clarify specification.
40352         * lib/progname.c (set_program_name): Likewise.
40353         Reported by Jim Meyering.
40354
40355 2009-12-05  Jim Meyering  <meyering@redhat.com>
40356
40357         maint.mk: backslash-escape parens in default regexp
40358         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40359         backslash-escape the literal parentheses.
40360
40361         maint.mk: news-date-check: use grep -E
40362         * top/maint.mk (today): Define a Make variable, not a...
40363         (news-date-check): ...shell variable.
40364         (news-date-regexp): Use the Make variable.
40365         Use grep's -E option.  Change the failing diagnostic to mention
40366         the variable, $(news-date-regexp).
40367
40368 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40369
40370         maintainer-makefile: allow customization of NEWS entry format
40371         * top/maint.mk (news-date-regexp): New overridable variable.
40372         (news-date-check): Use it.
40373
40374 2009-12-04  Eric Blake  <ebb9@byu.net>
40375
40376         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40377         * lib/mgetgroups.h (xgetgroups): New prototype.
40378         * lib/mgetgroups.c (xgetgroups): New wrapper.
40379         (mgetgroups): Handle ENOSYS.
40380         * modules/mgetgroups (Depends-on): Add realloc.
40381         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40382
40383         mgetgroups: avoid argument promotion issues with -1
40384         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40385         for invalid gid_t.
40386         * tests/test-chown.h (getegid, test_chown): Likewise.
40387         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40388
40389 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40390
40391         exclude: Fix header file problems.
40392         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40393
40394 2009-12-01  Jim Meyering  <meyering@redhat.com>
40395
40396         fts: fts_open: do not let an empty string cause immediate failure
40397         This is required in support of GNU rm, for which the command
40398         "rm A '' B" must process and remove both A and B, in spite of
40399         the empty string argument.
40400         * lib/fts.c (fts_open): Do not let the presence of an empty string
40401         cause fts_open to fail immediately.  Most fts-using tools must be
40402         able to process all arguments, in order, and can be expected to
40403         diagnose such arguments themselves.
40404
40405 2009-11-30  Eric Blake  <ebb9@byu.net>
40406
40407         utimens: fix compilation error
40408         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40409         Declare variable at right scope.
40410
40411 2009-11-29  Jim Meyering  <meyering@redhat.com>
40412
40413         bootstrap: handle perl-5.11's changed --version output
40414         * build-aux/bootstrap (get_version): Handle perl separately,
40415         since perl-5.11's --version output is different.
40416
40417 2009-11-28  Jim Meyering  <meyering@redhat.com>
40418
40419         userspec: depend on the inttostr module, too
40420         * modules/userspec (Depends-on): Add inttostr.
40421
40422         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40423         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40424         number of MAXUID when it evaluates to (uid_t) -1.
40425         Likewise for group ID.  Reported by Matt McCutchen in
40426         <http://savannah.gnu.org/bugs/?28113>
40427
40428         userspec: reformat to use spaces, not TABs
40429         * lib/userspec.c: Expand TABs to spaces.
40430         Add Emacs' "indent-tabs-mode: nil" hint.
40431
40432 2009-11-27  Eric Blake  <ebb9@byu.net>
40433
40434         getopt-gnu: flush out another BSD bug
40435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40436         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40437         flush out BSD bug.
40438         * tests/test-getopt.h (test_getopt): End lists with NULL.
40439         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40440         (test_getopt_long_posix): Enhance test.
40441         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40442         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40443         getopt-gnu.
40444         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40445         Likewise.
40446
40447 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40448
40449         * modules/idpriv-droptemp-tests (Notice): Fix text.
40450
40451 2009-11-27  Jim Meyering  <meyering@redhat.com>
40452
40453         test-xalloc-die: avoid spurious failure due to libtool argv difference
40454         In a libtool-enabled project, this test would fail due to a difference
40455         in the emitted program name, e.g.,
40456         -test-xalloc-die: memory exhausted
40457         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40458         Use program to avoid that.
40459         * modules/xalloc-die-tests (Depends-on): Add progname.
40460         * tests/test-xalloc-die.c: Include progname.h".
40461         (program_name): Remove decl.
40462         (main): Call set_program_name.
40463         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40464
40465 2009-11-26  Richard Jones  <rjones@redhat.com>
40466
40467         w32sock: leave win32 error in place.
40468         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40469
40470 2009-11-26  Eric Blake  <ebb9@byu.net>
40471
40472         init.sh: suggest to use skip_ and fail_ functions in comments
40473         * tests/init.sh: Add a sentence.
40474
40475 2009-11-25  Bruno Haible  <bruno@clisp.org>
40476
40477         init.sh: add documentation in comments
40478         * tests/init.sh: Add some developer and user documentation.
40479
40480 2009-11-26  Jim Meyering  <meyering@redhat.com>
40481
40482         init.sh: accommodate even those who specify bogus srcdir manually
40483         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40484         configure-time tests to be sanitized, so that there is no need to
40485         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40486         (with no double quotes) suffices.  However, since tests may be
40487         invoked manually, and since you may explicitly set srcdir to the
40488         name of a directory containing spaces, do quote its uses here.
40489         * tests/test-pread.sh: Likewise.
40490         Suggested by Bruno Haible.
40491
40492         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40493         * tests/test-pread.sh: Write no data into the pipe, because
40494         test-pread actually reads none.  This avoids a diagnostic,
40495         "bash: echo: write error: Broken pipe", that arises in the unusual
40496         event something is ignoring SIGPIPE, and might be interpreted
40497         as some sort of failure.  Reported by Bruno Haible.
40498
40499 2009-11-25  Jim Meyering  <meyering@redhat.com>
40500
40501         test-pread: cover failure with ESPIPE and EINVAL
40502         * tests/test-pread.c (main): Test for failure, too.
40503         * tests/test-pread.sh: Invoke with stdin on a pipe.
40504         Suggested by Eric Blake.
40505
40506         pread: improvement and fix
40507         * modules/pread (Depends-on): Depend on lseek, for portability to
40508         e.g., mingw.  Suggested by Eric Blake.
40509         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40510
40511         unistd.in.h: correct declaration of pread
40512         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40513         Reported by Richard W.M. Jones.
40514
40515         test-pread.sh: distribute the test script
40516         * modules/pread-tests (Files): Include test-pread.sh.
40517
40518         test-pread.sh: clean up
40519         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40520         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40521         That is unnecessary, since it's always ".".
40522         Suggestion from Eric Blake.
40523
40524         test-pread.sh: make executable
40525         * tests/test-pread.sh: Set executable bit.
40526         Reported by Eric Blake.
40527
40528         correct typo in test-pread.sh
40529         * tests/test-pread.sh: Add #! line.
40530
40531         test pread
40532         * tests/test-pread.c: New file.
40533         * tests/test-pread.sh: Likewise.
40534         * modules/pread-tests: Likewise.
40535
40536         pread: new module
40537         * modules/pread: New file.
40538         * lib/unistd.in.h (pread): Define/declare.
40539         * lib/pread.c (pread): New file.
40540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40541         * modules/unistd (Makefile.am): Substitute witnesses.
40542         * doc/posix-functions/pread.texi (pread): Update.
40543         * MODULES.html.sh: Add pread.
40544
40545 2009-11-25  Jim Meyering  <meyering@redhat.com>
40546
40547         tests/init.sh: new file to be used via most *.sh tests
40548         * tests/init.sh: New file.
40549
40550 2009-11-25  Eric Blake  <ebb9@byu.net>
40551
40552         utimens: work around older Linux failure with symlinks
40553         * lib/utimens.c (lutimensat_works_really): New variable.
40554         (fdutimens, lutimens): Use it to manage kernels that support
40555         nanosecond times on files, but not on symlinks.
40556         Reported by Ondřej Vašík.
40557
40558         utimes: fix configure grammar
40559         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40560
40561 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40562
40563         regex: Fix fastmap for multibyte character ranges.
40564         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40565         characters when a multibyte character range is included.
40566
40567 2009-11-22  Andy Wingo  <wingo@pobox.com>
40568
40569         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40570         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40571
40572 2009-11-24  Bruno Haible  <bruno@clisp.org>
40573
40574         doc: Most *_l functions exist in MacOS X 10.5.
40575         * doc/posix-functions/duplocale.texi: Update platforms list.
40576         * doc/posix-functions/freelocale.texi: Likewise.
40577         * doc/posix-functions/newlocale.texi: Likewise.
40578         * doc/posix-functions/uselocale.texi: Likewise.
40579         * doc/posix-functions/isalnum_l.texi: Likewise.
40580         * doc/posix-functions/isalpha_l.texi: Likewise.
40581         * doc/posix-functions/isblank_l.texi: Likewise.
40582         * doc/posix-functions/iscntrl_l.texi: Likewise.
40583         * doc/posix-functions/isdigit_l.texi: Likewise.
40584         * doc/posix-functions/isgraph_l.texi: Likewise.
40585         * doc/posix-functions/islower_l.texi: Likewise.
40586         * doc/posix-functions/isprint_l.texi: Likewise.
40587         * doc/posix-functions/ispunct_l.texi: Likewise.
40588         * doc/posix-functions/isspace_l.texi: Likewise.
40589         * doc/posix-functions/isupper_l.texi: Likewise.
40590         * doc/posix-functions/iswalnum_l.texi: Likewise.
40591         * doc/posix-functions/iswalpha_l.texi: Likewise.
40592         * doc/posix-functions/iswblank_l.texi: Likewise.
40593         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40594         * doc/posix-functions/iswctype_l.texi: Likewise.
40595         * doc/posix-functions/iswdigit_l.texi: Likewise.
40596         * doc/posix-functions/iswgraph_l.texi: Likewise.
40597         * doc/posix-functions/iswlower_l.texi: Likewise.
40598         * doc/posix-functions/iswprint_l.texi: Likewise.
40599         * doc/posix-functions/iswpunct_l.texi: Likewise.
40600         * doc/posix-functions/iswspace_l.texi: Likewise.
40601         * doc/posix-functions/iswupper_l.texi: Likewise.
40602         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40603         * doc/posix-functions/isxdigit_l.texi: Likewise.
40604         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40605         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40606         * doc/posix-functions/strcoll_l.texi: Likewise.
40607         * doc/posix-functions/strfmon_l.texi: Likewise.
40608         * doc/posix-functions/strftime_l.texi: Likewise.
40609         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40610         * doc/posix-functions/strxfrm_l.texi: Likewise.
40611         * doc/posix-functions/tolower_l.texi: Likewise.
40612         * doc/posix-functions/toupper_l.texi: Likewise.
40613         * doc/posix-functions/towctrans_l.texi: Likewise.
40614         * doc/posix-functions/towlower_l.texi: Likewise.
40615         * doc/posix-functions/towupper_l.texi: Likewise.
40616         * doc/posix-functions/wcscoll_l.texi: Likewise.
40617         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40618         * doc/posix-functions/wctrans_l.texi: Likewise.
40619         * doc/posix-functions/wctype_l.texi: Likewise.
40620         * doc/glibc-functions/strptime_l.texi: Likewise.
40621         * doc/glibc-functions/strtod_l.texi: Likewise.
40622         * doc/glibc-functions/strtof_l.texi: Likewise.
40623         * doc/glibc-functions/strtol_l.texi: Likewise.
40624         * doc/glibc-functions/strtold_l.texi: Likewise.
40625         * doc/glibc-functions/strtoll_l.texi: Likewise.
40626         * doc/glibc-functions/strtoul_l.texi: Likewise.
40627         * doc/glibc-functions/strtoull_l.texi: Likewise.
40628         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40629         * doc/glibc-functions/wcstod_l.texi: Likewise.
40630         * doc/glibc-functions/wcstof_l.texi: Likewise.
40631         * doc/glibc-functions/wcstol_l.texi: Likewise.
40632         * doc/glibc-functions/wcstold_l.texi: Likewise.
40633         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40634         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40635         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40636
40637 2009-11-24  Bruno Haible  <bruno@clisp.org>
40638
40639         duplocale: Fix logic bug.
40640         * lib/duplocale.c: Don't include <langinfo.h>.
40641         (_NL_LOCALE_NAME): Remove macro.
40642         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40643         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40644
40645 2009-11-23  Jim Meyering  <meyering@redhat.com>
40646
40647         test-update-copyright: don't hard-code /usr/bin/perl
40648         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40649         perl to print the current year.  Gilles Espinasse reported that
40650         the replaced use of perl was hard-coded as /usr/bin/perl.
40651
40652 2009-11-23  Bruno Haible  <bruno@clisp.org>
40653
40654         duplocale: Add support for glibc 2.3.x.
40655         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40656
40657 2009-11-22  Bruno Haible  <bruno@clisp.org>
40658
40659         vasnprintf: Tiny optimization.
40660         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40661         MacOS X.
40662
40663 2009-11-22  Bruno Haible  <bruno@clisp.org>
40664
40665         Tests for module 'duplocale'.
40666         * modules/duplocale-tests: New file.
40667         * tests/test-duplocale.c: New file.
40668
40669         New module 'duplocale'.
40670         * m4/duplocale.m4: New file.
40671         * lib/locale.in.h (duplocale): New declaration.
40672         * lib/duplocale.c: New file.
40673         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40674         gl_LOCALE_H_DEFAULTS): New macros.
40675         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40676         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40677         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40678         REPLACE_DUPLOCALE.
40679         * modules/duplocale: New file.
40680         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40681
40682 2009-11-22  Bruno Haible  <bruno@clisp.org>
40683
40684         * modules/locale-tests (configure.ac): Test for newlocale function.
40685         * tests/test-locale.c: When the system has extended locale functions,
40686         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40687
40688         locale: Make locale_t available when possible.
40689         * lib/locale.in.h: Include <xlocale.h> when it exists.
40690         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40691         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40692         * modules/locale (Depends-on): Add extensions.
40693         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40694         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40695
40696 2009-11-22  Bruno Haible  <bruno@clisp.org>
40697
40698         Add comments.
40699         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40700         invocation.
40701         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40702         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40703         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40704
40705 2009-11-22  Bruno Haible  <bruno@clisp.org>
40706
40707         error: account for the possibility of freopen (stdout).
40708         * lib/error.c: Include <unistd.h>.
40709         (flush_stdout): New function, extracted from error and error_at_line.
40710         Determine stdout's fd dynamically.
40711         (error, error_at_line): Invoke flush_stdout.
40712         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40713         * modules/error (Depends-on): Add unistd.
40714
40715 2009-11-22  Bruno Haible  <bruno@clisp.org>
40716
40717         diffseq: Add comment.
40718         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40719
40720 2009-11-22  Jim Meyering  <meyering@redhat.com>
40721
40722         c-stack: avoid defining an unused static function
40723         * lib/c-stack.c (find_stack_direction): Do not define this function
40724         when it will not be used.
40725
40726         diffseq: avoid spurious gcc warnings
40727         * lib/diffseq.h (IF_LINT2): Define.
40728         (compareseq): Use it to initialize two members of "part".
40729         This avoids two used-uninitialized warnings.
40730
40731 2009-11-21  Jim Meyering  <meyering@redhat.com>
40732
40733         c-stack: avoid "ignoring return value of `write'" warning
40734         * lib/c-stack.c: Include "ignore-value.h".
40735         (die): Explicitly ignore each write return value.
40736         * modules/c-stack (Depends-on): Add ignore-value.
40737
40738 2009-11-21  Bruno Haible  <bruno@clisp.org>
40739
40740         diffseq: reduce scope of variable 'best'.
40741         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40742         variable, earlier used for two different purposes.
40743
40744 2009-11-21  Jim Meyering  <meyering@redhat.com>
40745
40746         diffseq: remove useless assignment to "best"
40747         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40748         assignment.  At that point "best" is already guaranteed to be zero.
40749
40750 2009-11-20  Eric Blake  <ebb9@byu.net>
40751
40752         build: mention ftp redirector in release announcements
40753         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40754         values that used to come from cfg.mk; mention FTP redirect URL.
40755         * build-aux/announce-gen: Mention the mirror list.
40756         Suggested by Karl Berry.
40757
40758         nanosleep: improve port to mingw
40759         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40761         LIB_NANOSLEEP, but only when needed.
40762         * modules/select (Link): Document LIBSOCKET.
40763         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40764         enough.
40765
40766         nanosleep: work around cygwin bug
40767         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40768         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40769         bug.
40770         (getnow): Delete, not needed.
40771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40772         LIB_CLOCK_GETTIME.
40773         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40774         clock-time, gettime.
40775         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40776         bug.
40777         * modules/nanosleep-tests: New test.
40778         * tests/test-nanosleep.c: New file.
40779
40780         sleep: work around cygwin bug
40781         * lib/sleep.c (rpl_sleep): Work around the bug.
40782         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40783         (gl_PREREQ_SLEEP): Delete unused macro.
40784         * modules/sleep (Depends-on): Add verify.
40785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40786         * modules/unistd (Makefile.am): Substitute witness.
40787         * lib/unistd.in.h (sleep): Update prototype.
40788         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40789         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40790         * modules/sleep-tests (Depends-on): Check for alarm.
40791
40792 2009-11-20  Jim Meyering  <meyering@redhat.com>
40793
40794         maint.mk: improve sc_prohibit_magic_number_exit
40795         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40796         so it does not match uses like System.exit(1).
40797         Add comments showing how to correct all offenders.
40798
40799 2009-11-19  Eric Blake  <ebb9@byu.net>
40800
40801         xalloc-die-tests: add missing library
40802         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40803
40804         test-xvasprintf: silence compiler warnings
40805         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40806         empty string from gcc.
40807
40808 2009-11-19  Jim Meyering  <meyering@redhat.com>
40809
40810         xfreopen: new module, from coreutils
40811         * modules/xfreopen: New module.
40812         * lib/xfreopen.c: New file.
40813         * lib/xfreopen.h: New file.
40814         * MODULES.html.sh (File stream based Input/Output"): Add it.
40815
40816 2009-11-19  Eric Blake  <ebb9@byu.net>
40817
40818         manywarnings: depend on warnings
40819         * modules/manywarnings (Depends-on): Add warnings.
40820
40821         build: avoid compiler warnings
40822         * lib/select.c (rpl_select): Delete unused variable.
40823         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40824
40825 2009-11-18  Eric Blake  <ebb9@byu.net>
40826
40827         tests: avoid false negative with --with-packager
40828         * tests/test-version-etc.sh: Discard packager information.
40829         * tests/test-argp-version-etc-1.sh: Likewise.
40830         Reported by Mike Frysinger.
40831
40832         utimens: fix regression on Solaris
40833         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40834         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40835         can only change fd timestamps via futimesat.  Instead, use an
40836         additional witness macro to avoid BSD bug.
40837         Reported by Jim Meyering.
40838
40839 2009-11-17  Eric Blake  <ebb9@byu.net>
40840
40841         usleep: use it to simplify tests
40842         * modules/stat-time-tests (Depends-on): Add usleep.
40843         (configure.ac): Drop usleep check.
40844         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40845         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40846         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40847         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40848         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40849         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40850         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40851         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40852         Likewise.
40853         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40854         * tests/test-lchown.h (nap): Likewise.
40855         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40856         * tests/test-stat-time.c (nap): Likewise.
40857         * tests/test-utimens-common.h (nap): Update comments.
40858
40859         usleep: new module
40860         * modules/usleep: New file.
40861         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40862         * lib/usleep.c (usleep): Likewise.
40863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40864         * modules/unistd (Makefile.am): Substitute witnesses.
40865         * lib/unistd.in.h (usleep): Add declaration.
40866         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40867         * MODULES.html.sh (Date and time): Likewise.
40868         * modules/usleep-tests (Depends-on): New test.
40869         * tests/test-usleep.c: New file.
40870
40871         chown: work around OpenBSD bug
40872         * lib/chown.c (rpl_chown): Work around the bug.
40873         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40874         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40875         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40876         * modules/chown (Depends-on): Add stdbool.
40877         * modules/lchown (Depends-on): Likewise.
40878         * doc/posix-functions/chown.texi (chown): Document the bug.
40879         * doc/posix-functions/lchown.texi (lchown): Likewise.
40880         * tests/test-lchown.h (test_chown): Relax test.
40881
40882         mkstemp: avoid conflict with C++ keyword template
40883         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40884         * lib/mkostemp.c (mkostemp): Likewise.
40885         * lib/mkostemps.c (mkostemps): Likewise.
40886         * lib/mkstemp.c (mkstemp): Likewise.
40887         * lib/mkstemps.c (mkstemps): Likewise.
40888
40889         xalloc-die-tests: optimize
40890         * tests/test-xalloc-die.sh: Reduce number of processes.
40891
40892 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40893
40894         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40895         patch from ludo@gnu.org (Ludovic Courtès).
40896
40897 2009-11-17  Jim Meyering  <meyering@redhat.com>
40898
40899         version-etc: use proper license string
40900         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40901         * modules/version-etc-fsf: Likewise.
40902
40903 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40904
40905         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40906         printed to stdout.  Deal with EOL differences.
40907
40908 2009-11-17  Eric Blake  <ebb9@byu.net>
40909
40910         unsetenv: work around Solaris bug
40911         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40912         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40913         Reported by Jim Meyering.
40914
40915         vasnprintf: avoid compiler warnings
40916         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40917         variables.
40918         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40919
40920 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40921
40922         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40923         settings since xalloc-die is no longer the self test,
40924         xalloc-die.sh is.
40925
40926 2009-11-17  Jim Meyering  <meyering@redhat.com>
40927
40928         test-xalloc-die.sh: make the code agree with the commit log
40929         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40930         at the end, just in case you happen to have a test-xalloc-die
40931         program in some other PATH directory.
40932
40933         test-xalloc-die.sh: fix a portability bug
40934         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40935         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40936         Otherwise, argv[0] (as often seen in diagnostics) would be too
40937         system-dependent, sometimes with, and sometimes without the leading "./".
40938
40939         version-etc-fsf: relax license to LGPLv3+
40940         * modules/version-etc-fsf (License): Relax license.
40941
40942 2009-11-16  Eric Blake  <ebb9@byu.net>
40943
40944         xalloc-die-tests: avoid printing null pointer
40945         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40946         shell script.
40947         * tests/test-xalloc-die.c (program_name): Declare.
40948         * tests/test-xalloc-die.sh (tmpfiles): New file.
40949
40950         setenv, unsetenv: work around various bugs
40951         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40952         (setenv) [HAVE_SETENV]: Work around bugs.
40953         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40955         for bugs.
40956         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40957         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40959         * modules/stdlib (Makefile.am): Update substitutions.
40960         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40961         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40962         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40963         * modules/setenv-tests: New test.
40964         * modules/unsetenv-tests: Likewise.
40965         * tests/test-setenv.c: New file.
40966         * tests/test-unsetenv.c: Likewise.
40967
40968 2009-11-16  Jim Meyering  <meyering@redhat.com>
40969
40970         version-etc: relax license to LGPLv3+
40971         * modules/version-etc (License): Relax license.
40972
40973         better AC_REQUIRE expanded-before-required-warning avoidance
40974         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40975         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40976         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40977         which is no longer needed.
40978
40979 2009-11-16  Eric Blake  <ebb9@byu.net>
40980
40981         test-freading: clean up temporary file
40982         * tests/test-freading.c (main): Remove file on success, and use
40983         ASSERT more liberally.
40984         Reported by Jim Meyering.
40985
40986 2009-11-16  Jim Meyering  <meyering@redhat.com>
40987
40988         avoid new AC_REQUIRE expanded-before-required warnings
40989         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40990         merely using it.
40991         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40992         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40993
40994 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40995
40996         * tests/test-xalloc-die.c: New file.
40997         * modules/xalloc-die-tests: New file.
40998         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40999         XFAIL_TESTS so it can be appended by modules.
41000
41001 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41002
41003         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41004         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41005
41006 2009-11-14  Eric Blake  <ebb9@byu.net>
41007
41008         fnmatch: avoid compiler warning
41009         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41010         to silence compiler warning about mismatch signedness in ?:.
41011         Reported by Robert Millan.
41012
41013         intprops: add double-inclusion guard
41014         * lib/intprops.h: Allow idempotent includes.
41015         Suggested by Bruce Korb.
41016
41017         openat: detect Solaris fchownat bug
41018         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41019         penalizing glibc chownat when only lchownat is broken.
41020         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41021         trailing slash bugs.
41022         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41023         * modules/openat-tests (Files): Include more files.
41024         (Depends-on): Add mgetgroups, sleep, stat-time.
41025         (configure.ac): Add additional checks.
41026         (Makefile.am): Build new test.
41027         * tests/test-fchownat.c: New file.
41028
41029         lchown: detect Solaris and FreeBSD bug
41030         * lib/lchown.c (rpl_lchown): Work around bug.
41031         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41033         * modules/unistd (Makefile.am): Populate it.
41034         * lib/unistd.in.h (lchown): Update declaration.
41035         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41036         * modules/lchown-tests: New file.
41037         * tests/test-lchown.h (test_lchown): Likewise.
41038         * tests/test-lchown.c (main): Likewise.
41039
41040         chown: detect Solaris and FreeBSD bug
41041         * lib/chown.c (rpl_chown): Work around bug.
41042         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41043         (gl_PREREQ_CHOWN): Delete.
41044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41045         * modules/unistd (Makefile.am): Populate it.
41046         * lib/unistd.in.h (chown): Update declaration.
41047         * lib/lchown.c (chown): Update client.
41048         * modules/lchown (Depends-on): Add lstat.
41049         * doc/posix-functions/chown.texi (chown): Document the bug.
41050         * doc/posix-functions/getgroups.texi (getgroups): Document
41051         getgroups pitfall.
41052         * modules/chown-tests: New file.
41053         * tests/test-chown.h (test_chown): Likewise.
41054         * tests/test-chown.c (main): Likewise.
41055
41056 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41057
41058         gnulib-tool: correctly detect absence of m4 directories
41059         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41060
41061 2009-11-14  Jim Meyering  <meyering@redhat.com>
41062
41063         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41064         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41065
41066 2009-11-14  John W. Eaton  <jwe@gnu.org>
41067
41068         strftime.h: wrap function declaration in extern "C" block
41069         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41070
41071 2009-11-13  Eric Blake  <ebb9@byu.net>
41072
41073         getgroups: avoid compiler warning
41074         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41075
41076         getgroups: work around FreeBSD bug
41077         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41078         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41079         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41080         * tests/test-getgroups.c (main): Fix buffer overrun.
41081
41082         getgroups: avoid compilation failure
41083         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41084         * modules/getgroups (Depends-on): Add stdint.
41085
41086 2009-11-13  Jim Meyering  <meyering@redhat.com>
41087
41088         test-getgroups: avoid compilation failure
41089         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41090
41091 2009-11-13  Eric Blake  <ebb9@byu.net>
41092
41093         mgetgroups: new module, taken from coreutils
41094         * modules/mgetgroups: New file.
41095         * lib/mgetgroups.h: Likewise.
41096         * lib/mgetgroups.c (mgetgroups): Likewise.
41097         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41098         * MODULES.html.sh (Users and groups): Mention it.
41099
41100         getgroups: don't expose GETGROUPS_T to user
41101         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41102         an element at a time if GETGROUPS_T is wrong size.
41103         * lib/getugroups.h (getugroups): Change signature.
41104         * lib/unistd.in.h (getgroups): Likewise.
41105         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41106         signature needs fixing.
41107         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41108         AC_TYPE_GETGROUPS.
41109         * modules/group-member (Depends-on): Add getgroups.
41110         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41111         (group_member): Rely on getgroups replacement.
41112         * lib/getugroups.c (getugroups): Use gid_t.
41113         * tests/test-getgroups.c (main): Likewise.
41114         * NEWS: Mention the signature change.
41115         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41116         problem with signature.
41117         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41118         GETGROUPS_T is still useful for setgroups.
41119
41120         getgroups, getugroups: provide stubs for mingw
41121         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41122         * lib/getugroups.c (getugroups): Likewise.
41123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41124         function.  Modernize replacement scheme.
41125         (gl_PREREQ_GETGROUPS): Delete.
41126         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41127         * modules/getgroups (configure.ac): Declare witness.
41128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41129         * modules/unistd (Depends-on): Substitute witness.
41130         * lib/unistd.in.h (getgroups): Declare replacement.
41131
41132         getgroups: avoid calling exit
41133         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41134         drop xalloc.
41135         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41136         dependencies.
41137         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41138         exiting, in the rare case of malloc failure.
41139
41140         getgroups: fix logic error
41141         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41142         has more than 20 groups.
41143         * modules/getgroups-tests: New test.
41144         * tests/test-getgroups.c: New file.
41145
41146 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41147
41148         * tests/test-base64.c: Improve.
41149
41150 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41151
41152         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41153         Blake <ebb9@byu.net>.
41154
41155 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41156
41157         * tests/test-xvasprintf.c: Add %s%s related checks.
41158
41159 2009-11-12  Eric Blake  <ebb9@byu.net>
41160
41161         version-etc: match standards.texi style
41162         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41163         and use <> only for URLs.
41164
41165 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41166
41167         fts: do not fail on a submount during traversal
41168         * lib/fts.c (fts_build): Read the stat info again after opening
41169         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41170         Original report at http://bugzilla.redhat.com/501848.
41171
41172 2009-11-12  Jim Meyering  <meyering@redhat.com>
41173
41174         bootstrap: sync from coreutils
41175         * build-aux/bootstrap (bootstrap_epilogue): New function.
41176         Use git_modules_config in one more place.  This make bootstrap's
41177         --gnulib-srcdir option more useful for testing.
41178
41179         bootstrap: generalize autoheader check
41180         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41181         AC_CONFIG_HEADERS.
41182
41183 2009-11-11  Eric Blake  <ebb9@byu.net>
41184
41185         mkfifoat: use new modules for Solaris and BSD bugs
41186         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41187         * lib/mkfifoat.c (mknodat): Split...
41188         * lib/mknodat.c (mknodat): ...into new file.
41189         * modules/mkfifoat (Files): Ship new file.
41190         (Depends-on): Add mkfifo, mknod.
41191         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41192         (Depends-on): Add symlink.
41193         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41194         redundant with test_mkfifo.h.
41195         (do_mkfifoat, do_mknodat): New helpers.
41196
41197         mknod: new module
41198         * modules/mknod: New file.
41199         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41200         * lib/mknod.c (mknod): Likewise.
41201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41202         defaults.
41203         * modules/sys_stat (Makefile.am): Substitute them.
41204         * lib/sys_stat.in.h (mknod): Declare replacement.
41205         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41206         Document it.
41207         * doc/posix-functions/mknod.texi (mknod): Likewise.
41208         * modules/mknod-tests: New test.
41209         * tests/test-mknod.c: Likewise.
41210
41211         mkfifo: new module
41212         * modules/mkfifo: New file.
41213         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41214         * lib/mkfifo.c (mkfifo): Likewise.
41215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41216         defaults.
41217         * modules/sys_stat (Makefile.am): Substitute them.
41218         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41219         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41220         Document it.
41221         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41222         * modules/mkfifo-tests: New test.
41223         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41224         from test-mkfifoat.c.
41225         * tests/test-mkfifo.c: New file.
41226
41227         readlink: detect FreeBSD bug
41228         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41229         slash on symlink.
41230         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41231         * tests/test-readlink.h (test_readlink): Enhance test.
41232
41233         symlink: detect FreeBSD bug
41234         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41235         slash on symlink.
41236         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41237         * tests/test-symlink.h (test_symlink): Enhance test.
41238
41239 2009-11-10  Eric Blake  <ebb9@byu.net>
41240
41241         link: detect FreeBSD bug
41242         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41243         symlink.
41244         * doc/posix-functions/link.texi (link): Document the bug.
41245         * tests/test-link.h (test_link): Enhance test.
41246         * tests/test-linkat.c (main): Update caller.
41247
41248         unlink, remove: detect FreeBSD bug
41249         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41250         slash on symlink.
41251         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41252         * doc/posix-functions/remove.texi (remove): Likewise.
41253         * tests/test-unlink.h (test_unlink): Enhance test.
41254         * tests/test-remove.c (main): Likewise.
41255
41256 2009-11-09  Eric Blake  <ebb9@byu.net>
41257
41258         rename: detect FreeBSD bug
41259         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41260         slash on symlink.
41261         * modules/renameat-tests (Depends-on): Add filenamecat.
41262         * tests/test-rename.h (test_rename): Allow one more errno.
41263         * tests/test-renameat.c (main): Likewise.
41264         * doc/posix-functions/rename.texi (rename): Document the bug.
41265
41266         open: detect FreeBSD bug
41267         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41268         symlink.
41269         * doc/posix-functions/open.texi (open): Document the bug.
41270         * doc/posix-functions/utimes.texi (utimes): Likewise.
41271         * tests/test-open.h (test_open): Add parameters, and test symlink
41272         handling.
41273         * tests/test-open.c (main): Adjust caller.
41274         * tests/test-fcntl-safer.c (main): Likewise.
41275         * modules/open-tests (Depends-on): Add stdbool, symlink.
41276         * modules/fcntl-safer-tests (Depends-on): Likewise.
41277         * tests/test-openat.c (main): Add test-open tests.
41278
41279         stat: detect FreeBSD bug
41280         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41281         symlink.
41282         * doc/posix-functions/stat.texi (stat): Document the bug.
41283         * tests/test-stat.h (test_stat_func): Add argument.
41284         * tests/test-stat.c (main): Adjust caller.
41285         * tests/test-fstatat.c (main): Likewise.
41286         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41287         Reported by Jim Meyering.
41288
41289 2009-11-09  James Youngman  <jay@gnu.org>
41290
41291         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41292         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41293
41294 2009-11-08  Jim Meyering  <meyering@redhat.com>
41295
41296         utimens: remove invalid futimesat call
41297         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41298         It used the file descriptor of the target file as the DIR_FD
41299         parameter and NULL as the file name.  That caused failure with
41300         errno == EFAULT on FreeBSD-8.0-rc2
41301
41302 2009-11-07  Eric Blake  <ebb9@byu.net>
41303
41304         fflush, freadseek: use fseeko, not fseek
41305         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41306         (clear_ungetc_buffer): Avoid potential problems on large files.
41307         * lib/freadseek.c (freadseek): Likewise.
41308         * modules/freadseek (Depends-on): Add fseeko.
41309         * modules/fseek (configure.ac): Set a witness.
41310         * tests/test-fflush.c (main): Use fseeko.
41311         * tests/test-fpurge.c (fseek): Disable link warning.
41312         * tests/test-freadable.c (fseek): Likewise.
41313         * tests/test-freading.c (fseek): Likewise.
41314         * tests/test-fseeko.c (fseek): Likewise.
41315         * tests/test-ftell.c (fseek): Likewise.
41316         * tests/test-ftello.c (fseek): Likewise.
41317         * tests/test-fwritable.c (fseek): Likewise.
41318         * tests/test-fwriting.c (fseek): Likewise.
41319
41320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41321
41322         * modules/memchr (Depends-on): Drop getpagesize dependency.
41323
41324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41325
41326         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41327         Reported by Ludovic Courtès.
41328         * build-aux/pmccabe2html: Improve example usage.
41329         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41330
41331 2009-11-06  Jim Meyering  <meyering@redhat.com>
41332
41333         do-release-commit-and-tag: New module.
41334         Automate the release-commit and tag process.
41335         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41336         * modules/do-release-commit-and-tag: New file.
41337         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41338
41339 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41340
41341         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41342         because test-select.c uses inet_pton.
41343
41344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41345
41346         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41347         GETADDRINFO_LIB.  Bump serial number.
41348         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41349         Suggested by Eric Blake <ebb9@byu.net>.
41350
41351 2009-11-05  Eric Blake  <ebb9@byu.net>
41352
41353         strtod: detect darwin bug
41354         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41355         Reported by Leo Davis.
41356
41357         freopen-safer: new module
41358         * modules/freopen-safer: New module.
41359         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41360         * lib/freopen-safer.c (freopen_safer): New file.
41361         * lib/stdio-safer.h (freopen_safer): New declaration.
41362         * lib/stdio--.h (freopen): New override.
41363         * MODULES.html.sh (File stream based Input/Output): Mention it.
41364         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41365         freopen-safer module.
41366         * doc/posix-functions/stderr.texi (stderr): Likewise.
41367         * doc/posix-functions/stdin.texi (stdin): Likewise.
41368         * doc/posix-functions/stdout.texi (stdout): Likewise.
41369         * modules/freopen-safer-tests: New test.
41370         * tests/test-reopen-safer.c: New file.
41371
41372 2009-11-05  Jim Meyering  <meyering@redhat.com>
41373
41374         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41375         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41376
41377 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41378
41379         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41380
41381 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41382
41383         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41384
41385 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41386
41387         Fix link error.
41388         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41389         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41390
41391 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41392
41393         * tests/test-func.c: Also test value of __func__.
41394
41395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41396
41397         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41398         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41399
41400 2009-11-05  Bruno Haible  <bruno@clisp.org>
41401
41402         Fix link error.
41403         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41404         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41405         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41406
41407 2009-11-05  Bruno Haible  <bruno@clisp.org>
41408
41409         Tests for module 'inet_pton'.
41410         * modules/inet_pton-tests: New file.
41411         * tests/test-inet_pton.c: New file.
41412
41413 2009-11-05  Bruno Haible  <bruno@clisp.org>
41414
41415         Tests for module 'inet_ntop'.
41416         * modules/inet_ntop-tests: New file.
41417         * tests/test-inet_ntop.c: New file.
41418
41419 2009-11-04  Eric Blake  <ebb9@byu.net>
41420
41421         stdlib-safer: wrap all mkstemp variants
41422         * modules/mkostemp (configure.ac): Set witness.
41423         * modules/mkostemps (configure.ac): Likewise.
41424         * modules/mkstemps (configure.ac): Likewise.
41425         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41426         (mkstemps_safer): Wrap more functions.
41427         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41428         wrapping.
41429         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41430         (mkstemps_safer): Implement the wrappers.
41431
41432         mkstemps, mkostemps: new modules
41433         * modules/mkostemps: New module.
41434         * modules/mkstemps: Likewise.
41435         * lib/mkostemps.c (mkostemps): New file.
41436         * lib/mkstemps.c (mkstemps): Likewise.
41437         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41438         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41440         * modules/stdlib (Makefile.am): Substitute them.
41441         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41442         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41443         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41444         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41445         * MODULES.html.sh (File system functions): Mention them.
41446
41447         tempname: resync from glibc
41448         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41449         same values for __GT_FILE as glibc.  Abort even when assertions
41450         are disabled.
41451         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41452         match its value otherwise.  Allow idempotent inclusion.
41453         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41454         * lib/mkostemp.c (mkostemp): Likewise.
41455         * lib/mkstemp.c (mkstemp): Likewise.
41456         * lib/tmpfile.c (tmpfile): Likewise.
41457         * NEWS: Document this.
41458
41459         utimens: fix use of futimens on older Linux
41460         * lib/utimens.c (fdutimens): Use updated, rather than original,
41461         timespec to avoid bug in older Linux kernel.
41462         Reported by Simon Josefsson.
41463
41464 2009-11-04  Bruno Haible  <bruno@clisp.org>
41465
41466         Make num_processors more flexible and consistent.
41467         * lib/nproc.h (enum nproc_query): New type.
41468         (num_processors): Add a 'query' argument.
41469         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41470         (num_processors): Add a 'query' argument. Test the value of the
41471         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41472         mingw, count the number of CPUs available for the current process.
41473         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41474         Check for sched_getaffinity and sched_getaffinity_np.
41475         * modules/nproc (Depends-on): Add c-ctype, extensions.
41476         * NEWS: Mention the change.
41477
41478 2009-11-03  Bruno Haible  <bruno@clisp.org>
41479
41480         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41481
41482 2009-11-03  Jim Meyering  <meyering@redhat.com>
41483
41484         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41485         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41486         if it is defined.
41487
41488 2009-11-02  Eric Blake  <ebb9@byu.net>
41489
41490         mktime, timegm: share common declaration
41491         * lib/mktime-internal.h: New file.
41492         * lib/mktime.c: Use it rather than open-coding a declaration.
41493         * lib/timegm.c: Likewise.
41494         * modules/mktime (Files): Ship it.
41495         * modules/timegm (Files): Likewise.
41496         Suggested by Bruno Haible.
41497
41498         test-update-copyright: update test to match script changes
41499         * tests/test-update-copyright.sh: Avoid hard-coding perl
41500         location.  Don't update *.bak created by earlier runs.
41501
41502 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41503             Simon Josefsson  <simon@josefsson.org>
41504             Bruno Haible  <bruno@clisp.org>
41505
41506         Fix link error on Solaris 8.
41507         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41508         also in libnsl. Define also INET_PTON_LIB.
41509         * modules/inet_pton (Link): New section.
41510
41511 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41512             Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41515         * modules/inet_ntop (Link): New section.
41516         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41517
41518 2009-11-02  Eric Blake  <ebb9@byu.net>
41519
41520         maint: avoid compiler warnings in m4 macros
41521         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41523
41524 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41525
41526         * m4/pmccabe2html.m4: Remove file.
41527         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41528         function.  Change maintainer.
41529         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41530         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41531         Courtès).
41532
41533 2009-10-31  Eric Blake  <ebb9@byu.net>
41534
41535         fseeko: fix m4 regression
41536         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41537         regression from 2009-10-27.
41538         Reported by Ralf Wildenhues.
41539
41540 2009-10-31  Jim Meyering  <meyering@redhat.com>
41541
41542         inttostr: aesthetics and improved (compile-time) safety
41543         Define inttype_is_signed rather than inttype_is_unsigned,
41544         since the sole use is via "#if inttype_is_signed".
41545         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41546         inttype_is_unsigned.
41547         * lib/offtostr.c (inttype_is_signed): Likewise.
41548         * lib/uinttostr.c (inttype_is_signed): Likewise.
41549         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41550         * lib/inttostr.c (inttostr): Use verify to cross-check the
41551         inttype_is_signed value and the signedness of the actual type.
41552         * modules/inttostr (Depends-on): Add verify.
41553
41554 2009-10-30  Eric Blake  <ebb9@byu.net>
41555
41556         build: avoid compiler warnings
41557         * lib/fchmodat.c (lchmod): Mark unused variables.
41558         * lib/getopt.c (_getopt_initialize): Likewise.
41559         * lib/mktime.c (__mktime_internal): Provide prototype.
41560         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41561         older gcc that do not understand #pragma GCC diagnostic.
41562         * lib/uinttostr.c (inttype_is_unsigned): Define.
41563         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41564
41565 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41566
41567         stat: fix compilation on AIX
41568         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41569         only see struct stat64.
41570
41571 2009-10-30  Eric Blake  <ebb9@byu.net>
41572
41573         exclude: make more robust
41574         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41575         rather than masking a coding bug.
41576         Suggested by Bruno Haible.
41577
41578 2009-10-30  Jim Meyering  <meyering@redhat.com>
41579
41580         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41581         Rather than putting #!/usr/bin/perl on the first line,
41582         start with a variant of what's recommended by "man perlrun" that
41583         invokes the first "perl" program from your shell's search path.
41584         * build-aux/gitlog-to-changelog: Replace #!... as above.
41585         Add a "Local Variables" perl mode setting.
41586         Prompted by a patch from Ludovic Courtès.
41587         Improved by Eric Blake.
41588         * build-aux/useless-if-before-free: Likewise.
41589         * build-aux/announce-gen: Likewise.
41590         * build-aux/update-copyright: Likewise.
41591
41592 2009-10-29  Eric Blake  <ebb9@byu.net>
41593
41594         filenamecat-lgpl: adjust clients
41595         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41596         filenamecat.
41597         * modules/renameat (Depends-on): Likewise.
41598
41599         filenamecat: split into filenamecat-lgpl
41600         * modules/filenamecat-lgpl: New module.
41601         * modules/filenamecat (Files): Move library-safe files into
41602         filenamecat-lgpl.
41603         (Depends-on): Add filenamecat-lgpl.
41604         (configure.ac): Declare witness.
41605         * lib/filenamecat.h (file_name_concat): Only declare when using
41606         GPL module.
41607         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41608         Move...
41609         * lib/filenamecat-lgpl.c: ...into new file.
41610         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41611         (gl_FILE_NAME_CONCAT): Use it.
41612         * MODULES.html.sh (File system functions): Mention new module.
41613
41614         argp: avoid memory leak
41615         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41616         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41617         base_name, since the latter malloc()s and can call exit().
41618         Leak introduced 2006-07-03.
41619
41620         dirname-lgpl: adjust clients that don't need full dirname
41621         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41622         * modules/filenamecat (Depends-on): Likewise.
41623         * modules/linkat (Depends-on): Likewise.
41624         * modules/mkancesdirs (Depends-on): Likewise.
41625         * modules/mkdir (Depends-on): Likewise.
41626         * modules/openat (Depends-on): Likewise.
41627         * modules/savewd (Depends-on): Likewise.
41628         * modules/rename (Depends-on): Likewise.
41629         (License): Relax license.
41630         * modules/mkdir-tests (Depends-on): Drop progname.
41631         (Makefile.am): Delete unneeded LDADD.
41632         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41633
41634         dirname: split into dirname-lgpl
41635         * modules/dirname-lgpl: New module.
41636         * modules/dirname (Files): Move library-safe files into
41637         dirname-lgpl.
41638         (Depends-on): Add dirname-lgpl.
41639         (configure.ac): Declare witness.
41640         * modules/double-slash-root (License): Relax license.
41641         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41642         module.
41643         * lib/dirname.c (dir_len, mdir_name): Move...
41644         * lib/dirname-lgpl.c: ...into new file.
41645         * lib/basename.c (last_component, base_len): Move...
41646         * lib/basename-lgpl.c: ...into new file.
41647         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41648         (gl_DIRNAME): Use it.
41649         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41650         Mention new module.
41651         * modules/dirname-tests (Depends-on): Add progname.
41652         * tests/test-dirname.c (program_name): Delete.
41653
41654         mkdir: make safe for libraries
41655         * modules/mkdir (Depends-on): Drop xalloc.
41656         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41657         exit.
41658
41659         tests: avoid some compiler warnings
41660         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41661         literals.
41662         * tests/test-memchr.c (main): Avoid type mismatch.
41663         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41664         * tests/test-base64.c (main): Likewise.
41665         * tests/test-getdelim.c (main): Likewise.
41666         * tests/test-gethostname.c (main): Likewise.
41667         * tests/test-getline.c (main): Likewise.
41668         * tests/test-netinet_in.c (main): Likewise.
41669         * tests/test-select.c (open_server_socket, main): Likewise.
41670         * tests/test-select-stdin.c (main): Likewise.
41671         * tests/test-sockets.c (main): Likewise.
41672         * tests/test-strsignal.c (main): Likewise.
41673         * tests/test-sys_select.c (main): Likewise.
41674         * tests/test-sys_socket.c (main): Likewise.
41675         * tests/test-u64.c (main): Likewise.
41676         * tests/test-xfprintf-posix.c (main): Likewise.
41677         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41678
41679         sockets: avoid compiler warning
41680         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41681
41682         maint: detect usage(1) and other suspicious exits
41683         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41684
41685 2009-10-29  Jim Meyering  <meyering@redhat.com>
41686
41687         timespec: long-to-int truncation could make timespec_cmp malfunction
41688         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41689         a multiple of 2^32 nanoseconds as no difference.
41690
41691 2009-10-28  Jim Meyering  <meyering@redhat.com>
41692
41693         fprintftime: wrap macro code argument in "do {...} while(0)"
41694         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41695         cpy macro must be a statement that can be followed by a semicolon.
41696         Now that the else clause contains a comment and is hence longer
41697         than one line, I require curly braces.  That in turn requires
41698         that we wrap this code block in the standard do...while(0).
41699
41700         fprintftime: remove stray semicolon from previous change
41701         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41702
41703         fprintftime: avoid a warning about ignored fwrite return value
41704         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41705         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41706         that is unsafe.
41707         * modules/fprintftime (Depends-on): Add ignore-value.
41708
41709         exclude: avoid an unwarranted warning
41710         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41711
41712 2009-10-27  Eric Blake  <ebb9@byu.net>
41713
41714         fseek: avoid compilation failure when fflush is replaced
41715         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41716         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41717         module is in use.
41718         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41719         module is not in use; since REPLACE_FSEEK worked otherwise.
41720         (GNULIB_FTELLO): Likewise for ftell.
41721         Reported by Ian Beckwith and others.
41722
41723 2009-10-27  Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41726         Reported by Jim Meyering.
41727
41728 2009-10-27  Jim Meyering  <jim@meyering.net>
41729             Bruno Haible  <bruno@clisp.org>
41730
41731         Avoid warning despite dropping the return value of fwrite.
41732         * lib/unicodeio.c: Include ignore-value.h.
41733         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41734         * modules/unicodeio (Depends-on): Add ignore-value.
41735
41736 2009-10-26  Eric Blake  <ebb9@byu.net>
41737
41738         areadlinkat: fix fallback path
41739         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41740         pointer and zero.
41741
41742 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41743
41744         Use a better IO block size for modern systems
41745         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41746         * lib/md2.c: Likewise.
41747         * lib/md4.c: Likewise.
41748         * lib/md5.c: Likewise.
41749         * lib/sha1.c: Likewise.
41750         * lib/sha256.c: Likewise.
41751         * lib/sha512.c: Likewise.
41752
41753 2009-10-22  Eric Blake  <ebb9@byu.net>
41754
41755         tests: avoid several compiler warnings
41756         * tests/test-getcwd.c (main): Avoid buffer underflow.
41757         * tests/test-getdate.c (main): String literals are not safe with
41758         putenv, so use setenv.  Declare unused argument.
41759         * modules/getdate-tests (Depends-on): Add setenv.
41760         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41761         problems with string literals in char *.
41762         * tests/test-hash.c (main): Avoid shadowing declaration.
41763         (insert_new): Treat string literals as char const *.
41764         * tests/test-getopt.h (test_getopt): Likewise.
41765         (getopt_loop): Alter types to minimize casting elsewhere.
41766         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41767         (test_getopt_long_posix): Likewise.
41768         (do_getopt_long): Add wrapper to minimize casting.
41769         * tests/test-atexit.c (clear_temp_file): Use void.
41770         * tests/test-areadlink-with-size.c (main): Declare unused
41771         arguments.
41772         * tests/test-areadlink.c (main): Likewise.
41773         * tests/test-areadlinkat-with-size.c (main): Likewise.
41774         * tests/test-areadlinkat.c (main): Likewise.
41775         * tests/test-canonicalize-lgpl.c (main): Likewise.
41776         * tests/test-canonicalize.c (main): Likewise.
41777         * tests/test-dirent-safer.c (main): Likewise.
41778         * tests/test-dirname.c (main): Likewise.
41779         * tests/test-dup2.c (main): Likewise.
41780         * tests/test-fchdir.c (main): Likewise.
41781         * tests/test-fcntl-h.c (main): Likewise.
41782         * tests/test-fcntl-safer.c (main): Likewise.
41783         * tests/test-fdopendir.c (main): Likewise.
41784         * tests/test-fdutimensat.c (main): Likewise.
41785         * tests/test-fflush.c (main): Likewise.
41786         * tests/test-filenamecat.c (main): Likewise.
41787         * tests/test-filevercmp.c (main): Likewise.
41788         * tests/test-fopen-safer.c (main): Likewise.
41789         * tests/test-fopen.c (main): Likewise.
41790         * tests/test-fpending.c (main): Likewise.
41791         * tests/test-fpurge.c (main): Likewise.
41792         * tests/test-freading.c (main): Likewise.
41793         * tests/test-fstatat.c (main): Likewise.
41794         * tests/test-fsync.c (main): Likewise.
41795         * tests/test-futimens.c (main): Likewise.
41796         * tests/test-getndelim2.c (main): Likewise.
41797         * tests/test-gettimeofday.c (main): Likewise.
41798         * tests/test-getopt.c (main): Likewise.
41799         * tests/test-i-ring.c (main): Likewise.
41800         * tests/test-inttypes.c (main): Likewise.
41801         * tests/test-link.c (main): Likewise.
41802         * tests/test-lstat.c (main): Likewise.
41803         * tests/test-math.c (main): Likewise.
41804         * tests/test-md5.c (main): Likewise.
41805         * tests/test-memchr2.c (main): Likewise.
41806         * tests/test-memrchr.c (main): Likewise.
41807         * tests/test-mkdir.c (main): Likewise.
41808         * tests/test-mkdirat.c (main): Likewise.
41809         * tests/test-mkfifoat.c (main): Likewise.
41810         * tests/test-open.c (main): Likewise.
41811         * tests/test-openat-safer.c (main): Likewise.
41812         * tests/test-openat.c (main): Likewise.
41813         * tests/test-quotearg.c (main): Likewise.
41814         * tests/test-rawmemchr.c (main): Likewise.
41815         * tests/test-readlink.c (main): Likewise.
41816         * tests/test-remove.c (main): Likewise.
41817         * tests/test-rename.c (main): Likewise.
41818         * tests/test-renameat.c (main): Likewise.
41819         * tests/test-rmdir.c (main): Likewise.
41820         * tests/test-sha1.c (main): Likewise.
41821         * tests/test-signal.c (main): Likewise.
41822         * tests/test-sigaction.c (main): Likewise.
41823         * tests/test-stat.c (main): Likewise.
41824         * tests/test-stat-time.c (main): Likewise.
41825         * tests/test-stddef.c (main): Likewise.
41826         * tests/test-stdint.c (main): Likewise.
41827         * tests/test-stdio.c (main): Likewise.
41828         * tests/test-stdlib.c (main): Likewise.
41829         * tests/test-strchrnul.c (main): Likewise.
41830         * tests/test-strerror.c (main): Likewise.
41831         * tests/test-string.c (main): Likewise.
41832         * tests/test-strtod.c (main): Likewise.
41833         * tests/test-strverscmp.c (main): Likewise.
41834         * tests/test-symlink.c (main): Likewise.
41835         * tests/test-symlinkat.c (main): Likewise.
41836         * tests/test-sys_stat.c (main): Likewise.
41837         * tests/test-sys_time.c (main): Likewise.
41838         * tests/test-time.c (main): Likewise.
41839         * tests/test-unistd.c (main): Likewise.
41840         * tests/test-unlink.c (main): Likewise.
41841         * tests/test-unlinkat.c (main): Likewise.
41842         * tests/test-utimens.c (main): Likewise.
41843         * tests/test-utimensat.c (main): Likewise.
41844         * tests/test-version-etc.c (main): Likewise.
41845         * tests/test-wchar.c (main): Likewise.
41846         * tests/test-wctype.c (main): Likewise.
41847         * tests/test-xprintf-posix.c (main): Likewise.
41848         * tests/test-posixtm.c (main): Likewise.
41849         (STREQ): Delete unused macro.
41850         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41851         shadowed variables.
41852         * tests/test-memchr.c (main): Likewise.
41853
41854 2009-10-21  Eric Blake  <ebb9@byu.net>
41855
41856         areadlinkat: avoid failure on older glibc
41857         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41858         rather than mis-comparing 0 against FUNC_RESULT of char*.
41859
41860 2009-10-21  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/stpncpy (License): Relicense under LGPLv2+.
41863         Reported by David Lutterkort <lutter@redhat.com>.
41864
41865 2009-10-20  Eric Blake  <ebb9@byu.net>
41866
41867         utimensat: work around Solaris 9 bug
41868         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41869         has trailing slash bugs.
41870         * tests/test-lutimens.h (test_lutimens): Enhance test.
41871         * tests/test-utimens.h (test_utimens): Likewise.
41872         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41873         * doc/posix-functions/utimes.texi (utimes): Likewise.
41874         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41875         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41876         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41877         * doc/posix-functions/futimens.texi (futimens): Likewise.
41878
41879         fdutimensat: new module
41880         * modules/fdutimensat: New file.
41881         * lib/fdutimensat.c (fdutimensat): Likewise.
41882         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41883         * MODULES.html.sh (File system functions): Mention module.
41884         * modules/fdutimensat-tests: New test.
41885         * tests/test-fdutimensat.c: Likewise.
41886
41887         doc: regenerate INSTALL
41888         * doc/INSTALL: Reflect recent autoconf update.
41889         * doc/INSTALL.ISO: Likewise.
41890         * doc/INSTALL.UTF-8: Likewise.
41891
41892 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41893
41894         acl: warn if ACL support is not detected
41895         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41896
41897 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41898
41899         * lib/nproc.h: Add extern "C" block for C++.
41900
41901 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41902             Bruno Haible  <bruno@clisp.org>
41903
41904         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41905         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41906         * doc/posix-functions/isalpha.texi: Likewise.
41907         * doc/posix-functions/isblank.texi: Likewise.
41908         * doc/posix-functions/iscntrl.texi: Likewise.
41909         * doc/posix-functions/isdigit.texi: Likewise.
41910         * doc/posix-functions/isgraph.texi: Likewise.
41911         * doc/posix-functions/islower.texi: Likewise.
41912         * doc/posix-functions/isprint.texi: Likewise.
41913         * doc/posix-functions/ispunct.texi: Likewise.
41914         * doc/posix-functions/isspace.texi: Likewise.
41915         * doc/posix-functions/isupper.texi: Likewise.
41916         * doc/posix-functions/isxdigit.texi: Likewise.
41917
41918 2009-10-18  Bruno Haible  <bruno@clisp.org>
41919
41920         Tests for module 'isblank'.
41921         * modules/isblank-tests: New file.
41922         * tests/test-isblank.c: New file.
41923
41924         New module 'isblank'.
41925         * lib/isblank.c: New file.
41926         * m4/isblank.m4: New file.
41927         * modules/isblank: New file.
41928         * doc/posix-functions/isblank.texi: Mention the new module.
41929
41930 2009-10-18  Bruno Haible  <bruno@clisp.org>
41931
41932         New module 'ctype'.
41933         * lib/ctype.in.h: New file.
41934         * m4/ctype.m4: New file.
41935         * modules/ctype: New file.
41936         * doc/posix-headers/ctype.texi: Mention the new module.
41937
41938 2009-10-18  Jim Meyering  <meyering@redhat.com>
41939
41940         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41941         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41942         right after its initialization, rather than farther down.
41943         Keeping these in close proximity makes it easier to ensure
41944         that each such variable is initialized.  E.g.,
41945
41946             LIB_CLOCK_GETTIME=
41947             AC_SUBST([LIB_CLOCK_GETTIME])
41948
41949         This change also increments these serial numbers.
41950         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41951         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41953
41954 2009-10-18  Bruno Haible  <bruno@clisp.org>
41955
41956         Don't let environment variables perturb build.
41957         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41958         (gl_PREREQ_GETHRXTIME): ... not here.
41959
41960 2009-10-18  Bruno Haible  <bruno@clisp.org>
41961
41962         Avoid symlink attack in localcharset module.
41963         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41964         (O_NOFOLLOW): Define fallback.
41965         (get_charset_aliases): Don't open the file if it is a symbolic link.
41966         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41967         gl_FCNTL_H.
41968         (gl_FCNTL_H): Require it.
41969         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41970         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41971         Reported by Fergal Glynn <fglynn@veracode.com>.
41972
41973 2009-10-18  Bruno Haible  <bruno@clisp.org>
41974
41975         Implement nproc for mingw.
41976         * lib/nproc.c: Include <windows.h>
41977         (num_processors): On native Windows platforms, try GetSystemInfo.
41978
41979 2009-10-18  Bruno Haible  <bruno@clisp.org>
41980
41981         Implement nproc for IRIX.
41982         * lib/nproc.c: Include <sys/sysmp.h>.
41983         (num_processors): On IRIX systems, try sysmp.
41984         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41985
41986 2009-10-18  Bruno Haible  <bruno@clisp.org>
41987
41988         Implement nproc for HP-UX.
41989         * lib/nproc.c: Include <sys/pstat.h>
41990         (num_processors): On HP-UX systems, try pstat_getdynamic.
41991         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41992         pstat_getdynamic.
41993
41994 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41995             Bruno Haible  <bruno@clisp.org>
41996
41997         Implement nproc for NetBSD, OpenBSD.
41998         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41999         (ARRAY_SIZE): New macro.
42000         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42001         * m4/nproc.m4: New file.
42002         * modules/nproc (Files): Add m4/nproc.m4.
42003         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42004         (Makefile.am): Instead, augment lib_SOURCES.
42005
42006 2009-10-18  Bruno Haible  <bruno@clisp.org>
42007
42008         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42009         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42010         sys/param.h.
42011
42012 2009-10-16  Eric Blake  <ebb9@byu.net>
42013
42014         utimensat: new module
42015         * modules/utimensat: New file.
42016         * lib/utimensat.c (utimensat): Likewise.
42017         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42018         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42019         so we can work around Linux bugs.
42020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42021         * modules/sys_stat (Makefile.am): Substitute them.
42022         * lib/sys_stat.in.h (utimensat): Declare it.
42023         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42024         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42025         * modules/utimensat-tests: New test.
42026         * tests/test-utimensat.c: Likewise.
42027
42028         utimens: let lutimens work on non-symlinks
42029         * lib/utimens.c (lutimens): Fall back to utimens rather than
42030         failing with ENOSYS, when file is not a symlink.
42031         (utimens): Reduce redirection.
42032         * tests/test-lutimens.h (test_lutimens): Update test to cover
42033         non-symlinks.
42034         * tests/test-utimens.h (test_utimens): Update test to cover
42035         symlinks.
42036         * tests/test-utimens.c (main): Update caller.
42037
42038         utimens: cache whether utimensat syscall works
42039         * lib/utimens.c (utimensat_works_really): New cache variable.
42040         (fdutimens, lutimens): Use it to avoid failing syscall.
42041
42042         test-stat-time, test-utimens: improve portability
42043         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42044         ext4 on alpha, and for cygwin.
42045         * tests/test-utimens-common.h: New file.
42046         (nap): Factor delays into single function.
42047         * tests/test-lutimens.h (test_lutimens): Use new header.
42048         * tests/test-futimens.h (test_futimens): Likewise.
42049         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42050         timestamps to occur from same machine, as was done previously for
42051         test_utimens.
42052         * modules/utimens-tests (Files): Ship new file.
42053         * modules/futimens-tests (Files): Likewise.
42054         Reported in part by Jim Meyering.
42055
42056         sys_stat: sort replacement declarations
42057         * lib/sys_stat.in.h: Sort declarations.
42058         * lib/futimens.c (futimens): Fix typo.
42059
42060 2009-10-15  Jim Meyering  <meyering@redhat.com>
42061
42062         don't let environment settings perturb build
42063         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42064         could cause a configure-time and/or build-time malfunction.
42065         Typically, a configure-time function-in-library test is performed
42066         via code like this:
42067
42068           LIB_VAR=
42069           AC_SUBST([LIB_VAR])
42070           prefix_saved_LIBS=$LIBS
42071             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42072                        [test "$ac_cv_search_FUNC" = "none required" ||
42073                         LIB_VAR=$ac_cv_search_FUNC])
42074           LIBS=$prefix_saved_LIBS
42075
42076         However, in each of the files affected by this change, the LIB_VAR=
42077         initialization was omitted.  Thus, when set in the environment, its
42078         value would propagate into generated Makefiles when FUNC is not found
42079         in LIB_NAME.
42080         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42083
42084 2009-10-14  Eric Blake  <ebb9@byu.net>
42085
42086         fchdir: avoid infinite recursion in mingw
42087         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42088         recursing.
42089
42090         test-stat-time: port to mingw
42091         * tests/test-stat-time.c (force_unlink): Return a value.
42092         (test_ctime) [W32]: Fix compilation error.
42093         (nap): Don't call usleep with too large an argument.  Use
42094         force_unlink.
42095         * doc/pastposix-functions/usleep.texi (usleep): Document the
42096         portability issue.
42097
42098 2009-10-13  Jim Meyering  <meyering@redhat.com>
42099
42100         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42101         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42102         * modules/pipe-filter-ii: Likewise.
42103         * modules/sys_socket-tests: Likewise.
42104         * modules/tsearch-tests: Likewise.
42105         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42106         (check): Depend on it.
42107
42108 2009-10-12  Eric Blake  <ebb9@byu.net>
42109
42110         utimens-tests: port to NFS file systems
42111         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42112         comparisons to avoid spurious failures from timestamp drift
42113         between NFS machines.
42114
42115 2009-10-12  Eric Blake  <ebb9@byu.net>
42116
42117         stat-time-tests: minor cleanups
42118         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42119         * tests/test-stat-time.c (nap): Separate assignment from call.
42120         Suggested by Paolo Bonzini and Bruno Haible.
42121
42122         sys_stat: guarantee struct timespec
42123         * lib/sys_stat.in.h (includes): Always include <time.h>
42124         * modules/sys_stat (Depends-on): Add time.
42125         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42126         mode_t permission values.
42127         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42128         get at subsecond timestamps.
42129
42130 2009-10-10  Eric Blake  <ebb9@byu.net>
42131
42132         futimens: new module
42133         * modules/futimens: New file.
42134         * lib/futimens.c (futimens): Likewise.
42135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42136         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42137         we can work around Linux bugs.
42138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42139         * modules/sys_stat (Makefile.am): Substitute them.
42140         * lib/sys_stat.in.h (futimens): Declare it.
42141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42142         * doc/posix-functions/futimens.texi (futimens): Likewise.
42143         * modules/futimens-tests: New test.
42144         * tests/test-futimens.c: Likewise.
42145
42146         utimens: introduce fdutimens
42147         * lib/utimens.h (fdutimens): New prototype.
42148         * lib/utimens.c (gl_futimens): Move guts...
42149         (fdutimens): ...to new interface.
42150         * tests/test-utimens.c (do_fdutimens): Use it.
42151
42152         utimens: add UTIME_NOW and UTIME_OMIT support
42153         * lib/utimens.c (validate_timespec, update_timespec): New helper
42154         functions.
42155         (gl_futimens, lutimens): Use them.
42156         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42157         stdbool, sys_stat.
42158         (Link): Mention resulting library dependency.
42159         * modules/utimecmp (Link): Likewise.
42160         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42161         (Makefile.am): Pick up library dependency.
42162         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42163         definition.
42164         * tests/test-sys_stat.c: Test the definitions.
42165         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42166         * NEWS: Document library dependency.
42167
42168         utimecmp: support symlink timestamps
42169         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42170         hashing when possible.  Use pathconf when available.
42171         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42172         * modules/utimecmp (Depends-on): Add lstat.
42173
42174         utimens: add lutimens interface
42175         * lib/utimens.c (lutimens): New function.
42176         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42177         * lib/utimens.h (lutimens): Declare new interface.
42178         * tests/test-utimens.c (main): Enhance test.
42179         * tests/test-lutimens.h (test_lutimens): New file.
42180         * modules/utimens-tests (Files): Distribute it.
42181         (Depends-on): Add symlink.
42182         (configure.ac): Check for usleep.
42183
42184         utimens: validate futimens usage
42185         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42186         fewer syscalls on failure later on.  Avoid compiler warning on
42187         mingw.
42188         * modules/utimens (Depends-on): Add dup2.
42189
42190         utimens: add test
42191         * modules/utimens-tests: New test.
42192         * tests/test-utimens.h: New file.
42193         * tests/test-futimens.h: Likewise.
42194         * tests/test-utimens.c: Likewise.
42195
42196         doc: mention timestamp portability issues
42197         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42198         instead.
42199         * doc/posix-functions/utime.texi (utime): Likewise.
42200         * doc/posix-functions/utimes.texi (utimes): Likewise.
42201         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42202         instead.
42203         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42204         module.
42205         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42206         Mention weakness with symlink timestamps.
42207         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42208         to utimensat/futimens instead.
42209         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42210
42211         test-dup2: enhance test
42212         * tests/test-dup2.c (main): Also check AT_FDCWD.
42213
42214         test-stat-time: avoid more spurious failures
42215         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42216         xfs; and avoid race if the two timestamps cross quantization edge.
42217
42218         relocatable: prefer 'file system' over 'filesystem'
42219         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42220         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42221         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42222         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42223         * lib/relocatable.c (compute_curr_prefix): Likewise.
42224
42225 2009-10-10  Jim Meyering  <meyering@redhat.com>
42226
42227         stat-time-tests: check for the usleep function
42228         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42229
42230 2009-10-10  Bruno Haible  <bruno@clisp.org>
42231
42232         * modules/xnanosleep: Put the Link section after the Include section.
42233
42234 2009-10-09  Eric Blake  <ebb9@byu.net>
42235
42236         dup2: work around FreeBSD 6.1 bug
42237         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42238         * doc/posix-functions/dup2.texi (dup2): Document it.
42239         Reported by Nelson H. F. Beebe and Jim Meyering.
42240
42241         test-stat-time: port to buggy NFS clients
42242         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42243         (test_ctime): Also skip test if mtime and ctime are skewed.
42244
42245         maint: prefer 'file system' over 'filesystem'
42246         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42247         * doc/posix-functions/lstat.texi (lstat): Likewise.
42248         * lib/file-has-acl.c (file_has_acl): Likewise.
42249         * lib/fwriteerror.c [TEST]: Likewise.
42250         * tests/test-areadlink.h (test_areadlink): Likewise.
42251         * tests/test-areadlinkat-with-size.c (main): Likewise.
42252         * tests/test-areadlinkat.c (main): Likewise.
42253         * tests/test-canonicalize-lgpl.c (main): Likewise.
42254         * tests/test-canonicalize.c (main): Likewise.
42255         * tests/test-fstatat.c (main): Likewise.
42256         * tests/test-linkat.c (main): Likewise.
42257         * tests/test-lstat.h (test_lstat_func): Likewise.
42258         * tests/test-mkdir.h (test_mkdir): Likewise.
42259         * tests/test-readlink.h (test_readlink): Likewise.
42260         * tests/test-remove.c (main): Likewise.
42261         * tests/test-rename.h (test_rename): Likewise.
42262         * tests/test-renameat.c (main): Likewise.
42263         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42264         * tests/test-symlink.h (test_symlink): Likewise.
42265         * tests/test-symlinkat.c (main): Likewise.
42266         * tests/test-unlink.h (test_unlink_func): Likewise.
42267         * tests/test-unlinkat.c (main): Likewise.
42268
42269         maint: make realtime library usage explicit
42270         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42271         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42272         * modules/settime (Link): Likewise.
42273         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42274
42275         test-stat-time: speed up execution
42276         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42277         warning on mingw.
42278         (nap): New helper function.
42279         (prepare_test): Use it to reduce sleep time.
42280         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42281         execution.
42282         * modules/stat-time-tests (configure.ac): Check for usleep.
42283
42284 2009-10-09  Jim Meyering  <meyering@redhat.com>
42285
42286         selinux-h: always use getfilecon wrappers
42287         * lib/getfilecon.c: New file.
42288         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42289         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42290         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42291         (fgetfilecon): Provide a stub.
42292         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42293         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42294         file unconditionally.
42295         When <selinux/selinux.h> is found, arrange to use wrappers.
42296         * modules/selinux-h (Files): Add getfilecon.c.
42297         (Makefile.am): Substitute include-next-related bits
42298         into the now-always-generated selinux/selinux.h file.
42299         * doc/glibc-functions/lgetfilecon.texi: New file.
42300         * doc/glibc-functions/fgetfilecon.texi: New file.
42301         * doc/glibc-functions/getfilecon.texi: New file.
42302         * doc/glibc-functions/getfilecon-desc.texi: New file.
42303         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42304         which to pull in the new files.
42305         * MODULES.html.sh (Misc): Add selinux-h.
42306
42307 2009-10-08  Jim Meyering  <meyering@redhat.com>
42308
42309         unistd: fix comment typo
42310         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42311
42312 2009-10-08  Eric Blake  <ebb9@byu.net>
42313
42314         areadlink: use SIZE_MAX consistently
42315         * modules/areadlink (Depends-on): Add stdint.
42316         * modules/areadlink-with-size (Depends-on): Likewise.
42317         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42318         gives NULL; drop sys/types, since unistd gives size_t; and add
42319         stdint for SIZE_MAX.
42320         (SIZE_MAX): Rely on headers.
42321         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42322         and add stdint.
42323         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42324         (SIZE_MAX): Likewise.
42325         (INITIAL_BUF_SIZE): Turn into enum.
42326         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42327
42328 2009-10-08  Jim Meyering  <meyering@redhat.com>
42329
42330         areadlinkat: avoid compilation failure
42331         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42332         Fix typo in comment.
42333
42334 2009-10-07  Eric Blake  <ebb9@byu.net>
42335
42336         areadlinkat-with-size: new module
42337         * modules/areadlinkat-with-size: New module.
42338         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42339         * lib/areadlink.h (areadlinkat): Declare it.
42340         * MODULES.html.sh (File system functions): Mention it.
42341         * modules/areadlinkat-with-size-tests: New test.
42342         * tests/test-areadlinkat-with-size.c: New file.
42343
42344         xreadlinkat: new module
42345         * modules/xreadlinkat: New module.
42346         * lib/xreadlinkat.c (xreadlinkat): New file.
42347         * lib/xreadlink.h (xreadlinkat): Declare it.
42348         * MODULES.html.sh (File system functions): Mention it.
42349
42350         areadlinkat: new module
42351         * lib/at-func.c (FUNC_FAIL): New define.
42352         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42353         * modules/areadlinkat: New module.
42354         * lib/linkat.c (areadlinkat): Move...
42355         * lib/areadlinkat.c (areadlinkat): ...to new file.
42356         * lib/areadlink.h (areadlinkat): Declare it.
42357         * modules/linkat (Depends-on): Add areadlinkat.
42358         * MODULES.html.sh (File system functions): Mention it.
42359         * modules/areadlinkat-tests: New test.
42360         * tests/test-areadlinkat.c: New file.
42361
42362         areadlink, areadlink-with-size: add tests
42363         * modules/areadlink-tests: New test.
42364         * modules/areadlink-with-size-tests: Likewise.
42365         * tests/test-areadlink.h: New file.
42366         * tests/test-areadlink.c: Likewise.
42367         * tests/test-areadlink-with-size.c: Likewise.
42368
42369         maint: minor cleanups
42370         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42371         _UNUSED_PARAMETER_ instead.
42372         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42373         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42374         * modules/linkat-tests (Files): Distribute test-link.h.
42375
42376         openat, utimens: whitespace cleanup
42377         * lib/openat.c: Prefer space throughout, rather than mix of 8
42378         spaces vs. tabs.
42379         * lib/at-func.c: Likewise.
42380         * lib/utimens.c: Likewise.
42381
42382         openat: avoid using wrong fd
42383         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42384         working directory chooses same fd.
42385         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42386
42387         mkdir, mkdirat: fix cygwin 1.5.x bug
42388         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42389         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42390         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42391         bug.
42392         (gl_PREREQ_MKDIR): Delete unused macro.
42393         * modules/mkdir (Files): Track file rename.
42394         (configure.ac): Update macro name.
42395         * modules/openat (Depends-on): Add mkdir.
42396         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42397
42398         mkdir, mkdirat: add tests
42399         * modules/mkdir-tests: New test.
42400         * tests/test-mkdir.h: New file.
42401         * tests/test-mkdir.c: Likewise.
42402         * tests/test-mkdirat.c: Likewise.
42403         * modules/openat-tests (Files): Add new files.
42404         (Makefile.am): Run new test.
42405
42406 2009-10-06  Eric Blake  <ebb9@byu.net>
42407
42408         doc: tweak *at function documentation
42409         * doc/posix-functions/faccessat.texi (faccessat): Mention
42410         known issue with replacement.
42411         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42412         * doc/posix-functions/linkat.texi (linkat): Likewise.
42413         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42414         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42415         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42416         * doc/posix-functions/renameat.texi (renameat): Likewise.
42417         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42418
42419         openat: fix GNU/Hurd bug in unlinkat
42420         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42421         broken.
42422         * doc/posix-functions/unlink.texi (unlink): Document this.
42423         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42424
42425         fdopendir: fix GNU/Hurd bug
42426         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42427         allowing non-directory fds.
42428         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42430         * modules/dirent (Makefile.am): Substitute it.
42431         * lib/dirent.in.h (fdopendir): Declare replacement.
42432         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42433         * tests/test-fdopendir.c (main): Test something other than
42434         /dev/null, since on Hurd that behaves like a directory.
42435
42436         test-symlink: port to GNU/Hurd
42437         * tests/test-symlink.h (test_symlink): Relax expected errno.
42438
42439         doc: tweak more cygwin information
42440         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42441         now compatible with glibc.
42442         * doc/posix-functions/getopt.texi (getopt): Likewise.
42443
42444         getopt-gnu: add another test
42445         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42446         guarantee behavior relied on by m4.
42447         * tests/test-getopt.c (main): Use it.
42448         * modules/getopt-posix-tests (Depends-on): Add setenv.
42449         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42450
42451         getopt: fix compilation on darwin
42452         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42453         include.
42454         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42455         Reported by Ludovic Courtès.
42456
42457 2009-10-06  Bruno Haible  <bruno@clisp.org>
42458
42459         * modules/size_max (Description): Discourage its use.
42460         Reported by Simon Josefsson.
42461
42462 2009-10-06  Jim Meyering  <meyering@redhat.com>
42463
42464         linkat: avoid compilation failure
42465         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42466
42467 2009-10-05  Eric Blake  <ebb9@byu.net>
42468
42469         linkat: support Linux 2.6.17
42470         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42471         linkat on Linux, but allow cache variable override.
42472         * lib/linkat.c (rpl_linkat): Define override.
42473         * modules/linkat (Depends-on): Add symlinkat.
42474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42475         * modules/unistd (Makefile.am): Substitute it.
42476         * lib/unistd.in.h (linkat): Declare replacement.
42477         Reported by Pádraig Brady.
42478
42479         quotearg: port test to systems with C.UTF-8 locale
42480         * tests/test-quotearg.c (struct result_strings): Add another
42481         member, differentiating between C.ASCII and C.UTF-8 handling.
42482         (compare_strings): Add parameter.
42483         (main): Adjust all callers.
42484
42485         getopt: avoid clash with FreeBSD _getopt_internal
42486         * lib/getopt.in.h (_getopt_internal): Override the name.
42487         * lib/getopt_int.h (includes): Pick up any overrides.
42488         Reported by Reuben Thomas.
42489
42490         hash: allow C89 compilation
42491         * lib/hash.c (check_tuning): Move declaration before statement.
42492         Reported by Reuben Thomas.
42493
42494 2009-10-05  Karl Berry  <karl@gnu.org>
42495
42496         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42497
42498 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42499             Bruno Haible  <bruno@clisp.org>
42500
42501         * lib/uname.c (uname): Use a table-driven algorithm to compute
42502         Windows NT versions.
42503
42504 2009-10-04  Bruno Haible  <bruno@clisp.org>
42505
42506         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42507         program_invocation_short_name.
42508         * modules/progname (configure.ac): Test for presence of
42509         program_invocation_short_name.
42510         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42511
42512 2009-10-04  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/progname.c (set_program_name): Fix comment.
42515         Reported by Jim Meyering.
42516
42517 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42518             Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/uname.c: Include <string.h>.
42521         (uname): Do only one call to GetVersionEx in the common case.
42522
42523 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42524             Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42527         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42528         (uname): Add support for Windows CE and various non-x86 CPU types.
42529
42530 2009-10-03  Bruno Haible  <bruno@clisp.org>
42531
42532         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42533         invocation to tests/configure.ac.
42534         Reported by Ian Beckwith <ianb@erislabs.net>.
42535
42536 2009-10-02  Eric Blake  <ebb9@byu.net>
42537
42538         fchdir: avoid compiler warning
42539         * lib/fchdir.c (canonicalize_file_name)
42540         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42541
42542         test-open: support mingw errno values
42543         * tests/test-open.h (test_open): Relax test.
42544         * tests/test-fopen.h (test_fopen): Likewise.
42545         * tests/test-openat-safer.c (main): Likewise.
42546
42547         open: fix opening directory on mingw
42548         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42549
42550         test-open: on GNU/Hurd, /dev/null is a directory
42551         * tests/test-fopen.h (main): Rename...
42552         (test_fopen): ...to this.  Use a guaranteed non-directory when
42553         confirming open behavior on trailing slash.
42554         * tests/test-openat-safer.c (main): Likewise.
42555         * tests/test-open.h (main): Likewise....
42556         (test_open): ...to this.
42557         * tests/test-fopen.c (main): Adjust caller.
42558         * tests/test-fopen-safer.c (main): Likewise.
42559         * tests/test-open.c (main): Likewise.
42560         * tests/test-fcntl-safer.c (main): Likewise.
42561         Reported by Samuel Thibault.
42562
42563         rename, fchdir: don't ignore chdir failure
42564         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42565         * lib/rename.c (rpl_rename) [W32]: Likewise.
42566         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42567         an empty destination directory if source cannot be renamed,
42568         although there is still possibility for failure.
42569         * doc/posix-functions/rename.texi (rename): Document the race.
42570         Reported by Jim Meyering.
42571
42572         maint: cleanup whitespace in recent commits
42573         * lib/rename.c (rpl_rename): Remove tabs.
42574         * tests/test-link.h (test_link): Likewise.
42575         * lib/fchdir.c (get_name): Likewise.
42576         Reported by Jim Meyering.
42577
42578 2009-10-02  Ben Pfaff  <blp@gnu.org>
42579
42580         relocatable-prog-wrapper: Add missing dependency on
42581         double-slash-root.
42582         * modules/relocatable-prog-wrapper: Add dependency.
42583         Reported by Ian Beckwith <ianb@erislabs.net>.
42584
42585 2009-10-02  Eric Blake  <ebb9@byu.net>
42586
42587         renameat: fix Solaris bugs
42588         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42589         needed fixing.
42590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42591         * modules/stdio (Makefile.am): Substitute it.
42592         * lib/stdio.in.h (renameat): Declare replacement.
42593         * lib/renameat.c (rpl_renameat): Implement fix.
42594
42595         renameat: new module
42596         * modules/renameat: New file.
42597         * lib/renameat.c (renameat): Likewise.
42598         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42600         * modules/stdio (Makefile.am): Substitute them.
42601         * lib/stdio.in.h (renameat): Declare it.
42602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42603         * doc/posix-functions/renameat.texi (renameat): Likewise.
42604         * modules/renameat-tests: New test.
42605         * tests/test-renameat.c: Likewise.
42606
42607         rename: fix mingw bugs
42608         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42609         directory overwrite bugs.
42610
42611         rename: fix another cygwin 1.5 bug
42612         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42613         checks.
42614         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42615         unnecessary cygwin workarounds.  Also work around bug with moving
42616         full directory onto an empty one.
42617         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42618
42619         rename-dest-slash: merge into rename module
42620         * modules/rename-dest-slash (Status): Mark obsolete.
42621         (Depends-on): Add rename.
42622         (Files): Let rename do it all.
42623         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42624         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42625         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42626         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42627         * lib/rename.c (rpl_rename): Update comments.
42628
42629         rename: fix cygwin 1.5.x bugs
42630         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42631         * lib/rename.c (rpl_rename): Work around them.
42632         * modules/rename (Depends-on): Add same-inode.
42633
42634         rename: fix Solaris 10 bug
42635         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42636         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42637         was the only bug.
42638
42639         rename: fix Solaris 9 bug
42640         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42641         on non-directory.  Avoid calling exit.
42642         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42643         strdup.
42644         * modules/rename-tests (Depends-on): Drop lstat.
42645         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42646         (gl_PREREQ_RENAME): Delete unused macro.
42647
42648         rename-dest-slash: fix NetBSD bug
42649         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42650         links.
42651         * modules/rename-dest-slash (Depends-on): Add same-inode.
42652
42653         rename-tests: new test, exposes several platform bugs
42654         * modules/rename-tests: New file.
42655         * tests/test-rename.h: Likewise.
42656         * tests/test-rename.c: Likewise.
42657         * doc/posix-functions/rename.texi (rename): Improve documentation,
42658         including bugs that will eventually be fixed in gnulib.
42659
42660 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42661
42662         * lib/uname.c: Include <stdlib.h>
42663         (uname): Assume version info is available.
42664
42665 2009-10-02  Jim Meyering  <meyering@redhat.com>
42666
42667         gnu-web-doc-update: correct --help output
42668         * build-aux/gnu-web-doc-update: Make --help output relevant.
42669
42670         gnu-web-doc-update: add standard options
42671         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42672
42673         gnu-web-doc-update: New module.
42674         Use this script to automatically update the on-line web documentation
42675         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42676         * modules/gnu-web-doc-update: New file, from coreutils.
42677         * build-aux/gnu-web-doc-update: New script.
42678
42679 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42680
42681         link: LoadLibrary is not needed.
42682         * lib/link.c: Use GetModuleHandle.
42683
42684 2009-10-01  Eric Blake  <ebb9@byu.net>
42685
42686         getopt: bump serial number
42687         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42688         change.
42689
42690         tests: tighten link, rmdir, and remove tests
42691         * tests/test-link.h (includes): No need to use <config.h> here.
42692         Clean up if directory hard link was created, otherwise test for
42693         trailing '.'.
42694         * tests/test-linkat.c (main): Simplify.
42695         * tests/test-remove.c (main): Enhance test for trailing '.'.
42696         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42697
42698 2009-10-01  Jim Meyering  <meyering@redhat.com>
42699
42700         maint.mk: requiring "make major" was annoying, for a "minor" release.
42701         What is intended is "stable", to contrast with alpha and beta,
42702         so require "make stable", not "make major".
42703         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42704         (get_tool_versions): Likewise.
42705         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42706
42707 2009-09-30  Ben Pfaff  <blp@gnu.org>
42708
42709         Fix broken build of replacement for Windows tmpfile().
42710         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42711         flags argument added along with the 'mkostemp' module.
42712
42713 2009-09-28  Bruno Haible  <bruno@clisp.org>
42714
42715         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42716         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42717         to 'remove_elt'.
42718         (gl_list_remove): Update.
42719         * lib/gl_list.c (gl_list_remove): Update.
42720         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42721         to 'remove_elt'.
42722         (gl_oset_remove): Update.
42723         * lib/gl_list.c (gl_oset_remove): Update.
42724         Reported by Eric Blake.
42725
42726 2009-09-28  Eric Blake  <ebb9@byu.net>
42727
42728         doc: mention yet more cygwin 1.7 status
42729         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42730         cygwin.
42731         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42732         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42733
42734         argp: fix test failure
42735         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42736         that are not upper-case.  Pass correct range to tolower.
42737
42738 2009-09-27  Jim Meyering  <meyering@redhat.com>
42739
42740         test-yesno: work around sparc-dash here-document infelicity
42741         Without this change, the literal \177 byte in a here document
42742         would make dash 0.5.5.1-3 access uninitialized memory.
42743         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42744         Instead, use a marker, "@", and filter through tr to create the desired
42745         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42746
42747 2009-09-27  Bruno Haible  <bruno@clisp.org>
42748
42749         Disable untested support for new flavours of ACLs on AIX.
42750         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42751         progress.
42752         * lib/set-mode-acl.c (qset_acl): Likewise.
42753
42754 2008-12-07  Bruno Haible  <bruno@clisp.org>
42755
42756         Add support for new flavours of ACLs on AIX. (Untested.)
42757         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42758         (file_has_acl): Add support for newer AIX.
42759         * lib/set-mode-acl.c (qset_acl): Likewise.
42760         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42761         Rainer Tammer <tammer@tammer.net>.
42762
42763 2009-09-26  Eric Blake  <ebb9@byu.net>
42764
42765         argp: fix compilation of getopt
42766         * lib/getopt.in.h (includes): Use different guard than glibc.
42767         Reported by Sergey Poznyakoff.
42768
42769         doc: mention more cygwin 1.7 status
42770         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42771         bug.
42772         * doc/posix-functions/execl.texi (execl): Likewise.
42773         * doc/posix-functions/execle.texi (execle): Likewise.
42774         * doc/posix-functions/execlp.texi (execlp): Likewise.
42775         * doc/posix-functions/execv.texi (execv): Likewise.
42776         * doc/posix-functions/execve.texi (execve): Likewise.
42777         * doc/posix-functions/execvp.texi (execvp): Likewise.
42778         * doc/glibc-functions/canonicalize_file_name.texi
42779         (canonicalize_file_name): Cygwin 1.7 now provides this.
42780         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42781         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42782         on AT_SYMLINK_NOFOLLOW.
42783
42784 2009-09-24  Eric Blake  <ebb9@byu.net>
42785
42786         test-linkat: make test more robust
42787         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42788
42789         getopt: fix inclusion guards for cygwin
42790         * modules/getopt-posix (Depends-on): Add include-next.
42791         (Makefile.am): Substitute more items in replacement header.
42792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42793         <getopt.h>.
42794         * lib/getopt.in.h (includes): Use split inclusion guard, and
42795         prefer <getopt.h> over include <unistd.h> when one is present.
42796         (option): Also override name of 'struct option'.
42797
42798         same-inode: revert prior change; it is not yet ready
42799         * NEWS: Undo mention of this change.
42800         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42801         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42802         * lib/cycle-check.c (cycle_check): Likewise.
42803         * lib/same.c (same_name): Likewise.
42804         * lib/at-func2.c (at_func2): Likewise.
42805
42806 2009-09-23  Eric Blake  <ebb9@byu.net>
42807
42808         linkat: new module
42809         * modules/linkat: New file.
42810         * lib/at-func2.c (at_func2): Likewise.
42811         * lib/linkat.c (linkat): Likewise.
42812         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42813         * lib/openat-priv.h (at_func2): Add declaration.
42814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42815         * modules/unistd (Makefile.am): Substitute them.
42816         * lib/unistd.in.h (linkat): Declare it.
42817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42818         * doc/posix-functions/linkat.texi (linkat): Likewise.
42819         * doc/posix-functions/link.texi (link): Tweak wording.
42820         * tests/test-link.c (main): Move guts...
42821         * tests/test-link.h (test_link): ...into new file.
42822         * modules/linkat-tests: New test.
42823         * tests/test-linkat.c: Likewise.
42824         * modules/link-tests (Files): Ship new file.
42825         (Depends-on): Add stdbool.
42826
42827         dirname: add library-safe mdir_name
42828         * lib/dirname.h (mdir_name): New prototype.
42829         * lib/dirname.c (dir_name): Move guts...
42830         (mdir_name): ...to new function that avoids xalloc_die.
42831
42832         fchdir: another mingw fix
42833         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42834         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42835         on mingw (where it has not yet been ported), and make it optional
42836         elsewhere.
42837         (_gl_register_fd): Use it.
42838
42839         same-inode: make SAME_INODE tri-state, to port to mingw
42840         * NEWS: Mention this change.
42841         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42842         st_ino always being 0.
42843         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42844         * lib/cycle-check.c (cycle_check): Likewise.
42845         * lib/same.c (same_name): Likewise.
42846
42847         lstat: avoid mingw compilation error
42848         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42849         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42850         lstat ourselves.
42851         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42852         was adequate.
42853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42854         the checks for lstat.
42855         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42856
42857         link: fix test failure on Solaris 9
42858         * lib/link.c (rpl_link): Don't assume link will catch bogus
42859         trailing slash on source.
42860
42861         test-symlinkat: enhance test
42862         * tests/test-readlink.c (main): Move guts...
42863         * tests/test-readlink.h (test_readlink): ...into new file.
42864         * tests/test-symlink.c (main): Move guts...
42865         * tests/test-symlink.h (test_symlink): ...into new file.
42866         * tests/test-symlinkat.c (main): Use new files for further
42867         coverage.
42868         (do_symlink, do_readlink): New helper functions.
42869         * modules/symlink-tests (Files): Ship new file.
42870         (Depends-on): Add stdbool.
42871         * modules/readlink-tests (Files): Ship new file.
42872         (Depends-on): Add stdbool.
42873         * modules/symlinkat-tests (Files): Use new files.
42874
42875 2009-09-23  Eric Blake  <ebb9@byu.net>
42876
42877         readlink: document portability issue with symlink length
42878         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42879         systems have bogus st_size on symlinks, and mention the
42880         areadlink-with-size module.
42881         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42882         * doc/posix-functions/readlink.texi (readlink): Mention the
42883         areadlink module, and ERANGE failure.
42884         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42885         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42886
42887         readlink: fix Solaris 9 bug with trailing slash
42888         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42889         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42890         * doc/posix-functions/readlink.texi (readlink): Document this.
42891         * modules/readlink-tests: New test.
42892         * tests/test-readlink.c: Likewise.
42893
42894         readlink: fix cygwin 1.5.x bug with return type
42895         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42896         * lib/unistd.in.h (readlink): Use ssize_t.
42897         * lib/readlink.c (readlink): Likewise.
42898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42899         * modules/unistd (Makefile.am): Substitute it.
42900         * lib/unistd.in.h (readlink): Declare replacement.
42901         * doc/posix-functions/readlink.texi (readlink): Document this.
42902
42903         symlink: use throughout gnulib
42904         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42905         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42906         symlink is not used.
42907         * modules/symlinkat (Depends-on): Add symlink.
42908         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42909         * modules/canonicalize-tests (Depends-on): Likewise.
42910         * modules/lstat-tests (Depends-on): Likewise.
42911         * modules/openat-tests (Depends-on): Likewise.
42912         * modules/remove-tests (Depends-on): Likewise.
42913         * modules/rmdir-tests (Depends-on): Likewise.
42914         * modules/unlink-tests (Depends-on): Likewise.
42915         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42916         * tests/test-canonicalize.c (symlink): Likewise.
42917         * tests/test-fstatat.c (symlink): Likewise.
42918         * tests/test-lstat.c (symlink): Likewise.
42919         * tests/test-remove.c (symlink): Likewise.
42920         * tests/test-rmdir.c (symlink): Likewise.
42921         * tests/test-unlink.c (symlink): Likewise.
42922         * tests/test-unlinkat.c (symlink): Likewise.
42923
42924         symlink: new module, for Solaris 9 bug
42925         * modules/symlink: New file.
42926         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42927         * lib/symlink.c: Likewise.
42928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42929         * modules/unistd (Makefile.am): Substitute them.
42930         * lib/unistd.in.h (symlink): Declare replacement.
42931         * MODULES.html.sh (File system functions): Mention it.
42932         * doc/posix-functions/symlink.texi (symlink): Likewise.
42933         * modules/symlink-tests: New test.
42934         * tests/test-symlink.c: Likewise.
42935
42936 2009-09-23  Bruno Haible  <bruno@clisp.org>
42937
42938         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42939         when needed.
42940         Test case: gnulib-tool --import --with-tests atexit inttypes.
42941         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42942
42943 2009-09-23  Bruno Haible  <bruno@clisp.org>
42944
42945         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42946         subcommand, not in a subshell.
42947
42948 2009-09-22  Eric Blake  <ebb9@byu.net>
42949
42950         unistd: sort replacement declarations
42951         * lib/unistd.in.h: Sort declarations.
42952
42953         open, openat: minor optimization
42954         * lib/open.c (open): If open succeeded, len is non-zero.
42955         * lib/openat.c (rpl_openat): Likewise.
42956
42957         link-follow: ensure correct result
42958         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42959         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42960         distinguish between possible failures.
42961
42962 2009-09-21  Eric Blake  <ebb9@byu.net>
42963
42964         fts: avoid compiler warning
42965         * lib/fts.c (dirent_inode_sort_may_be_useful)
42966         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42967
42968 2009-09-19  Bruno Haible  <bruno@clisp.org>
42969
42970         * lib/progreloc.c (canonicalize_file_name): New declaration.
42971
42972 2009-09-19  Eric Blake  <ebb9@byu.net>
42973
42974         link: fix quoting
42975         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42976
42977         openat: fix openat bugs on Solaris 9
42978         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42979         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42980         * modules/openat (Depends-on): Add open.
42981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42982         * modules/fcntl-h (Makefile.am): Substitute it.
42983         * lib/fcntl.in.h (openat): Declare replacement.
42984         * doc/posix-functions/openat.texi (openat): Document this.
42985
42986         openat: move fstatat and unlinkat into correct files
42987         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42988         compiled.
42989         * lib/openat.c (fstatat, unlinkat): Move...
42990         * lib/fstatat.c (fstatat): ...into correct files.
42991         * lib/unlinkat.c (unlinkat): Likewise.
42992
42993         openat: fix unlinkat bugs on Solaris 9
42994         * lib/unlinkat.c (unlinkat): New file.
42995         * modules/openat (Depends-on): Add unlink.
42996         (Files): Distribute it.
42997         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42998         trailing slash behavior is broken.
42999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43000         * modules/unistd (Makefile.am): Substitute it.
43001         * lib/unistd.in.h (unlinkat): Declare replacement.
43002         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43003
43004         openat: fix fstatat bugs on Solaris 9
43005         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43006         stat.
43007         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43008
43009         test-unlinkat: enhance test, to expose Solaris 9 bug
43010         * tests/test-unlink.c (main): Factor guts...
43011         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43012         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43013         * tests/test-rmdir.c (main): Adjust caller.
43014         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43015         (unlinker): New helper function.
43016         (rmdirat): Enhance check.
43017         * modules/rmdir-tests (Depends-on): Add stdbool.
43018         * modules/unlink-tests (Depends-on): Likewise.
43019         (Files): Add test-unlink.h.
43020         * modules/openat-tests (Files): Likewise.
43021         (Depends-on): Add unlinkdir.
43022
43023         test-fstatat: new test, to expose Solaris 9 bugs
43024         * tests/test-stat.c (main): Factor guts...
43025         * tests/test-stat.h (test_stat_func): ...into new file.
43026         * tests/test-lstat.c (main): Factor guts...
43027         * tests/test-lstat.h (test_lstat_func): ...into new file.
43028         * tests/test-fstatat.c: New file.
43029         * modules/stat-tests (Files): Add test-stat.h.
43030         * modules/lstat-tests (Files): Add test-lstat.h.
43031         (Depends-on): Add stdbool.
43032         * modules/openat-tests (Depends-on): Add pathmax.
43033         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43034         (Makefile.am): Run new test.
43035
43036         remove: new module, for mingw and Solaris 9 bugs
43037         * modules/remove: New file.
43038         * lib/remove.c: Likewise.
43039         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43041         * modules/stdio (Makefile.am): Use them.
43042         * lib/stdio.in.h (remove): Declare replacement.
43043         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43044         * doc/posix-functions/remove.texi (remove): Likewise.
43045         * modules/remove-tests: New test.
43046         * tests/test-remove.c: Likewise.
43047
43048         unlink: new module, for Solaris 9 bug
43049         * modules/unlink: New file.
43050         * lib/unlink.c: Likewise.
43051         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43053         * modules/unistd (Makefile.am): Use them.
43054         * lib/unistd.in.h (stat): Declare replacement.
43055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43056         * doc/posix-functions/unlink.texi (unlink): Likewise.
43057         * modules/unlink-tests: New test.
43058         * tests/test-unlink.c: Likewise.
43059
43060         lstat: fix Solaris 9 bug
43061         * lib/lstat.c (lstat): Also check for trailing slash on
43062         non-symlink, non-directories.  Use stat module to simplify logic.
43063         * doc/posix-functions/lstat.texi (lstat): Document it.
43064         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43065         (configure.ac): Check for symlink.
43066         * tests/test-lstat.c (main): Add more tests.
43067
43068         stat: add as dependency to other modules
43069         * modules/chown (Depends-on): Add stat.
43070         * modules/euidaccess (Depends-on): Likewise.
43071         * modules/fchdir (Depends-on): Likewise.
43072         * modules/isdir (Depends-on): Likewise.
43073         * modules/link (Depends-on): Likewise.
43074         * modules/lstat (Depends-on): Likewise.
43075         * modules/mkdir-p (Depends-on): Likewise.
43076         * modules/modechange (Depends-on): Likewise.
43077         * modules/open (Depends-on): Likewise.
43078         * modules/readlink (Depends-on): Likewise.
43079         * modules/same (Depends-on): Likewise.
43080
43081         stat: fix Solaris 9 bug
43082         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43083         slash.
43084         * lib/stat.c (rpl_stat): Work around it.
43085         * doc/posix-functions/stat.texi (stat): Update documentation.
43086
43087         stat: new module, for mingw bug
43088         * modules/stat: New file.
43089         * lib/stat.c: Likewise.
43090         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43092         * modules/sys_stat (Makefile.am): Use them.
43093         * lib/sys_stat.in.h (stat): Declare replacement.
43094         * lib/openat.c (fstatat): Deal with lstat and stat being function
43095         macros.
43096         * modules/openat (Depends-on): Add inline.
43097         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43098         * doc/posix-functions/stat.texi (stat): Likewise.
43099         * modules/stat-tests: New test.
43100         * tests/test-stat.c: Likewise.
43101
43102 2009-09-19  Jim Meyering  <meyering@redhat.com>
43103
43104         syntax-check: detect unnecessary inclusion of canonicalize.h
43105         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43106
43107 2009-09-19  Eric Blake  <ebb9@byu.net>
43108
43109         canonicalize-lgpl: adjust clients to use correct header
43110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43111         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43112         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43113         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43114         * lib/progreloc.c (includes): Likewise.
43115
43116 2009-09-19  Jim Meyering  <meyering@redhat.com>
43117
43118         test-posixtm.c: correct a comment
43119         * tests/test-posixtm.c: Correct first-line comment.
43120         Spotted by Eric Blake.
43121
43122 2009-09-16  Jim Meyering  <meyering@redhat.com>
43123
43124         posixtm-tests: make T const-correct; add a test case
43125         * tests/test-posixtm.c (T): Declare const.
43126         Add a test for -(2^31+1).
43127         Remove useless can-succeed-only-in-2002 test.
43128
43129         posixtm-tests: adjust the sole failing test
43130         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43131         expected output matches what mktime now produces.  Cross-checked via
43132         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43133
43134         posixtm: move #ifdef'd tests into a new module
43135         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43136         * tests/test-posixtm.c: ... this new file.
43137         * modules/posixtm-tests: New module.
43138
43139 2009-09-19  Eric Blake  <ebb9@byu.net>
43140
43141         openat: simplify use of at-func.c
43142         * lib/at-func.c (includes): Include prerequisites here, to
43143         simplify requirements on client files.
43144         * lib/openat-priv.h: Add double-inclusion guard.
43145         * lib/faccessat.c (includes): Simplify.
43146         * lib/fchmodat.c (includes): Likewise.
43147         * lib/fchownat.c (includes): Likewise.
43148         * lib/mkdirat.c (includes): Likewise.
43149         * lib/mkfifoat.c (includes): Likewise.
43150         * lib/symlinkat.c (includes): Likewise.
43151
43152         openat: allow return of fd 0
43153         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43154         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43155         unistd-safer.
43156         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43157         <fcntl.h>; this module does not leak fds.
43158         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43159         must be allowed to return 0, leaving openat_safer to add the
43160         safety.
43161         (openat_permissive): Avoid writing to just-opened fd 2 if
43162         restoring the current directory fails.
43163         * lib/openat-die.c (openat_restore_fail): Add comment.
43164         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43165         (save_cwd): Guarantee safe fd, but without use of open_safer.
43166         * tests/test-openat.c: New test.
43167         * modules/openat-tests (Files, Makefile.am): Distribute and build
43168         new file.
43169
43170         relocatable-prog-wrapper: fix build
43171         * modules/relocatable-prog-wrapper (Files): Update name of
43172         canonicalize m4 file, broken on 2009-09-17.
43173         Reported by emad hajjar <aleppos@hotmail.com>.
43174
43175 2009-09-19  Bruno Haible  <bruno@clisp.org>
43176
43177         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43178         * lib/safe-alloc.c: Likewise.
43179         Reported by Ian Beckwith <ianb@erislabs.net>.
43180
43181 2009-09-18  Bruno Haible  <bruno@clisp.org>
43182
43183         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43184         Reported by <erobles@sensacd.com.mx>.
43185
43186 2009-09-17  Eric Blake  <ebb9@byu.net>
43187
43188         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43189         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43190         slashes when checking if last component is missing.
43191         * tests/test-canonicalize.c (main): Test this.
43192
43193         canonicalize, canonicalize-lgpl: honor // if distinct from /
43194         * modules/canonicalize (Files): Add double-slash-root.m4.
43195         * modules/canonicalize-lgpl (Files): Likewise.
43196         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43197         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43198         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43199         fallback definition.
43200         (canonicalize_filename_mode): Use it to protect //.
43201         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43202         (__realpath): Likewise.
43203         * tests/test-canonicalize.c (main): Test this.
43204         * tests/test-canonicalize-lgpl.c (main): Likewise.
43205         * modules/canonicalize-tests (Depends-on): Add same-inode.
43206         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43207
43208         canonicalize-lgpl: fix glibc bug with trailing slash
43209         * m4/canonicalize-lgpl.m4: Move contents...
43210         * m4/canonicalize.m4: ...here.
43211         (gl_CANONICALIZE_LGPL): Factor realpath check...
43212         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43213         glibc 2.3.5 bug, fixed 2005-04-27.
43214         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43215         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43216         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43217         * modules/canonicalize-lgpl (Files): Manage file rename.
43218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43219         * modules/stdlib (Makefile.am): Substitute witness.
43220         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43221         is needed.
43222         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43223         replacement is required.
43224         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43225         * doc/glibc-functions/canonicalize_file_name.texi
43226         (canonicalize_file_name): Document this.
43227         * doc/posix-functions/realpath.texi (realpath): Likewise.
43228
43229         canonicalize-lgpl: reject non-directory with trailing slash
43230         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43231         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43232         catches failures in glibc 2.3.5.
43233         * tests/test-canonicalize.c (main): Likewise.
43234
43235         canonicalize-lgpl: use native realpath if it works
43236         * lib/canonicalize-lgpl.c (realpath): Guard with
43237         FUNC_REALPATH_WORKS.
43238         * lib/stdlib.in.h (realpath): Make declaration optional based on
43239         HAVE_REALPATH.
43240         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43241         native realpath works.
43242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43243         * modules/stdlib (Makefile.am): Substitute witness.
43244
43245         canonicalize, canonicalize-lgpl: use <stdlib.h>
43246         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43247         (Include): Mention <stdlib.h>.
43248         (configure.ac): Mention functions we provide.
43249         * modules/canonicalize (configure.ac): Likewise.
43250         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43251         realpath if canonicalize_file_name is missing.
43252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43253         * modules/stdlib (Makefile.am): Substitute witnesses.
43254         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43255         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43256         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43257         * NEWS: Document this.
43258         * doc/glibc-functions/canonicalize_file_name.texi
43259         (canonicalize_file_name): Likewise.
43260         * doc/posix-functions/realpath.texi (realpath): Likewise.
43261         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43262
43263         test-canonicalize: consolidate into single C program
43264         * tests/test-canonicalize.sh: Delete; move setup into...
43265         * tests/test-canonicalize.c (main): ...the program, making it
43266         easier to run in debugger.  Add some tests.
43267         * modules/canonicalize-tests (Files): Remove unused file.
43268         (Depends-on): Add progname.
43269         (configure.ac, Makefile.am): Simplify.
43270
43271         test-canonicalize-lgpl: consolidate into single C program
43272         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43273         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43274         easier to run in debugger.  Add some tests.
43275         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43276         (configure.ac, Makefile.am): Simplify.
43277
43278         canonicalize: avoid resolvepath
43279         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43280         unnecessary checks.
43281         * lib/canonicalize.c (includes): Simplify.
43282         (canonicalize_file_name): Drop resolvepath implementation.
43283         * modules/canonicalize (Depends-on): Drop filenamecat.
43284
43285         canonicalize: don't lose errno
43286         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43287         over calls to free.
43288
43289         canonicalize: simplify errno handling
43290         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43291         assignment.
43292
43293         canonicalize, canonicalize-lgpl: update module dependencies
43294         * modules/canonicalize (Depends-on): Add extensions, lstat,
43295         pathmax, stdlib.
43296         (Files): Drop pathmax.h.
43297         (configure.ac): Adjust macro name.
43298         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43299         lstat, stdlib, sys_stat.
43300         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43301         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43302         extensions.
43303         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43304         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43305         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43306         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43307         declaration, if available.
43308         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43309         we can rely on the readlink module.
43310         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43311         (includes): Use <unistd.h> unconditionally.
43312
43313 2009-09-17  Eric Blake  <ebb9@byu.net>
43314
43315         maint: make Include sections of modules consistent
43316         * modules/alloca: Use only header name; no need to list #include.
43317         * modules/alloca-opt: Likewise.
43318         * modules/arpa_inet: Likewise.
43319         * modules/canon-host: Likewise.
43320         * modules/configmake: Likewise.
43321         * modules/dirent: Likewise.
43322         * modules/eealloc: Likewise.
43323         * modules/environ: Likewise.
43324         * modules/fchdir: Likewise.
43325         * modules/fcntl: Likewise.
43326         * modules/fcntl-h: Likewise.
43327         * modules/gethrxtime: Likewise.
43328         * modules/gettime: Likewise.
43329         * modules/ignore-value: Likewise.
43330         * modules/inet_ntop: Likewise.
43331         * modules/inet_pton: Likewise.
43332         * modules/inttypes: Likewise.
43333         * modules/isnand-nolibm: Likewise.
43334         * modules/isnanf-nolibm: Likewise.
43335         * modules/mbchar: Likewise.
43336         * modules/mbfile: Likewise.
43337         * modules/mbiter: Likewise.
43338         * modules/mbuiter: Likewise.
43339         * modules/netdb: Likewise.
43340         * modules/netinet_in: Likewise.
43341         * modules/nproc: Likewise.
43342         * modules/pagealign_alloc: Likewise.
43343         * modules/poll: Likewise.
43344         * modules/printf-frexp: Likewise.
43345         * modules/pthread: Likewise.
43346         * modules/putenv: Likewise.
43347         * modules/random_r: Likewise.
43348         * modules/relocatable-prog: Likewise.
43349         * modules/search: Likewise.
43350         * modules/select: Likewise.
43351         * modules/selinux-h: Likewise.
43352         * modules/settime: Likewise.
43353         * modules/signal: Likewise.
43354         * modules/size_max: Likewise.
43355         * modules/socklen: Likewise.
43356         * modules/ssize_t: Likewise.
43357         * modules/stdarg: Likewise.
43358         * modules/stdbool: Likewise.
43359         * modules/stddef: Likewise.
43360         * modules/stdint: Likewise.
43361         * modules/stdio: Likewise.
43362         * modules/stdlib: Likewise.
43363         * modules/string: Likewise.
43364         * modules/strings: Likewise.
43365         * modules/sys_file: Likewise.
43366         * modules/sys_ioctl: Likewise.
43367         * modules/sys_select: Likewise.
43368         * modules/sys_socket: Likewise.
43369         * modules/sys_stat: Likewise.
43370         * modules/sys_time: Likewise.
43371         * modules/sys_times: Likewise.
43372         * modules/sys_utsname: Likewise.
43373         * modules/sys_wait: Likewise.
43374         * modules/sysexits: Likewise.
43375         * modules/time: Likewise.
43376         * modules/times: Likewise.
43377         * modules/tmpfile: Likewise.
43378         * modules/trim: Likewise.
43379         * modules/unistd: Likewise.
43380         * modules/wchar: Likewise.
43381         * modules/wctype: Likewise.
43382
43383 2009-09-17  Bruno Haible  <bruno@clisp.org>
43384
43385         Make getdate.y compile on QNX and NetBSD 5 / i386.
43386         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43387         TIME_T_FITS_IN_LONG_INT.
43388         * lib/getdate.y (long_time_t): New type.
43389         (relative_time): Change type of 'seconds' field to long_time_t.
43390         (get_date): Update types of local variables. Check against overflow
43391         during conversion from long_time_t to time_t.
43392         Reported by Matt Kraai <kraai@ftbfs.org>
43393         and Hasso Tepper <hasso@netbsd.org>.
43394
43395 2009-09-17  Bruno Haible  <bruno@clisp.org>
43396
43397         * modules/COPYING: Update copyright years.
43398         * modules/README: Likeiwse.
43399         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43400         Reported by Ian Beckwith <ianb@erislabs.net>.
43401
43402 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43403
43404         * users.txt: Update references for gnuit package.
43405
43406 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43407
43408         * m4/getdelim.m4: Fix typo in copyright line.
43409
43410 2009-09-17  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/atoll.c: Use the standard header with GPL copyright.
43413         * lib/argz.in.h: Likewise.
43414         * lib/glob.c: Likewise.
43415         * lib/glob-libc.h: Likewise.
43416         * lib/random_r.c: Likewise.
43417         * lib/siglist.h: Likewise.
43418         * lib/strsignal.c: Likewise.
43419         Reported by Ian Beckwith <ianb@erislabs.net>.
43420
43421 2009-09-17  Eric Blake  <ebb9@byu.net>
43422
43423         rmdir: ensure correct dependency order
43424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43425
43426 2009-09-17  Bruno Haible  <bruno@clisp.org>
43427
43428         Disable assertion that fails on NetBSD 5 / i386.
43429         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43430         Reported by Sam Steingold <sds@gnu.org>
43431         and Hasso Tepper <hasso@netbsd.org>.
43432
43433 2009-09-16  Eric Blake  <ebb9@byu.net>
43434
43435         unlinkdir: port to mingw
43436         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43437         on which no one can unlink a directory.
43438
43439         stdlib: sort witness names
43440         * modules/stdlib (Makefile.am): Sort replacements.
43441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43442         * lib/stdlib.in.h: Likewise.
43443
43444         parse-duration-tests: avoid link failure
43445         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43446         LIBINTL.
43447         Reported by Tom G. Christensen.
43448
43449         openat-tests: ensure unlinkat behaves like rmdir
43450         * tests/test-rmdir.c (main): Factor guts...
43451         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43452         * modules/rmdir-tests (Files): Ship new file.
43453         * modules/openat-tests: New test.
43454         * tests/test-unlinkat.c: Likewise.
43455
43456         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43457         * modules/rmdir-errno (Status, Notice): Now obsolete.
43458
43459         rmdir: work around cygwin 1.5.x and mingw bugs
43460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43461         * lib/rmdir.c (rmdir): Work around it.
43462         * modules/rmdir (Status, Notice): No longer obsolete.
43463         (Files): Add dos.m4.
43464         (Depends-on): Add unistd.
43465         (configure.ac): Set witnesses.
43466         (License): Relax to LGPLv2+.
43467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43468         * modules/unistd (Makefile.am): Substitute witnesses.
43469         * lib/unistd.in.h (rmdir): Declare replacement.
43470         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43471         * modules/rmdir-tests: New tests.
43472         * tests/test-rmdir.c: Likewise.
43473
43474 2009-09-15  Eric Blake  <ebb9@byu.net>
43475
43476         fchdir: improve use of replacement functions
43477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43479         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43480         REPLACE_CLOSEDIR.
43481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43482         * modules/sys_stat (Makefile.am): Substitute correct witness.
43483         * modules/dirent (Makefile.am): Likewise.
43484         * modules/unistd (Makefile.am): Likewise.
43485         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43486         * lib/unistd.in.h (dup): Likewise.
43487         * lib/sys_stat.in.h (fstat): Likewise.
43488
43489         maint: ignore gnulib-tool temp files
43490         * .gitignore: Ignore files created during gnulib-tool --test.
43491
43492 2009-09-13  Jim Meyering  <meyering@redhat.com>
43493
43494         posixtm: don't reject a time that specify "60" as the number of seconds
43495         * lib/posixtm.c (posixtime): The code to reject invalid dates
43496         would also reject a time specified with the .60 suffix.
43497         But POSIX allows that, in order to accommodate leap seconds.
43498         So don't reject it.
43499         (main): Adjust tests accordingly.
43500         * modules/posixtm (Depends-on): Add stpcpy.
43501
43502 2009-09-11  Jim Meyering  <meyering@redhat.com>
43503
43504         announce-gen: include [$release_type] in emitted Subject:
43505         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43506         e.g., [stable] in the emitted Subject: line.
43507
43508 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43509
43510         Remove obsolete macros from several modules.
43511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43512         obsolete Autoconf macros with their modern counterparts.
43513         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43514         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43516         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43517         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43520         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43521         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43522         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43523         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43525         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43526         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43527         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43529         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43530         * m4/time_r.m4 (gl_TIME_R): Likewise.
43531         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43532         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43534
43535         Fix copyright header in build-aux scripts.
43536         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43537         recommendation.
43538         * build-aux/ncftpput-ftp: Likewise.
43539         * build-aux/update-copyright: Likewise.
43540
43541 2009-09-09  Eric Blake  <ebb9@byu.net>
43542
43543         test-link: allow Linux choice of errno
43544         * tests/test-link.c (main): Relax test for alternate error.
43545
43546         strndup: fix improper m4 caching
43547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43548         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43549         (gl_PREREQ_STRNDUP): Delete.
43550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43551         * modules/string (Makefile.am): Substitute it.
43552         * lib/string.in.h (strndup): Modernize prototype.
43553
43554         getcwd: port to mingw
43555         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43556         different from the POSIX assumptions made throughout the getcwd
43557         module; fortunately, the mingw getcwd does not need replacement.
43558         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43559         * modules/getcwd-tests: New test.
43560         * tests/test-getcwd.c: Likewise.
43561
43562         link: fix platform bugs
43563         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43564         * lib/link.c (link): Work around them.  Fix related mingw bug.
43565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43566         * modules/unistd (Makefile.am): Substitute it.
43567         * lib/unistd.in.h (link): Declare replacement.
43568         * doc/posix-functions/link.texi (link): Document this.
43569         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43570
43571         test-link: consolidate into single C program, test more cases
43572         * tests/test-link.sh: Delete.
43573         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43574         at least Cygwin and Solaris.
43575         * modules/link-tests (Files): Remove unused file.
43576         (Depends-on): Add errno, sys_stat.
43577         (Makefile.am): Simplify.
43578
43579 2009-09-08  Bruno Haible  <bruno@clisp.org>
43580
43581         Work around towlower, towupper bug on mingw.
43582         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43583         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43584         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43585         * doc/posix-functions/towupper.texi: Likewise.
43586         Reported by Eric Blake.
43587
43588 2009-09-08  Jim Meyering  <meyering@redhat.com>
43589
43590         build: don't try to run autoheader if we don't use it
43591         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43592         is not used in configure.ac.
43593
43594 2009-09-08  Eric Blake  <ebb9@byu.net>
43595
43596         euidaccess: fix compilation error
43597         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43598
43599         rawmemchr: relax license
43600         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43601         okay.
43602         Reported by Jim Meyering.
43603
43604         mkfifoat: new module
43605         * modules/mkfifoat: New file.
43606         * lib/mkfifoat.c: Likewise.
43607         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43609         * modules/sys_stat (Makefile.am): Use them.
43610         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43611         * MODULES.html.sh (File system functions): Mention module.
43612         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43613         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43614         * modules/mkfifoat-tests: New test.
43615         * tests/test-mkfifoat.c: Likewise.
43616
43617         strchrnul: relax license
43618         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43619         okay.
43620         Reported by Jim Meyering.
43621
43622 2009-09-08  Eric Blake  <ebb9@byu.net>
43623
43624         fstatat: fix compilation on Solaris
43625         * lib/fstatat.c (includes): Add fcntl.h.
43626         Reported by Pádraig Brady.
43627
43628 2009-09-07  Eric Blake  <ebb9@byu.net>
43629
43630         rename: modernize replacement
43631         * modules/rename (Depends-on): Add stdio.
43632         (configure.ac): Declare witness.
43633         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43634         stdio take care of replacement.
43635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43636         * modules/stdio (Makefile.am): Substitute them.
43637         * lib/stdio.in.h (rename): Declare replacement.
43638         * lib/rename.c (includes): Allow cross-compilation to non-windows
43639         machines.
43640         * doc/posix-functions/rename.texi (rename): Improve
43641         documentation.
43642
43643         stdio: sort witness names
43644         * modules/stdio (Makefile.am): Sort replacements.
43645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43646         * lib/stdio.in.h: Likewise.
43647
43648         getcwd: minor cleanups
43649         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43650         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43651
43652         openat: provide more convenience names
43653         * modules/faccessat (configure.ac): Add C witness.
43654         * lib/unistd.in.h (readlinkat): Fix typo.
43655         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43656         convenience wrappers.
43657         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43658         wrappers in syntax checks.
43659
43660 2009-09-06  Eric Blake  <ebb9@byu.net>
43661
43662         doc: fix comments in recent patches
43663         * lib/faccessat.c: Mention correct function.
43664         * lib/fchmodat.c: Likewise.
43665         * lib/fchownat.c: Likewise.
43666         * lib/symlinkat.c: Likewise.
43667         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43668         constants.
43669
43670         faccessat, symlinkat: continue cleanup of previous patch
43671         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43672         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43673         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43675         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43676         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43677         set.
43678
43679 2009-09-06  Bruno Haible  <bruno@clisp.org>
43680
43681         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43682         (fstatat): Declare if GNULIB_FSTATAT is set.
43683         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43684         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43685         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43686         * modules/fcntl-h (Files): Remove m4/openat.m4.
43687         * modules/sys_stat (Files): Remove m4/openat.m4.
43688         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43689         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43690         * modules/unistd (Files): Remove m4/openat.m4.
43691         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43692         GNULIB_OPENAT.
43693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43694         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43695         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43696         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43697         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43698         gl_OPENAT_DEFAULTS.
43699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43700         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43701         Don't require gl_OPENAT_DEFAULTS.
43702         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43703         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43704         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43705         (gl_OPENAT_DEFAULTS): Remove macro.
43706
43707 2009-09-06  Bruno Haible  <bruno@clisp.org>
43708
43709         * modules/openat (configure.ac): Remove unneeded witness.
43710
43711 2009-09-06  Bruno Haible  <bruno@clisp.org>
43712
43713         Set errno to ENOSYS when a function is entirely unsupported.
43714         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43715         EOPNOTSUPP.
43716         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43717         * modules/chown (Depends-on): Remove errno.
43718
43719 2009-09-06  Bruno Haible  <bruno@clisp.org>
43720
43721         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43722
43723 2009-09-06  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43726
43727 2009-09-06  Ben Pfaff  <blp@gnu.org>
43728             Bruno Haible  <bruno@clisp.org>
43729
43730         Work around a glibc bug in strtok_r.
43731         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43732         Undefine if UNDEFINE_STRTOK_R is set.
43733         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43735         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43736         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43737         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43738         UNDEFINE_STRTOK_R.
43739         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43740
43741 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43742
43743         exclude: minor fix
43744         * lib/exclude.c: Include wctype.h
43745
43746 2009-09-06  Akim Demaille  <demaille@gostai.com>
43747
43748         bootstrap: improve error message
43749         * build-aux/bootstrap (find_tool): Upon failure, report the list
43750         of candidates.
43751         Honor the initial value of the envvar.
43752
43753 2009-09-05  Eric Blake  <ebb9@byu.net>
43754
43755         symlinkat: new module
43756         * modules/symlinkat: New file.
43757         * lib/symlinkat.c: Likewise.
43758         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43760         * modules/unistd (Makefile.am): Use them.
43761         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43762         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43763         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43764         * MODULES.html.sh (File system functions): Mention module.
43765         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43766         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43767         * modules/symlinkat-tests: New test.
43768         * tests/test-symlinkat.c: Likewise.
43769
43770         test-openat-safer: add more checks
43771         * tests/test-openat-safer.c (main): Check more code paths.
43772
43773 2009-09-05  Jim Meyering  <meyering@redhat.com>
43774
43775         syntax-check: detect unnecessary inclusion of openat.h
43776         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43777
43778 2009-09-05  Bruno Haible  <bruno@clisp.org>
43779
43780         Support towlower, towupper.
43781         * doc/posix-functions/towlower.texi: Mention module wctype.
43782         * doc/posix-functions/towupper.texi: Likewise.
43783         * lib/wctype.in.h (towlower, towupper): New functions.
43784         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43785         (ASSERT): New macro.
43786         (e): New variable.
43787         (main): Test also towlower, towupper. Test WEOF argument.
43788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43789
43790 2009-09-05  Bruno Haible  <bruno@clisp.org>
43791
43792         Fix conversion behaviour when the input is invalid.
43793         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43794         mark occurring in first pass of indirect conversion.
43795         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43796         input.
43797         Found by clang's static analyzer.
43798
43799 2009-09-05  Bruno Haible  <bruno@clisp.org>
43800
43801         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43802         where direct conversion is possible.
43803
43804 2009-09-04  Eric Blake  <ebb9@byu.net>
43805
43806         openat: fail with ENOENT on empty name
43807         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43808         buffer.
43809
43810         link-follow: fix logic bug in prior patch
43811         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43812         reversed sense of yes and no in prior patch.  Avoid confusing
43813         compilation failure with desired semantics.
43814
43815         link-follow: accommodate mingw and cross-compilation
43816         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43817         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43818         cross-compilation results to -1, to make linkat easier to
43819         implement when cross-compiling.  Trivially support mingw.
43820         * modules/link-follow (configure.ac): Call new name.
43821         * NEWS: Mention this.
43822
43823 2009-09-03  Eric Blake  <ebb9@byu.net>
43824
43825         faccessat: compile replacement
43826         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43827         needed.
43828
43829         fts: fix compilation error
43830         * lib/fts.c (includes): Re-add "openat.h", for
43831         openat_needs_fchdir.
43832
43833         faccessat: new module
43834         * modules/faccessat: New file.
43835         * lib/faccessat.c: Likewise.
43836         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43838         * modules/unistd (Makefile.am): Use it.
43839         * lib/unistd.in.h (faccessat): Declare it.
43840         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43841         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43842         * MODULES.html.sh (File system functions): Mention it.
43843         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43844         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43845
43846         euidaccess: prefer POSIX over non-standard implementation
43847         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43848         * lib/euidaccess.c (euidaccess): Use it if available.
43849
43850         openat: make template easier to use
43851         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43852         AT_FUNC_F2 to be undefined.
43853         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43854         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43855         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43856         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43857         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43858         Likewise.
43859         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43860         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43861         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43862         Likewise.
43863
43864         openat: declare in POSIX headers
43865         * NEWS: Mention this.
43866         * modules/openat (configure.ac): Declare witnesses.
43867         (Depends-on): Add fcntl-h, sys_stat, unistd.
43868         (Include): Mention correct headers.
43869         * modules/fcntl-h (Depends-on): Add link-warning.
43870         (Files): Add openat.m4.
43871         (Makefile.am): Substitute witnesses.
43872         * modules/sys_stat (Files, Makefile.am): Likewise.
43873         * modules/unistd (Files, Makefile.am): Likewise.
43874         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43875         (gl_OPENAT_DEFAULTS): New macro.
43876         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43879         (SYS_STAT_H): Remove unused variable.
43880         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43881         * lib/fcntl--.h (includes): Remove unneeded header.
43882         * lib/openat-safer.c (includes): Likewise.
43883         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43884         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43885         appropriate headers.
43886         (__OPENAT_PREFIX): Delete.
43887         * lib/fcntl.in.h (openat): Provide declaration.
43888         (AT_FDCWD): Fix Solaris bug.
43889         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43890         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43891         * lib/fchmodat.c (includes):  Adjust to find declaration.
43892         * lib/fchownat.c (includes): Likewise.
43893         * lib/mkdirat.c (includes): Likewise.
43894         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43895         still visible.
43896
43897 2009-09-02  Eric Blake  <ebb9@byu.net>
43898
43899         errno: use consistently
43900         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43901         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43902         * lib/canonicalize.c (ELOOP): Likewise.
43903         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43904         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43905         * lib/lchown.c (EOPNOTSUPP): Likewise.
43906         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43907         * lib/savewd.c (ESTALE): Likewise.
43908         * lib/settime.c (ENOSYS): Likewise.
43909         * lib/utimens.c (ENOSYS): Likewise.
43910         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43911         * lib/chdir-safer.c (ELOOP): Likewise.
43912         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43913         * modules/c-stack (Depends-on): Add errno.
43914         * modules/canonicalize (Depends-on): Likewise.
43915         * modules/chdir-safer (Depends-on): Likewise.
43916         * modules/fdopendir (Depends-on): Likewise.
43917         * modules/inet_ntop (Depends-on): Likewise.
43918         * modules/inet_pton (Depends-on): Likewise.
43919         * modules/lchown (Depends-on): Likewise.
43920         * modules/openat (Depends-on): Likewise.
43921         * modules/savewd (Depends-on): Likewise.
43922         * modules/settime (Depends-on): Likewise.
43923         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43924
43925         fts: avoid leaking fds
43926         * modules/fts (Depends-on): Add cloexec.
43927         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43928         flag.
43929
43930         fts: make directory fds more robust
43931         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43932         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43933
43934         backupfile, chdir-long, fts, savedir: make safer
43935         * lib/backupfile.c (includes): Use "dirent--.h", since
43936         numbered_backup can write to stderr during readdir.
43937         * lib/savedir.c (includes): Likewise.
43938         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43939         emulation can write to stderr on failure.
43940         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43941         * lib/getcwd.c: Document why opendir_safer is unused.
43942         * lib/glob.c: Likewise.
43943         * lib/scandir.c: Likewise.
43944         * lib/openat-proc.c: Likewise, for open_safer.
43945         * modules/backupfile (Depends-on): Add dirent-safer.
43946         * modules/savedir (Depends-on): Likewise.
43947         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43948         * modules/chdir-long (Depends-on): Add openat-safer.
43949
43950         openat-safer: new module
43951         * modules/openat-safer: New file.
43952         * lib/openat-safer.c: Likewise.
43953         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43954         * lib/fcntl-safer.h (openat_safer): Declare.
43955         * lib/fcntl--.h (openat): Override.
43956         * MODULES.html.sh (File descriptor based I/O): Mention it.
43957         * lib/openat.h: Add double-inclusion guards.
43958         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43959         "fcntl--.h", so we can implement openat.
43960         * modules/openat-safer-tests: New test.
43961         * tests/test-openat-safer.c: New file.
43962
43963         dirent-safer: new module
43964         * modules/dirent-safer: New file.
43965         * lib/dirent--.h: Likewise.
43966         * lib/dirent-safer.h: Likewise.
43967         * lib/opendir-safer.c: Likewise.
43968         * m4/dirent-safer.m4: Likewise.
43969         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43970         * modules/dirent-safer-tests: New test.
43971         * tests/test-dirent-safer.c: New file.
43972         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43973
43974         fdopendir: optimize on mingw
43975         * lib/unistd.in.h (_gl_directory_name): New prototype.
43976         * lib/fchdir.c (_gl_directory_name): Implement it.
43977         (fchdir): Use it to simplify implementation.
43978         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43979         fchdir, when available, to avoid calling [f]chdir().
43980
43981         fdopendir: split into its own module
43982         * lib/openat.c (fdopendir): Move...
43983         * lib/fdopendir.c: ...into new file.
43984         * modules/fdopendir: New module.
43985         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43986         * modules/openat (Depends-on): Add fdopendir.
43987         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43988         fdopendir here.
43989         * modules/savedir (Depends-on): Only need fdopendir, not full
43990         openat.
43991         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43992         * lib/openat.h (fdopendir): Drop prototype.
43993         * lib/dirent.in.h (fdopendir): Provide prototype.
43994         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43995         * modules/dirent (Makefile.am): Substitute them.
43996         * MODULES.html.sh (File system functions): Mention it.
43997         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43998         * modules/fdopendir-tests: New file.
43999         * tests/test-fdopendir.c: Likewise.
44000
44001         fchdir: use more consistent macro convention
44002         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44003         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44004         REPLACE_FCHDIR, rather than relying on config.h macros.
44005         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44006         inside a single make-time REPLACE_FCHDIR block, rather than using
44007         the config.h FCHDIR_REPLACEMENT.
44008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44009         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44010         Manage fstat replacement.
44011         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44012         REPLACE_FCHDIR.
44013         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44014         (Makefile.am): Substitute REPLACE_FCHDIR.
44015         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44016         FCHDIR_REPLACEMENT.
44017         * lib/dup-safer.c (dup_safer): Likewise.
44018         * lib/dup2.c (rpl_dup2): Likewise.
44019         * lib/dup3.c (rpl_dup3): Likewise.
44020         * lib/open.c (rpl_open): Likewise.
44021
44022         fchdir: simplify error handling, and support dup3
44023         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44024         stdbool, malloc-posix, realloc-posix.
44025         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44026         (ensure_dirs_slot): Return false on allocation failure.
44027         (rpl_dup2): Delete.
44028         (_gl_register_dup): New function.
44029         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44030         (_gl_register_fd): Close fd on allocation failure.
44031         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44032         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44033         prototype.
44034         (rpl_dup2_fchdir): Delete prototype.
44035         * lib/open.c (open): Update caller.
44036         * lib/dup2.c (dup2): Track fchdir metadata.
44037         * lib/dup3.c (dup3): Likewise.
44038         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44040
44041 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44042
44043         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44044         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44045         don't pass arguments to AC_OUTPUT.
44046
44047 2009-09-02  Bruno Haible  <bruno@clisp.org>
44048
44049         * modules/mkdtemp (License): Relicense under LGPLv2+.
44050         Reported by Paolo Bonzini.
44051
44052 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44053
44054         Replace uses of obsolete autoconf macros in Jim's modules.
44055         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44056         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44057         can evoke a warning from autoconf when run with -Wobsolete
44058         enabled.  They were declared obsolete for good reasons (see
44059         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44060         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44061         should not continue using the deprecated macros.
44062         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44063         obsolete Autoconf macros with modern counterparts.
44064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44065         * m4/dos.m4 (gl_AC_DOS): Likewise.
44066         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44068         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44069         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44070         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44072         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44073         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44074         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44075         Likewise.
44076         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44077         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44078         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44079         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44080         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44081         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44082
44083 2009-09-01  Eric Blake  <ebb9@byu.net>
44084
44085         fchdir: fix off-by-one bug in previous patch
44086         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44087         (_gl_unregister_fd): Delete useless if.
44088
44089 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44090
44091         maint.mk: sort the list of syntax-check rules
44092         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44093         easier to get a sense of progress when the rules are run sequentially
44094         and take a long time.
44095
44096 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44097
44098         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44099         * modules/netinet_in: Likewise.
44100         * modules/sys_file: Likewise.
44101         * modules/sys_ioctl: Likewise.
44102         * modules/sys_select: Likewise.
44103         * modules/sys_socket: Likewise.
44104         * modules/sys_stat: Likewise.
44105         * modules/sys_time: Likewise.
44106         * modules/sys_times: Likewise.
44107         * modules/sys_utsname: Likewise.
44108         * modules/sys_wait: Likewise.
44109
44110 2009-09-01  Jim Meyering  <meyering@redhat.com>
44111
44112         fts: help ensure that return values are not ignored
44113         * lib/fts_.h (__GNUC_PREREQ): Define.
44114         (__attribute_warn_unused_result__): Define.
44115         (fts_children, fts_close, fts_open, fts_read): Declare with
44116         __attribute_warn_unused_result__.
44117
44118         fts: fts_close now fails also when closing a dir file descriptor fails
44119         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44120         and propagate to caller, along with errno.
44121
44122         announce-gen: correct formatting in --help output
44123         * build-aux/announce-gen (usage): Move the one-line description in
44124         --help output "up", to where it belongs, just after Usage:.
44125
44126 2009-08-31  Eric Blake  <ebb9@byu.net>
44127
44128         fchdir: port to mingw
44129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44130         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44131         opened, then use a substitute.
44132         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44133         replacement.
44134         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44135         (_gl_register_fd): No need to check stat if open already filters
44136         all directories.
44137         (fchdir): Fix error condition to match POSIX.
44138         * modules/fchdir (Depends-on): Add sys_stat.
44139         * doc/posix-functions/open.texi (open): Document the limitation.
44140         * modules/fchdir-tests: New file.
44141         * tests/test-fchdir.c: Likewise.
44142
44143         canonicalize: allow cross-testing from cygwin to mingw
44144         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44145         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44146         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44147         Likewise.
44148         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44149         target does not support symlinks.
44150         * tests/test-canonicalize-lgpl.sh: Likewise.
44151
44152         chown: avoid compilation warning on mingw
44153         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44154         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44155         mingw.
44156         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44157         * modules/chown (Depends-on): Add errno.
44158
44159 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44160
44161         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44162         command.
44163
44164 2009-08-31  Jim Meyering  <meyering@redhat.com>
44165
44166         canonicalize: remove useless initialization
44167         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44168         initialization of local, "end".
44169
44170 2009-08-30  Bruno Haible  <bruno@clisp.org>
44171
44172         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44173         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44174         ENOSYS.
44175
44176 2009-08-30  Bruno Haible  <bruno@clisp.org>
44177
44178         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44179         /usr/xpg4/bin/tr when it exists.
44180         * tests/test-pipe-filter-gi1.sh: Likewise.
44181
44182 2009-08-30  Bruno Haible  <bruno@clisp.org>
44183
44184         Work around deficient /usr/bin/id program on Solaris.
44185         * tests/test-file-has-acl.sh (ID): New variable.
44186         * tests/test-set-mode-acl.sh (ID): Likewise.
44187         * tests/test-copy-acl.sh (ID): Likewise.
44188         * tests/test-copy-file.sh (ID): Likewise.
44189
44190 2009-08-30  Bruno Haible  <bruno@clisp.org>
44191
44192         New module 'xstriconveh'.
44193         * lib/xstriconveh.h: New file.
44194         * lib/xstriconveh.c: New file.
44195         * modules/xstriconveh: New file.
44196
44197 2009-08-30  Bruno Haible  <bruno@clisp.org>
44198
44199         Make it easier to use mem_cd_iconveh.
44200         * lib/striconveh.h (iconveh_t): New type.
44201         (iconveh_open, iconveh_close): New declarations.
44202         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44203         with a single 'const iconveh_t *' argument.
44204         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44205         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44206         with a single 'const iconveh_t *' argument.
44207         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44208         * tests/test-striconveh.c (main): Update.
44209         * NEWS: Mention the change.
44210
44211 2009-08-30  Bruno Haible  <bruno@clisp.org>
44212
44213         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44214         problem.
44215
44216 2009-08-30  Bruno Haible  <bruno@clisp.org>
44217
44218         Work around iconv_open problem on Solaris.
44219         * lib/iconv_open-solaris.gperf: New file.
44220         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44221         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44222         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44223         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44224         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44225         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44226
44227 2009-08-29  Jim Meyering  <meyering@redhat.com>
44228
44229         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44230         * top/maint.mk (cvs-check): Remove target; it was just an alias
44231         to the better-named vc-diff-check.
44232         (maintainer-distcheck): Remove rule.  It was used only from
44233         the (alpha/beta/major) target, and all of its commands but one
44234         were coreutils-specific.
44235         (vc-dist): Remove rule.
44236         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44237         Run vc-diff-check, not vc-dist.
44238         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44239
44240 2009-08-27  Bruno Haible  <bruno@clisp.org>
44241
44242         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44243         of 0.
44244
44245 2009-08-27  Bruno Haible  <bruno@clisp.org>
44246
44247         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44248         compilers.
44249         * doc/func.texi: Document the SunPRO C bug.
44250
44251 2009-08-27  Bruno Haible  <bruno@clisp.org>
44252
44253         Fix link error on Solaris.
44254         * tests/test-parse-duration.c (xstrdup): Remove function.
44255
44256 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44257
44258         ignore-value: handle pointer types, too
44259         * lib/ignore-value.h (__attribute__): Remove definition.
44260         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44261         of a more concise and more-often effective "(void) i" statement.
44262         (ignore_ptr): New function to suppress warnings from functions that
44263         return pointers, and to make it explicit that one function doesn't
44264         handle all cases.
44265
44266 2009-08-25  Bruno Haible  <bruno@clisp.org>
44267
44268         dup2: work around a Linux bug.
44269         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44270         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44271         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44272         Reported by Simon Josefsson.
44273
44274 2009-08-25  Jim Meyering  <meyering@redhat.com>
44275
44276         libguestfs uses gnulib
44277         * users.txt: Add libguestfs.
44278
44279 2009-08-24  Eric Blake  <ebb9@byu.net>
44280
44281         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44282         * lib/pipe2.c (includes): Add binary-io.h.
44283         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44284
44285 2009-08-24  Bruno Haible  <bruno@clisp.org>
44286
44287         Tolerate declared but missing accept4 syscall.
44288         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44289         available.
44290         * lib/sys_socket.in.h (accept4): If the function is already present,
44291         override it.
44292         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44293         * modules/accept4 (Makefile.am): Compile accept4.c always.
44294         Reported by Paolo Bonzini and Eric Blake.
44295
44296 2009-08-23  Bruno Haible  <bruno@clisp.org>
44297
44298         New module 'accept4'.
44299         * lib/sys_socket.in.h (accept4): New declaration.
44300         * lib/accept4.c: New file.
44301         * m4/accept4.m4: New file.
44302         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44303         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44304         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44305         HAVE_ACCEPT4.
44306         * modules/accept4: New file.
44307         * doc/glibc-functions/accept4.texi: Mention the new module.
44308
44309 2009-08-24  Jim Meyering  <meyering@redhat.com>
44310
44311         progname: also set global program_invocation_name, when possible
44312         Before this change, a libtool-enabled program that calls glibc's
44313         error function would report the program name as
44314         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44315         * modules/progname (configure.ac): Check for a declaration of
44316         program_invocation_name.
44317         * lib/progname.c:  Include <errno.h>.
44318         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44319         Set program_invocation_name.
44320
44321 2009-08-23  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/dup3.c: Include <string.h>.
44324
44325 2009-08-23  Bruno Haible  <bruno@clisp.org>
44326
44327         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44328         * lib/pipe2.c (pipe2): Likewise.
44329         Suggested by Eric Blake.
44330
44331 2009-08-23  Bruno Haible  <bruno@clisp.org>
44332
44333         Tolerate declared but missing dup3 syscall.
44334         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44335         * lib/unistd.in.h (dup3): If the function is already present,
44336         override it.
44337         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44338         * modules/dup3 (Makefile.am): Compile dup3.c always.
44339         Reported by Paolo Bonzini.
44340
44341 2009-08-23  Bruno Haible  <bruno@clisp.org>
44342
44343         Tolerate declared but missing pipe2 syscall.
44344         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44345         available.
44346         * lib/unistd.in.h (pipe2): If the function is already present,
44347         override it.
44348         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44349         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44350         Reported by Paolo Bonzini.
44351
44352 2009-08-23  Bruno Haible  <bruno@clisp.org>
44353
44354         * lib/pipe2.c (pipe2): Move #ifs inside function.
44355
44356 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44357
44358         quotearg: document limitations of quote_these_too
44359         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44360         those limitations are created.
44361         * lib/quotearg.h (set_char_quoting): Document that digits and
44362         letters that are special after backslash are not permitted.
44363         (quotearg_char): Cross-reference set_char_quoting documentation.
44364
44365 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44366
44367         quotearg: implement custom_quoting_style
44368         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44369         right_quote fields.
44370         (set_custom_quoting): New public function.
44371         (quotearg_buffer_restyled): Add left_quote and right_quote
44372         arguments, handle them very much like locale quoting, and update
44373         all uses.
44374         (quotearg_n_custom): New public function.
44375         (quotearg_n_custom_mem): New public function.
44376         (quotearg_custom): New public function.
44377         (quotearg_custom_mem): New public function.
44378         * lib/quotearg.h: Prototype and document new public functions.
44379         (enum quoting_style): For escape_quoting_style and
44380         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44381         ignored even though they're otherwise like c_quoting_style.
44382         Add custom_quoting_style member and document with comparison to
44383         clocale_quoting_style.
44384         * tests/test-quotearg.c (custom_quotes): New array.
44385         (custom_results): New array.
44386         (main): Extend to test custom quoting.
44387
44388 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44389
44390         quotearg: fix right quote escaping when it's in quote_these_too
44391         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44392         quote, be sure to prepend only one backslash.
44393         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44394         (main): Test it.
44395
44396 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44397
44398         quotearg-tests: test escaping of embedded locale quotes
44399         * tests/test-quotearg.c (struct result_strings): Add member for
44400         new input.
44401         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44402         (inputs): Add new input.
44403         (results_g): Add expected results.
44404         (flag_results): Likewise.
44405         (locale_results): Likewise.
44406         (compare_strings): Check those.
44407
44408 2009-08-23  Bruno Haible  <bruno@clisp.org>
44409
44410         Tests for module 'dup3'.
44411         * modules/dup3-tests: New file.
44412         * tests/test-dup3.c: New file.
44413
44414         New module 'dup3'.
44415         * lib/unistd.in.h (dup3): New declaration.
44416         * lib/dup3.c: New file.
44417         * m4/dup3.m4: New file.
44418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44419         HAVE_DUP3.
44420         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44421         * modules/dup3: New file.
44422         * doc/glibc-functions/dup3.texi: Mention the new module.
44423
44424 2009-08-23  Bruno Haible  <bruno@clisp.org>
44425
44426         Tweak the dup2 test.
44427         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44428         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44429         the test file is still empty. Fix argument order of lseek.
44430
44431 2009-08-23  Bruno Haible  <bruno@clisp.org>
44432
44433         Avoid test link errors when the modules getopt-gnu, gettext are used.
44434         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44436
44437 2009-08-23  Bruno Haible  <bruno@clisp.org>
44438
44439         Fix getdtablesize() on mingw.
44440         * lib/getdtablesize.c (getdtablesize): Implement differently.
44441         * lib/unistd.in.h (getdtablesize): Improve comment.
44442
44443 2009-08-23  Bruno Haible  <bruno@clisp.org>
44444
44445         New module 'mkostemp'.
44446         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44447         * lib/stdlib.in.h (mksotemp): New declaration.
44448         * lib/mkostemp.c: New file, from glibc with modifications.
44449         * lib/tempname.h (GT_FILE): Remove outdated comment.
44450         (gen_tempname): Add flags argument.
44451         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44452         (__GT_FILE): Map to 1.
44453         (small_open, large_open): Remove macros.
44454         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44455         * lib/mkstemp.c (mkstemp): Update.
44456         * lib/mkdtemp.c (mkdtemp): Likewise.
44457         * m4/mkostemp.m4: New file.
44458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44459         HAVE_MKOSTEMP.
44460         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44461         HAVE_MKOSTEMP.
44462         * modules/mkostemp: New file, based on modules/mkstemp.
44463         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44464         * NEWS: Mention the change.
44465
44466 2009-08-23  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44469         Reported by Eric Blake.
44470
44471 2009-08-23  Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44474         Reported by Eric Blake.
44475
44476 2009-08-23  Bruno Haible  <bruno@clisp.org>
44477
44478         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44479         * modules/pipe2 (Depends-on): Likewise.
44480
44481 2009-08-23  Eric Blake  <ebb9@byu.net>
44482
44483         fcntl-h: add O_TTY_INIT support
44484         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44485         * tests/test-fcntl-h.c (o): Test it.
44486         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44487
44488         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44489         * modules/fcntl: Move <fcntl.h> header replacement...
44490         * modules/fcntl-h: ...to new name, so as not to collide with
44491         like-named function.
44492         * tests/test-fcntl.c: Rename...
44493         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44494         * modules/fcntl-tests: Rename...
44495         * modules/fcntl-h-tests: ...to this.  Update test file name.
44496         * modules/chdir-long (Depends-on): Update clients.
44497         * modules/chdir-safer (Depends-on): Likewise.
44498         * modules/fcntl-safer (Depends-on): Likewise.
44499         * modules/fts (Depends-on): Likewise.
44500         * modules/mkancesdirs (Depends-on): Likewise.
44501         * modules/mkdir-p (Depends-on): Likewise.
44502         * modules/open (Depends-on): Likewise.
44503         * modules/savewd (Depends-on): Likewise.
44504         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44505         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44506
44507 2009-08-22  Bruno Haible  <bruno@clisp.org>
44508
44509         * modules/binary-io (License): Relicense under LGPL.
44510         * modules/pipe2 (License): Likewise.
44511
44512 2009-08-22  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44515         return value.
44516         * lib/pipe-filter-gi.c (filter_init): Likewise.
44517         Reported by Eric Blake.
44518
44519 2009-08-22  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44522         * modules/pipe (Depends-on): Add pipe2.
44523
44524 2009-08-22  Bruno Haible  <bruno@clisp.org>
44525
44526         Tests for module 'pipe2'.
44527         * modules/pipe2-tests: New file.
44528         * tests/test-pipe2.c: New file.
44529
44530         New module 'pipe2'.
44531         * lib/unistd.in.h (pipe2): New declaration.
44532         * lib/pipe2.c: New file.
44533         * m4/pipe2.m4: New file.
44534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44535         HAVE_PIPE2.
44536         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44537         * modules/pipe2: New file.
44538         * doc/glibc-functions/pipe2.texi: Mention the new module.
44539
44540 2009-08-22  Bruno Haible  <bruno@clisp.org>
44541
44542         Reference some new glibc functions.
44543         * doc/glibc-functions/accept4.texi: New file.
44544         * doc/glibc-functions/dup3.texi: New file.
44545         * doc/glibc-functions/mkostemp.texi: New file.
44546         * doc/glibc-functions/pipe2.texi: New file.
44547         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44548         (Glibc sys/socket.h): Refer to accept4.
44549         (Glibc unistd.h): Refer to dup3, pipe2.
44550         Reported by Eric Blake.
44551
44552 2009-08-22  Jim Meyering  <meyering@redhat.com>
44553             Bruno Haible  <bruno@clisp.org>
44554
44555         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44556         This makes it so packages using automake-1.11's silent-rules option
44557         can print e.g., a single "GEN    configmake.h" line, rather than
44558         the 30+ statements that perform the job.  If you want to see the
44559         actual commands, you can still run "make V=1".
44560         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44561         so that make output is abbreviated when those variables are defined
44562         appropriately.
44563         * modules/argz: Likewise.
44564         * modules/arpa_inet: Likewise.
44565         * modules/byteswap: Likewise.
44566         * modules/configmake: Likewise.
44567         * modules/dirent: Likewise.
44568         * modules/errno: Likewise.
44569         * modules/fcntl: Likewise.
44570         * modules/float: Likewise.
44571         * modules/fnmatch: Likewise.
44572         * modules/getopt-posix: Likewise.
44573         * modules/glob: Likewise.
44574         * modules/iconv_open: Likewise.
44575         * modules/inttypes: Likewise.
44576         * modules/localcharset: Likewise.
44577         * modules/locale: Likewise.
44578         * modules/math: Likewise.
44579         * modules/netdb: Likewise.
44580         * modules/netinet_in: Likewise.
44581         * modules/poll: Likewise.
44582         * modules/posix_spawnp-tests: Likewise.
44583         * modules/sched: Likewise.
44584         * modules/search: Likewise.
44585         * modules/selinux-h: Likewise.
44586         * modules/signal: Likewise.
44587         * modules/spawn: Likewise.
44588         * modules/stdarg: Likewise.
44589         * modules/stdbool: Likewise.
44590         * modules/stddef: Likewise.
44591         * modules/stdint: Likewise.
44592         * modules/stdio: Likewise.
44593         * modules/stdlib: Likewise.
44594         * modules/string: Likewise.
44595         * modules/strings: Likewise.
44596         * modules/sys_file: Likewise.
44597         * modules/sys_ioctl: Likewise.
44598         * modules/sys_select: Likewise.
44599         * modules/sys_socket: Likewise.
44600         * modules/sys_stat: Likewise.
44601         * modules/sys_time: Likewise.
44602         * modules/sys_times: Likewise.
44603         * modules/sys_utsname: Likewise.
44604         * modules/sys_wait: Likewise.
44605         * modules/sysexits: Likewise.
44606         * modules/time: Likewise.
44607         * modules/unistd: Likewise.
44608         * modules/wchar: Likewise.
44609         * modules/wctype: Likewise.
44610
44611 2009-08-22  Jim Meyering  <meyering@redhat.com>
44612
44613         announce-gen: detect write failure
44614         * build-aux/announce-gen: Add Coda at end.
44615         Remove equivalent-but-more-verbose block at top.
44616
44617 2009-08-19  Akim Demaille  <demaille@gostai.com>
44618
44619         bootstrap: --help to stdout.
44620         * bootstrap (usage): Don't send --help to stderr.
44621         Use a here doc instead of a long string.
44622
44623 2009-08-21  Eric Blake  <ebb9@byu.net>
44624
44625         test-popen-safer: split from test-popen
44626         * tests/test-popen.c (main): Move...
44627         * tests/test-popen.h: ...into new file.
44628         * tests/test-popen-safer2.c: New file.
44629         * modules/popen-tests (Files): Add test-popen.h.
44630         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44631         Suggested by Bruno Haible.
44632
44633         test-fcntl-safer: split from test-open
44634         * tests/test-open.c (main): Move...
44635         * tests/test-open.h: ...into new file.
44636         * tests/test-fcntl-safer.c: New file.
44637         * modules/open-tests (Files): Add test-open.h.
44638         * modules/fcntl-safer-tests: New file.
44639         Suggested by Bruno Haible.
44640
44641         test-fopen-safer: split from test-fopen
44642         * tests/test-fopen.c (main): Move...
44643         * tests/test-fopen.h: ...into new file.
44644         * tests/test-fopen-safer.c: New file.
44645         * modules/fopen-tests (Files): Add test-fopen.h.
44646         * modules/fopen-safer-tests: New file.
44647         Suggested by Bruno Haible.
44648
44649 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44650
44651         popen-safer: test O_CLOEXEC at run-time.
44652         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44653
44654 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44655
44656         fcntl: move more flags to the header
44657         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44658         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44659         * lib/fcntl.in.h: Do both things here.
44660
44661 2009-08-21  Jim Meyering  <meyering@redhat.com>
44662
44663         consistently remove $@-t before redirecting to it
44664         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44665         * modules/alloca-opt: Likewise.
44666         * modules/byteswap: Likewise.
44667         * modules/fnmatch: Likewise.
44668         * modules/getopt-posix: Likewise.
44669         * modules/glob: Likewise.
44670         * modules/poll: Likewise.
44671         * modules/posix_spawnp-tests: Likewise.
44672         * modules/sys_socket: Likewise.
44673         * modules/sysexits: Likewise.
44674
44675 2009-08-21  Eric Blake  <ebb9@byu.net>
44676
44677         popen: simplify access to original popen
44678         * lib/popen.c (rpl_popen): No need to worry about popen being a
44679         macro.
44680         Reported by Bruno Haible.
44681
44682 2009-08-20  Eric Blake  <ebb9@byu.net>
44683
44684         build: avoid some compiler warnings
44685         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44686         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44687         type.
44688         (new_exclude_segment, excluded_file_pattern_p)
44689         (excluded_file_name_p): Reduce scope.
44690         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44691         old-style declaration.
44692
44693 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44694
44695         * tests/test-exclude1.sh: Handle Windows EOL.
44696         * tests/test-exclude2.sh: Likewise.
44697         * tests/test-exclude3.sh: Likewise.
44698         * tests/test-exclude4.sh: Likewise.
44699         * tests/test-exclude5.sh: Likewise.
44700         * tests/test-exclude6.sh: Likewise.
44701         * tests/test-exclude7.sh: Likewise.
44702
44703 2009-08-19  Akim Demaille  <demaille@gostai.com>
44704
44705         bootstrap: find sha1sum when named gsha1sum.
44706         * bootstrap (find_tool): New.
44707         ($SHA1SUM): New.
44708         Use it.
44709
44710 2009-08-20  Jim Meyering  <meyering@redhat.com>
44711
44712         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44713         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44714         expression that converts "." in a file name to "\." in the resulting
44715         regexp.  Start with a dummy statement, so that prior shell variable
44716         definitions are expanded portably.  Reported by Simon Josefsson.
44717
44718 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44719
44720         Fix polling for writeability of a screen buffer.
44721         * lib/poll.c: Distinguish input and screen buffers for the
44722         Win32 implementation.
44723         * lib/select.c: Likewise.
44724
44725 2009-08-19  Eric Blake  <ebb9@byu.net>
44726
44727         popen-safer: prevent popen from clobbering std descriptors
44728         * modules/popen-safer: New file.
44729         * lib/popen-safer.c: Likewise.
44730         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44731         * lib/stdio--.h (popen): Provide override.
44732         * lib/stdio-safer.h (popen_safer): Provide declaration.
44733         * tests/test-popen.c (includes): Partially test this.
44734         * modules/popen-safer-tests: New file, for more tests.
44735         * tests/test-popen-safer.c: Likewise.
44736         * MODULES.html.sh (file stream based Input/Output): Mention it.
44737
44738         tests: test some of the *-safer modules
44739         * modules/fopen-safer (Depends-on): Add fopen.
44740         * modules/fcntl-safer (Depends-on): Add fcntl.
44741         * modules/stdlib-safer (Depends-on): Add stdlib.
44742         (configure.ac): Set indicator.
44743         * modules/unistd-safer (configure.ac): Likewise.
44744         * modules/tmpfile-safer (configure.ac): Likewise.
44745         (Depends-on): Add tmpfile.
44746         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44747         active.
44748         * tests/test-fopen.c (includes): Test safer versions when they are
44749         in use.
44750         * tests/test-open.c (includes): Likewise.
44751
44752         popen: fix cygwin 1.5 bug when stdin closed
44753         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44754         * modules/popen: New file.
44755         * modules/popen-tests: Likewise.
44756         * tests/test-popen.c: Likewise.
44757         * m4/popen.m4: Likewise.
44758         * lib/popen.c: Likewise.
44759         * lib/stdio.in.h (popen): New declaration.
44760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44761         * modules/stdio (Makefile.am): Likewise.
44762         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44763
44764 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44765
44766         maint.mk: give full control over update-copyright exclusions
44767         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44768         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44769         (update-copyright): Don't force inclusion of top-level
44770         ChangeLog.  Don't force exclusion of all COPYING files, but make
44771         them the default exclusion instead.
44772
44773 2009-08-16  Bruno Haible  <bruno@clisp.org>
44774
44775         Fix test failures on Solaris 10.
44776         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44777         tests when Solaris iconv() is used.
44778         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44779         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44780         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44781         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44782         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44783
44784 2009-08-16  Bruno Haible  <bruno@clisp.org>
44785
44786         Fix test failures on Solaris 10.
44787         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44788         'tr' program and pass it as first argument.
44789         * tests/test-pipe-filter-gi1.sh: Likewise.
44790         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44791         program as first argument.
44792         * tests/test-pipe-filter-gi1.c (main): Likewise.
44793
44794 2009-08-16  Eric Blake  <ebb9@byu.net>
44795
44796         fpurge: fix previous commits
44797         * modules/fpurge (Makefile.am): Make replacement conditional,
44798         partially reverting 2007-04-29 change; missed in previous
44799         attempt.
44800         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44801         is missing.
44802
44803 2009-08-16  Bruno Haible  <bruno@clisp.org>
44804
44805         Clarify fpurge's effect on the file position.
44806         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44807         * tests/test-fpurge.c (main): Make a second pass for checking the file
44808         position.
44809
44810 2009-08-16  Bruno Haible  <bruno@clisp.org>
44811
44812         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44813         declaration of fpurge is missing.
44814         * tests/test-fpurge.c (main): Check that the file has not more contents
44815         than expected. Close the file before removing it.
44816
44817 2009-08-15  Eric Blake  <ebb9@byu.net>
44818
44819         fpurge: don't wrap working cygwin implementation
44820         * lib/fpurge.c (fpurge): Fix comment typo.
44821         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44822         1.7 to avoid replacement.
44823         * tests/test-fpurge.c (main): Enhance test.
44824
44825 2009-08-15  Eric Blake  <ebb9@byu.net>
44826         and Jim Meyering  <meyering@redhat.com>
44827
44828         test-update-copyright: skip if perl is insufficient
44829         * tests/test-update-copyright.sh: Failure to run maintainer tool
44830         should not cause testsuite failure on cygwin 1.5.
44831
44832 2009-08-14  Eric Blake  <ebb9@byu.net>
44833
44834         doc: mention more functions added in cygwin 1.7.0
44835         * doc/posix-headers/limits.texi (limits.h): Update for recent
44836         cygwin additions.
44837         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44838         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44839         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44840         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44841         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44842
44843 2009-08-14  Eric Blake  <ebb9@byu.net>
44844
44845         maint.mk: simplify update-copyright rule
44846         * top/maint.mk (update-copyright-local): Delete, and document how
44847         to do it in cfg.mk instead.
44848         (update-copyright-exclude-regexp): Delete, and document how to do
44849         it in .x-update-copyright instead.
44850         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44851         exclude ChangeLog.
44852
44853 2009-08-14  Bruno Haible  <bruno@clisp.org>
44854
44855         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44856
44857 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44858
44859         maint.mk: support update-copyright-env
44860         * top/maint.mk (update-copyright-env): Define place-holder.
44861         (update-copyright): Expand $(update-copyright-env) before
44862         invoking update-copyright.
44863
44864 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44865
44866         update-copyright: implement forced reformatting
44867         * build-aux/update-copyright: Implement and document
44868         UPDATE_COPYRIGHT_FORCE.
44869         * tests/test-update-copyright.sh: Test it.
44870
44871 2009-08-14  Eric Blake  <ebb9@byu.net>
44872         and Bruno Haible  <bruno@clisp.org>
44873
44874         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44875         * tests/test-locale.c: Revert previous patch related to NULL.
44876         * tests/test-stdio.c: Likewise.
44877         * tests/test-stdlib.c: Likewise.
44878         * tests/test-string.c: Likewise.
44879         * tests/test-unistd.c: Likewise.
44880         * modules/time-tests (Depends-on): Add verify.
44881         * modules/wchar-tests (Depends-on): Likewise.
44882         * tests/test-time.c: Test for NULL compliance.
44883         * tests/test-wchar.c: Likewise.
44884         * modules/locale (Depends-on): Add stddef.
44885         * modules/stdio (Depends-on): Likewise.
44886         * modules/stdlib (Depends-on): Likewise.
44887         * modules/string (Depends-on): Likewise.
44888         * modules/time (Depends-on): Likewise.
44889         * modules/unistd (Depends-on): Likewise.
44890         * modules/wchar (Depends-on): Likewise.
44891         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44892         * lib/stdlib.in.h (includes): Likewise.
44893         * lib/string.in.h (includes): Likewise.
44894         * lib/time.in.h (includes): Likewise.
44895         * lib/unistd.in.h (includes): Likewise.
44896         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44897         replaced.
44898         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44899         * m4/stddef_h.m4: New file.
44900         * modules/stddef: Likewise.
44901         * lib/stddef.in.h: Likewise.
44902         * modules/stddef-tests: Likewise.
44903         * tests/test-stddef.c: Likewise.
44904         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44905         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44906         * doc/posix-headers/locale.texi (locale.h): Likewise.
44907         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44908         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44909         * doc/posix-headers/string.texi (string.h): Likewise.
44910         * doc/posix-headers/time.texi (time.h): Likewise.
44911         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44912         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44913
44914 2009-08-14  Eric Blake  <ebb9@byu.net>
44915
44916         doc: improve git diff of texinfo files
44917         * .gitattributes: Add rule for *.texi files, with hint on how to
44918         use it.
44919         Copied from m4, and based on a report by Bruno Haible.
44920
44921 2009-08-14  Bruno Haible  <bruno@clisp.org>
44922
44923         Disable multithread support by default on Cygwin 1.5.x for real.
44924         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44925
44926 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44927
44928         update-copyright: much ado about intervals
44929         * build-aux/update-copyright: Implement and document
44930         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44931         of copyright year intervals.
44932         Also, document UPDATE_COPYRIGHT_YEAR.
44933         * tests/test-update-copyright.sh: Test it.
44934
44935         update-copyright: convert 2-digit to 4-digit years
44936         * build-aux/update-copyright: Implement and document.
44937         * tests/test-update-copyright.sh: Update.
44938
44939 2009-08-14  Jim Meyering  <meyering@redhat.com>
44940
44941         test-exclude: avoid coreutils "make check" failure
44942         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44943         just as in test-argmatch.c.
44944
44945 2009-08-13  Eric Blake  <ebb9@byu.net>
44946
44947         test-dup2: fix bad assumption
44948         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44949         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44950
44951         test-version-etc: fix CRLF portability issue
44952         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44953         recognize \r.
44954         * tests/test-argp-version-etc-1.sh: Likewise.
44955
44956         getopt: update client modules
44957         * modules/argp (Depends-on): Use getopt-gnu.
44958         * modules/git-merge-changelog (Depends-on): Likewise.
44959         * modules/long-options (Depends-on): Likewise.
44960         * modules/xstrtol (Depends-on): Likewise.
44961
44962 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44963
44964         * tests/test-version-etc.sh: Don't fail on different
44965         project/version.  Don't fail on CRLF differences.  Rewrite to use
44966         multiple -e instead of multiple sed forks, suggested by Eric Blake
44967         <ebb9@byu.net>.
44968         * tests/test-argp-version-etc-1.sh: Likewise.
44969
44970 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44971
44972         * tests/test-version-etc.sh: Don't fail on different
44973         project/version.
44974
44975 2009-08-12  Bruno Haible  <bruno@clisp.org>
44976
44977         Tests for modules 'getopt-posix', 'getopt-gnu'.
44978         * modules/getopt-posix-tests: New file.
44979         * tests/test-getopt.c: New file.
44980         * tests/test-getopt.h: New file.
44981         * tests/test-getopt_long.h: New file.
44982
44983         New modules 'getopt-posix', 'getopt-gnu'.
44984         * modules/getopt-gnu: New file, renamed from modules/getopt.
44985         * modules/getopt-posix: New file.
44986         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44987         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44988         (gl_GETOPT): Remove macro.
44989         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44990         Disable the test against BSD systems that declare optreset. Test
44991         against mingw bug. Test against lack of support of optional arguments
44992         on many platforms.
44993         * doc/glibc-headers/getopt.texi: Update module name and list of
44994         relevant platforms.
44995         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44996         'getopt-gnu' and more portability problems.
44997         * NEWS: Mention the changes.
44998
44999 2009-08-12  Bruno Haible  <bruno@clisp.org>
45000
45001         Ensure that optarg etc. get declared by <unistd.h>.
45002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45003         AC_USE_SYSTEM_EXTENSIONS.
45004         * modules/getopt (Depends-on): Add 'extensions'.
45005
45006 2009-08-12  Bruno Haible  <bruno@clisp.org>
45007
45008         Avoid test link errors.
45009         * modules/pipe-filter-ii-tests (Makefile.am): Define
45010         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45011         * modules/pipe-filter-gi-tests (Makefile.am): Define
45012         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45014
45015 2009-08-12  Bruno Haible  <bruno@clisp.org>
45016
45017         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45018         gl_GETOPT_SUBSTITUTE before.
45019         (gl_GETOPT): Use it.
45020         * m4/argp.m4 (gl_ARGP): Update.
45021         Reported by Sergey Poznyakoff.
45022
45023         * m4/getopt.m4: Reorder macros.
45024         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45025         (gl_GETOPT_SUBSTITUTE): Remove macro.
45026
45027 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45028
45029         Minor improvement in gitlog-to-changelog
45030
45031         * build-aux/gitlog-to-changelog: New option `--format' makes
45032         output format string configurable.
45033
45034 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45035
45036         Optimize exclude: use hash tables for non-wildcard patterns.
45037
45038         * lib/exclude.c: Include hash.h and mbuiter.h
45039         (struct exclude_pattern, exclude_segment): New data types.
45040         (struct exclude): Rewrite.
45041         (fnmatch_pattern_has_wildcards): New function.
45042         (new_exclude_segment, free_exclude_segment): New functions.
45043         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45044         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45045         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45046         * modules/exclude: Depend on hash and mbuiter.
45047
45048         * modules/exclude-tests: New file.
45049         * tests/test-exclude.c: New file.
45050         * tests/test-exclude1.sh: New file.
45051         * tests/test-exclude2.sh: New file.
45052         * tests/test-exclude3.sh: New file.
45053         * tests/test-exclude4.sh: New file.
45054         * tests/test-exclude5.sh: New file.
45055         * tests/test-exclude6.sh: New file.
45056         * tests/test-exclude7.sh: New file.
45057
45058 2009-08-12  Bruno Haible  <bruno@clisp.org>
45059
45060         Ensure that getopt() gets declared by <unistd.h>.
45061         * lib/unistd.in.h: Conditionally include getopt.h.
45062         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45063         Set GNULIB_UNISTD_H_GETOPT.
45064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45065         GNULIB_UNISTD_H_GETOPT.
45066         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45067
45068 2009-08-12  Bruno Haible  <bruno@clisp.org>
45069
45070         Clarify logic.
45071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45072         gl_replace_getopt instead of GETOPT_H.
45073
45074 2009-08-12  Bruno Haible  <bruno@clisp.org>
45075
45076         * m4/getopt.m4: Add comments.
45077
45078 2009-08-12  Bruno Haible  <bruno@clisp.org>
45079
45080         Disable multithread support by default on Cygwin 1.5.x.
45081         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45082         set gl_use_threads=no if not specified otherwise.
45083
45084 2009-08-11  Bruno Haible  <bruno@clisp.org>
45085
45086         Avoid compilation error on NetBSD 5.0.
45087         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45088         * tests/test-stdio.c: Likewise.
45089         * tests/test-stdlib.c: Likewise.
45090         * tests/test-string.c: Likewise.
45091         * tests/test-unistd.c: Likewise.
45092         Reported by Greg Troxel <gdt@ir.bbn.com>
45093         at <https://savannah.gnu.org/support/?106973>.
45094
45095 2009-08-11  Bruno Haible  <bruno@clisp.org>
45096
45097         * modules/dup2-tests (Depends-on): Remove close.
45098
45099         Undo 2009-07-19 commit.
45100         * modules/acl-tests (Depends-on): Remove close.
45101         * modules/binary-io-tests (Depends-on): Likewise.
45102         * modules/closein-tests (Depends-on): Likewise.
45103         * modules/flock-tests (Depends-on): Likewise.
45104         * modules/fsync-tests (Depends-on): Likewise.
45105         * modules/lseek-tests (Depends-on): Likewise.
45106         * modules/pipe-tests (Depends-on): Likewise.
45107         * modules/posix_spawn-tests (Depends-on): Likewise.
45108         * modules/posix_spawnp-tests (Depends-on): Likewise.
45109         * modules/stat-time-tests (Depends-on): Likewise.
45110         * modules/yesno-tests (Depends-on): Likewise.
45111
45112 2009-08-10  Bruno Haible  <bruno@clisp.org>
45113
45114         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45115
45116 2009-08-10  Bruno Haible  <bruno@clisp.org>
45117
45118         Fix a gcc warning.
45119         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45120
45121 2009-08-10  Bruno Haible  <bruno@clisp.org>
45122
45123         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45124         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45125         not only the first time.
45126         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45127         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45128         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45129         is 1, not only the the first time.
45130
45131 2009-08-10  Bruno Haible  <bruno@clisp.org>
45132
45133         Make it possible to use module 'gethostname' without module 'close'.
45134         * lib/unistd.in.h (close): Evoke a link error only if
45135         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45137         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45138         * modules/unistd (Makefile.am): Substitute
45139         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45140         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45141         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45143         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45144         * modules/sys_ioctl (Makefile.am): Substitute
45145         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45146         * modules/socket (configure.ac): On native Windows, set
45147         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45148         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45149         Reported by Sam Steingold <sds@gnu.org>.
45150
45151 2009-08-10  Bruno Haible  <bruno@clisp.org>
45152
45153         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45154         * modules/ioctl (configure.ac): Likewise.
45155
45156 2009-08-10  Bruno Haible  <bruno@clisp.org>
45157
45158         Avoid collision between gnulib wrapper and libintl wrapper.
45159         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45160         already defined in intl/printf.c.
45161         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45162         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45163
45164 2009-08-09  Bruno Haible  <bruno@clisp.org>
45165
45166         Make <sys/select.h> really self-contained, also on Solaris 10.
45167         * lib/sys_select.in.h: Include <string.h>.
45168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45169         Solaris 10 problem.
45170         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45171         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45172         Reported by Jim Meyering.
45173
45174 2009-08-09  Bruno Haible  <bruno@clisp.org>
45175
45176         Avoid warnings from 'aclocal' that are due to a use of macro name
45177         AM_XGETTEXT_OPTION that is not defined in automake.
45178         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45179         automake.
45180         * modules/error (configure.ac): Likewise.
45181         * modules/propername (configure.ac): Likewise.
45182         * modules/vasprintf (configure.ac): Likewise.
45183         * modules/verror (configure.ac): Likewise.
45184         * modules/xprintf (configure.ac): Likewise.
45185         * modules/xvasprintf (configure.ac): Likewise.
45186
45187 2009-08-08  Bruno Haible  <bruno@clisp.org>
45188
45189         Avoid compilation error in C++ mode.
45190         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45191         Reported by Sam Steingold <sds@gnu.org>.
45192
45193 2009-08-08  Bruno Haible  <bruno@clisp.org>
45194
45195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45196         for the various Unix platforms.
45197         * doc/posix-headers/limits.texi: Update platforms list regarding
45198         HOST_NAME_MAX.
45199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45200
45201 2009-08-07  Jim Meyering  <meyering@redhat.com>
45202
45203         selinux-at: fix typo in a comment
45204         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45205         Spotted by Paolo Bonzini.
45206
45207         selinux-at: remove redundant m4 code, add documentation
45208         * modules/selinux-at (configure.ac): Remove redundant code.
45209         LIB_SELINUX is already set via the dependent module, selinux-h.
45210         (Include): Add quotes around selinux-at.h.
45211         * lib/selinux-at.h: Add documentation.
45212         Reported by Bruno Haible in
45213         http://marc.info/?l=gnulib-bug&m=124958988300749
45214
45215 2009-08-07  Bruno Haible  <bruno@clisp.org>
45216
45217         Avoid link error on MacOS X 10.3 and 10.4.
45218         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45219         on non-ELF systems.
45220         * lib/argp-pv.c (argp_program_version): Likewise.
45221         Reported by Simon Josefsson.
45222
45223 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45224
45225         * tests/test-version-etc.sh: Use $EXEEXT.
45226
45227 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45228
45229         update-copyright: update documentation to point to maint.mk
45230         * build-aux/update-copyright: Here.
45231
45232 2009-08-06  Jim Meyering  <meyering@redhat.com>
45233
45234         maint.mk: support update-copyright-local
45235         * top/maint.mk (update-copyright-local): Define place-holder.
45236         (update-copyright): Depend on $(update-copyright-local).
45237
45238 2009-08-06  Jim Meyering  <meyering@redhat.com>
45239
45240         selinux-at: new module
45241         Initially written for coreutils, this module will soon be
45242         used by findutils, too.
45243         * MODULES.html.sh [Misc]: Add selinux-at.
45244         * lib/selinux-at.h: New file, from coreutils.
45245         * lib/selinux-at.c: Likewise.
45246         * modules/selinux-at: Likewise.
45247         (License): Change from LGPL to GPL, since it depends
45248         on the GPL'd openat module.
45249
45250         doc: update README
45251         * README: Remove references to cogito.
45252         Remove cvs-repo-updating instructions from 2007.
45253         Don't imply that CVS is better if you have limited disk space.
45254
45255 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45256
45257         update-copyright: support C-style comments
45258         * build-aux/update-copyright: Implement and document.
45259         * tests/test-update-copyright.sh: Test.
45260
45261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45262
45263         update-copyright: support omitted "(C)"
45264         * build-aux/update-copyright: Implement and document.  Also,
45265         allow variable whitespace before "(C)".
45266         * tests/test-update-copyright.sh: Test.
45267
45268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45269
45270         update-copyright: don't trip on non-FSF copyright statements
45271         * build-aux/update-copyright: Fix so that the first correctly
45272         formatted FSF copyright statement is recognized no matter what
45273         appears before it.  Update documentation.
45274         * tests/test-update-copyright.sh: Test that.
45275
45276 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45277
45278         update-copyright: clean up code a little
45279         * build-aux/update-copyright: Append "_re" to the name of any
45280         variable holding a regular expression.
45281         Replace "old" and "new" with "stmt" in variable names.
45282         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45283         handled correctly.
45284         Format code more consistently.
45285
45286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45287
45288         update-copyright-tests: improve portability
45289         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45290         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45291
45292 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45293
45294         update-copyright: support @copyright{} and &copy;
45295         * build-aux/update-copyright: Implement and document.
45296         * tests/test-update-copyright.sh: Test.
45297
45298 2009-08-04  Jim Meyering  <meyering@redhat.com>
45299
45300         update-copyright-tests: correctly test EOL=\r\n handling
45301         * tests/test-update-copyright.sh: Put \r at the end of some lines
45302         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45303
45304         maint.mk: make update-copyright exclusion list more configurable
45305         * top/maint.mk (update-copyright): Default to excluding COPYING,
45306         but allow an override, in case someone does want to update that file.
45307
45308         maint.mk: don't update copyright date in COPYING
45309         * top/maint.mk (update-copyright): Exclude COPYING.
45310
45311         maint.mk: add a copyright-updating rule
45312         * top/maint.mk (update-copyright): New rule.
45313         Derived from coreutils/Makefile.am.
45314
45315         update-copyright: rename some variables
45316         * build-aux/update-copyright: Rename a few variables for clarity.
45317         Tweak syntax.  List Joel E. Denny as coauthor.
45318
45319 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45320
45321         update-copyright: fix bug for 2-digit last year and add tests
45322         * build-aux/update-copyright: Fix bug.
45323         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45324         specified.
45325         * modules/update-copyright-tests: New
45326         * tests/test-update-copyright.sh: New.
45327
45328 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45329
45330         update-copyright: handle leading tabs in line prefix
45331         * build-aux/update-copyright: Count leading tabs as 8 spaces
45332         when computing margin.  This helps with the formatting of
45333         ChangeLogs, for example.
45334         Fix documentation a little.
45335
45336 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45337
45338         update-copyright: support EOL=\r\n
45339         * build-aux/update-copyright: Implement that.
45340
45341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45342
45343         update-copyright: automatically format copyright statements
45344         * build-aux/update-copyright: Implement that.
45345         Also, be a little more predictable and safer by always failing
45346         when the full copyright format is not perfectly recognized as an
45347         unbroken whole.  Discussed at
45348         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45349         Rewrite documentation.
45350
45351 2009-08-03  Bruno Haible  <bruno@clisp.org>
45352
45353         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45354
45355 2009-08-02  Bruno Haible  <bruno@clisp.org>
45356
45357         Tests for module 'uname'.
45358         * modules/uname-tests: New file.
45359         * tests/test-uname.c: New file.
45360
45361         New module 'uname'.
45362         * lib/uname.c: New file.
45363         * m4/uname.m4: New file.
45364         * modules/uname: New file.
45365         * doc/posix-functions/uname.texi: Mention the new module.
45366
45367 2009-08-02  Bruno Haible  <bruno@clisp.org>
45368
45369         Tests for module 'sys_utsname'.
45370         * modules/sys_utsname-tests: New file.
45371         * tests/test-sys_utsname.c: New file.
45372
45373         New module 'sys_utsname'.
45374         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45375         * m4/sys_utsname_h.m4: New file.
45376         * modules/sys_utsname: New file.
45377         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45378
45379 2009-08-02  Bruno Haible  <bruno@clisp.org>
45380
45381         Implicitly initialize the sockets library.
45382         * lib/gethostname.c: Include sockets.h.
45383         (rpl_gethostname): Invoke gl_sockets_startup.
45384         * lib/socket.c: Include sockets.h.
45385         (rpl_socket): Invoke gl_sockets_startup.
45386         * modules/gethostname (Depends-on): Add sockets.
45387         * modules/socket (Depends-on): Likewise.
45388         * tests/test-poll.c: Don't include sockets.h.
45389         (main): Don't invoke gl_sockets_startup.
45390         * tests/test-select.c: Don't include sockets.h.
45391         (main): Don't invoke gl_sockets_startup.
45392
45393 2009-08-02  Bruno Haible  <bruno@clisp.org>
45394
45395         Allow multiple calls to gl_sockets_startup.
45396         * lib/sockets.c (initialized_sockets_version): New variable.
45397         (gl_sockets_startup): Do nothing if already called for this or a higher
45398         version.
45399         (gl_sockets_cleanup): Reset initialized_sockets_version.
45400
45401 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45402
45403         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45404         different project/version.
45405
45406 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45407             Bruno Haible  <bruno@clisp.org>
45408
45409         Tests for module 'pipe-filter-gi'.
45410         * modules/pipe-filter-gi-tests: New file.
45411         * tests/test-pipe-filter-gi1.sh: New file.
45412         * tests/test-pipe-filter-gi1.c: New file.
45413         * tests/test-pipe-filter-gi2.sh: New file.
45414         * tests/test-pipe-filter-gi2-main.c: New file.
45415         * tests/test-pipe-filter-gi2-child.c: New file.
45416
45417         New module 'pipe-filter-gi'.
45418         * lib/pipe-filter-gi.c: New file.
45419         * modules/pipe-filter-gi: New file.
45420
45421 2009-08-02  Bruno Haible  <bruno@clisp.org>
45422             Paolo Bonzini  <bonzini@gnu.org>
45423
45424         Tests for module 'pipe-filter-ii'.
45425         * modules/pipe-filter-ii-tests: New file.
45426         * tests/test-pipe-filter-ii1.sh: New file.
45427         * tests/test-pipe-filter-ii1.c: New file.
45428         * tests/test-pipe-filter-ii2.sh: New file.
45429         * tests/test-pipe-filter-ii2-main.c: New file.
45430         * tests/test-pipe-filter-ii2-child.c: New file.
45431
45432         New module 'pipe-filter-ii'.
45433         * lib/pipe-filter.h: New file.
45434         * lib/pipe-filter-ii.c: New file.
45435         * lib/pipe-filter-aux.h: New file.
45436         * modules/pipe-filter-ii: New file.
45437
45438 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45439
45440         * lib/gc-libgcrypt.c: Change copyright to FSF.
45441         * lib/gc-gnulib.c: Likewise.
45442
45443 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45444
45445         * lib/gethostname.c: Include limits.h.
45446
45447 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         Ensure HOST_NAME_MAX as part of the gethostname module.
45451         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45452         define also HOST_NAME_MAX.
45453         * tests/test-gethostname.c: Include <limits.h>.
45454         (main): Check also HOST_NAME_MAX.
45455         * doc/posix-headers/limits.texi: Document the mingw problem.
45456
45457 2009-08-02  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45460         Add comments.
45461
45462 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45463
45464         * lib/gethostname.c: Add Windows wrapper.
45465         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45466         * modules/gethostname: Depend on sys_socket & errno, for also
45467         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45468         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45469
45470 2009-07-31  Jim Meyering  <meyering@redhat.com>
45471
45472         getloadavg: fix symbol name in comment
45473         * lib/getloadavg.c: Correct a typo I introduced when adding
45474         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45475         Matt Kraai spotted the problem.
45476
45477 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45478
45479         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45480         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45481         code also if ! defined N_NAME_POINTER.
45482         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45483         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45484         but the n_name member is a 12-byte array.
45485
45486 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45487
45488         update-copyright: generalize comment handling
45489         * build-aux/update-copyright: Handle copyright statements
45490         within more comment styles.
45491         Document usage.
45492         Report any file with an external copyright holder or parse failure.
45493
45494 2009-07-29  Jim Meyering  <meyering@redhat.com>
45495
45496         mktime: correct setting of REPLACE_MKTIME
45497         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45498
45499         update-copyright: new module
45500         * modules/update-copyright: New file.
45501         * build-aux/update-copyright: New file.
45502         * MODULES.html.sh (maint+release support): Add update-copyright.
45503
45504 2009-07-27  Bruno Haible  <bruno@clisp.org>
45505
45506         Fix compilation error when <ctime> is used and mktime is replaced.
45507         * lib/time.in.h (mktime): New declaration.
45508         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45509         REPLACE_MKTIME instead of defining mktime in config.h.
45510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45511         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45512         Reported by Ross McFarland <rwmcfa1@neces.com>.
45513
45514 2009-07-27  Bruno Haible  <bruno@clisp.org>
45515
45516         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45517         Reported by Matt Kraai <mkraai@beckman.com>.
45518
45519 2009-07-25  Jim Meyering  <meyering@redhat.com>
45520
45521         maint.mk: avoid warnings about missing files
45522         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45523         diagnostic when .prev-version does not exist.
45524         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45525         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45526         nonexistent cfg.mk.
45527         Suggestions from Simon Josefsson.
45528
45529 2009-07-25  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45532         defined as macros. Needed on QNX 6.4.1.
45533         Reported by Matt Kraai <mkraai@beckman.com>.
45534
45535 2009-07-23  Jim Meyering  <meyering@redhat.com>
45536
45537         maint.mk: invoke "make dist" with a working value of XZ_OPT
45538         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45539
45540 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45541
45542         Make fseeko.c compile on QNX.
45543         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45544
45545 2009-07-22  Peter Simons  <simons@cryp.to>
45546
45547         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45548         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45549         * lib/md4.h: Likewise.
45550         * lib/md5.h: Likewise.
45551         * lib/sha1.h: Likewise.
45552         * lib/sha256.h: Likewise.
45553         * lib/sha512.h: Likewise.
45554
45555         tests-sha1: don't assign literal string to 'char *' variable
45556         * tests/test-sha1.c (main): Declare locals with "const" to match
45557         attributes of the right hand side.
45558
45559 2009-07-21  Eric Blake  <ebb9@byu.net>
45560
45561         dup2: fix more mingw problems
45562         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45563         fd to itself.
45564         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45565         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45566         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45567         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45568         care of mingw bugs.
45569
45570 2009-07-21  Jim Meyering  <meyering@redhat.com>
45571
45572         vc-list-files: avoid failure when /bin/sh is dash
45573         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45574         On some Debian based systems, /bin/sh is a symlink to dash, and running
45575         this command would omit the "/" following each 'tests' prefix:
45576           dash -x build-aux/vc-list-files -C . tests
45577         That is because bash and dash work differently:
45578           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45579           bash ok
45580           dash odd
45581
45582 2009-07-21  Eric Blake  <ebb9@byu.net>
45583
45584         dup2-tests: test previous patch
45585         * modules/dup2-tests: New file.
45586         * tests/test-dup2.c: Likewise.
45587         * tests/test-open.c (main): Avoid unspecified behavior.
45588         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45589         test.
45590
45591         dup2: work around mingw and cygwin 1.5 bug
45592         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45594         * modules/unistd (Makefile.am): Substitute it.
45595         * lib/unistd.in.h (dup2): Declare the replacement.
45596         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45597         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45598         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45599         * modules/execute (Depends-on): Add dup2.
45600         * modules/fseterr (Depends-on): Likewise.
45601         * modules/pipe (Depends-on): Likewise.
45602         * modules/posix_spawn-internal (Depends-on): Likewise.
45603
45604 2009-07-21  Bruno Haible  <bruno@clisp.org>
45605
45606         * modules/.gitattributes: New file.
45607
45608 2009-07-20  Bruno Haible  <bruno@clisp.org>
45609
45610         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45611         (main): Use it.
45612
45613 2009-07-20  Eric Blake  <ebb9@byu.net>
45614
45615         test-pipe: make a bit more robust.
45616         * tests/test-pipe.c (myerr): Allow error messages regardless of
45617         what we do to stderr.
45618         (test_pipe): Rearrange to avoid deadlock.
45619         (child_main): Try a larger read, to ensure we avoided deadlock.
45620         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45621         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45622         if misused.
45623
45624 2009-07-19  Jim Meyering  <meyering@redhat.com>
45625
45626         fts: avoid false-positive cycle-detection
45627         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45628         for each new command line argument.
45629
45630 2009-07-19  Bruno Haible  <bruno@clisp.org>
45631
45632         Fix build error on mingw with the modules sys_select and unistd.
45633         * modules/acl-tests (Depends-on): Add close.
45634         * modules/binary-io-tests (Depends-on): Likewise.
45635         * modules/closein-tests (Depends-on): Likewise.
45636         * modules/flock-tests (Depends-on): Likewise.
45637         * modules/fsync-tests (Depends-on): Likewise.
45638         * modules/lseek-tests (Depends-on): Likewise.
45639         * modules/pipe-tests (Depends-on): Likewise.
45640         * modules/posix_spawn-tests (Depends-on): Likewise.
45641         * modules/posix_spawnp-tests (Depends-on): Likewise.
45642         * modules/stat-time-tests (Depends-on): Likewise.
45643         * modules/yesno-tests (Depends-on): Likewise.
45644
45645 2009-07-19  Bruno Haible  <bruno@clisp.org>
45646
45647         Unify conditionals.
45648         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45649         macros, not at the compiler macros.
45650         * lib/pipe.c: Likewise.
45651         * lib/execute.c: Likewise.
45652         * lib/spawni.c: Likewise.
45653
45654 2009-07-19  Bruno Haible  <bruno@clisp.org>
45655
45656         Fix handling of closed stdin/stdout/stderr on mingw.
45657         * lib/w32spawn.h: Include unistd.h.
45658         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45659         file descriptor with O_NOINHERIT flag.
45660         (fd_safer_noinherit): New function, based on fd-safer.c.
45661         (dup_safer_noinherit): New function, based on dup-safer.c.
45662         (undup_safer_noinherit): New function.
45663         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45664         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45665         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45666         instead of fd_safer.
45667         * tests/test-pipe.c: Include <windows.h>.
45668         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45669         result.
45670
45671         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45672         from main.
45673         (test_pipe): Pass an extra argument for disambiguation.
45674         (main): Invoke parent_main or child_main.
45675
45676         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45677         consistently.
45678
45679 2009-07-18  Eric Blake  <ebb9@byu.net>
45680
45681         test-pipe: fix mingw build
45682         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45683
45684 2009-07-18  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/pipe-tests (Makefile.am): Fix typo.
45687
45688 2009-07-18  Eric Blake  <ebb9@byu.net>
45689
45690         error: fix mingw build
45691         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45692         Reported by Bruno Haible.
45693
45694         error: avoid undefined use of stdout
45695         * lib/error.c (error, error_at_line): Check that fd 1 is open
45696         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45697         is handling faults and the close_stdout module wants to report the
45698         detection of closed stdout as an error.
45699
45700 2009-07-17  Eric Blake  <ebb9@byu.net>
45701
45702         pipe: be robust in face of closed fds
45703         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45704         should cause child to misbehave.
45705         * modules/pipe-tests: New module.
45706         * tests/test-pipe.c: New file.
45707         * tests/test-pipe.sh: New file.
45708         Reported by Akim Demaille.
45709
45710 2009-07-14  Bruno Haible  <bruno@clisp.org>
45711
45712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45713         Reported by anonymous kc.
45714
45715 2009-07-07  Jim Meyering  <meyering@redhat.com>
45716
45717         maint.mk: don't look for translatable strings in *.m4 or *.mk
45718         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45719         when searching for translatable strings.
45720
45721 2009-07-05  Jim Meyering  <meyering@redhat.com>
45722
45723         remove superfluous parentheses in STREQ definition
45724         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45725         * lib/getugroups.c (STREQ): Likewise.
45726         * lib/fnmatch.c (STREQ): Likewise.
45727         Spotted by Bruno Haible.
45728
45729 2009-07-04  Jim Meyering  <meyering@redhat.com>
45730
45731         argv-iter: new module
45732         * MODULES.html.sh: Add argv-iter.
45733         * lib/argv-iter.c, lib/argv-iter.h: New files.
45734         * modules/argv-iter: New file.
45735         * modules/argv-iter-tests: New file.
45736         * tests/test-argv-iter.c: Test it.
45737
45738 2009-07-04  Bruno Haible  <bruno@clisp.org>
45739
45740         Fix assertion.
45741         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45742         contains more exact copies of a given entry than file2, leave the extra
45743         copies unpaired rather than aborting.
45744         Reported by Eric Blake.
45745
45746 2009-07-02  Bruno Haible  <bruno@clisp.org>
45747
45748         Speedup git-merge-changelog for git cherry-pick.
45749         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45750         (entries_mapping_get): New function, extracted from compute_mapping.
45751         (entries_mapping_reverse_get): New function.
45752         (compute_mapping): Add a 'full' argument. Return the result in a
45753         'struct entries_mapping'.
45754         (main): Update. Access the mappings through entries_mapping_get.
45755         Reported by Eric Blake.
45756
45757 2009-07-02  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45760         best_i.
45761
45762 2009-07-02  Bruno Haible  <bruno@clisp.org>
45763
45764         Speed up approximate search for matching ChangeLog entries.
45765         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45766         argument. Call fstrcmp_bounded instead of fstrcmp.
45767         (compute_mapping, try_split_merged_entry, main): Update callers.
45768
45769 2009-07-02  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45772
45773 2009-06-30  Bruno Haible  <bruno@clisp.org>
45774
45775         Reduce the number of uc_is_cased calls.
45776         * lib/unicase.h (casing_suffix_context_t): Add
45777         'first_char_except_ignorable' field.
45778         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45779         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45780         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45781         Update initializer.
45782         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45783         case-ignorable characters.
45784         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45785         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45786         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45787         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45788         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45789
45790 2009-06-30  Bruno Haible  <bruno@clisp.org>
45791
45792         Tests for module 'unicase/ignorable'.
45793         * modules/unicase/ignorable-tests: New file.
45794         * tests/unicase/test-ignorable.c: New file, generated by
45795         gen-uni-tables.
45796
45797         Tests for module 'unicase/cased'.
45798         * modules/unicase/cased-tests: New file.
45799         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45800         * tests/unicase/test-predicate-part1.h: New file, derived from
45801         tests/unictype/test-predicate-part1.h.
45802         * tests/unicase/test-predicate-part2.h: New file, same as
45803         tests/unictype/test-predicate-part2.h.
45804
45805         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45806         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45807         (output_casing_properties): New function.
45808         (main): Call it.
45809         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45810         * lib/unicase/cased.c: Include unictype/bitmap.h.
45811         (uc_is_cased): Define through a bitmap lookup.
45812         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45813         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45814         (uc_is_case_ignorable): Define through a bitmap lookup.
45815         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45816         lib/unictype/bitmap.h.
45817         (Depends-on): Add inline. Clean up.
45818         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45819         lib/unictype/bitmap.h.
45820         (Depends-on): Add inline. Clean up.
45821         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45822         recognition.
45823         * tests/unicase/test-u16-tolower.c (main): Likewise.
45824         * tests/unicase/test-u32-tolower.c (main): Likewise.
45825
45826 2009-06-30  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45829         * lib/unicase/u16-casemap.c: Likewise.
45830         * lib/unicase/u32-casemap.c: Likewise.
45831
45832 2009-06-29  Bruno Haible  <bruno@clisp.org>
45833
45834         Define u32_casefold as a wrapper around u32_ct_casefold.
45835         * lib/unicase/u32-casefold.c: Update.
45836         * modules/unicase/u32-casefold (Depends-on): Add
45837         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45838         unicase/empty-suffix-context. Clean up.
45839
45840         Define u16_casefold as a wrapper around u16_ct_casefold.
45841         * lib/unicase/u16-casefold.c: Update.
45842         * modules/unicase/u16-casefold (Depends-on): Add
45843         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45844         unicase/empty-suffix-context. Clean up.
45845
45846         Define u8_casefold as a wrapper around u8_ct_casefold.
45847         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45848         * lib/unicase/u8-casefold.c: Update.
45849         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45850         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45851
45852         Define u32_totitle as a wrapper around u32_ct_totitle.
45853         * lib/unicase/u32-totitle.c: Update.
45854         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45855         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45856
45857         Define u16_totitle as a wrapper around u16_ct_totitle.
45858         * lib/unicase/u16-totitle.c: Update.
45859         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45860         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45861
45862         Define u8_totitle as a wrapper around u8_ct_totitle.
45863         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45864         functions.
45865         (FUNC): Delegate to U_CT_TOTITLE.
45866         * lib/unicase/u8-totitle.c: Update.
45867         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45869
45870         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45871         invocation.
45872         * modules/unicase/u32-tolower (Depends-on): Add
45873         unicase/empty-prefix-context, unicase/empty-suffix-context.
45874
45875         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45876         invocation.
45877         * modules/unicase/u16-tolower (Depends-on): Add
45878         unicase/empty-prefix-context, unicase/empty-suffix-context.
45879
45880         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45881         * modules/unicase/u8-tolower (Depends-on): Add
45882         unicase/empty-prefix-context, unicase/empty-suffix-context.
45883
45884         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45885         invocation.
45886         * modules/unicase/u32-toupper (Depends-on): Add
45887         unicase/empty-prefix-context, unicase/empty-suffix-context.
45888
45889         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45890         invocation.
45891         * modules/unicase/u16-toupper (Depends-on): Add
45892         unicase/empty-prefix-context, unicase/empty-suffix-context.
45893
45894         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45895         * modules/unicase/u8-toupper (Depends-on): Add
45896         unicase/empty-prefix-context, unicase/empty-suffix-context.
45897
45898         New module 'unicase/u32-ct-casefold'.
45899         * lib/unicase/u32-ct-casefold.c: New file.
45900         * modules/unicase/u32-ct-casefold: New file.
45901
45902         New module 'unicase/u16-ct-casefold'.
45903         * lib/unicase/u16-ct-casefold.c: New file.
45904         * modules/unicase/u16-ct-casefold: New file.
45905
45906         New module 'unicase/u8-ct-casefold'.
45907         * lib/unicase/u8-ct-casefold.c: New file.
45908         * lib/unicase/u-ct-casefold.h: New file, derived from
45909         lib/unicase/u-casefold.h.
45910         * modules/unicase/u8-ct-casefold: New file.
45911
45912         New module 'unicase/u32-ct-totitle'.
45913         * lib/unicase/u32-ct-totitle.c: New file.
45914         * modules/unicase/u32-ct-totitle: New file.
45915
45916         New module 'unicase/u16-ct-totitle'.
45917         * lib/unicase/u16-ct-totitle.c: New file.
45918         * modules/unicase/u16-ct-totitle: New file.
45919
45920         New module 'unicase/u8-ct-totitle'.
45921         * lib/unicase/u8-ct-totitle.c: New file.
45922         * lib/unicase/u-ct-totitle.h: New file, derived from
45923         lib/unicase/u-totitle.h.
45924         * modules/unicase/u8-ct-totitle: New file.
45925
45926         New module 'unicase/u32-ct-tolower'.
45927         * lib/unicase/u32-ct-tolower.c: New file.
45928         * modules/unicase/u32-ct-tolower: New file.
45929
45930         New module 'unicase/u16-ct-tolower'.
45931         * lib/unicase/u16-ct-tolower.c: New file.
45932         * modules/unicase/u16-ct-tolower: New file.
45933
45934         New module 'unicase/u8-ct-tolower'.
45935         * lib/unicase/u8-ct-tolower.c: New file.
45936         * modules/unicase/u8-ct-tolower: New file.
45937
45938         New module 'unicase/u32-ct-toupper'.
45939         * lib/unicase/u32-ct-toupper.c: New file.
45940         * modules/unicase/u32-ct-toupper: New file.
45941
45942         New module 'unicase/u16-ct-toupper'.
45943         * lib/unicase/u16-ct-toupper.c: New file.
45944         * modules/unicase/u16-ct-toupper: New file.
45945
45946         New module 'unicase/u8-ct-toupper'.
45947         * lib/unicase/u8-ct-toupper.c: New file.
45948         * modules/unicase/u8-ct-toupper: New file.
45949
45950         Add context arguments to u*_casemap functions.
45951         * lib/unicase/unicasemap.h: Include unicase.h.
45952         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45953         suffix_context arguments.
45954         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45955         functions.
45956         (FUNC): Add prefix_context and suffix_context arguments. Use
45957         uc_is_cased and uc_is_case_ignorable.
45958         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45959         * lib/unicase/u16-casemap.c: Likewise.
45960         * lib/unicase/u32-casemap.c: Likewise.
45961         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45962         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45963         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45964         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45965         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45966         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45967
45968         New module 'unicase/u32-suffix-context'.
45969         * lib/unicase/u32-suffix-context.c: New file.
45970         * modules/unicase/u32-suffix-context: New file.
45971
45972         New module 'unicase/u16-suffix-context'.
45973         * lib/unicase/u16-suffix-context.c: New file.
45974         * modules/unicase/u16-suffix-context: New file.
45975
45976         New module 'unicase/u8-suffix-context'.
45977         * lib/unicase/u8-suffix-context.c: New file.
45978         * lib/unicase/u-suffix-context.h: New file.
45979         * modules/unicase/u8-suffix-context: New file.
45980
45981         New module 'unicase/empty-suffix-context'.
45982         * lib/unicase/empty-suffix-context.c: New file.
45983         * modules/unicase/empty-suffix-context: New file.
45984
45985         New module 'unicase/u32-prefix-context'.
45986         * lib/unicase/u32-prefix-context.c: New file.
45987         * modules/unicase/u32-prefix-context: New file.
45988
45989         New module 'unicase/u16-prefix-context'.
45990         * lib/unicase/u16-prefix-context.c: New file.
45991         * modules/unicase/u16-prefix-context: New file.
45992
45993         New module 'unicase/u8-prefix-context'.
45994         * lib/unicase/u8-prefix-context.c: New file.
45995         * lib/unicase/u-prefix-context.h: New file.
45996         * lib/unicase/context.h: New file.
45997         * modules/unicase/u8-prefix-context: New file.
45998
45999         New module 'unicase/empty-prefix-context'.
46000         * lib/unicase/empty-prefix-context.c: New file.
46001         * modules/unicase/empty-prefix-context: New file.
46002
46003         New module 'unicase/ignorable'.
46004         * lib/unicase/ignorable.c: New file.
46005         * modules/unicase/ignorable: New file.
46006
46007         New module 'unicase/cased'.
46008         * lib/unicase/caseprop.h: New file.
46009         * lib/unicase/cased.c: New file.
46010         * modules/unicase/cased: New file.
46011
46012         New functions for case mapping of substrings.
46013         * lib/unicase.h (casing_prefix_context_t): New type.
46014         (unicase_empty_prefix_context): New variable.
46015         (u8_casing_prefix_context, u16_casing_prefix_context,
46016         u32_casing_prefix_context, u8_casing_prefixes_context,
46017         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46018         declarations.
46019         (casing_suffix_context_t): New type.
46020         (unicase_empty_suffix_context): New variable.
46021         (u8_casing_suffix_context, u16_casing_suffix_context,
46022         u32_casing_suffix_context, u8_casing_suffixes_context,
46023         u16_casing_suffixes_context, u32_casing_suffixes_context,
46024         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46025         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46026         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46027         declarations.
46028
46029 2009-06-28  Jim Meyering  <meyering@redhat.com>
46030
46031         boostrap: indent only with spaces
46032         * build-aux/bootstrap: Indent only with spaces, never TABs.
46033
46034         bootstrap: split long lines
46035         * build-aux/bootstrap: Keep line length < 80.
46036
46037         bootstrap: sync from coreutils
46038         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46039         just as autoreconf does.  Verify a list of prerequisite
46040         package-name,version-number pairs if defined in bootstrap.conf.
46041         Refer to README-prereq, if prerequisites are not satisfied.
46042
46043 2009-06-27  Eric Blake  <ebb9@byu.net>
46044
46045         tests: add test for bogus NULL definition
46046         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46047         * tests/test-stdlib.c: Likewise.
46048         * tests/test-string.c: Likewise.
46049         * tests/test-locale.c: Likewise.
46050         * tests/test-unistd.c: Likewise.
46051         * modules/stdio-tests (Depends-on): Add verify.
46052         * modules/stdlib-tests (Depends-on): Likewise.
46053         * modules/string-tests (Depends-on): Likewise.
46054         * modules/locale-tests (Depends-on): Likewise.
46055         * modules/unistd-tests (Depends-on): Likewise.
46056
46057 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46058
46059         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46060         self-explaining comment.
46061         * m4/selinux-selinux-h: Update serial.
46062         (gl_LIBSELINUX): New macro, adding a warning for missing development
46063         packages to code extracted from...
46064         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46065         Add warning for missing development packages here, too.
46066
46067 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46068
46069         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46070
46071 2009-06-25  Eric Blake  <ebb9@byu.net>
46072
46073         version-etc: fix regression
46074         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46075         gcc.
46076         (version_etc): Use it, to catch bugs with trailing NULL.
46077         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46078         (version_etc_va): Fix logic bug.
46079         * modules/version-etc-tests: Add test.
46080         * tests/test-version-etc.c: New file.
46081         * tests/test-version-etc.sh: Likewise.
46082
46083 2009-06-25  Sam Steingold  <sds@gnu.org>
46084
46085         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46086         mbtowc declaration.
46087
46088 2009-06-25  Eric Blake  <ebb9@byu.net>
46089
46090         fpurge: migrate into <stdio.h>
46091         * lib/fpurge.h: Delete...
46092         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46093         * lib/fpurge.c (fpurge): Change declaring header.
46094         * modules/fpurge (Files): Drop deleted file.
46095         (Depends-on): Add stdio.
46096         (configure.ac): Set witness.
46097         * modules/stdio (Makefile.am): Support fpurge macros.
46098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46099         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46100         * lib/fflush.c: Update client.
46101         * tests/test-fpurge.c: Likewise.
46102         * NEWS: Mention the change.
46103
46104 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46105
46106         * lib/argp-version-etc.c (program_authors): Add const
46107         qualifier.
46108         * lib/version-etc.c: Fix typos in the comments.
46109         * modules/argp-version-etc: Depends on version-etc.
46110
46111 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46112
46113         argp-version-etc: new module.
46114
46115         * lib/argp-version-etc.c: New file.
46116         * lib/argp-version-etc.h: New file.
46117         * modules/argp-version-etc: New file.
46118         * modules/argp-version-etc-tests: New file.
46119         * tests/test-argp-version-etc.c: New test.
46120         * tests/test-argp-version-etc-1.sh: New test.
46121
46122 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46123
46124         Provide additional interfaces and documentation for version-etc
46125         module.
46126
46127         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46128         interfaces.
46129         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46130         prototypes.
46131
46132 2009-06-24  Bruno Haible  <bruno@clisp.org>
46133
46134         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46135         HAVE_LIB${NAME} macro.
46136         Reported by Sam Steingold <sds@gnu.org>.
46137
46138 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46139
46140         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46141         needed.
46142
46143 2009-06-21  Bruno Haible  <bruno@clisp.org>
46144
46145         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46146         work.
46147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46148         together with LIB${NAME}, LTLIB${NAME}.
46149         Reported by Sam Steingold <sds@gnu.org>.
46150
46151 2009-06-20  Jim Meyering  <meyering@redhat.com>
46152
46153         tests: make sc_require_test_exit_idiom more generic
46154         * top/maint.mk (Exit_witness_file): New overridable variable.
46155         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46156         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46157
46158 2009-06-19  Jim Meyering  <meyering@redhat.com>
46159
46160         hash: reverse order of src/dst parameters in an internal interface
46161         * lib/hash.c (transfer_entries): Reverse order of parameters to
46162         put DST before SRC.  Adjust callers.
46163
46164         tests: test-hash: avoid wholesale duplication
46165         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46166         Instead, use a loop and add a single conditional.
46167
46168         tests: test-hash: allow seed selection via a command line argument
46169         * tests/test-hash.c (get_seed): New function.
46170         (main): Use it.
46171
46172 2009-06-19  Eric Blake  <ebb9@byu.net>
46173
46174         hash: avoid memory leak on allocation failure
46175         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46176         failure.  Factor repeated algorithm...
46177         (transfer_entries): ...into new helper routine.
46178         (hash_delete): React to hash_rehash return value.
46179
46180         hash: reduce memory pressure in hash_rehash no-op case
46181         * lib/hash.c (next_prime): Avoid overflow.
46182         (hash_initialize): Factor bucket size computation...
46183         (compute_bucket_size): ...into new helper function.
46184         (hash_rehash): Use new function and open coding to reduce memory
46185         pressure, and avoid a memory leak in USE_OBSTACK code.
46186         Reported by Jim Meyering.
46187
46188 2009-06-18  Eric Blake  <ebb9@byu.net>
46189
46190         hash: make rotation more obvious
46191         * modules/hash (Depends-on): Add bitrotate and stdint.
46192         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46193         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46194         (SIZE_MAX): Rely on headers for definition.
46195         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46196         (raw_hasher): Use rotr_sz.
46197         Suggested by Jim Meyering.
46198
46199         hash: fix memory leak in last patch
46200         * lib/hash.c (hash_rehash): Avoid memory leak.
46201
46202         hash: avoid no-op rehashing
46203         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46204
46205         hash: provide default callback functions
46206         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46207         (hash_initialize): Use them as defaults.
46208         * tests/test-hash.c (main): Test this.
46209
46210         hash: minor optimization
46211         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46212         when possible.
46213         (hash_initialize): Document this promise.
46214         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46215         * tests/test-hash.c (hash_compare_strings): Test this.
46216
46217 2009-06-18  Bruno Haible  <bruno@clisp.org>
46218
46219         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46220         going to be replaced anyway.
46221
46222 2009-06-18  Bruno Haible  <bruno@clisp.org>
46223
46224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46225         in one place.
46226         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46227         be replaced anyway.
46228
46229 2009-06-18  Eric Blake  <ebb9@byu.net>
46230
46231         hash: check for resize before insertion
46232         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46233         threshold before insertion, so that a pathological hash_rehash
46234         that fills every bucket can still trigger another rehash.
46235
46236 2009-06-18  Jim Meyering  <meyering@redhat.com>
46237
46238         hash-tests: add a loop around the small tests
46239         * tests/test-hash.c (main): Repeat small tests with selected
46240         small initial table sizes.
46241
46242 2009-06-17  Eric Blake  <ebb9@byu.net>
46243
46244         hash: minor cleanups
46245         * lib/hash.h (hash_entry): Make opaque, by moving...
46246         * lib/hash.c (hash_entry): ...here.
46247         (hash_insert): Clarify restrictions on what can be inserted.
46248         (hash_get_next): Clarify when it is safe to remove an element
46249         during traversal.
46250         (check_tuning): Skip verification when tuning is known safe.
46251         (hash_initialize): Clarify restrictions on tuning.
46252
46253 2009-06-17  Jim Meyering  <jim@meyering.net>
46254         and Eric Blake  <ebb9@byu.net>
46255
46256         hash-tests: new module
46257         * modules/hash-tests: New file.
46258         * tests/test-hash.c: New file.
46259
46260 2009-06-17  Eric Blake  <ebb9@byu.net>
46261
46262         strstr-simple: document new module
46263         * MODULES.html.sh: Document new module.
46264
46265         strstr, strcasestr: replace on platforms with broken memchr
46266         * modules/strstr: Split into...
46267         * modules/strstr-simple: ...new module that does not care about
46268         performance, but does care about glibc bug.
46269         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46270         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46271         if platform memchr is broken, per Debian bug 521737.
46272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46273         memchr.
46274         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46275         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46276         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46277         * modules/mountlist (Depends-on): Add strstr-simple.
46278         * modules/gen-uni-tables (Depends-on): Likewise.
46279         * modules/argz (Depends-on): Add strstr.
46280
46281 2009-06-17  Bruno Haible  <bruno@clisp.org>
46282
46283         * modules/posix_spawn-internal (Depends-on): Add errno.
46284
46285 2009-06-17  Bruno Haible  <bruno@clisp.org>
46286
46287         Define missing ESTALE on Interix 3.5.
46288         * lib/errno.in.h (ESTALE): Assign a value if missing.
46289         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46291         missing.
46292         * doc/posix-headers/errno.texi: Mention the Interix bug.
46293         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46294
46295 2009-06-15  Eric Blake  <ebb9@byu.net>
46296
46297         memchr, memchr2: add valgrind exception
46298         * lib/memchr.valgrind: New file.
46299         * lib/memchr2.valgrind: New file.
46300         * modules/memchr (Files): Distribute valgrind file.
46301         * modules/memchr2 (Files): Likewise.
46302
46303         docs: memchr is no longer obsolete
46304         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46305         * lib/string.in.h (memchr): Simplify logic.
46306
46307 2009-06-14  Jim Meyering  <meyering@redhat.com>
46308
46309         link-follow: fix the "checking..." message to not mention trailing slash
46310         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46311         never considered trailing slashes.
46312
46313 2009-06-14  Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/memchr.m4: Mention also the bug on IA-64.
46316         * doc/posix-functions/memchr.texi: Likewise.
46317
46318 2009-06-12  Eric Blake  <ebb9@byu.net>
46319
46320         memchr: detect broken x86_64 and alpha implementations
46321         * modules/memchr-tests (Depends-on): Move mmap detection...
46322         * modules/memchr (Depends-on): ...here.
46323         (configure.ac): Set indicator.
46324         * lib/string.in.h (memchr): Declare replacement.
46325         * modules/string (Makefile.am): Trigger replacement.
46326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46327         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46328         bugs.
46329         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46330         * modules/getpagesize (License): Relax license.
46331
46332 2009-06-11  Bruno Haible  <bruno@clisp.org>
46333
46334         * lib/idpriv.h: Add more references.
46335
46336 2009-06-08  Bruno Haible  <bruno@clisp.org>
46337
46338         Tests for module 'idpriv-droptemp'.
46339         * modules/idpriv-droptemp-tests: New file.
46340         * tests/test-idpriv-droptemp.sh: New file.
46341         * tests/test-idpriv-droptemp.su.sh: New file.
46342         * tests/test-idpriv-droptemp.c: New file.
46343
46344         New module 'idpriv-droptemp'.
46345         * lib/idpriv-droptemp.c: New file.
46346         * modules/idpriv-droptemp: New file.
46347
46348 2009-06-08  Bruno Haible  <bruno@clisp.org>
46349
46350         Tests for module 'idpriv-drop'.
46351         * modules/idpriv-drop-tests: New file.
46352         * tests/test-idpriv-drop.sh: New file.
46353         * tests/test-idpriv-drop.su.sh: New file.
46354         * tests/test-idpriv-drop.c: New file.
46355
46356         New module 'idpriv-drop'.
46357         * lib/idpriv.h: New file.
46358         * lib-idpriv-drop.c: New file.
46359         * m4/idpriv.m4: New file.
46360         * modules/idpriv-drop: New file.
46361
46362 2009-06-08  Bruno Haible  <bruno@clisp.org>
46363
46364         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46365         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46366         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46367         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46368         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46369         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46370         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46371
46372 2009-06-08  Eric Blake  <ebb9@byu.net>
46373
46374         test-strstr: use memory fence, when possible
46375         * tests/test-strstr.c (main): Use memory fence, in order to be
46376         more likely to trigger Debian bug 521737.
46377         * modules/strstr-tests (Files): Pull in additional files.
46378
46379         memchr: no longer obsolete, for wider field testing
46380         * modules/memchr (Status, Notice): Delete, this module is no
46381         longer obsolete.
46382         * modules/vasnprintf (Depends-on): Add memchr.
46383
46384 2009-06-07  Jim Meyering  <meyering@redhat.com>
46385
46386         hash: declare some functions with the warn_unused_result attribute
46387         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46388
46389 2009-06-07  Bruno Haible  <bruno@clisp.org>
46390
46391         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46392         Reported by Eric Blake.
46393
46394 2009-06-06  Eric Blake  <ebb9@byu.net>
46395
46396         test-alignof: fix typo with long double
46397         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46398         compiler error.
46399
46400 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46401
46402         Escape non-texinfo { and }s.
46403         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46404         markup error.
46405
46406 2009-06-04  Jim Meyering  <meyering@redhat.com>
46407
46408         gitlog-to-changelog: don't infloop on an empty commit log
46409         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46410         Reported by Boris Petersen <transacid@centerim.org>.
46411
46412 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46413
46414         version-etc: extend for packagers
46415         Add three new configure options, intended for packagers:
46416           --with-packager="packager name"
46417           --with-packager-version="packager-specific version"
46418           --with-packager-bug-reports="packager bug reporting"
46419         An example with coreutils:
46420           $ ./configure \
46421             --with-packager=Gentoo \
46422             --with-packager-bug-report=http://bugs.gentoo.org/ \
46423             --with-packager-version="patchset 1.6"
46424           $ ./src/ls --version | head -n2
46425           ls (GNU coreutils) 7.1-dirty
46426           Packaged by Gentoo (patchset 1.6)
46427         Note that the bug reporting info via --help doesn't show up because
46428         coreutils uses its own custom emit_bug_reporting_address() implementation
46429         in src/system.h.  If it didn't, it'd look like:
46430           $ ./src/ls --help | tail -n4
46431           Report bugs to <bug-coreutils@gnu.org>.
46432           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46433           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46434           General help using GNU software: <http://www.gnu.org/gethelp/>.
46435         * lib/version-etc.c: Print new information, if provided.
46436         * m4/version-etc.m4: New file.
46437         * modules/version-etc (Files): Add m4/version-etc.m4.
46438         (configure.ac): Add gl_VERSION_ETC.
46439
46440 2009-05-31  Bruno Haible  <bruno@clisp.org>
46441
46442         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46443         and 'int64_t'.
46444         * modules/alignof-tests (Dependencies): Add stdint.
46445         Reported by Eric Blake.
46446
46447 2009-05-31  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46450         restriction due to compiler bugs.
46451         Reported by Eric Blake.
46452
46453 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46454             Bruno Haible  <bruno@clisp.org>
46455
46456         Fix test-alignof failure.
46457         * lib/alignof.h (alignof_slot): New macro.
46458         (alignof_type): New macro, with the same semantics as the previous
46459         'alignof'.
46460         (alignof): Alias to alignof_slot.
46461         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46462         check that the results are usable as constant expressions.
46463
46464 2009-05-31  Bruno Haible  <bruno@clisp.org>
46465
46466         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46467         * tests/test-memchr.c (main): Check that memchr does not read past the
46468         first occurrence of the byte.
46469         * tests/test-strstr.c (main): Update comment.
46470         Suggested by Eric Blake.
46471
46472 2009-05-30  Bruno Haible  <bruno@clisp.org>
46473
46474         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46475         detail how to use dumpbin.
46476         Reported by David Byron <dbyron@dbyron.com>.
46477
46478 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46479
46480         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46481
46482 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46483
46484         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46485
46486 2009-05-28  Bruno Haible  <bruno@clisp.org>
46487
46488         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46489         build-aux/ files.
46490
46491 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46492
46493         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46494
46495 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46496
46497         * gnulib-tool (sed_transform_main_lib_file)
46498         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46499         regexps.
46500
46501 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46502
46503         * tests/test-strstr.c: Add another self-test.
46504         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46505         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46506
46507 2009-05-23  Bruno Haible  <bruno@clisp.org>
46508
46509         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46510         change.
46511
46512 2009-05-21  Bruno Haible  <bruno@clisp.org>
46513
46514         Simplify use of mode_t varargs.
46515         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46516         uses 'mode_t' or 'int'.
46517         * lib/openat.c (openat): Likewise.
46518         * lib/open-safer.c (open_safer): Likewise.
46519         * m4/mode_t.m4: New file.
46520         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46521         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46522         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46523         * modules/open (Files): Add m4/mode_t.m4.
46524         * modules/openat (Files): Likewise.
46525         * modules/fcntl-safer (Files): Likewise.
46526         Suggested by Eric Blake.
46527
46528 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46529
46530         * doc/glibc-functions/fallocate.texi: New file.
46531         * doc/gnulib.texi: Include it.
46532
46533 2009-05-21  Eric Blake  <ebb9@byu.net>
46534             Bruno Haible  <bruno@clisp.org>
46535
46536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46537         invocations.
46538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46539
46540 2009-05-21  Eric Blake  <ebb9@byu.net>
46541             Bruno Haible  <bruno@clisp.org>
46542
46543         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46544         include_next. Fix of 2008-11-20 commit.
46545         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46546         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46547         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46548         NEXT_MATH_H.
46549         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46550         instead of NEXT_MATH_H.
46551
46552 2009-05-21  Bruno Haible  <bruno@clisp.org>
46553
46554         Avoid redefinition warnings for SIZE_MAX.
46555         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46556         Reported by Simon Josefsson.
46557
46558 2009-05-21  Bruno Haible  <bruno@clisp.org>
46559
46560         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46561         AC_CACHE_VAL.
46562
46563 2009-05-20  Bruno Haible  <bruno@clisp.org>
46564
46565         Make zeroptr.h work on mingw.
46566         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46567         mprotect.
46568         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46569         * modules/memchr2-tests (configure.ac): Likewise.
46570         * modules/memcmp-tests (configure.ac): Likewise.
46571         * modules/memmem-tests (configure.ac): Likewise.
46572         * modules/memrchr-tests (configure.ac): Likewise.
46573         Reported by Simon Josefsson.
46574
46575 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46576
46577         * tests/test-glob.c: Include string.h for strcmp prototype.
46578
46579 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46580
46581         * modules/getdelim (Depends-on): Add explicit stdint, although it
46582         was implicitly already pulled in via realloc-posix.
46583         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46584
46585 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46586
46587         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46588         G. Christensen" <tgc@jupiterrise.com>.
46589         * m4/sys_socket_h.m4: Check for sa_family_t.
46590         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46591         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46592         * tests/test-sys_socket.c: Check that sa_family_t works.
46593
46594 2009-05-18  Eric Blake  <ebb9@byu.net>
46595
46596         maint.mk: allow gnulib_dir in VPATH build
46597         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46598
46599 2009-05-15  Jim Meyering  <meyering@redhat.com>
46600
46601         maint.mk: Give gnulib_dir a default definition.
46602         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46603         Thus, most packages no longer need to specify this variable in cfg.mk
46604
46605 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46606
46607         rename.m4: fix typos that would make non-mingw cross-configure fail
46608         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46609
46610 2009-05-13  Eric Blake  <ebb9@byu.net>
46611
46612         mmap-anon: avoid out-of-order autoconf expansion
46613         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46614         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46615         * modules/memchr-tests (Depends-on): Add extensions.
46616         * modules/memchr2-tests (Depends-on): Add extensions.
46617         * modules/memcmp-tests (Depends-on): Add extensions.
46618         * modules/memmem-tests (Depends-on): Add extensions.
46619         * modules/memrchr-tests (Depends-on): Add extensions.
46620
46621 2009-05-13  Bruno Haible  <bruno@clisp.org>
46622
46623         Make some tests ISO C 99 compliant.
46624         * tests/zerosize-ptr.h: New file.
46625         * tests/test-memchr.c: Include zerosize-ptr.h.
46626         (main): Use a zero-size object pointer instead of NULL.
46627         * tests/test-memchr2.c: Include zerosize-ptr.h.
46628         (main): Use a zero-size object pointer instead of NULL.
46629         * tests/test-memcmp.c: Include zerosize-ptr.h.
46630         (main): Use a zero-size object pointer instead of NULL.
46631         * tests/test-memmem.c: Include zerosize-ptr.h.
46632         (main): Use a zero-size object pointer instead of NULL.
46633         * tests/test-memrchr.c: Include zerosize-ptr.h.
46634         (main): Use a zero-size object pointer instead of NULL.
46635         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46636         m4/mmap-anon.m4.
46637         (Depends-on): Add getpagesize.
46638         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46639         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46640         m4/mmap-anon.m4.
46641         (Depends-on): Add getpagesize.
46642         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46643         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46644         m4/mmap-anon.m4.
46645         (Depends-on): Add getpagesize.
46646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46647         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46648         m4/mmap-anon.m4.
46649         (Depends-on): Add getpagesize.
46650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46651         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46652         m4/mmap-anon.m4.
46653         (Depends-on): Add getpagesize.
46654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46655
46656 2009-05-12  Bruno Haible  <bruno@clisp.org>
46657
46658         Tests for module 'alignof'.
46659         * modules/alignof-tests: New file.
46660         * tests/test-alignof.c: New file.
46661
46662 2009-05-12  Bruno Haible  <bruno@clisp.org>
46663
46664         Fix alignof macro.
46665         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46666         vendor compilers that are always correct.
46667
46668 2009-05-12  Bruno Haible  <bruno@clisp.org>
46669
46670         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46671         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46672         not whether its fully works.
46673
46674 2009-05-12  Bruno Haible  <bruno@clisp.org>
46675
46676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46677
46678 2009-05-12  Jim Meyering  <meyering@redhat.com>
46679
46680         * top/maint.mk: Adjust backslash alignment.
46681
46682 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46683
46684         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46685
46686 2009-05-11  Eric Blake  <ebb9@byu.net>
46687
46688         argp: avoid undefined behavior
46689         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46690         macros.
46691
46692 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46693
46694         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46695         user.name to prevent git commit from complaining.
46696
46697 2009-05-10  Bruno Haible  <bruno@clisp.org>
46698
46699         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46700         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46701         it rewrites every file name only once.
46702         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46703
46704 2009-05-08  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46707         instead of 'max'.
46708
46709 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46710
46711         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46712         sockaddr_storage test.
46713
46714 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46715
46716         * modules/sys_socket (Makefile.am): Substitute
46717         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46718         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46719         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46720         * tests/test-sys_socket.c: Check sockaddr_storage.
46721
46722 2009-05-08  Bruno Haible  <bruno@clisp.org>
46723
46724         New module 'alignof'.
46725         * lib/alignof.h: New file.
46726         * modules/alignof: New file.
46727
46728 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46729             Bruno Haible  <bruno@clisp.org>
46730
46731         Fix test-file-has-acl on FreeBSD.
46732         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46733         mask is implicitly added.
46734         * tests/test-file-has-acl.c: Include <signal.h>.
46735         (main): Terminate the test after 5 seconds.
46736         * modules/acl-tests (configure.ac): Check for alarm function.
46737
46738 2009-05-04  Bruno Haible  <bruno@clisp.org>
46739
46740         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46742         * modules/errno (configure.ac): Drop AC_REQUIRE.
46743         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46744         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46745
46746 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46747
46748         * modules/glob-tests: New module.
46749         * tests/test-glob.c: Add.
46750
46751 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46752
46753         * modules/fnmatch-tests: New module.
46754         * tests/test-fnmatch.c: Add.
46755
46756 2009-05-04  Eric Blake  <ebb9@byu.net>
46757
46758         maint: make the new no-submodule-changes rule VPATH-safe
46759         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46760
46761 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46762             Bruno Haible  <bruno@clisp.org>
46763
46764         acl: Fix infinite loop on FreeBSD.
46765         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46766         of return value from acl_get_entry.
46767         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46768         Likewise.
46769
46770 2009-05-03  Bruno Haible  <bruno@clisp.org>
46771
46772         * lib/acl-internal.h (acl_entries): Clarify return value.
46773         * lib/acl_entries.c (acl_entries): Likewise.
46774
46775 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46776
46777         Bug fix in acl module.
46778         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46779
46780 2009-05-03  Bruno Haible  <bruno@clisp.org>
46781
46782         Create gperf-generated file in the source dir, not in the build dir.
46783         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46784         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46785         * modules/unicase/locale-language (unicase/locale-languages.h):
46786         Likewise.
46787         * modules/unicase/special-casing (unicase/special-casing-table.h):
46788         Likewise.
46789         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46790         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46791         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46792         Reported by Ralf Wildenhues.
46793
46794 2009-05-03  Bruno Haible  <bruno@clisp.org>
46795
46796         * modules/fnmatch (Description, configure.ac): Taken from
46797         fnmatch-posix.
46798         * modules/fnmatch-posix: Turn into a symbolic reference to the
46799         'fnmatch' module, and deprecate.
46800         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46801
46802 2009-05-03  Bruno Haible  <bruno@clisp.org>
46803
46804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46805         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46806         Reported by Ralf Wildenhues.
46807
46808 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46809
46810         * m4/fnmatch.m4: Fix fnmatch re-define.
46811
46812 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46813
46814         priv-set: new module and tests; adapt write-any-file
46815         * lib/priv-set.c: New file.
46816         * lib/priv-set.h: New file.
46817         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46818         * lib/write-any-file.c: Simplify by using priv-set module.
46819         * m4/priv-set.m4: New file.
46820         * modules/priv-set: New file.
46821         * modules/unlinkdir: Add dependency on priv-set module.
46822         * modules/write-any-file: Likewise.
46823
46824         Tests for module 'priv-set'.
46825         * modules/priv-set-tests: New file.
46826         * tests/test-priv-set.c: New file.
46827
46828 2009-05-03  Jim Meyering  <meyering@redhat.com>
46829             Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46832         use the converted UTF-8 variant of the name instead.
46833
46834 2009-05-03  Jim Meyering  <meyering@redhat.com>
46835
46836         tests: tighten some getdate tests
46837         * tests/test-getdate.c (main): Tighten tests: require equality,
46838         not just greater than.  Set TZ envvar to UTC0.
46839
46840 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46841
46842         getdate: correctly interpret "next monday" when run on a Monday
46843         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46844         that e.g., "next tues" (when run on a tuesday) results in a date
46845         that is one week in the future, and not today's date.
46846         I.e., add a week when the wday is the same as the current one.
46847         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46848         and earlier by Martin Bernreuther and Jan Minář.
46849         * tests/test-getdate.c (main): Check that "next DAY" is always in
46850         the future and that "last DAY" is always in the past.
46851
46852 2009-05-02  Jim Meyering  <meyering@redhat.com>
46853
46854         build: ensure that a release build fails when a submodule is unclean
46855         * top/maint.mk (no-submodule-changes): New rule.
46856         (alpha beta major): Depend on it.
46857
46858 2009-05-02  Bruno Haible  <bruno@clisp.org>
46859
46860         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46861         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46862         shell variable gl_fnmatch_required to detect which variant is
46863         requested.
46864         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46865         gl_FUNC_FNMATCH_POSIX.
46866         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46867         exclude fnmatch-posix.
46868
46869 2009-05-02  Bruno Haible  <bruno@clisp.org>
46870
46871         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46872         * modules/mbsrtowcs (License): Change to LGPLv2+.
46873         * modules/strnlen1 (License): Likewise.
46874         Reported by Simon Josefsson.
46875
46876 2009-05-02  Bruno Haible  <bruno@clisp.org>
46877
46878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46879         "cross".
46880         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46881         gnulib-tool was called with option --source-base=lib.
46882
46883 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46884
46885         Use automake *-local hooks without commands, for extensibility.
46886         * modules/localcharset (Makefile.am): Rename install-exec-local
46887         rule to install-exec-localcharset, and make it a prerequisite of
46888         install-exec-local.  Likewise, rename the uninstall-local rule to
46889         uninstall-localcharset, and make it a prerequisite of the former.
46890
46891 2009-05-01  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46894         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46895         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46897         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46898         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46899         m4/locale-zh.m4, m4/codeset.m4.
46900
46901         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46902         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46903         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46904         m4/locale-zh.m4.
46905
46906         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46907         REPLACE_WCRTOMB if mbstate_t must be replaced.
46908         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46909         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46910
46911 2009-05-01  Bruno Haible  <bruno@clisp.org>
46912
46913         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46914         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46915         dngettext, dcngettext, textdomain, bindtextdomain,
46916         bind_textdomain_codeset): Undefine before redefining.
46917
46918 2009-04-30  Bruno Haible  <bruno@clisp.org>
46919
46920         Fix bug introduced on 2009-04-25.
46921         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46922         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46923         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46924         is defined.
46925         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46926         is defined.
46927         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46928         is defined.
46929         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46930
46931 2009-04-28  Bruno Haible  <bruno@clisp.org>
46932
46933         Comment tweaks.
46934         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46935         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46936         * lib/unicase.h (u*_casexfrm): Likewise.
46937         Reported by Paolo Bonzini.
46938
46939 2009-04-28  Bruno Haible  <bruno@clisp.org>
46940
46941         Fix a compilation error.
46942         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46943         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46944         Reported by Jim Meyering.
46945
46946 2009-04-27  Bruno Haible  <bruno@clisp.org>
46947
46948         New module 'libunistring'.
46949         * modules/libunistring: New file.
46950         * m4/libunistring.m4: New file.
46951         * MODULES.html.sh (Unicode string functions): Add it.
46952
46953 2009-04-27  Eric Blake  <ebb9@byu.net>
46954
46955         maint.mk: allow package-specific header to provide <config.h>
46956         * top/maint.mk (sc_require_config_h): New variable.
46957         (sc_require_config_h, sc_require_config_h_first): Use it.
46958
46959 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46960
46961         * top/maint.mk (sc_avoid_if_before_free): Except
46962         useless-if-before-free script.
46963
46964 2009-04-27  Eric Blake  <ebb9@byu.net>
46965
46966         maintainer-makefile: depend on all required helper scripts
46967         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46968         useless-if-before-free.
46969         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46970         version, rather than assuming gnulib checkout is available.
46971         Reported by Simen Josefsson.
46972
46973 2009-04-26  Bruno Haible  <bruno@clisp.org>
46974
46975         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46976         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46977         "../" or "..".
46978
46979 2009-04-26  Bruno Haible  <bruno@clisp.org>
46980
46981         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46982         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46983         AC_LIB_HAVE_LINKFLAGS.
46984
46985 2009-04-26  Bruno Haible  <bruno@clisp.org>
46986
46987         Simplify calling convention of u*_conv_from_encoding.
46988         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46989         u32_conv_from_encoding): Expect a resultbuf argument and return the
46990         result directly as a pointer.
46991         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46992         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46993         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46994         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46995         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46996         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46997         Update.
46998         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46999         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47000         * lib/vasnprintf.c (VASNPRINTF): Update.
47001         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47002         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47003         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47004         * NEWS: Mention the change.
47005
47006 2009-04-26  Bruno Haible  <bruno@clisp.org>
47007
47008         Simplify calling convention of u*_conv_to_encoding.
47009         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47010         u32_conv_to_encoding): Expect a resultbuf argument and return the
47011         result directly as a pointer.
47012         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47013         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47014         freeing scaled_offsets if mem_iconveha failed.
47015         * lib/unicase/u-casexfrm.h (FUNC): Update.
47016         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47017         * lib/vasnprintf.c (VASNPRINTF): Update.
47018         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47019         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47020         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47021         * NEWS: Mention the change.
47022
47023 2009-04-26  Bruno Haible  <bruno@clisp.org>
47024
47025         Avoid test failures on AIX and OSF/1.
47026         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47027         malloc(0).
47028         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47029         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47030         Likewise.
47031         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47032         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47033         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47034         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47035         * doc/posix-functions/malloc.texi: Document the portability problem
47036         related to malloc(0).
47037
47038 2009-04-26  Bruno Haible  <bruno@clisp.org>
47039
47040         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47041         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47042         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47043
47044 2009-04-25  Bruno Haible  <bruno@clisp.org>
47045
47046         Avoid link error when creating a namespace clean library.
47047         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47048         as macro with arguments if already defined as an alias.
47049         * lib/signbitf.c (gl_signbitf): Don't undefine.
47050         * lib/signbitd.c (gl_signbitd): Don't undefine.
47051         * lib/signbitl.c (gl_signbitl): Don't undefine.
47052
47053 2009-04-25  Jim Meyering  <meyering@redhat.com>
47054
47055         vc-list-files: fix another quoting bug
47056         * build-aux/vc-list-files: Avoid sed backslash expansion
47057         of pathological directory names.
47058
47059 2009-04-25  Eric Blake  <ebb9@byu.net>
47060
47061         vc-list-files: fix shell quoting error
47062         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47063         timestamp.
47064
47065 2009-04-25  Jim Meyering  <meyering@redhat.com>
47066
47067         vc-list-files: restore lost functionality with subdir argument
47068         * build-aux/vc-list-files: When given a non-"." sub-directory
47069         argument, substitute the $dir/ prefix back onto each resulting name.
47070         Otherwise, coreutils' root_tests check would fail.
47071
47072 2009-04-24  Eric Blake  <ebb9@byu.net>
47073
47074         vc-list-files: ignore git symlinks
47075         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47076         than ls-files, to ignore git symlinks.
47077
47078         maint.mk: import improvements from m4
47079         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47080         (move_if_change): Delete unused macro.
47081         (news-date-check, vc-diff-check): Support VPATH builds.
47082         (announcement): Likewise.  Split --bootstrap-tools list...
47083         (boostrap-tools): ...into separate list, which can be overridden
47084         in cfg.mk.
47085         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47086         requiring dependency on useless-if-before-free module.
47087         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47088         Support VPATH builds.
47089
47090 2009-04-24  Jim Meyering  <meyering@redhat.com>
47091
47092         maint.mk: remove coreutils-specific rules and variables
47093         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47094         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47095         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47096
47097         maint.mk: remove obsolete rule
47098         * top/maint.mk (rel-check): Remove rule.
47099         (WGET, WGETFLAGS): Remove now-unused variables.
47100
47101 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47102
47103         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47104         consistency.
47105
47106         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47107         '$(PATH_SEPARATOR)' instead of ':'.
47108
47109 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47110
47111         * lib/getopt1.c (main): Use 'const' for static array.
47112
47113 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47114
47115         * top/maint.mk: Sync with coreutils.
47116         * NEWS: Explain incompatibilities.
47117
47118 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47119             Bruno Haible  <bruno@clisp.org>
47120
47121         Fix cross-compilation results.
47122         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47123         statement, as third argument of AC_TRY_RUN.
47124         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47125         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47126         Likewise.
47127         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47128         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47129         Likewise.
47130         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47131         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47132         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47133
47134 2009-04-20  Bruno Haible  <bruno@clisp.org>
47135
47136         Avoid test failure on mingw.
47137         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47138
47139 2009-04-20  Bruno Haible  <bruno@clisp.org>
47140
47141         Avoid compilation error on mingw.
47142         * modules/localename-tests (Depends-on): Add locale.
47143
47144 2009-04-19  Bruno Haible  <bruno@clisp.org>
47145
47146         Support for building a shared library on Windows platforms.
47147         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47148         (main): Test the presence of UNINORM_NFC here.
47149         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47150         (main): Test the presence of UNINORM_NFD here.
47151         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47152         (main): Test the presence of UNINORM_NFKC here.
47153         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47154         (main): Test the presence of UNINORM_NFKD here.
47155
47156 2009-04-19  Bruno Haible  <bruno@clisp.org>
47157
47158         Avoid a compiler warning.
47159         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47160         Change type of variable 'sequence'.
47161
47162 2009-04-19  Bruno Haible  <bruno@clisp.org>
47163
47164         * modules/configmake (Makefile.am): When the contents of configmake.h
47165         does not change, arrange to preserve its modification time.
47166
47167 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47168
47169         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47170         gettext domain.
47171
47172 2009-04-16  Jim Meyering  <meyering@redhat.com>
47173
47174         useless-if-before-free: improve conversion code
47175         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47176         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47177
47178 2009-04-14  Bruno Haible  <bruno@clisp.org>
47179
47180         * modules/fcntl (Depends-on): Add extensions.
47181         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47182
47183 2009-04-12  Ben Pfaff  <blp@gnu.org>
47184
47185         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47186         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47187
47188 2009-03-20  Ben Pfaff  <blp@gnu.org>
47189
47190         Make rename replace existing destinations on Windows.
47191         * m4/rename.m4: Add test for Mingw.
47192         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47193         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47194         * doc/posix-functions/rename.texi: Document.
47195
47196 2009-04-10  Bruno Haible  <bruno@clisp.org>
47197
47198         New include file "iconveh.h".
47199         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47200         * lib/striconveh.h: Include it.
47201         (enum iconv_ilseq_handler): Remove definition.
47202         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47203         striconveh.h.
47204         * lib/striconveha.c: Include striconveh.h.
47205         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47206         * modules/striconveh (Files): Add lib/iconveh.h.
47207         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47208         lib/striconveh.h.
47209
47210 2009-04-10  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/uniconv.h: Update comment.
47213
47214 2009-04-10  Bruno Haible  <bruno@clisp.org>
47215
47216         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47217         always.
47218         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47219         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47220         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47221         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47222         "unistring-notinline.h", so that the function gets defined always.
47223         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47224         * lib/unistr/u8-uctomb.c: Likewise.
47225         * lib/unistr/u16-mbtouc.c: Likewise.
47226         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47227         * lib/unistr/u16-uctomb.c: Likewise.
47228         * lib/unistr/u32-mbtouc.c: Likewise.
47229         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47230         * lib/unistr/u32-uctomb.c: Likewise.
47231
47232 2009-04-10  Bruno Haible  <bruno@clisp.org>
47233
47234         Mark 'utime' obsolete.
47235         * modules/utime (Status, Notice): New sections.
47236         Suggested by Jim Meyering.
47237
47238         Fix cross-compile guess for utime test.
47239         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47240         autoconf.
47241         * doc/posix-functions/utime.texi: Give more precisions.
47242         Reported by Jan <ipif@ymail.com>.
47243
47244 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47245
47246         filevercmp: correct today's change
47247         * lib/filevercmp.c: Also handle coreutils' test inputs.
47248         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47249
47250         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47251         for reporting it.
47252         * lib/filevercmp.c: Special handle for "", "." and "..".
47253         * tests/test-filevercmp.c: Enlarge the set suite.
47254
47255 2009-04-07  Jim Meyering  <meyering@redhat.com>
47256
47257         useless-if-before-free: show how to remove braced useless free, too
47258         * build-aux/useless-if-before-free: still only in a comment, though.
47259
47260 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47261
47262         maint.mk: import changes to syntax-check macros from coreutils
47263         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47264         Use them in the relevant macros.
47265
47266 2009-04-06  Bruno Haible  <bruno@clisp.org>
47267
47268         Fix unportable use of bit-fields.
47269         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47270         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47271         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47272
47273 2009-04-06  Bruno Haible  <bruno@clisp.org>
47274
47275         Avoid test failures on AIX and OSF/1.
47276         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47277         that malloc(0) = NULL.
47278         * tests/unicase/test-u8-tolower.c (check): Likewise.
47279         * tests/unicase/test-u8-totitle.c (check): Likewise.
47280         * tests/unicase/test-u8-toupper.c (check): Likewise.
47281         * tests/unicase/test-u16-casefold.c (check): Likewise.
47282         * tests/unicase/test-u16-tolower.c (check): Likewise.
47283         * tests/unicase/test-u16-totitle.c (check): Likewise.
47284         * tests/unicase/test-u16-toupper.c (check): Likewise.
47285         * tests/unicase/test-u32-casefold.c (check): Likewise.
47286         * tests/unicase/test-u32-tolower.c (check): Likewise.
47287         * tests/unicase/test-u32-totitle.c (check): Likewise.
47288         * tests/unicase/test-u32-toupper.c (check): Likewise.
47289         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47290         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47291         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47292         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47293         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47294         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47295         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47296         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47297         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47298         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47299         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47300         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47301
47302 2009-04-05  Bruno Haible  <bruno@clisp.org>
47303
47304         Work around an autoconf limitation.
47305         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47306         comment line if it would be longer than 3 KB.
47307
47308 2009-04-05  Bruno Haible  <bruno@clisp.org>
47309
47310         Avoid test failure with libiconv-1.13.
47311         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47312         of the expected test results.
47313
47314 2009-04-05  Bruno Haible  <bruno@clisp.org>
47315
47316         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47317         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47318         that it should be installed.
47319
47320 2009-04-05  Bruno Haible  <bruno@clisp.org>
47321
47322         * gnulib-tool: New option --copy-file.
47323         (func_usage): Document it.
47324         (func_dest_tmpfilename): Moved out of func_import.
47325         (func_add_file, func_update_file): New functions, extracted from
47326         func_import.
47327         (func_import): Update.
47328
47329 2009-04-05  Karl Berry  <karl@gnu.org>
47330
47331         * README: prominently mention gnulib-tool.
47332         Rearrange sections so getting the code is near the top.
47333
47334 2009-04-05  Bruno Haible  <bruno@clisp.org>
47335
47336         * lib/unicase.h: Mention u*_cmp2.
47337         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47338         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47339         * lib/unicase/ulc-casecmp.c: Likewise.
47340         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47341         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47342         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47343         unistr/u8-cmp.
47344         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47345         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47346         unistr/u16-cmp.
47347         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47348         unistr/u32-cmp.
47349
47350         * lib/uninorm.h: Mention u*_cmp2.
47351         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47352         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47353         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47354         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47355         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47356         unistr/u8-cmp.
47357         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47358         unistr/u16-cmp.
47359         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47360         unistr/u32-cmp.
47361
47362         New module 'unistr/u32-cmp2'.
47363         * lib/unistr/u32-cmp2.c: New file.
47364         * modules/unistr/u32-cmp2: New file.
47365
47366         New module 'unistr/u16-cmp2'.
47367         * lib/unistr/u16-cmp2.c: New file.
47368         * modules/unistr/u16-cmp2: New file.
47369
47370         New module 'unistr/u8-cmp2'.
47371         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47372         * lib/unistr/u8-cmp2.c: New file.
47373         * lib/unistr/u-cmp2.h: New file.
47374         * modules/unistr/u8-cmp2: New file.
47375
47376 2009-04-05  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/unictype.h (uc_property_is_valid): New macro.
47379         * tests/unictype/test-pr_byname.c (main): Use it.
47380
47381         * lib/unistr.h: Doc fixes.
47382         * lib/uniconv.h: Doc fixes.
47383         * lib/unictype.h: Doc fixes.
47384
47385 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47386
47387         Port coreutils 7.2 to Solaris 8.
47388
47389         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47390         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47391         for Solaris 8.  This is a bit of a hack, as it means it's the
47392         caller's responsibility to add -lnsl if needed, but most likely it
47393         won't be needed since only getaddrinfo uses this and getaddrinfo
47394         isn't needed on Solaris 8.
47395
47396         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47397         problem to Solaris 8 encountered with coreutils 7.2, which
47398         resulted in a message "fnmatch.c:292: warning: passing argument 4
47399         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47400         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47401
47402 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47403
47404         * m4/ld-version-script.m4: Add FIXME comment.
47405
47406 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47407
47408         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47409         SOVERSION variable.
47410
47411 2009-04-02  Bruno Haible  <bruno@clisp.org>
47412
47413         * Makefile (info, html, dvi, pdf): Combine the rules.
47414         Suggested by Jim Meyering.
47415
47416 2009-04-01  Bruno Haible  <bruno@clisp.org>
47417
47418         * Makefile (info, html, dvi, pdf): New targets.
47419         Reported by Reuben Thomas <rrt@sc3d.org>.
47420
47421 2009-04-01  Bruno Haible  <bruno@clisp.org>
47422
47423         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47424         can be put into PATH.
47425         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47426
47427 2009-04-01  Bruno Haible  <bruno@clisp.org>
47428
47429         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47430
47431 2009-04-01  Bruno Haible  <bruno@clisp.org>
47432
47433         Rename module 'visibility'.
47434         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47435         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47436         * doc/gnulib.texi: Update.
47437         * MODULES.html.sh (Misc): Update.
47438         * NEWS: Mention the change.
47439
47440 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47441
47442         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47443         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47444         Eric Blake <ebb9@byu.net> for review.
47445         * MODULES.html.sh: Add lib-msvc-compat.
47446         * doc/gnulib.texi: Link to new section.
47447         * m4/ld-output-def.m4: New file.
47448         * doc/ld-output-def.texi: New file.
47449
47450 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47451
47452         Rename ld-version-script to lib-symbol-versions.  Suggested by
47453         Bruno Haible <bruno@clisp.org>.
47454         * modules/ld-version-script: Renamed to lib-symbol-versions.
47455         * doc/ld-version-script.texi: Fix module name.
47456         * MODULES.html.sh: Add lib-symbol-versions.
47457
47458 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47459
47460         * modules/u64-tests: New file.
47461         * tests/test-u64.c: New file.
47462
47463 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47464
47465         * MODULES.html.sh: Mention u64.
47466         * modules/u64: New module.
47467         * modules/crypto/sha512: Depend on u64 module instead of providing
47468         u64.h.
47469
47470 2009-03-27  Eric Blake  <ebb9@byu.net>
47471
47472         test-strerror: make debugging EAI_SYSTEM easier
47473         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47474         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47475         failure was EAI_SYSTEM.
47476
47477 2009-03-25  Bruno Haible  <bruno@clisp.org>
47478
47479         Fix a problem with --enable-relocatable on Solaris 7.
47480         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47481         since 2008-02-24.
47482
47483 2009-03-25  Eric Blake  <ebb9@byu.net>
47484
47485         test-sockets: avoid gcc warning
47486         * tests/test-sockets.c (main): Silence compiler warning.
47487
47488 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         New modules nproc, pthread, contributed by Glen Lenker.
47491
47492         * MODULES.html.sh: Add pthread, nproc.
47493         * lib/nproc.c: New file.
47494         * lib/nproc.h: New file.
47495         * lib/pthread.in.h: New file.
47496         * m4/pthread.m4: New file.
47497         * modules/nproc: New file.
47498         * modules/pthread: New file.
47499
47500 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47501
47502         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47503         New variable.
47504
47505 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47506
47507         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47508         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47509         * tests/test-filevercmp.c: Add tests for backup suffixes.
47510
47511 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47512
47513         * modules/stdlib (Depends-on): Add stdint, needed when defining
47514         struct random_data on, for example, HP-UX 10.20.  Reported by
47515         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47516
47517 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47518
47519         * lib/readline.c (readline): Call fflush on stdout after printing
47520         prompt.
47521
47522 2009-03-20  Bruno Haible  <bruno@clisp.org>
47523
47524         Remove dependency from 'close' module to -lws2_32 on native Windows.
47525         * lib/close-hook.h: New file.
47526         * lib/close-hook.c: New file.
47527         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47528         w32sock.h.
47529         (_gl_close_fd_maybe_socket): Remove function.
47530         (rpl_close): Invoke execute_all_close_hooks instead of
47531         _gl_close_fd_maybe_socket.
47532         * lib/sockets.c: Include close-hook.h, w32sock.h.
47533         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47534         (close_sockets_hook): New variable.
47535         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47536         (gl_sockets_cleanup): Unregister it.
47537         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47538         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47539         * modules/close-hook: New file.
47540         * modules/close (Files): Remove lib/w32sock.h.
47541         (Depends-on): Add close-hook.
47542         (Link): Remove section.
47543         * modules/sockets (Files): Add lib/w32sock.h.
47544         (Depends-on): Add close-hook.
47545         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47546         invocation.
47547         * NEWS: Mention that LIB_CLOSE is gone.
47548
47549 2009-03-23  Eric Blake  <ebb9@byu.net>
47550
47551         signal-tests: test previous patch
47552         * tests/test-signal.c: New file.
47553         * modules/signal-tests: Likewise.
47554
47555         signal.h: always support 'volatile sig_atomic_t'
47556         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47557         (gl_SIGNAL_H_DEFAULTS): Add a default.
47558         * modules/signal (Makefile.am): Substitute if needed.
47559         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47560         users can blindly add volatile.
47561         * doc/posix-headers/signal.texi (signal.h): Document it.
47562         Reported by Matthew Woehlke.
47563
47564 2009-03-23  Jim Meyering  <meyering@redhat.com>
47565
47566         pathmax: PATH_MAX: use pathconf only when available
47567         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47568         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47569         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47570         This avoids a link failure in a PSP cross-compilation environment
47571         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47572
47573         * lib/vasnprintf.c (divide): Fix typo in comment.
47574
47575 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47576
47577         * gnulib-tool (func_filter_filelist): Fix comment.
47578
47579 2009-03-20  Bruno Haible  <bruno@clisp.org>
47580
47581         Make sockets.h self-contained.
47582         * lib/sockets.c: Include sockets.h first.
47583         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47584
47585 2009-03-19  Eric Blake  <ebb9@byu.net>
47586
47587         doc: mention more functions added in cygwin 1.7.0
47588         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47589         addition.
47590         * doc/posix-functions/log2f.texi: Likewise.
47591
47592 2009-03-19  Jim Meyering  <meyering@redhat.com>
47593
47594         fsusage: avoid syntax error due to statement-before-declaration
47595         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47596         after all declarations.  Reported by Matthew Woehlke in
47597         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47598
47599 2009-03-18  Eric Blake  <ebb9@byu.net>
47600
47601         build-aux/compile: sync from automake
47602         * build-aux/compile: New file, from automake.
47603         * config/srclist.txt: Mention build-aux/compile.
47604
47605 2009-03-17  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/git-merge-changelog.c: Fix typo in comment.
47608         Reported by Reuben Thomas <rrt@sc3d.org>.
47609
47610 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47611
47612         * m4/regex.m4: update and improve help for
47613         --without-included-regex.
47614
47615 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47616
47617         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47618         failure on missing include files.
47619
47620 2009-03-17  Eric Blake  <ebb9@byu.net>
47621
47622         doc: mention more functions added in cygwin 1.7.0
47623         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47624         addition.
47625         * doc/posix-functions/fwscanf.texi: Likewise.
47626         * doc/posix-functions/swprintf.texi: Likewise.
47627         * doc/posix-functions/swscanf.texi: Likewise.
47628         * doc/posix-functions/vfwprintf.texi: Likewise.
47629         * doc/posix-functions/vfwscanf.texi: Likewise.
47630         * doc/posix-functions/vswprintf.texi: Likewise.
47631         * doc/posix-functions/vswscanf.texi: Likewise.
47632         * doc/posix-functions/vwprintf.texi: Likewise.
47633         * doc/posix-functions/vwscanf.texi: Likewise.
47634         * doc/posix-functions/wcscasecmp.texi: Likewise.
47635         * doc/posix-functions/wcsdup.texi: Likewise.
47636         * doc/posix-functions/wcsftime.texi: Likewise.
47637         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47638         * doc/posix-functions/wprintf.texi: Likewise.
47639         * doc/posix-functions/wscanf.texi: Likewise.
47640         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47641
47642 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47643
47644         maint.mk: really add $(AM_MAKEFLAGS)
47645         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47646         was inadvertently omitted in the last commit.
47647         Spotted by Bruno Haible.
47648
47649         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47650         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47651         $(AM_MAKEFLAGS)' rather than plain `make'.
47652
47653         gnulib-tool: execute $MAKE not make
47654         * gnulib-tool: Default $MAKE to 'make'.
47655         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47656         than make.  Initialize $MAKE in the do-autobuild script.
47657
47658         gnulib-tool: use $MAKE not make in generated files
47659         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47660         make, in generated files.  Initialize $MAKE in the do-autobuild
47661         script.
47662
47663         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47664
47665         GNUmakefile: disable parallelism only for multiple, recursive targets
47666         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47667         additions in the Makefile.
47668         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47669         by Automake.
47670         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47671         are listed on the command line and at least one of them is
47672         listed in $(ALL_RECURSIVE_TARGETS).
47673
47674 2009-03-14  Bruno Haible  <bruno@clisp.org>
47675
47676         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47677         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47678         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47679         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47680         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47681         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47682         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47683         unistr/u8-uctomb.
47684         * modules/unistr/u8-strchr (Depends-on): Likewise.
47685         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47686         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47687         unistr/u16-uctomb.
47688         * modules/unistr/u16-strchr (Depends-on): Likewise.
47689         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47690
47691 2009-03-12  Bruno Haible  <bruno@clisp.org>
47692
47693         Work around select() bug on Interix 3.5.
47694         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47695         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47696         * m4/select.m4: New file.
47697         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47698         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47699         * modules/select (Files): Add m4/select.m4.
47700         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47701         * modules/nanosleep (Depends-on): Add select.
47702         * modules/poll (Depends-on): Likewise.
47703         * doc/posix-functions/select.texi: Mention the Interix bug.
47704         Reported by Markus Duft <mduft@gentoo.org>.
47705
47706         * lib/select.c: Renamed from lib/winsock-select.c.
47707         * modules/select (Files): Add lib/select.c, remove
47708         lib/winsock-select.c.
47709         (configure.ac): Update.
47710
47711 2009-03-12  Jim Meyering  <meyering@redhat.com>
47712
47713         avoid gcc warnings about unused macro definitions
47714         * lib/readtokens.c (STREQ): Remove unused definition.
47715         * lib/xmalloc.c (SIZE_MAX): Likewise.
47716         * lib/openat-die.c (N_): Likewise.
47717         * lib/mountlist.c (SIZE_MAX): Remove definition.
47718         Instead, include <stdint.h>.
47719         * lib/readutmp.c: Likewise.
47720         * modules/readutmp (Depends-on): Add stdint.
47721         * modules/mountlist (Depends-on): Add stdint.
47722         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47723
47724 2009-03-10  Bruno Haible  <bruno@clisp.org>
47725
47726         Tests for module 'mbmemcasecoll'.
47727         * modules/mbmemcasecoll-tests: New file.
47728         * tests/test-mbmemcasecoll1.sh: New file.
47729         * tests/test-mbmemcasecoll2.sh: New file.
47730         * tests/test-mbmemcasecoll3.sh: New file.
47731         * tests/test-mbmemcasecoll.c: New file.
47732
47733         New module 'mbmemcasecoll'.
47734         * lib/mbmemcasecoll.h: New file.
47735         * lib/mbmemcasecoll.c: New file.
47736         * modules/mbmemcasecoll: New file.
47737
47738         * tests/test-mbmemcasecmp.h: New file, extracted from
47739         tests/test-mbmemcasecmp.c.
47740         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47741         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47742         (main): Update.
47743         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47744
47745 2009-03-09  Bruno Haible  <bruno@clisp.org>
47746
47747         Tests for module 'mbmemcasecmp'.
47748         * modules/mbmemcasecmp-tests: New file.
47749         * tests/test-mbmemcasecmp1.sh: New file.
47750         * tests/test-mbmemcasecmp2.sh: New file.
47751         * tests/test-mbmemcasecmp3.sh: New file.
47752         * tests/test-mbmemcasecmp.c: New file.
47753
47754         New module 'mbmemcasecmp'.
47755         * lib/mbmemcasecmp.h: New file.
47756         * lib/mbmemcasecmp.c: New file.
47757         * modules/mbmemcasecmp: New file.
47758
47759 2009-03-09  Bruno Haible  <bruno@clisp.org>
47760
47761         Tests for module 'unicase/ulc-casecoll'.
47762         * modules/unicase/ulc-casecoll-tests: New file.
47763         * tests/unicase/test-ulc-casecoll1.sh: New file.
47764         * tests/unicase/test-ulc-casecoll2.sh: New file.
47765         * tests/unicase/test-ulc-casecoll.c: New file.
47766
47767         New module 'unicase/ulc-casecoll'.
47768         * lib/unicase.h (ulc_casecoll): New declaration.
47769         * lib/unicase/ulc-casecoll.c: New file.
47770         * modules/unicase/ulc-casecoll: New file.
47771
47772         New module 'unicase/ulc-casexfrm'.
47773         * lib/unicase.h (ulc_casexfrm): New declaration.
47774         * lib/unicase/ulc-casexfrm.c: New file.
47775         * modules/unicase/ulc-casexfrm: New file.
47776
47777 2009-03-09  Bruno Haible  <bruno@clisp.org>
47778
47779         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47780         invocations.
47781
47782         * m4/mbscasecmp.m4: Remove file.
47783         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47784         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47785
47786         * m4/mbscasestr.m4: Remove file.
47787         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47788         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47789
47790         * m4/mbschr.m4: Remove file.
47791         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47792         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47793
47794         * m4/mbscspn.m4: Remove file.
47795         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47796         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47797
47798         * m4/mbslen.m4: Remove file.
47799         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47800         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47801
47802         * m4/mbsncasecmp.m4: Remove file.
47803         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47804         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47805
47806         * m4/mbsnlen.m4: Remove file.
47807         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47808         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47809
47810         * m4/mbspbrk.m4: Remove file.
47811         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47812         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47813
47814         * m4/mbspcasecmp.m4: Remove file.
47815         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47816         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47817
47818         * m4/mbsrchr.m4: Remove file.
47819         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47820         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47821
47822         * m4/mbssep.m4: Remove file.
47823         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47824         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47825
47826         * m4/mbsspn.m4: Remove file.
47827         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47828         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47829
47830         * m4/mbsstr.m4: Remove file.
47831         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47832         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47833
47834         * m4/mbstok_r.m4: Remove file.
47835         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47836         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47837
47838         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47839
47840         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47841         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47842
47843         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47844
47845 2009-03-08  Bruno Haible  <bruno@clisp.org>
47846
47847         Tests for module 'unicase/ulc-casecmp'.
47848         * modules/unicase/ulc-casecmp-tests: New file.
47849         * tests/unicase/test-ulc-casecmp1.sh: New file.
47850         * tests/unicase/test-ulc-casecmp2.sh: New file.
47851         * tests/unicase/test-ulc-casecmp.c: New file.
47852
47853         New module 'unicase/ulc-casecmp'.
47854         * lib/unicase.h (ulc_casecmp): New declaration.
47855         * lib/unicase/ulc-casecmp.c: New file.
47856         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47857         'const SRC_UNIT *'.
47858         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47859         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47860         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47861         * modules/unicase/ulc-casecmp: New file.
47862
47863         Tests for module 'unicase/u32-is-cased'.
47864         * modules/unicase/u32-is-cased-tests: New file.
47865         * tests/unicase/test-u32-is-cased.c: New file.
47866
47867         Tests for module 'unicase/u16-is-cased'.
47868         * modules/unicase/u16-is-cased-tests: New file.
47869         * tests/unicase/test-u16-is-cased.c: New file.
47870
47871         Tests for module 'unicase/u8-is-cased'.
47872         * modules/unicase/u8-is-cased-tests: New file.
47873         * tests/unicase/test-u8-is-cased.c: New file.
47874         * tests/unicase/test-is-cased.h: New file.
47875
47876         New module 'unicase/u32-is-cased'.
47877         * lib/unicase/u32-is-cased.c: New file.
47878         * modules/unicase/u32-is-cased: New file.
47879
47880         New module 'unicase/u16-is-cased'.
47881         * lib/unicase/u16-is-cased.c: New file.
47882         * modules/unicase/u16-is-cased: New file.
47883
47884         New module 'unicase/u8-is-cased'.
47885         * lib/unicase/u8-is-cased.c: New file.
47886         * lib/unicase/u-is-cased.h: New file.
47887         * modules/unicase/u8-is-cased: New file.
47888
47889         Tests for module 'unicase/u32-is-casefolded'.
47890         * modules/unicase/u32-is-casefolded-tests: New file.
47891         * tests/unicase/test-u32-is-casefolded.c: New file.
47892
47893         Tests for module 'unicase/u16-is-casefolded'.
47894         * modules/unicase/u16-is-casefolded-tests: New file.
47895         * tests/unicase/test-u16-is-casefolded.c: New file.
47896
47897         Tests for module 'unicase/u8-is-casefolded'.
47898         * modules/unicase/u8-is-casefolded-tests: New file.
47899         * tests/unicase/test-u8-is-casefolded.c: New file.
47900         * tests/unicase/test-is-casefolded.h: New file.
47901
47902         New module 'unicase/u32-is-casefolded'.
47903         * lib/unicase/u32-is-casefolded.c: New file.
47904         * modules/unicase/u32-is-casefolded: New file.
47905
47906         New module 'unicase/u16-is-casefolded'.
47907         * lib/unicase/u16-is-casefolded.c: New file.
47908         * modules/unicase/u16-is-casefolded: New file.
47909
47910         New module 'unicase/u8-is-casefolded'.
47911         * lib/unicase/u8-is-casefolded.c: New file.
47912         * modules/unicase/u8-is-casefolded: New file.
47913
47914         Tests for module 'unicase/u32-is-titlecase'.
47915         * modules/unicase/u32-is-titlecase-tests: New file.
47916         * tests/unicase/test-u32-is-titlecase.c: New file.
47917
47918         Tests for module 'unicase/u16-is-titlecase'.
47919         * modules/unicase/u16-is-titlecase-tests: New file.
47920         * tests/unicase/test-u16-is-titlecase.c: New file.
47921
47922         Tests for module 'unicase/u8-is-titlecase'.
47923         * modules/unicase/u8-is-titlecase-tests: New file.
47924         * tests/unicase/test-u8-is-titlecase.c: New file.
47925         * tests/unicase/test-is-titlecase.h: New file.
47926
47927         New module 'unicase/u32-is-titlecase'.
47928         * lib/unicase/u32-is-titlecase.c: New file.
47929         * modules/unicase/u32-is-titlecase: New file.
47930
47931         New module 'unicase/u16-is-titlecase'.
47932         * lib/unicase/u16-is-titlecase.c: New file.
47933         * modules/unicase/u16-is-titlecase: New file.
47934
47935         New module 'unicase/u8-is-titlecase'.
47936         * lib/unicase/u8-is-titlecase.c: New file.
47937         * modules/unicase/u8-is-titlecase: New file.
47938
47939         Tests for module 'unicase/u32-is-lowercase'.
47940         * modules/unicase/u32-is-lowercase-tests: New file.
47941         * tests/unicase/test-u32-is-lowercase.c: New file.
47942
47943         Tests for module 'unicase/u16-is-lowercase'.
47944         * modules/unicase/u16-is-lowercase-tests: New file.
47945         * tests/unicase/test-u16-is-lowercase.c: New file.
47946
47947         Tests for module 'unicase/u8-is-lowercase'.
47948         * modules/unicase/u8-is-lowercase-tests: New file.
47949         * tests/unicase/test-u8-is-lowercase.c: New file.
47950         * tests/unicase/test-is-lowercase.h: New file.
47951
47952         New module 'unicase/u32-is-lowercase'.
47953         * lib/unicase/u32-is-lowercase.c: New file.
47954         * modules/unicase/u32-is-lowercase: New file.
47955
47956         New module 'unicase/u16-is-lowercase'.
47957         * lib/unicase/u16-is-lowercase.c: New file.
47958         * modules/unicase/u16-is-lowercase: New file.
47959
47960         New module 'unicase/u8-is-lowercase'.
47961         * lib/unicase/u8-is-lowercase.c: New file.
47962         * modules/unicase/u8-is-lowercase: New file.
47963
47964         Tests for module 'unicase/u32-is-uppercase'.
47965         * modules/unicase/u32-is-uppercase-tests: New file.
47966         * tests/unicase/test-u32-is-uppercase.c: New file.
47967
47968         Tests for module 'unicase/u16-is-uppercase'.
47969         * modules/unicase/u16-is-uppercase-tests: New file.
47970         * tests/unicase/test-u16-is-uppercase.c: New file.
47971
47972         Tests for module 'unicase/u8-is-uppercase'.
47973         * modules/unicase/u8-is-uppercase-tests: New file.
47974         * tests/unicase/test-u8-is-uppercase.c: New file.
47975         * tests/unicase/test-is-uppercase.h: New file.
47976
47977         New module 'unicase/u32-is-uppercase'.
47978         * lib/unicase/u32-is-uppercase.c: New file.
47979         * modules/unicase/u32-is-uppercase: New file.
47980
47981         New module 'unicase/u16-is-uppercase'.
47982         * lib/unicase/u16-is-uppercase.c: New file.
47983         * modules/unicase/u16-is-uppercase: New file.
47984
47985         New module 'unicase/u8-is-uppercase'.
47986         * lib/unicase/u8-is-uppercase.c: New file.
47987         * modules/unicase/u8-is-uppercase: New file.
47988
47989         New module 'unicase/u32-is-invariant'.
47990         * lib/unicase/u32-is-invariant.c: New file.
47991         * modules/unicase/u32-is-invariant: New file.
47992
47993         New module 'unicase/u16-is-invariant'.
47994         * lib/unicase/u16-is-invariant.c: New file.
47995         * modules/unicase/u16-is-invariant: New file.
47996
47997         New module 'unicase/u8-is-invariant'.
47998         * lib/unicase/u8-is-invariant.c: New file.
47999         * lib/unicase/invariant.h: New file.
48000         * lib/unicase/u-is-invariant.h: New file.
48001         * modules/unicase/u8-is-invariant: New file.
48002
48003         Tests for module 'unicase/u32-casecoll'.
48004         * modules/unicase/u32-casecoll-tests: New file.
48005         * tests/unicase/test-u32-casecoll.c: New file.
48006
48007         Tests for module 'unicase/u16-casecoll'.
48008         * modules/unicase/u16-casecoll-tests: New file.
48009         * tests/unicase/test-u16-casecoll.c: New file.
48010
48011         Tests for module 'unicase/u8-casecoll'.
48012         * modules/unicase/u8-casecoll-tests: New file.
48013         * tests/unicase/test-u8-casecoll.c: New file.
48014
48015         New module 'unicase/u32-casecoll'.
48016         * lib/unicase/u32-casecoll.c: New file.
48017         * modules/unicase/u32-casecoll: New file.
48018
48019         New module 'unicase/u16-casecoll'.
48020         * lib/unicase/u16-casecoll.c: New file.
48021         * modules/unicase/u16-casecoll: New file.
48022
48023         New module 'unicase/u8-casecoll'.
48024         * lib/unicase/u8-casecoll.c: New file.
48025         * lib/unicase/u-casecoll.h: New file.
48026         * modules/unicase/u8-casecoll: New file.
48027
48028         New module 'unicase/u32-casexfrm'.
48029         * lib/unicase/u32-casexfrm.c: New file.
48030         * modules/unicase/u32-casexfrm: New file.
48031
48032         New module 'unicase/u16-casexfrm'.
48033         * lib/unicase/u16-casexfrm.c: New file.
48034         * modules/unicase/u16-casexfrm: New file.
48035
48036         New module 'unicase/u8-casexfrm'.
48037         * lib/unicase/u8-casexfrm.c: New file.
48038         * lib/unicase/u-casexfrm.h: New file.
48039         * modules/unicase/u8-casexfrm: New file.
48040
48041         Tests for module 'unicase/u32-casecmp'.
48042         * modules/unicase/u32-casecmp-tests: New file.
48043         * tests/unicase/test-u32-casecmp.c: New file.
48044
48045         Tests for module 'unicase/u16-casecmp'.
48046         * modules/unicase/u16-casecmp-tests: New file.
48047         * tests/unicase/test-u16-casecmp.c: New file.
48048
48049         Tests for module 'unicase/u8-casecmp'.
48050         * modules/unicase/u8-casecmp-tests: New file.
48051         * tests/unicase/test-u8-casecmp.c: New file.
48052         * tests/unicase/test-casecmp.h: New file.
48053
48054         New module 'unicase/u32-casecmp'.
48055         * lib/unicase/u32-casecmp.c: New file.
48056         * modules/unicase/u32-casecmp: New file.
48057
48058         New module 'unicase/u16-casecmp'.
48059         * lib/unicase/u16-casecmp.c: New file.
48060         * modules/unicase/u16-casecmp: New file.
48061
48062         New module 'unicase/u8-casecmp'.
48063         * lib/unicase/u8-casecmp.c: New file.
48064         * lib/unicase/u-casecmp.h: New file.
48065         * modules/unicase/u8-casecmp: New file.
48066
48067         Tests for module 'unicase/u32-casefold'.
48068         * modules/unicase/u32-casefold-tests: New file.
48069         * tests/unicase/test-u32-casefold.c: New file.
48070
48071         Tests for module 'unicase/u16-casefold'.
48072         * modules/unicase/u16-casefold-tests: New file.
48073         * tests/unicase/test-u16-casefold.c: New file.
48074
48075         Tests for module 'unicase/u8-casefold'.
48076         * modules/unicase/u8-casefold-tests: New file.
48077         * tests/unicase/test-u8-casefold.c: New file.
48078
48079         New module 'unicase/u32-casefold'.
48080         * lib/unicase/u32-casefold.c: New file.
48081         * modules/unicase/u32-casefold: New file.
48082
48083         New module 'unicase/u16-casefold'.
48084         * lib/unicase/u16-casefold.c: New file.
48085         * modules/unicase/u16-casefold: New file.
48086
48087         New module 'unicase/u8-casefold'.
48088         * lib/unicase/u8-casefold.c: New file.
48089         * lib/unicase/u-casefold.h: New file.
48090         * modules/unicase/u8-casefold: New file.
48091
48092         New module 'unicase/tocasefold'.
48093         * lib/unicase/casefold.h: New file.
48094         * lib/unicase/tocasefold.c: New file.
48095         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48096         * modules/unicase/tocasefold: New file.
48097
48098         Tests for module 'unicase/u32-totitle'.
48099         * modules/unicase/u32-totitle-tests: New file.
48100         * tests/unicase/test-u32-totitle.c: New file.
48101
48102         Tests for module 'unicase/u16-totitle'.
48103         * modules/unicase/u16-totitle-tests: New file.
48104         * tests/unicase/test-u16-totitle.c: New file.
48105
48106         Tests for module 'unicase/u8-totitle'.
48107         * modules/unicase/u8-totitle-tests: New file.
48108         * tests/unicase/test-u8-totitle.c: New file.
48109
48110         New module 'unicase/u32-totitle'.
48111         * lib/unicase/u32-totitle.c: New file.
48112         * modules/unicase/u32-totitle: New file.
48113
48114         New module 'unicase/u16-totitle'.
48115         * lib/unicase/u16-totitle.c: New file.
48116         * modules/unicase/u16-totitle: New file.
48117
48118         New module 'unicase/u8-totitle'.
48119         * lib/unicase/u8-totitle.c: New file.
48120         * lib/unicase/u-totitle.h: New file.
48121         * modules/unicase/u8-totitle: New file.
48122
48123         Tests for module 'unicase/u32-tolower'.
48124         * modules/unicase/u32-tolower-tests: New file.
48125         * tests/unicase/test-u32-tolower.c: New file.
48126
48127         Tests for module 'unicase/u16-tolower'.
48128         * modules/unicase/u16-tolower-tests: New file.
48129         * tests/unicase/test-u16-tolower.c: New file.
48130
48131         Tests for module 'unicase/u8-tolower'.
48132         * modules/unicase/u8-tolower-tests: New file.
48133         * tests/unicase/test-u8-tolower.c: New file.
48134
48135         New module 'unicase/u32-tolower'.
48136         * lib/unicase/u32-tolower.c: New file.
48137         * modules/unicase/u32-tolower: New file.
48138
48139         New module 'unicase/u16-tolower'.
48140         * lib/unicase/u16-tolower.c: New file.
48141         * modules/unicase/u16-tolower: New file.
48142
48143         New module 'unicase/u8-tolower'.
48144         * lib/unicase/u8-tolower.c: New file.
48145         * modules/unicase/u8-tolower: New file.
48146
48147         Tests for module 'unicase/u32-toupper'.
48148         * modules/unicase/u32-toupper-tests: New file.
48149         * tests/unicase/test-u32-toupper.c: New file.
48150
48151         Tests for module 'unicase/u16-toupper'.
48152         * modules/unicase/u16-toupper-tests: New file.
48153         * tests/unicase/test-u16-toupper.c: New file.
48154
48155         Tests for module 'unicase/u8-toupper'.
48156         * modules/unicase/u8-toupper-tests: New file.
48157         * tests/unicase/test-u8-toupper.c: New file.
48158
48159         New module 'unicase/u32-toupper'.
48160         * lib/unicase/u32-toupper.c: New file.
48161         * modules/unicase/u32-toupper: New file.
48162
48163         New module 'unicase/u16-toupper'.
48164         * lib/unicase/u16-toupper.c: New file.
48165         * modules/unicase/u16-toupper: New file.
48166
48167         New module 'unicase/u8-toupper'.
48168         * lib/unicase/u8-toupper.c: New file.
48169         * modules/unicase/u8-toupper: New file.
48170
48171         New module 'unicase/u32-casemap'.
48172         * lib/unicase/u32-casemap.c: New file.
48173         * modules/unicase/u32-casemap: New file.
48174
48175         New module 'unicase/u16-casemap'.
48176         * lib/unicase/u16-casemap.c: New file.
48177         * modules/unicase/u16-casemap: New file.
48178
48179         New module 'unicase/u8-casemap'.
48180         * lib/unicase/unicasemap.h: New file.
48181         * lib/unicase/u8-casemap.c: New file.
48182         * lib/unicase/u-casemap.h: New file.
48183         * modules/unicase/u8-casemap: New file.
48184
48185         New module 'unicase/special-casing'.
48186         * lib/unicase/special-casing.h: New file.
48187         * lib/unicase/special-casing.c: New file.
48188         * lib/unicase/special-casing-table.gperf: New file, generated by
48189         gen-uni-tables.c.
48190         * modules/unicase/special-casing: New file.
48191
48192         Tests for module 'unicase/locale-language'.
48193         * modules/unicase/locale-language-tests: New file.
48194         * tests/unicase/test-locale-language.sh: New file.
48195         * tests/unicase/test-locale-language.c: New file.
48196
48197         New module 'unicase/locale-language'.
48198         * lib/unicase/locale-language.c: New file.
48199         * lib/unicase/locale-languages.gperf: New file.
48200         * modules/unicase/locale-language: New file.
48201
48202         Generate more tables for case conversion and case folding.
48203         * lib/gen-uni-tables.c (SCC_*): New enum items.
48204         (struct special_casing_rule): New type.
48205         (casing_rules, num_casing_rules, allocated_casing_rules): New
48206         variables.
48207         (add_casing_rule, fill_casing_rules): New functions.
48208         (struct casefold_rule): New type.
48209         (casefolding_rules, num_casefolding_rules,
48210         allocated_casefolding_rules): New variables.
48211         (fill_casefolding_rules): New function.
48212         (unicode_casefold): New variable.
48213         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48214         sort_casing_rules, output_casing_rules): New functions.
48215         (main): Accept to more arguments: SpecialCasing.txt and
48216         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48217         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48218         Output mapping for casefolding.
48219
48220         * lib/unicase.h: Include stdbool.h, uninorm.h.
48221         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48222         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48223         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48224         arguments.
48225         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48226         resultp arguments.
48227         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48228         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48229         resultp arguments.
48230         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48231         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48232         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48233         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48234         declarations.
48235         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48236
48237 2009-03-08  Bruno Haible  <bruno@clisp.org>
48238
48239         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48240         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48241         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48242         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48243
48244 2009-03-07  Bruno Haible  <bruno@clisp.org>
48245
48246         Adjust u*_normcmp, u*_normcoll API.
48247         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48248         u16_normcoll, u32_normcoll): Change failure conventions.
48249         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48250         errno and return -1.
48251         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48252
48253 2009-03-07  Bruno Haible  <bruno@clisp.org>
48254
48255         Tests for module 'uninorm/u32-normcoll'.
48256         * modules/uninorm/u32-normcoll-tests: New file.
48257         * tests/uninorm/test-u32-normcoll.c: New file.
48258
48259         Tests for module 'uninorm/u16-normcoll'.
48260         * modules/uninorm/u16-normcoll-tests: New file.
48261         * tests/uninorm/test-u16-normcoll.c: New file.
48262
48263         Tests for module 'uninorm/u8-normcoll'.
48264         * modules/uninorm/u8-normcoll-tests: New file.
48265         * tests/uninorm/test-u8-normcoll.c: New file.
48266
48267 2009-03-07  Bruno Haible  <bruno@clisp.org>
48268
48269         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48270         tests/uninorm/test-u32-normcmp.c.
48271         * tests/uninorm/test-u32-normcmp.c: Include it.
48272         (test_nonascii): New function, extracted from main. Add some more
48273         tests.
48274         (main): Invoke test_ascii and test_nonascii.
48275         * modules/uninorm/u32-normcmp-tests (Files): Add
48276         tests/uninorm/test-u32-normcmp.h.
48277         (Depends-on): Remove uninorm/u32-normcmp.
48278
48279         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48280         tests/uninorm/test-u16-normcmp.c.
48281         * tests/uninorm/test-u16-normcmp.c: Include it.
48282         (test_nonascii): New function, extracted from main. Add some more
48283         tests.
48284         (main): Invoke test_ascii and test_nonascii.
48285         * modules/uninorm/u16-normcmp-tests (Files): Add
48286         tests/uninorm/test-u16-normcmp.h.
48287         (Depends-on): Remove uninorm/u16-normcmp.
48288
48289         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48290         tests/uninorm/test-u8-normcmp.c.
48291         * tests/uninorm/test-u8-normcmp.c: Include it.
48292         (test_nonascii): New function, extracted from main. Add some more
48293         tests.
48294         (main): Invoke test_ascii and test_nonascii.
48295         * modules/uninorm/u8-normcmp-tests (Files): Add
48296         tests/uninorm/test-u8-normcmp.h.
48297         (Depends-on): Remove uninorm/u8-normcmp.
48298
48299 2009-03-07  Bruno Haible  <bruno@clisp.org>
48300
48301         New module 'uninorm/u32-normcoll'.
48302         * lib/uninorm/u32-normcoll.c: New file.
48303         * modules/uninorm/u32-normcoll: New file.
48304
48305         New module 'uninorm/u16-normcoll'.
48306         * lib/uninorm/u16-normcoll.c: New file.
48307         * modules/uninorm/u16-normcoll: New file.
48308
48309         New module 'uninorm/u8-normcoll'.
48310         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48311         declarations.
48312         * lib/uninorm/u8-normcoll.c: New file.
48313         * lib/uninorm/u-normcoll.h: New file.
48314         * modules/uninorm/u8-normcoll: New file.
48315
48316         New module 'uninorm/u32-normxfrm'.
48317         * lib/uninorm/u32-normxfrm.c: New file.
48318         * modules/uninorm/u32-normxfrm: New file.
48319
48320         New module 'uninorm/u16-normxfrm'.
48321         * lib/uninorm/u16-normxfrm.c: New file.
48322         * modules/uninorm/u16-normxfrm: New file.
48323
48324         New module 'uninorm/u8-normxfrm'.
48325         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48326         declarations.
48327         * lib/uninorm/u8-normxfrm.c: New file.
48328         * lib/uninorm/u-normxfrm.h: New file.
48329         * modules/uninorm/u8-normxfrm: New file.
48330
48331 2009-03-07  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48334         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48335         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48336
48337 2009-03-07  Bruno Haible  <bruno@clisp.org>
48338
48339         New module 'memxfrm'.
48340         * lib/memxfrm.h: New file.
48341         * lib/memxfrm.c: New file.
48342         * modules/memxfrm: New file.
48343
48344 2009-03-07  Bruno Haible  <bruno@clisp.org>
48345
48346         New module 'memcmp2'.
48347         * lib/memcmp2.h: New file.
48348         * lib/memcmp2.c: New file.
48349         * modules/memcmp2: New file.
48350
48351 2009-03-07  Bruno Haible  <bruno@clisp.org>
48352
48353         Tests for module 'uninorm/decomposing-form'.
48354         * modules/uninorm/decomposing-form-tests: New file.
48355         * tests/uninorm/test-decomposing-form.c: New file.
48356
48357         New module 'uninorm/decomposing-form'.
48358         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48359         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48360         Add 'decomposing_variant' field.
48361         * lib/uninorm/decomposing-form.c: New file.
48362         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48363         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48364         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48365         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48366         * modules/uninorm/decomposing-form: New file.
48367         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48368         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48369
48370 2009-03-07  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48373         strings.
48374
48375 2009-03-06  Bruno Haible  <bruno@clisp.org>
48376
48377         Tests for module 'uninorm/u32-normcmp'.
48378         * tests/uninorm/test-u32-normcmp.c: New file.
48379         * modules/uninorm/u32-normcmp-tests: New file.
48380
48381         Tests for module 'uninorm/u16-normcmp'.
48382         * tests/uninorm/test-u16-normcmp.c: New file.
48383         * modules/uninorm/u16-normcmp-tests: New file.
48384
48385         Tests for module 'uninorm/u8-normcmp'.
48386         * tests/uninorm/test-u8-normcmp.c: New file.
48387         * modules/uninorm/u8-normcmp-tests: New file.
48388
48389         New module 'uninorm/u32-normcmp'.
48390         * lib/uninorm/u32-normcmp.c: New file.
48391         * modules/uninorm/u32-normcmp: New file.
48392
48393         New module 'uninorm/u16-normcmp'.
48394         * lib/uninorm/u16-normcmp.c: New file.
48395         * modules/uninorm/u16-normcmp: New file.
48396
48397         New module 'uninorm/u8-normcmp'.
48398         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48399         declarations.
48400         * lib/uninorm/u8-normcmp.c: New file.
48401         * lib/uninorm/u-normcmp.h: New file.
48402         * modules/uninorm/u8-normcmp: New file.
48403
48404 2009-03-06  Bruno Haible  <bruno@clisp.org>
48405
48406         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48407         Reported by Eric Blake.
48408
48409 2009-03-06  Eric Blake  <ebb9@byu.net>
48410             Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48413         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48414         condition.
48415         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48416         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48417         condition.
48418         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48419
48420 2009-03-06  Eric Blake  <ebb9@byu.net>
48421
48422         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48423         to avoid compiler warnings.
48424         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48425
48426 2009-03-05  Bruno Haible  <bruno@clisp.org>
48427
48428         * tests/test-ftell.c (main): Disable test beyond end of file on
48429         FreeMiNT.
48430         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48431
48432 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48433
48434         * lib/filevercmp.c: Move hidden files up in ordering.
48435         * tests/test-filevercmp.c: Add tests for hidden files.
48436
48437 2009-03-04  Bruno Haible  <bruno@clisp.org>
48438
48439         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48440         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48441         AM_CFLAGS.
48442         Reported by Simon Josefsson.
48443
48444 2009-03-03  Bruno Haible  <bruno@clisp.org>
48445
48446         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48447         Reported by Simon Josefsson.
48448
48449         * doc/ld-version-script.texi: Update node reference.
48450
48451 2009-03-03  Bruno Haible  <bruno@clisp.org>
48452
48453         * modules/visibility (License): Change to 'unlimited'.
48454         Suggested by Simon Josefsson.
48455
48456 2009-03-03  Jim Meyering  <meyering@redhat.com>
48457
48458         unlinkdir: cannot_unlink_dir may modify process state
48459         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48460         it's neither thread-safe nor appropriate for use in a library.
48461
48462 2009-03-03  Eric Blake  <ebb9@byu.net>
48463
48464         test-closein: silence test under Darwin
48465         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48466         care if it dies from EPIPE or EBADF.
48467
48468 2009-03-03  Bruno Haible  <bruno@clisp.org>
48469
48470         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48471         earlier.
48472         * doc/visibility.texi: Fix @node and @section.
48473
48474 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48475
48476         * doc/gnulib.texi: Link to sections for ld version script and
48477         visibility.
48478         * doc/visibility.texi: Add @node and @section.
48479         * modules/ld-version-script: New module.
48480         * m4/ld-version-script.m4: New file.
48481         * doc/ld-version-script.texi: New file.
48482
48483 2009-03-02  David Lutterkort  <lutter@redhat.com>
48484
48485         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48487
48488 2009-03-02  Bruno Haible  <bruno@clisp.org>
48489
48490         * doc/visibility.texi: Mention libtool's -export-symbols option.
48491
48492 2009-03-02  Jim Meyering  <meyering@redhat.com>
48493
48494         announce-gen: new option: --no-print-checksums
48495         * build-aux/announce-gen (usage): Describe it.
48496         (print_checksums): Print a newline here, not in the [*] footnote.
48497         (main): Honor it.
48498
48499 2009-03-01  Bruno Haible  <bruno@clisp.org>
48500
48501         Use socklen_t in the native Windows replacements prototypes.
48502         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48503         instead of 'int'.
48504         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48505         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48506         * modules/getsockopt (Depends-on): Add socklen.
48507         * modules/setsockopt (Depends-on): Add socklen.
48508
48509 2009-03-01  Bruno Haible  <bruno@clisp.org>
48510
48511         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48512         least 4.2.
48513
48514 2009-03-01  Eric Blake  <ebb9@byu.net>
48515             Bruno Haible  <bruno@clisp.org>
48516
48517         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48518         error messages.
48519         * lib/wait-process.c (wait_subprocess): Omit error message about
48520         deadly signal sent to the child of termsigp != NULL.
48521
48522 2009-03-01  Eric Blake  <ebb9@byu.net>
48523
48524         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48525
48526 2009-03-01  Bruno Haible  <bruno@clisp.org>
48527
48528         Avoid a gcc warning.
48529         * tests/test-sched.c (b): Make global.
48530         Reported by Eric Blake.
48531
48532 2009-01-19  Martin Lambers  <marlam@marlam.de>
48533
48534         Provide POSIX semantics for socket timeout options on W32.
48535         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48536         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48537         * modules/setsockopt: Depend on sys_time module for struct timeval.
48538         * modules/getsockopt: Depend on sys_time module for struct timeval.
48539
48540 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48541
48542         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48543         __USE_GNU, for consistency with netdb.in.h.
48544         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48545
48546 2009-03-01  Bruno Haible  <bruno@clisp.org>
48547
48548         More support for FreeMiNT.
48549         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48550         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48551
48552 2009-03-01  Bruno Haible  <bruno@clisp.org>
48553
48554         More support for FreeMiNT.
48555         * lib/fpurge.c (fpurge): Correct last commit.
48556         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48557
48558 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48559
48560         Fix unportable awk script in vc-list-files.
48561         * build-aux/vc-list-files: In the replacement awk script, use
48562         substr with a second argument of 1, not zero.
48563         Report by Simon Josefsson.
48564
48565 2009-02-28  Bruno Haible  <bruno@clisp.org>
48566
48567         More support for FreeMiNT.
48568         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48569         to FreeMiNT today.
48570         * lib/fwriting.c (fwriting): Likewise.
48571         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48572
48573 2009-02-28  Bruno Haible  <bruno@clisp.org>
48574
48575         * tests/test-freadseek.c (main): Disable test beyond end of file on
48576         FreeMiNT.
48577         * tests/test-ftello.c (main): Likewise.
48578         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48579
48580 2009-02-28  Bruno Haible  <bruno@clisp.org>
48581
48582         Add tentative support for FreeMiNT.
48583         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48584         * lib/fpurge.c (fpurge): Likewise.
48585         * lib/freadable.c (freadable): Likewise.
48586         * lib/freading.c (freading): Likewise.
48587         * lib/freadptr.c (freadptr): Likewise.
48588         * lib/freadseek.c (freadptrinc): Likewise.
48589         * lib/fseeko.c (rpl_fseeko): Likewise.
48590         * lib/fseterr.c (fseterr): Likewise.
48591         * lib/fwritable.c (fwritable): Likewise.
48592         * lib/fwriting.c (fwriting): Likewise.
48593         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48594         Hourihane.
48595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48596
48597 2009-02-28  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48600         SIGCHLD.
48601         Reported by Jim Meyering.
48602
48603 2009-02-28  Bruno Haible  <bruno@clisp.org>
48604
48605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48606         Mention the results of these tests on various platforms.
48607         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48608         order.
48609         * doc/posix-functions/printf.texi: Likewise.
48610         * doc/posix-functions/snprintf.texi: Likewise.
48611         * doc/posix-functions/sprintf.texi: Likewise.
48612         * doc/posix-functions/vfprintf.texi: Likewise.
48613         * doc/posix-functions/vprintf.texi: Likewise.
48614         * doc/posix-functions/vsnprintf.texi: Likewise.
48615         * doc/posix-functions/vsprintf.texi: Likewise.
48616         * doc/glibc-functions/obstack_printf.texi: Likewise.
48617         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48618
48619 2009-02-28  Bruno Haible  <bruno@clisp.org>
48620
48621         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48622         Reported by Loïc Minier <lool@dooz.org>.
48623
48624 2009-02-27  Bruno Haible  <bruno@clisp.org>
48625
48626         * gnulib-tool (func_import): Make the sed expression used to create the
48627         sed script for updating the .gitignore file POSIX compliant.
48628         Reported by Eric Blake.
48629
48630 2009-02-27  Bruno Haible  <bruno@clisp.org>
48631
48632         * gnulib-tool (sed): Don't alias as "sed --posix".
48633         Reported by Eric Blake.
48634
48635 2009-02-27  Bruno Haible  <bruno@clisp.org>
48636
48637         Avoid test link errors.
48638         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48639         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48640         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48641         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48643
48644 2009-02-27  Bruno Haible  <bruno@clisp.org>
48645
48646         Avoid spurious "(cached)" in configure output.
48647         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48648         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48649         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48650         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48651         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48652         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48653         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48654         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48655         Reported by Eric Blake.
48656
48657 2009-02-27  Eric Blake  <ebb9@byu.net>
48658
48659         printf: fix regression in previous patch
48660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48661
48662 2009-02-27  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48665         value.
48666         * lib/stdint.in.h: Likewise.
48667         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48668
48669 2009-02-27  Eric Blake  <ebb9@byu.net>
48670
48671         doc: mention more functions added in cygwin 1.7.0
48672         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48673         addition.
48674         * doc/posix-functions/open_wmemstream.texi: Likewise.
48675         * doc/posix-functions/wcsnlen.texi: Likewise.
48676         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48677         * doc/posix-functions/wcstod.texi: Likewise.
48678         * doc/posix-functions/wcstof.texi: Likewise.
48679         * doc/posix-functions/wcstoimax.texi: Likewise.
48680         * doc/posix-functions/wcstok.texi: Likewise.
48681         * doc/posix-functions/wcstoumax.texi: Likewise.
48682
48683         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48685         * doc/posix-functions/fprintf.texi: Update.
48686         * doc/posix-functions/printf.texi: Update.
48687         * doc/posix-functions/snprintf.texi: Update.
48688         * doc/posix-functions/sprintf.texi: Update.
48689         * doc/posix-functions/vfprintf.texi: Update.
48690         * doc/posix-functions/vprintf.texi: Update.
48691         * doc/posix-functions/vsnprintf.texi: Update.
48692         * doc/posix-functions/vsprintf.texi: Update.
48693         * doc/glibc-functions/obstack_printf.texi: Update.
48694         * doc/glibc-functions/obstack_vprintf.texi: Update.
48695
48696 2009-02-26  Eric Blake  <ebb9@byu.net>
48697
48698         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48699         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48700         compilation bug by using runtime conversion.
48701         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48702         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48703         * modules/ceill-tests (Files): Use nan.h.
48704         * modules/floorl-tests (Files): Likewise.
48705         * modules/frexpl-tests (Files): Likewise.
48706         * modules/isnanl-tests (Files): Likewise.
48707         * modules/ldexpl-tests (Files): Likewise.
48708         * modules/roundl-tests (Files): Likewise.
48709         * modules/truncl-tests (Files): Likewise.
48710         * tests/test-ceill.c (main): Use a working NaN.
48711         * tests/test-floorl.c (main): Likewise.
48712         * tests/test-frexpl.c (main): Likewise.
48713         * tests/test-isnan.c (test_long_double): Likewise.
48714         * tests/test-isnanl.h (main): Likewise.
48715         * tests/test-ldexpl.h (main): Likewise.
48716         * tests/test-roundl.h (main): Likewise.
48717         * tests/test-truncl.h (main): Likewise.
48718         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48719
48720 2009-02-26  Eric Blake  <ebb9@byu.net>
48721             Bruno Haible  <bruno@clisp.org>
48722
48723         Work around a *printf bug with %ls on Solaris.
48724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48725         precision is specified, sprintf stops converting the wide string
48726         argument when the number of bytes that have been produced by this
48727         conversion equals or exceeds the precision.
48728         * doc/posix-functions/fprintf.texi: Update.
48729         * doc/posix-functions/printf.texi: Update.
48730         * doc/posix-functions/snprintf.texi: Update.
48731         * doc/posix-functions/sprintf.texi: Update.
48732         * doc/posix-functions/vfprintf.texi: Update.
48733         * doc/posix-functions/vprintf.texi: Update.
48734         * doc/posix-functions/vsnprintf.texi: Update.
48735         * doc/posix-functions/vsprintf.texi: Update.
48736         * doc/glibc-functions/obstack_printf.texi: Update.
48737         * doc/glibc-functions/obstack_vprintf.texi: Update.
48738
48739 2009-02-26  Eric Blake  <ebb9@byu.net>
48740
48741         stdlib: favor compiler check of random.h
48742         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48743         to avoid an ObjC random.h installed by Swarm.
48744
48745 2009-02-26  Bruno Haible  <bruno@clisp.org>
48746
48747         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48748         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48749         Reported by Gary V. Vaughan <gary@gnu.org>.
48750
48751 2009-02-26  Bruno Haible  <bruno@clisp.org>
48752
48753         Fix *printf behaviour regarding the %ls directive.
48754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48755         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48756         NEED_PRINTF_DIRECTIVE_LS.
48757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48758         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48759         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48760         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48761         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48762         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48763         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48768         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48772         * doc/posix-functions/fprintf.texi: Update.
48773         * doc/posix-functions/printf.texi: Update.
48774         * doc/posix-functions/snprintf.texi: Update.
48775         * doc/posix-functions/sprintf.texi: Update.
48776         * doc/posix-functions/vfprintf.texi: Update.
48777         * doc/posix-functions/vprintf.texi: Update.
48778         * doc/posix-functions/vsnprintf.texi: Update.
48779         * doc/posix-functions/vsprintf.texi: Update.
48780         * doc/glibc-functions/obstack_printf.texi: Update.
48781         * doc/glibc-functions/obstack_vprintf.texi: Update.
48782         Reported by Eric Blake.
48783
48784 2009-02-25  Bruno Haible  <bruno@clisp.org>
48785
48786         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48787         with known value.
48788         Reported by Gary V. Vaughan <gary@gnu.org>.
48789
48790 2009-02-25  Bruno Haible  <bruno@clisp.org>
48791
48792         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48793         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48794         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48795         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48796         Reported by Gary V. Vaughan <gary@gnu.org>.
48797
48798 2009-02-25  Bruno Haible  <bruno@clisp.org>
48799
48800         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48801         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48802         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48803         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48804         Reported by Gary V. Vaughan <gary@gnu.org>.
48805
48806 2009-02-25  Eric Blake  <ebb9@byu.net>
48807
48808         tests: skip fseek/ftell tests if ungetc is broken
48809         * m4/ungetc.m4: New file.
48810         * modules/fseek-tests: Split test, so ungetc dependency is
48811         separate from rest of test.
48812         * modules/fseeko-tests: Likewise.
48813         * modules/ftell-tests: Likewise.
48814         * modules/ftello-tests: Likewise.
48815         * tests/test-fseek.c (main): Isolate ungetc dependency.
48816         * tests/test-fseeko.c (main): Likewise.
48817         * tests/test-ftell.c (main): Likewise.
48818         * tests/test-ftello.c (main): Likewise.
48819         * tests/test-fseek2.sh: New file.
48820         * tests/test-fseeko2.sh: Likewise.
48821         * tests/test-ftell2.sh: Likewise.
48822         * tests/test-ftello2.sh: Likewise.
48823
48824 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
48825
48826         test-getaddrinfo: fix usage of skip return code 77
48827         * tests/test-gettaddrinfo.c: Return skip code 77 only
48828         for first occurrence of skip (4x77 is not 77)
48829
48830 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48831
48832         strtod: avoid C99 decl-after-statement
48833         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48834
48835 2009-02-24  Eric Blake  <ebb9@byu.net>
48836
48837         strtod: detect HP-UX 11.31 bug
48838         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48839         Reported by Gary V. Vaughan.
48840
48841 2009-02-23  Bruno Haible  <bruno@clisp.org>
48842
48843         Fix invalid read past end of memory block.
48844         * lib/vasnprintf.c (DCHAR_SET): Define.
48845         (local_wcslen): Define only when needed.
48846         (local_strnlen, local_wcsnlen): New functions.
48847         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48848         directives that involve a conversion ourselves.
48849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48850         wcsnlen, mbrtowc, wcrtomb.
48851         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48852         * tests/test-vasprintf-posix.c (test_function): Likewise.
48853         * tests/test-snprintf-posix.h (test_function): Likewise.
48854         * tests/test-sprintf-posix.h (test_function): Likewise.
48855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48856
48857 2009-02-22  Bruno Haible  <bruno@clisp.org>
48858
48859         Implement new clarified decomposition of Hangul syllables.
48860         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48861         of type LTV, return only a pairwise decomposition.
48862         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48863         Likewise.
48864         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48865         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48866         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48867
48868 2009-02-22  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48871         zero-length results and shrink excess allocated memory.
48872         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48873         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48874         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48875         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48876         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48877         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48878         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48879         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48880         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48881         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48882         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48883         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48884
48885 2009-02-21  Bruno Haible  <bruno@clisp.org>
48886
48887         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48888         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48889         spaces after a period. Put a space between a macro name and its
48890         argument list. Trivial rewordings.
48891         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48892         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48893         (main): Return 0 explicitly.
48894
48895 2009-02-21  Bruno Haible  <bruno@clisp.org>
48896
48897         Tests for module 'uninorm/filter'.
48898         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48899         * modules/uninorm/filter-tests: New file.
48900
48901         New module 'uninorm/filter'.
48902         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48903         uninorm_filter_flush, uninorm_filter_free): New declarations.
48904         * lib/uninorm/uninorm-filter.c: New file.
48905         * modules/uninorm/filter: New file.
48906
48907 2009-02-21  Bruno Haible  <bruno@clisp.org>
48908
48909         Tests for module 'uninorm/nfkc'.
48910         * tests/uninorm/test-nfkc.c: New file.
48911         * tests/uninorm/test-u8-nfkc.c: New file.
48912         * tests/uninorm/test-u16-nfkc.c: New file.
48913         * tests/uninorm/test-u32-nfkc.c: New file.
48914         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48915         * tests/uninorm/test-u32-nfkc-big.c: New file.
48916         * modules/uninorm/nfkc-tests: New file.
48917
48918         New module 'uninorm/nfkc'.
48919         * lib/uninorm/nfkc.c: New file.
48920         * modules/uninorm/nfkc: New file.
48921
48922         Tests for module 'uninorm/nfkd'.
48923         * tests/uninorm/test-nfkd.c: New file.
48924         * tests/uninorm/test-u8-nfkd.c: New file.
48925         * tests/uninorm/test-u16-nfkd.c: New file.
48926         * tests/uninorm/test-u32-nfkd.c: New file.
48927         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48928         * tests/uninorm/test-u32-nfkd-big.c: New file.
48929         * modules/uninorm/nfkd-tests: New file.
48930
48931         New module 'uninorm/nfkd'.
48932         * lib/uninorm/nfkd.c: New file.
48933         * modules/uninorm/nfkd: New file.
48934
48935         Tests for module 'uninorm/nfc'.
48936         * tests/uninorm/test-nfc.c: New file.
48937         * tests/uninorm/test-u8-nfc.c: New file.
48938         * tests/uninorm/test-u16-nfc.c: New file.
48939         * tests/uninorm/test-u32-nfc.c: New file.
48940         * tests/uninorm/test-u32-nfc-big.sh: New file.
48941         * tests/uninorm/test-u32-nfc-big.c: New file.
48942         * modules/uninorm/nfc-tests: New file.
48943
48944         New module 'uninorm/nfc'.
48945         * lib/uninorm/nfc.c: New file.
48946         * modules/uninorm/nfc: New file.
48947
48948         Tests for module 'uninorm/nfd'.
48949         * tests/uninorm/test-nfd.c: New file.
48950         * tests/uninorm/test-u8-nfd.c: New file.
48951         * tests/uninorm/test-u16-nfd.c: New file.
48952         * tests/uninorm/test-u32-nfd.c: New file.
48953         * tests/uninorm/test-u32-nfd-big.sh: New file.
48954         * tests/uninorm/test-u32-nfd-big.c: New file.
48955         * tests/uninorm/test-u32-normalize-big.h: New file.
48956         * tests/uninorm/test-u32-normalize-big.c: New file.
48957         * tests/uninorm/NormalizationTest.txt: New file, created from
48958         Unicode 5.1.0 NormalizationTest.txt.
48959         * modules/uninorm/nfd-tests: New file.
48960
48961         New module 'uninorm/nfd'.
48962         * lib/uninorm/nfd.c: New file.
48963         * modules/uninorm/nfd: New file.
48964
48965         New module 'uninorm/u32-normalize'.
48966         * lib/uninorm/u32-normalize.c: New file.
48967         * modules/uninorm/u32-normalize: New file.
48968
48969         New module 'uninorm/u16-normalize'.
48970         * lib/uninorm/u16-normalize.c: New file.
48971         * modules/uninorm/u16-normalize: New file.
48972
48973         New module 'uninorm/u8-normalize'.
48974         * lib/uninorm/u8-normalize.c: New file.
48975         * lib/uninorm/normalize-internal.h: New file.
48976         * lib/uninorm/u-normalize-internal.h: New file.
48977         * modules/uninorm/u8-normalize: New file.
48978
48979         New module 'uninorm/decompose-internal'.
48980         * lib/uninorm/decompose-internal.c: New file.
48981         * modules/uninorm/decompose-internal: New file.
48982
48983         Tests for module 'uninorm/composition'.
48984         * tests/uninorm/test-composition.c: New file.
48985         * modules/uninorm/composition-tests: New file.
48986
48987         New module 'uninorm/composition'.
48988         * lib/uninorm/composition.c: New file.
48989         * lib/uninorm/composition-table.gperf: New file, generated by
48990         gen-uni-tables.
48991         * modules/uninorm/composition: New file.
48992
48993         Tests for module 'uninorm/compat-decomposition'.
48994         * tests/uninorm/test-compat-decomposition.c: New file.
48995         * modules/uninorm/compat-decomposition-tests: New file.
48996
48997         New module 'uninorm/compat-decomposition'.
48998         * lib/uninorm/decompose-internal.h: New file.
48999         * lib/uninorm/compat-decomposition.c: New file.
49000         * modules/uninorm/compat-decomposition: New file.
49001
49002         Tests for module 'uninorm/canonical-decomposition'.
49003         * tests/uninorm/test-canonical-decomposition.c: New file.
49004         * modules/uninorm/canonical-decomposition-tests: New file.
49005
49006         New module 'uninorm/canonical-decomposition'.
49007         * lib/uninorm/canonical-decomposition.c: New file.
49008         * modules/uninorm/canonical-decomposition: New file.
49009
49010         Tests for module 'uninorm/decomposition'.
49011         * tests/uninorm/test-decomposition.c: New file.
49012         * modules/uninorm/decomposition-tests: New file.
49013
49014         New module 'uninorm/decomposition'.
49015         * lib/uninorm/decomposition.c: New file.
49016         * modules/uninorm/decomposition: New file.
49017
49018         New module 'uninorm/decomposition-table'.
49019         * lib/uninorm/decomposition-table.h: New file.
49020         * lib/uninorm/decomposition-table.c: New file.
49021         * lib/uninorm/decomposition-table1.h: New file, generated by
49022         gen-uni-tables.
49023         * lib/uninorm/decomposition-table2.h: New file, generated by
49024         gen-uni-tables.
49025         * modules/uninorm/decomposition-table: New file.
49026
49027         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49028         (UC_DECOMP_*): New enumeration items.
49029         (get_decomposition): New function.
49030         (struct decomp_table): New type.
49031         (output_decomposition, output_decomposition_tables): New functions.
49032         (unicode_composition_exclusions): New variable.
49033         (fill_composition_exclusions, debug_output_composition_tables): New
49034         functions.
49035         (main): Accept one more argument. Invoke fill_composition_exclusions.
49036         Output decomposition and composition tables.
49037
49038         New module 'uninorm/base'.
49039         * lib/uninorm.h: New file.
49040         * lib/unictype.h: Update comment.
49041         * modules/uninorm/base: New file.
49042
49043 2009-02-21  David Lutterkort  <lutter@redhat.com>
49044
49045         Tests for module 'safe-alloc'.
49046         * tests/test-safe-alloc.c: New file.
49047         * modules/safe-alloc-tests: New file.
49048
49049         New module 'safe-alloc'.
49050         * lib/safe-alloc.h: New file.
49051         * lib/safe-alloc.c: New file.
49052         * m4/safe-alloc.m4: New file.
49053         * modules/safe-alloc: New file.
49054         * doc/safe-alloc.texi: New file.
49055         * doc/gnulib.texi: Include it.
49056         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49057         safe-alloc.
49058
49059 2009-02-18  Bruno Haible  <bruno@clisp.org>
49060
49061         Fix link error on non-glibc systems.
49062         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49063         variable.
49064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49065
49066 2009-02-18  Jim Meyering  <meyering@redhat.com>
49067
49068         fts: avoid used-uninitialized error due to recent change
49069         * lib/fts.c (fts_read): Guard uses of the new member,
49070         parent->fts_n_dirs_remaining, since it's not relevant for
49071         the parent of a directory specified on the command-line.
49072
49073 2009-02-17  James Youngman  <jay@gnu.org>
49074             Bruno Haible  <bruno@clisp.org>
49075
49076         * m4/include_next.m4: Reformulate comment.
49077
49078 2009-02-16  Jim Meyering  <meyering@redhat.com>
49079
49080         fts: add #if guards so that the fts_lgpl module still builds
49081         * lib/fts.c: Guard just-added hash-table-using parts with
49082         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49083         Reported by Simon Josefsson.
49084
49085 2009-02-15  Bruno Haible  <bruno@clisp.org>
49086
49087         * modules/array-mergesort-tests: New file.
49088         * tests/test-array-mergesort.c: New file.
49089
49090         New module 'array-mergesort'.
49091         * modules/array-mergesort: New file.
49092         * lib/array-mergesort.h: New file.
49093
49094 2009-02-15  Bruno Haible  <bruno@clisp.org>
49095
49096         Fix 2009-02-07 commit.
49097         * lib/gen-uni-tables.c (output_predicate, output_category,
49098         output_combclass, output_bidi_category, output_decimal_digit,
49099         output_digit, output_numeric, output_mirror, output_scripts,
49100         output_ident_category, output_simple_mapping): Fix format directives.
49101         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49102
49103 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49104
49105         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49106         fixes are available from IBM.
49107
49108 2009-02-13  Jim Meyering  <meyering@redhat.com>
49109
49110         fts: arrange not to stat non-directories in more cases
49111         This makes GNU find (when it doesn't need to stat each file)
49112         *much* more efficient at traversing reiserfs file systems.
49113         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49114         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49115         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49116         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49117         (leaf_optimization_applies): New function.
49118         (LCO_hash, LCO_compare): New helper functions.
49119         (link_count_optimize_ok): New function.
49120         (fts_stat): Initialize new member (if dir).
49121         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49122         we've just stat'ed a directory.  Skip the stat call when possible.
49123         ---
49124         Note this AFS-related exchange:
49125         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49126         and note find's pioctl call in find/fstype.c.
49127         But that is necessary only if you want to enable the
49128         optimization for AFS, and for now, I don't.
49129
49130         fts: move a function definition "up" (no semantic change)
49131         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49132         "up" to precede upcoming use of a related function.
49133
49134 2009-02-11  Jim Meyering  <meyering@redhat.com>
49135
49136         fts: correct internal computation of nlinks (optimization-related)
49137         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49138         whether the current entry is a directory, so don't test it.
49139
49140 2009-02-10  Bruno Haible  <bruno@clisp.org>
49141
49142         Tests for module 'uniwbrk/ulc-wordbreaks'.
49143         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49144         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49145         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49146
49147         Tests for module 'uniwbrk/u32-wordbreaks'.
49148         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49149         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49150
49151         Tests for module 'uniwbrk/u16-wordbreaks'.
49152         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49153         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49154
49155         Tests for module 'uniwbrk/u8-wordbreaks'.
49156         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49157         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49158
49159 2009-02-10  Bruno Haible  <bruno@clisp.org>
49160
49161         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49162         property.
49163         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49164         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49165         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49166
49167 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49168
49169         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49170         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49171
49172 2009-02-10  Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49175         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49176         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49177         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49178         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49179         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49180
49181 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49182
49183         * lib/sockets.h (gl_fd_to_handle): New function.
49184
49185         * tests/test-sockets.c: Call gl_fd_to_handle.
49186
49187 2009-02-09  Bruno Haible  <bruno@clisp.org>
49188
49189         * doc/havelib.texi: Document the conventions on bi-arch systems.
49190
49191 2009-02-08  Bruno Haible  <bruno@clisp.org>
49192
49193         Document the AC_LIB_LINKFLAGS macro.
49194         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49195         * doc/gnulib.texi: Include it.
49196
49197 2009-02-08  Bruno Haible  <bruno@clisp.org>
49198
49199         Fix wrong order of sections, compared to TOC.
49200         * doc/gnulib.texi: Include relocatable-maint.texi after the
49201         "Regular expressions" node, not before.
49202
49203 2009-02-08  Bruno Haible  <bruno@clisp.org>
49204
49205         Tests for module 'unicase/totitle'.
49206         * modules/unicase/totitle-tests: New file.
49207
49208         Tests for module 'unicase/tolower'.
49209         * modules/unicase/tolower-tests: New file.
49210
49211         Tests for module 'unicase/toupper'.
49212         * modules/unicase/toupper-tests: New file.
49213         * tests/unicase/test-mapping-part1.h: New file.
49214         * tests/unicase/test-mapping-part2.h: New file.
49215
49216         New module 'unicase/totitle'.
49217         * modules/unicase/totitle: New file.
49218         * lib/unicase/totitle.c: New file.
49219
49220         New module 'unicase/tolower'.
49221         * modules/unicase/tolower: New file.
49222         * lib/unicase/tolower.c: New file.
49223
49224         New module 'unicase/toupper'.
49225         * modules/unicase/toupper: New file.
49226         * lib/unicase/toupper.c: New file.
49227         * lib/unicase/simple-mapping.h: New file.
49228
49229         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49230         (mapping_table): New structure.
49231         (output_simple_mapping): New function.
49232         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49233         * modules/gen-uni-tables (Description): Update.
49234         * lib/unicase/toupper.h: New file, automatically generated by
49235         gen-uni-tables.
49236         * lib/unicase/tolower.h: New file, automatically generated by
49237         gen-uni-tables.
49238         * lib/unicase/totitle.h: New file, automatically generated by
49239         gen-uni-tables.
49240         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49241         gen-uni-tables.
49242         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49243         gen-uni-tables.
49244         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49245         gen-uni-tables.
49246
49247         New module 'unicase/base'.
49248         * modules/unicase/base: New file.
49249         * lib/unicase.h: New file.
49250
49251 2009-02-08  Bruno Haible  <bruno@clisp.org>
49252
49253         New module 'uniwbrk/ulc-wordbreaks'.
49254         * modules/uniwbrk/ulc-wordbreaks: New file.
49255         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49256
49257         New module 'uniwbrk/u32-wordbreaks'.
49258         * modules/uniwbrk/u32-wordbreaks: New file.
49259         * lib/uniwbrk/u32-wordbreaks.c: New file.
49260
49261         New module 'uniwbrk/u16-wordbreaks'.
49262         * modules/uniwbrk/u16-wordbreaks: New file.
49263         * lib/uniwbrk/u16-wordbreaks.c: New file.
49264
49265         New module 'uniwbrk/u8-wordbreaks'.
49266         * modules/uniwbrk/u8-wordbreaks: New file.
49267         * lib/uniwbrk/u8-wordbreaks.c: New file.
49268         * lib/uniwbrk/u-wordbreaks.h: New file.
49269
49270         New module 'uniwbrk/table'.
49271         * modules/uniwbrk/table: New file.
49272         * lib/uniwbrk/wbrktable.h: New file.
49273         * lib/uniwbrk/wbrktable.c: New file.
49274
49275         New module 'uniwbrk/wordbreak-property'.
49276         * modules/uniwbrk/wordbreak-property: New file.
49277         * lib/uniwbrk/wordbreak-property.c: New file.
49278
49279         * lib/gen-uni-tables.c (WBP_*): New enum items.
49280         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49281         (unicode_org_wbp): New variable.
49282         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49283         New functions.
49284         (wbp_table): New structure.
49285         (output_wbp, output_wbrk_tables): New functions.
49286         (main): Accept additional argument. Invoke fill_org_wbp,
49287         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49288         output_wbrk_tables.
49289         * modules/gen-uni-tables (Description): Update.
49290         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49291         gen-uni-tables.
49292
49293         New module 'uniwbrk/base'.
49294         * modules/uniwbrk/base: New file.
49295         * lib/uniwbrk.h: New file.
49296
49297 2009-02-08  Bruno Haible  <bruno@clisp.org>
49298
49299         Update to Unicode 5.1.0.
49300         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49301         U+2185..U+2188.
49302         (is_property_default_ignorable_code_point): Don't include characters
49303         of category Cc or Cs and not-a-characters.
49304         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49305         U+0D79, U+109E, U+109F, U+A60C.
49306         * lib/unictype/bidi_of.h: Regenerated.
49307         * lib/unictype/blocks.h: Regenerated.
49308         * lib/unictype/categ_C.h: Regenerated.
49309         * lib/unictype/categ_Cf.h: Regenerated.
49310         * lib/unictype/categ_Cn.h: Regenerated.
49311         * lib/unictype/categ_L.h: Regenerated.
49312         * lib/unictype/categ_Ll.h: Regenerated.
49313         * lib/unictype/categ_Lm.h: Regenerated.
49314         * lib/unictype/categ_Lo.h: Regenerated.
49315         * lib/unictype/categ_Lu.h: Regenerated.
49316         * lib/unictype/categ_M.h: Regenerated.
49317         * lib/unictype/categ_Mc.h: Regenerated.
49318         * lib/unictype/categ_Me.h: Regenerated.
49319         * lib/unictype/categ_Mn.h: Regenerated.
49320         * lib/unictype/categ_N.h: Regenerated.
49321         * lib/unictype/categ_Nd.h: Regenerated.
49322         * lib/unictype/categ_Nl.h: Regenerated.
49323         * lib/unictype/categ_No.h: Regenerated.
49324         * lib/unictype/categ_P.h: Regenerated.
49325         * lib/unictype/categ_Pd.h: Regenerated.
49326         * lib/unictype/categ_Pe.h: Regenerated.
49327         * lib/unictype/categ_Pf.h: Regenerated.
49328         * lib/unictype/categ_Pi.h: Regenerated.
49329         * lib/unictype/categ_Po.h: Regenerated.
49330         * lib/unictype/categ_Ps.h: Regenerated.
49331         * lib/unictype/categ_S.h: Regenerated.
49332         * lib/unictype/categ_Sk.h: Regenerated.
49333         * lib/unictype/categ_Sm.h: Regenerated.
49334         * lib/unictype/categ_So.h: Regenerated.
49335         * lib/unictype/categ_of.h: Regenerated.
49336         * lib/unictype/combining.h: Regenerated.
49337         * lib/unictype/ctype_alnum.h: Regenerated.
49338         * lib/unictype/ctype_alpha.h: Regenerated.
49339         * lib/unictype/ctype_graph.h: Regenerated.
49340         * lib/unictype/ctype_lower.h: Regenerated.
49341         * lib/unictype/ctype_print.h: Regenerated.
49342         * lib/unictype/ctype_punct.h: Regenerated.
49343         * lib/unictype/ctype_upper.h: Regenerated.
49344         * lib/unictype/decdigit.h: Regenerated.
49345         * lib/unictype/digit.h: Regenerated.
49346         * lib/unictype/mirror.h: Regenerated.
49347         * lib/unictype/numeric.h: Regenerated.
49348         * lib/unictype/pr_alphabetic.h: Regenerated.
49349         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49350         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49351         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49352         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49353         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49354         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49355         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49356         * lib/unictype/pr_combining.h: Regenerated.
49357         * lib/unictype/pr_dash.h: Regenerated.
49358         * lib/unictype/pr_decimal_digit.h: Regenerated.
49359         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49360         * lib/unictype/pr_deprecated.h: Regenerated.
49361         * lib/unictype/pr_diacritic.h: Regenerated.
49362         * lib/unictype/pr_extender.h: Regenerated.
49363         * lib/unictype/pr_format_control.h: Regenerated.
49364         * lib/unictype/pr_grapheme_base.h: Regenerated.
49365         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49366         * lib/unictype/pr_grapheme_link.h: Regenerated.
49367         * lib/unictype/pr_id_continue.h: Regenerated.
49368         * lib/unictype/pr_id_start.h: Regenerated.
49369         * lib/unictype/pr_ideographic.h: Regenerated.
49370         * lib/unictype/pr_ignorable_control.h: Regenerated.
49371         * lib/unictype/pr_lowercase.h: Regenerated.
49372         * lib/unictype/pr_math.h: Regenerated.
49373         * lib/unictype/pr_numeric.h: Regenerated.
49374         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49375         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49376         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49377         * lib/unictype/pr_other_id_continue.h: Regenerated.
49378         * lib/unictype/pr_other_lowercase.h: Regenerated.
49379         * lib/unictype/pr_other_math.h: Regenerated.
49380         * lib/unictype/pr_punctuation.h: Regenerated.
49381         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49382         * lib/unictype/pr_soft_dotted.h: Regenerated.
49383         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49384         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49385         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49386         * lib/unictype/pr_uppercase.h: Regenerated.
49387         * lib/unictype/pr_xid_continue.h: Regenerated.
49388         * lib/unictype/pr_xid_start.h: Regenerated.
49389         * lib/unictype/pr_zero_width.h: Regenerated.
49390         * lib/unictype/scripts.h: Regenerated.
49391         * lib/unictype/scripts_byname.gperf: Regenerated.
49392         * lib/unictype/sy_java_ident.h: Regenerated.
49393         * lib/unilbrk/lbrkprop1.h: Regenerated.
49394         * lib/unilbrk/lbrkprop2.h: Regenerated.
49395         * tests/unictype/test-categ_C.c: Regenerated.
49396         * tests/unictype/test-categ_Cf.c: Regenerated.
49397         * tests/unictype/test-categ_Cn.c: Regenerated.
49398         * tests/unictype/test-categ_L.c: Regenerated.
49399         * tests/unictype/test-categ_Ll.c: Regenerated.
49400         * tests/unictype/test-categ_Lm.c: Regenerated.
49401         * tests/unictype/test-categ_Lo.c: Regenerated.
49402         * tests/unictype/test-categ_Lu.c: Regenerated.
49403         * tests/unictype/test-categ_M.c: Regenerated.
49404         * tests/unictype/test-categ_Mc.c: Regenerated.
49405         * tests/unictype/test-categ_Me.c: Regenerated.
49406         * tests/unictype/test-categ_Mn.c: Regenerated.
49407         * tests/unictype/test-categ_N.c: Regenerated.
49408         * tests/unictype/test-categ_Nd.c: Regenerated.
49409         * tests/unictype/test-categ_Nl.c: Regenerated.
49410         * tests/unictype/test-categ_No.c: Regenerated.
49411         * tests/unictype/test-categ_P.c: Regenerated.
49412         * tests/unictype/test-categ_Pd.c: Regenerated.
49413         * tests/unictype/test-categ_Pe.c: Regenerated.
49414         * tests/unictype/test-categ_Pf.c: Regenerated.
49415         * tests/unictype/test-categ_Pi.c: Regenerated.
49416         * tests/unictype/test-categ_Po.c: Regenerated.
49417         * tests/unictype/test-categ_Ps.c: Regenerated.
49418         * tests/unictype/test-categ_S.c: Regenerated.
49419         * tests/unictype/test-categ_Sk.c: Regenerated.
49420         * tests/unictype/test-categ_Sm.c: Regenerated.
49421         * tests/unictype/test-categ_So.c: Regenerated.
49422         * tests/unictype/test-ctype_alnum.c: Regenerated.
49423         * tests/unictype/test-ctype_alpha.c: Regenerated.
49424         * tests/unictype/test-ctype_graph.c: Regenerated.
49425         * tests/unictype/test-ctype_lower.c: Regenerated.
49426         * tests/unictype/test-ctype_print.c: Regenerated.
49427         * tests/unictype/test-ctype_punct.c: Regenerated.
49428         * tests/unictype/test-ctype_upper.c: Regenerated.
49429         * tests/unictype/test-decdigit.h: Regenerated.
49430         * tests/unictype/test-digit.h: Regenerated.
49431         * tests/unictype/test-numeric.h: Regenerated.
49432         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49433         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49434         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49435         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49436         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49437         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49438         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49439         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49440         * tests/unictype/test-pr_combining.c: Regenerated.
49441         * tests/unictype/test-pr_dash.c: Regenerated.
49442         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49443         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49444         * tests/unictype/test-pr_deprecated.c: Regenerated.
49445         * tests/unictype/test-pr_diacritic.c: Regenerated.
49446         * tests/unictype/test-pr_extender.c: Regenerated.
49447         * tests/unictype/test-pr_format_control.c: Regenerated.
49448         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49449         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49450         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49451         * tests/unictype/test-pr_id_continue.c: Regenerated.
49452         * tests/unictype/test-pr_id_start.c: Regenerated.
49453         * tests/unictype/test-pr_ideographic.c: Regenerated.
49454         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49455         * tests/unictype/test-pr_lowercase.c: Regenerated.
49456         * tests/unictype/test-pr_math.c: Regenerated.
49457         * tests/unictype/test-pr_numeric.c: Regenerated.
49458         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49459         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49460         Regenerated.
49461         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49462         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49463         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49464         * tests/unictype/test-pr_other_math.c: Regenerated.
49465         * tests/unictype/test-pr_punctuation.c: Regenerated.
49466         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49467         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49468         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49469         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49470         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49471         * tests/unictype/test-pr_uppercase.c: Regenerated.
49472         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49473         * tests/unictype/test-pr_xid_start.c: Regenerated.
49474         * tests/unictype/test-pr_zero_width.c: Regenerated.
49475
49476         Update to Unicode 5.1.0.
49477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49478         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49479         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49480         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49481         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49482         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49483         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49484         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49485         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49486         (nonspacing_table_ind): Update.
49487         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49488
49489         Update to Unicode 5.1.0.
49490         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49491         code transform.
49492         * lib/uniname/uniname.c (unicode_character_name,
49493         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49494         * lib/uniname/uninames.h: Regenerated.
49495         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49496
49497 2009-02-07  Bruno Haible  <bruno@clisp.org>
49498
49499         Merge gen-ctype and gen-lbrk into a single program.
49500         * lib/gen-uni-tables.c: New file, incorporating
49501         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49502         Add directory prefixes to the names of the generated files.
49503         * lib/unictype/gen-ctype.c: Remove file.
49504         * lib/unilbrk/gen-lbrk.c: Remove file.
49505         * modules/gen-uni-tables: New file.
49506         * modules/unictype/gen-ctype: Remove file.
49507         * modules/unilbrk/gen-lbrk: Remove file.
49508
49509 2009-02-07  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49512
49513         New module 'unistr/u32-strcoll'.
49514         * modules/unistr/u32-strcoll: New file.
49515         * lib/unistr/u32-strcoll.c: New file.
49516
49517         New module 'unistr/u16-strcoll'.
49518         * modules/unistr/u16-strcoll: New file.
49519         * lib/unistr/u16-strcoll.c: New file.
49520
49521         New module 'unistr/u8-strcoll'.
49522         * modules/unistr/u8-strcoll: New file.
49523         * lib/unistr/u8-strcoll.c: New file.
49524         * lib/unistr/u-strcoll.h: New file.
49525
49526 2009-02-07  Bruno Haible  <bruno@clisp.org>
49527
49528         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49529         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49530         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49531         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49532         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49533         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49534
49535 2009-02-07  Bruno Haible  <bruno@clisp.org>
49536
49537         Make 64-bit clean.
49538         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49539         output_combclass, output_bidi_category, output_decimal_digit,
49540         output_digit, output_numeric, output_mirror, output_scripts,
49541         output_ident_category): Use proper width specifier in format strings.
49542
49543 2009-02-07  Bruno Haible  <bruno@clisp.org>
49544
49545         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49546         failure behaviour.
49547
49548 2009-02-07  Jim Meyering  <meyering@redhat.com>
49549
49550         regex: avoid compilation failure with upcoming gcc-4.4
49551         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49552         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49553         "... error: integer overflow in preprocessor expression".
49554
49555 2009-02-05  Ben Pfaff  <blp@gnu.org>
49556
49557         Fix link errors on Windows when close module is used.
49558         * modules/close: Add $(LIB_CLOSE) to Link section.
49559         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49560         $(LIB_CLOSE) on Windows.
49561
49562 2009-02-05  Jim Meyering  <meyering@redhat.com>
49563
49564         still avoid unused-parameter warnings, but do it cleanly
49565         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49566         (get_fs_usage): Cast to void instead.
49567         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49568         (dev_from_mount_options, read_file_system_list): Cast to void.
49569         Prompted by Bruno Haible.
49570
49571 2009-02-04  Jim Meyering  <meyering@redhat.com>
49572
49573         fsusage.c: correct copyright year
49574         * lib/fsusage.c: Reflect year in which the change is pushed into
49575
49576         avoid misc. warnings
49577         * lib/fsusage.c (UNUSED_PARAM): Define.
49578         (get_fs_usage): Mark parameter "disk" as unused.
49579         * lib/getugroups.c (getgrent): Use "void" in prototype.
49580         * lib/mountlist.c: Mark unused parameters.
49581         (read_file_system_list): Declare a local with "const".
49582         * lib/nanosleep.c (getnow): Declare static.
49583         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49584
49585         dirfd: set errno upon failure
49586         * lib/dirfd.c: Include <errno.h>.
49587         Set errno to ENOTSUP when returning -1.
49588         * modules/dirfd (Depends-on): Add errno.
49589         Suggested by John Kodis <kodis@comcast.net>.
49590
49591 2009-02-01  Bruno Haible  <bruno@clisp.org>
49592
49593         Don't assume sizeof (long) >= sizeof (void *).
49594         * lib/memcmp.c: Include stdint.h.
49595         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49596         srcp2 to 'const byte *'.
49597         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49598         types to uintptr_t.
49599         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49600         * modules/memcmp (Depends-on): Add stdint.
49601         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49602
49603 2009-01-30  Eric Blake  <ebb9@byu.net>
49604
49605         fix more require-before-expand issues
49606         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49607         expand, AC_PROG_AWK.
49608         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49609
49610 2009-01-28  Eric Blake  <ebb9@byu.net>
49611
49612         version-etc: use consistent URL formatting
49613         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49614         Improve formatting.  Use fputs for string without %.
49615
49616 2009-01-28  Jim Meyering  <meyering@redhat.com>
49617
49618         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49619         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49620         "underquoted definition of NAME" from autoconf-2.59.
49621
49622 2009-01-28  Bruno Haible  <bruno@clisp.org>
49623
49624         * doc/gnulib.texi: Add "Obsolete modules" to index.
49625
49626 2009-01-28  Jim Meyering  <meyering@redhat.com>
49627
49628         useless-if-before-free: recognize more variants
49629         * build-aux/useless-if-before-free: Also recognize e.g.,
49630         if (NULL != p) free (p);
49631
49632 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49633
49634         test-getaddrinfo: skip (don't fail) this test when there's no network
49635         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49636         on the presumption that it means you lack network access.
49637
49638 2009-01-26  Jim Meyering  <meyering@redhat.com>
49639
49640         fflush: avoid warnings on modern systems
49641         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49642         pos and result, into scopes where they're used.
49643
49644 2009-01-26  Eric Blake  <ebb9@byu.net>
49645
49646         Silence warning reintroduced by recent extensions patch.
49647         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49648         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49649         autoconf.
49650
49651         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49652         * m4/00gnulib.m4: New file.
49653         * gnulib-tool (func_get_filelist): Always use it.
49654         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49655         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49656
49657 2009-01-25  Bruno Haible  <bruno@clisp.org>
49658
49659         Make test-quotearg work on MacOS X and AIX.
49660         * tests/test-quotearg.sh: New file.
49661         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49662         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49663         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49664         include <libintl.h>.
49665         (fake_locale): Remove variable.
49666         (gettext, dgettext, dcgettext): Remove functions.
49667         (main): Instead of setting a fake locale, set a real locale. Call
49668         textdomain and bindtextdomain.
49669         * modules/quotearg-tests (Files): Add the new files.
49670         (Depends-on): Add gettext, setenv, unsetenv.
49671         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49672         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49673         Augment TESTS_ENVIRONMENT.
49674
49675 2009-01-25  Bruno Haible  <bruno@clisp.org>
49676
49677         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49678         fr_FR.ISO8859-1 locale on MacOS X.
49679         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49680         ja_JP.eucJP locale on MacOS X.
49681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49682         zh_CN.GB18030 locale on MacOS X.
49683
49684 2009-01-25  Bruno Haible  <bruno@clisp.org>
49685
49686         Avoid link errors on MacOS X 10.3.
49687         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49688         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49689
49690 2009-01-25  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49693         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49694         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49695         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49696         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49697         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49698         posix_spawnattr_init, posix_spawnattr_setsigmask,
49699         posix_spawnattr_setflags, posix_spawnattr_destroy.
49700
49701         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49702         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49703         * modules/execute (Files): Remove m4/posix_spawn.m4.
49704         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49705         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49706         posix_spawnattr_init, posix_spawnattr_setsigmask,
49707         posix_spawnattr_setflags, posix_spawnattr_destroy.
49708
49709 2009-01-25  Bruno Haible  <bruno@clisp.org>
49710
49711         * lib/glthread/threadlib.c: Include <stdlib.h>.
49712
49713 2009-01-25  Bruno Haible  <bruno@clisp.org>
49714
49715         * lib/glthread/threadlib.c (dummy): New declaration.
49716
49717 2009-01-25  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49720         multibyte characters also for the GB18030 encoding. Don't crash when
49721         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49722
49723 2009-01-25  Bruno Haible  <bruno@clisp.org>
49724
49725         Avoid redefining 'struct random_data' on OSF/1 5.1.
49726         * lib/stdlib.in.h: Include <random.h> if it exists.
49727         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49728         HAVE_RANDOM_H. Include <random.h> when testing whether
49729         'struct random_data' exists.
49730         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49731
49732 2009-01-25  Bruno Haible  <bruno@clisp.org>
49733
49734         Don't install charset.alias on MacOS X >= 10.3.
49735         * lib/localcharset.c (DARWIN7): New macro.
49736         (get_charset_aliases): Hardcode the result for Darwin7.
49737         * modules/localcharset (install-exec-local): Don't install
49738         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49739
49740 2009-01-25  Bruno Haible  <bruno@clisp.org>
49741
49742         Don't install charset.alias on mingw and Cygwin.
49743         * modules/localcharset (install-exec-local): Don't install
49744         charset.alias on mingw and Cygwin, if the file does not yet exist.
49745         The result for these platforms is hardcoded in localcharset.c.
49746
49747 2009-01-25  Bruno Haible  <bruno@clisp.org>
49748
49749         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49751         before requiring AC_USE_SYSTEM_EXTENSIONS.
49752
49753 2009-01-25  Jim Meyering  <meyering@redhat.com>
49754
49755         c-strtod: avoid warnings
49756         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49757         "assignment discards qualifiers from pointer target type" warnings.
49758
49759 2009-01-24  Bruno Haible  <bruno@clisp.org>
49760
49761         Add support for non-UTF-8 locales on MacOS X.
49762         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49763         canonical encodings. For Darwin 7 and newer, don't map traditional
49764         encodings to UTF-8.
49765         Reported by Vincent Lefevre <vincent@vinc17.org>
49766         at <http://savannah.gnu.org/bugs/?25235>.
49767
49768 2009-01-24  Bruno Haible  <bruno@clisp.org>
49769
49770         * doc/gnulib.texi (Obsolete modules): New section.
49771         Reported by Mike Frysinger <vapier@gentoo.org>.
49772
49773 2009-01-24  Bruno Haible  <bruno@clisp.org>
49774
49775         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49776         (%.dvi): New rule.
49777
49778 2009-01-24  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49781         Reported by Eric Blake.
49782
49783 2009-01-24  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49786         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49787         Reported by Gary V. Vaughan <gary@gnu.org>.
49788
49789 2009-01-24  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49792
49793 2009-01-23  Bruno Haible  <bruno@clisp.org>
49794
49795         Make c-strtod, c-strtold usable in libraries.
49796         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49797         (C_STRTOD): Call strdup instead of xstrdup.
49798         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49799         * modules/c-strtold (Depends-on): Likewise.
49800         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49801         * NEWS: Mention the change.
49802         Reported by Michael Gold <mgold@ncf.ca>.
49803
49804 2009-01-23  Jim Meyering  <meyering@redhat.com>
49805
49806         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49807         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49808         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49809
49810 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49811
49812         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49813         GNU CoreUtils.
49814         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49815         * modules/version-etc (Description): Update.
49816
49817 2009-01-22  Bruno Haible  <bruno@clisp.org>
49818
49819         Cache the C locale object.
49820         * lib/c-strtod.c (c_locale_cache): New variable.
49821         (c_locale): New function.
49822         (C_STRTOD): Use it, and don't call freelocale.
49823         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49824         Suggested by Paolo Bonzini.
49825
49826 2009-01-21  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49829         conditions other than overflow.
49830
49831 2009-01-21  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/c-strtod.c: Include errno.h.
49834         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49835         value from STRTOD_L and STRTOD.
49836
49837 2009-01-21  Bruno Haible  <bruno@clisp.org>
49838         and Jim Meyering  <meyering@redhat.com>
49839
49840         nanosleep: skip configure test (fail it) for apple universal builds
49841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49842         universal builds, assume that nanosleep does not work.
49843         * modules/nanosleep (Depends-on): Add multiarch.
49844
49845         mktime: skip configure test (fail it) for apple universal builds
49846         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49847         universal builds, assume that mktime does not work.
49848         * modules/mktime (Depends-on): Add multiarch.
49849
49850 2009-01-21  Eric Blake  <ebb9@byu.net>
49851
49852         multiarch: avoid expand-before-require warning
49853         * modules/multiarch (configure.ac): Require, rather than expand,
49854         gl_MULTIARCH.
49855         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49856         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49857         enforce that all clients require it.  Partial reversion of
49858         2008-12-29 patch.
49859
49860         error: avoid expand-before-require warning
49861         * modules/errno (configure.ac): Require, rather than expand,
49862         gl_HEADER_ERRNO_H.
49863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49864         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49865         enforce that all clients require it.
49866
49867         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49868         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49869         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49870         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49871
49872 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49873
49874         Revert:
49875         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49876
49877         regex: do not depend on obsolete modules.
49878         * modules/regex: Remove memcmp and memmove.
49879
49880 2009-01-20  Bruno Haible  <bruno@clisp.org>
49881
49882         Make the 'link' module link on Windows NT 4.
49883         * lib/link.c (_WIN32_WINNT): Don't define.
49884         (CreateHardLinkFuncType): New type.
49885         (CreateHardLinkFunc, initialized): New variables.
49886         (initialize): New function.
49887         (link): Invoke CreateHardLink indirectly through the function pointer.
49888
49889 2009-01-20  Bruno Haible  <bruno@clisp.org>
49890
49891         Fix compilation failure on mingw.
49892         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49893
49894 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49895
49896         * doc/c-strtod.texi: Mention a couple of restrictions.
49897
49898 2009-01-20  Jim Meyering  <meyering@redhat.com>
49899
49900         gettimeofday: move more declarations out of functions
49901         * lib/gettimeofday.c: Move extern declarations of tzset and
49902         gmtime out of containing functions.  Prompted by Bruno Haible.
49903
49904 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49905
49906         regex: do not depend on obsolete modules.
49907         * modules/regex: Remove memcmp and memmove.
49908
49909 2009-01-19  Bruno Haible  <bruno@clisp.org>
49910
49911         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49912         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49913         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49914         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49915         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49916
49917 2009-01-19  Bruno Haible  <bruno@clisp.org>
49918
49919         * tests/test-link.c: Include <errno.h>.
49920         (main): Exit with code 77 when a hard link cannot be created due to
49921         the file system.
49922         * tests/test-link.sh: Skip test when a hard link cannot be created due
49923         to the file system.
49924         Suggested by Eric Blake.
49925
49926 2009-01-19  Martin Lambers  <marlam@marlam.de>
49927
49928         * modules/link-tests: New file.
49929         * tests/test-link.sh: New file.
49930         * tests/test-link.c: New file.
49931
49932 2009-01-19  Eric Blake  <ebb9@byu.net>
49933
49934         doc: mention another function added in cygwin 1.7.0
49935         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49936         Another new function in cygwin 1.7.
49937
49938 2009-01-19  Bruno Haible  <bruno@clisp.org>
49939
49940         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49941         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49942         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49943         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49944         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49945         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49947         * m4/md4.m4 (gl_MD4): Likewise.
49948         * m4/md5.m4 (gl_MD5): Likewise.
49949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49950         * m4/sha1.m4 (gl_SHA1): Likewise.
49951         * m4/sha256.m4 (gl_SHA256): Likewise.
49952         * m4/sha512.m4 (gl_SHA512): Likewise.
49953
49954 2009-01-19  Bruno Haible  <bruno@clisp.org>
49955
49956         * modules/uniname/uniname-tests (Depends-on): Add progname.
49957         * tests/uniname/test-uninames.c: Include progname.h.
49958         (main): Call set_program_name.
49959
49960         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49961         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49962         (main): Call set_program_name.
49963
49964         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49965         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49966         (main): Call set_program_name.
49967
49968         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49969         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49970         (main): Call set_program_name.
49971
49972         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49973         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49974         (main): Call set_program_name.
49975
49976         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49977         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49978         (main): Call set_program_name.
49979
49980         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49981         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49982         (main): Call set_program_name.
49983
49984         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49985         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49986         (main): Call set_program_name.
49987
49988         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49989         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49990         (main): Call set_program_name.
49991
49992 2009-01-19  Eric Blake  <ebb9@byu.net>
49993
49994         test-unistd: test previous patch
49995         * tests/test-unistd.c: Test *_FILENO macros.
49996
49997         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49998         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49999         Guarantee a definition.
50000         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50001         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50002         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50003         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50004         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50005         Likewise.
50006         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50007         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50008         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50009         Likewise.
50010         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50011         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50012         (STDERR_FILENO): Likewise.
50013         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50014         (STDERR_FILENO): Likewise.
50015         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50016         (STDERR_FILENO): Likewise.
50017         Reported by Elbert Pol.
50018
50019 2009-01-19  Eric Blake  <ebb9@byu.net>
50020
50021         doc: mention more functions added in cygwin 1.7.0
50022         * doc/posix-functions/abort.texi (abort): Update wording related
50023         to cygwin.
50024         * doc/posix-functions/daylight.texi (daylight): Likewise.
50025         * doc/posix-functions/optarg.texi (optarg): Likewise.
50026         * doc/posix-functions/optarg.texi (opterr): Likewise.
50027         * doc/posix-functions/optarg.texi (optind): Likewise.
50028         * doc/posix-functions/optarg.texi (optopt): Likewise.
50029         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50030         worked in 1.5.x, and was withdrawn in 1.7.
50031         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50032         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50033         cygwin versions.
50034         * doc/posix-functions/perror.texi (perror): Likewise.
50035         * doc/posix-functions/printf.texi (printf): Likewise.
50036         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50037         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50038         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50039         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50040         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50041         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50042         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50043         Likewise.
50044         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50045         Likewise.
50046         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50047         this function.
50048         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50049         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50050         Likewise.
50051         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50052         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50053         * doc/posix-functions/confstr.texi (confstr): Likewise.
50054         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50055         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50056         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50057         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50058         * doc/posix-functions/fputws.texi (fputws): Likewise.
50059         * doc/posix-functions/fwide.texi (fwide): Likewise.
50060         * doc/posix-functions/getwc.texi (getwc): Likewise.
50061         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50062         * doc/posix-functions/putwc.texi (putwc): Likewise.
50063         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50064         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50065         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50066         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50067         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50068         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50069         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50070         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50071         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50072         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50073         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50074
50075 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50076
50077         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50078         * lib/ioctl.c: Include <sys/ioctl.h>.
50079
50080 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50081
50082         * modules/getdate-tests (Depends-on): Add progname.
50083         * tests/test-getdate.c: Use progname module, to avoid link errors
50084         on non-glibc systems.
50085
50086 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50087
50088         * modules/filenamecat-tests (Depends-on): Add progname.
50089         * modules/fstrcmp-tests (Depends-on): Likewise.
50090
50091         * tests/test-filenamecat.c: Use progname module, to avoid link
50092         errors on non-glibc systems.
50093         * tests/test-fstrcmp.c: Likewise.
50094
50095 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50096
50097         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50098         * lib/gettimeofday.c: Move extern declaration out of function.
50099
50100 2009-01-18  Bruno Haible  <bruno@clisp.org>
50101
50102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50103         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50104         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50105
50106 2009-01-18  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/strftime.c (MEMPCPY): Remove unused macro.
50109         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50110
50111 2009-01-18  Martin Lambers  <marlam@marlam.de>
50112
50113         New module 'link'.
50114         * lib/unistd.in.h (link): New declaration.
50115         * lib/link.c: New file.
50116         * m4/link.m4: New file.
50117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50118         HAVE_LINK.
50119         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50120         * modules/link: New file.
50121         * doc/posix-functions/link.texi: Mention the new module.
50122
50123 2009-01-18  Bruno Haible  <bruno@clisp.org>
50124
50125         * tests/test-avltree_list.c (main): Call set_program_name.
50126         * tests/test-avltree_oset.c (main): Likewise.
50127         * tests/test-obstack-printf.c: Include progname.h.
50128         (main): Call set_program_name.
50129         * tests/test-quotearg.c: Include progname.h.
50130         (main): Call set_program_name.
50131         * tests/test-xmemdup0.c: Include progname.h.
50132         (main): Call set_program_name.
50133
50134 2009-01-18  Bruno Haible  <bruno@clisp.org>
50135
50136         New module 'alphasort'.
50137         * lib/dirent.in.h (alphasort): New declaration.
50138         * lib/alphasort.c: New file, from glibc with modifications.
50139         * m4/alphasort.m4: New file.
50140         * modules/alphasort: New file.
50141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50142         HAVE_ALPHASORT.
50143         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50144         HAVE_ALPHASORT.
50145         * doc/posix-functions/alphasort.texi: Mention the new module and the
50146         portability problems.
50147
50148 2009-01-18  Bruno Haible  <bruno@clisp.org>
50149
50150         New module 'scandir'.
50151         * lib/dirent.in.h (scandir): New declaration.
50152         * lib/scandir.c: New file, from glibc with modifications.
50153         * m4/scandir.m4: New file.
50154         * modules/scandir: New file.
50155         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50156         HAVE_SCANDIR.
50157         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50158         HAVE_SCANDIR.
50159         * doc/posix-functions/scandir.texi: Mention the new module and the
50160         portability problems.
50161
50162 2009-01-17  Bruno Haible  <bruno@clisp.org>
50163
50164         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50165         Update documentation.
50166         (func_remove_suffix): Escape all dots in the suffix. Update
50167         documentation.
50168         (func_filter_filelist): Update documentation.
50169         Reported by Ralf Wildenhues.
50170
50171 2009-01-17  Bruno Haible  <bruno@clisp.org>
50172
50173         * modules/dprintf-posix-tests: New file.
50174         * tests/test-dprintf-posix.sh: New file.
50175         * tests/test-dprintf-posix.c: New file.
50176
50177         New modules 'dprintf', 'dprintf-posix'.
50178         * lib/stdio.in.h (dprintf): New declaration.
50179         * lib/dprintf.c: New file.
50180         * m4/dprintf.m4: New file.
50181         * m4/dprintf-posix.m4: New file.
50182         * modules/dprintf: New file.
50183         * modules/dprintf-posix: New file.
50184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50185         HAVE_DPRINTF, REPLACE_DPRINTF.
50186         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50187         HAVE_DPRINTF, REPLACE_DPRINTF.
50188         * doc/posix-functions/dprintf.texi: Mention the new modules.
50189
50190 2009-01-17  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/vdprintf-posix-tests: New file.
50193         * tests/test-vdprintf-posix.sh: New file.
50194         * tests/test-vdprintf-posix.c: New file.
50195
50196         New modules 'vdprintf', 'vdprintf-posix'.
50197         * lib/stdio.in.h (vdprintf): New declaration.
50198         * lib/vdprintf.c: New file.
50199         * m4/vdprintf.m4: New file.
50200         * m4/vdprintf-posix.m4: New file.
50201         * modules/vdprintf: New file.
50202         * modules/vdprintf-posix: New file.
50203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50204         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50205         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50206         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50207         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50208
50209 2009-01-17  Bruno Haible  <bruno@clisp.org>
50210
50211         Fix replacement of fopen on mingw.
50212         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50213         mingw.
50214
50215 2009-01-17  Bruno Haible  <bruno@clisp.org>
50216
50217         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50218         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50219
50220 2009-01-17  Bruno Haible  <bruno@clisp.org>
50221
50222         Avoid test-fflush2.sh failure on mingw.
50223         * tests/test-fflush2.c: Include binary-io.h.
50224         (main): Put standard input into binary mode.
50225         * modules/fflush-tests (Depends-on): Add binary-io.
50226
50227 2009-01-17  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/wchar.in.h: In another particular situation, include only the
50230         system's <wchar.h> file.
50231         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50232         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50233         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50234
50235 2009-01-17  Bruno Haible  <bruno@clisp.org>
50236
50237         Support for stripping executables in --enable-relocatable.
50238         * build-aux/install-reloc: Expect one more argument, or an environment
50239         variable RELOC_STRIP_PROG. If set, strip the destination program and
50240         its wrapper.
50241         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50242         RELOC_STRIP_PROG.
50243         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50244         to set RELOCATABLE_STRIP.
50245         * NEWS: Mention the new Makefile requirement.
50246
50247 2009-01-17  Bruno Haible  <bruno@clisp.org>
50248
50249         * build-aux/install-reloc: Remove debugging information left over by
50250         C compiler on MacOS X.
50251
50252 2009-01-17  Bruno Haible  <bruno@clisp.org>
50253
50254         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50255         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50256         _NSGetExecutablePath.
50257
50258 2009-01-16  Jim Meyering  <meyering@redhat.com>
50259
50260         strerror: avoid warnings about discarding "const"
50261         * lib/strerror.c (rpl_strerror): Instead of returning a const
50262         string from each and every "case", use a variable, and add a single
50263         cast after the switch.
50264
50265 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50266
50267         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50268
50269 2009-01-16  Bruno Haible  <bruno@clisp.org>
50270
50271         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50272         array initializer syntax that also works in C++ mode.
50273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50274
50275 2009-01-16  Jim Meyering  <meyering@redhat.com>
50276
50277         poll: suppress a warning
50278         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50279         to ignore "...unsigned expression < 0 is always false" warnings.
50280
50281 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50282
50283         poll: remove declarations of unused variables
50284         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50285         sockbuf and optlen.
50286
50287 2009-01-15  Bruno Haible  <bruno@clisp.org>
50288
50289         Make fflush-after-ungetc POSIX compliant on BSD systems.
50290         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50291         (clear_ungetc_buffer): Implement also for other systems.
50292         (rpl_fflush): On glibc systems, invoke
50293         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50294         clear_ungetc_buffer after fetching the stream's position, not before.
50295
50296 2009-01-15  Bruno Haible  <bruno@clisp.org>
50297
50298         Make fflush-after-ungetc POSIX compliant on glibc systems.
50299         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50300         after ungetc.
50301         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50302         (rpl_fflush): On glibc systems, simply call the system's fflush
50303         function after clearing the ungetc buffer.
50304         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50305         Instead, lseek only to the end of file, then use the system's fseeko
50306         for the rest. On glibc systems, reset the EOF indicator bit.
50307
50308 2009-01-15  Jim Meyering  <meyering@redhat.com>
50309
50310         openmp.m4: revert quote-adding change, for portability to older autoconf
50311         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50312         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50313         Simon Josefsson noticed the problem when using autoconf-2.61.
50314
50315 2009-01-15  Bruno Haible  <bruno@clisp.org>
50316
50317         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50318         * tests/test-fflush2.c (ASSERT): Always fail.
50319         (main): Add two tests for fflush() after ungetc(), taking into account
50320         the Austin Group's clarification.
50321         Suggested by Eric Blake.
50322
50323 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50324
50325         mktime.m4: remove K&R-style function prototypes
50326         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50327         for the Sun C++ compiler.
50328
50329 2009-01-14  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50332         while including <wchar.h>.
50333         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50334         the system's <wchar.h> file.
50335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50336
50337 2009-01-14  Bruno Haible  <bruno@clisp.org>
50338
50339         * m4/csharp.m4: Don't mention gettext on the serial number line.
50340         * m4/csharpexec.m4: Likewise.
50341         * m4/eaccess.m4: Likewise.
50342         * m4/javaexec.m4: Likewise.
50343         * m4/sig_atomic_t.m4: Likewise.
50344         * m4/tmpdir.m4: Likewise.
50345         * m4/intldir.m4: Bump gettext version.
50346         * m4/lib-ld.m4: Likewise.
50347
50348 2009-01-14  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/progname.c (set_program_name): Add more comments.
50351         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50352
50353 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50354
50355         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50356         were sys/stat.h does not define it.
50357
50358 2009-01-14  Jim Meyering  <meyering@redhat.com>
50359
50360         many *.m4 files: improve m4 quoting
50361         99% of this change was performed by running the following commands:
50362         git ls-files | grep '\.m4$' | xargs perl -pi \
50363           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50364           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50365           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50366           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50367         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50368         The remainder were to add Copyright dates, increment serial numbers,
50369         undo some changes in comments, exclude m4/intl.m4, and add quotes
50370         around the "1" in ",1" where the unusual spacing prohibited the
50371         above regexps from doing the job.  For more details, see
50372         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50373         * m4/acl.m4: Modified.
50374         * m4/afs.m4: Likewise.
50375         * m4/alloca.m4: Likewise.
50376         * m4/argp.m4: Likewise.
50377         * m4/argz.m4: Likewise.
50378         * m4/atexit.m4: Likewise.
50379         * m4/bison-i18n.m4: Likewise.
50380         * m4/bison.m4: Likewise.
50381         * m4/byteswap.m4: Likewise.
50382         * m4/c-stack.m4: Likewise.
50383         * m4/c-strtod.m4: Likewise.
50384         * m4/calloc.m4: Likewise.
50385         * m4/canonicalize-lgpl.m4: Likewise.
50386         * m4/chown.m4: Likewise.
50387         * m4/clock_time.m4: Likewise.
50388         * m4/codeset.m4: Likewise.
50389         * m4/copy-file.m4: Likewise.
50390         * m4/csharp.m4: Likewise.
50391         * m4/csharpcomp.m4: Likewise.
50392         * m4/csharpexec.m4: Likewise.
50393         * m4/d-ino.m4: Likewise.
50394         * m4/d-type.m4: Likewise.
50395         * m4/dirfd.m4: Likewise.
50396         * m4/double-slash-root.m4: Likewise.
50397         * m4/eaccess.m4: Likewise.
50398         * m4/eealloc.m4: Likewise.
50399         * m4/environ.m4: Likewise.
50400         * m4/errno_h.m4: Likewise.
50401         * m4/euidaccess.m4: Likewise.
50402         * m4/execute.m4: Likewise.
50403         * m4/fatal-signal.m4: Likewise.
50404         * m4/fchdir.m4: Likewise.
50405         * m4/fcntl_h.m4: Likewise.
50406         * m4/fileblocks.m4: Likewise.
50407         * m4/filenamecat.m4: Likewise.
50408         * m4/findprog.m4: Likewise.
50409         * m4/flexmember.m4: Likewise.
50410         * m4/fnmatch.m4: Likewise.
50411         * m4/fopen.m4: Likewise.
50412         * m4/fpending.m4: Likewise.
50413         * m4/fprintf-posix.m4: Likewise.
50414         * m4/free.m4: Likewise.
50415         * m4/frexp.m4: Likewise.
50416         * m4/frexpl.m4: Likewise.
50417         * m4/fsusage.m4: Likewise.
50418         * m4/ftruncate.m4: Likewise.
50419         * m4/gc-camellia.m4: Likewise.
50420         * m4/gc-random.m4: Likewise.
50421         * m4/gc.m4: Likewise.
50422         * m4/getaddrinfo.m4: Likewise.
50423         * m4/getcwd-abort-bug.m4: Likewise.
50424         * m4/getcwd-path-max.m4: Likewise.
50425         * m4/getdate.m4: Likewise.
50426         * m4/getdomainname.m4: Likewise.
50427         * m4/getgroups.m4: Likewise.
50428         * m4/gethostname.m4: Likewise.
50429         * m4/gethrxtime.m4: Likewise.
50430         * m4/getline.m4: Likewise.
50431         * m4/getloadavg.m4: Likewise.
50432         * m4/getndelim2.m4: Likewise.
50433         * m4/getpass.m4: Likewise.
50434         * m4/gettext.m4: Likewise.
50435         * m4/gettime.m4: Likewise.
50436         * m4/gettimeofday.m4: Likewise.
50437         * m4/gnulib-common.m4: Likewise.
50438         * m4/group-member.m4: Likewise.
50439         * m4/host-os.m4: Likewise.
50440         * m4/iconv.m4: Likewise.
50441         * m4/iconv_open.m4: Likewise.
50442         * m4/inet_ntop.m4: Likewise.
50443         * m4/inet_pton.m4: Likewise.
50444         * m4/inline.m4: Likewise.
50445         * m4/intldir.m4: Likewise.
50446         * m4/intlmacosx.m4: Likewise.
50447         * m4/intmax.m4: Likewise.
50448         * m4/intmax_t.m4: Likewise.
50449         * m4/inttypes.m4: Likewise.
50450         * m4/inttypes_h.m4: Likewise.
50451         * m4/inttypes-pri.m4: Likewise.
50452         * m4/isapipe.m4: Likewise.
50453         * m4/isnand.m4: Likewise.
50454         * m4/isnanf.m4: Likewise.
50455         * m4/isnanl.m4: Likewise.
50456         * m4/javacomp.m4: Likewise.
50457         * m4/javaexec.m4: Likewise.
50458         * m4/jm-winsz1.m4: Likewise.
50459         * m4/jm-winsz2.m4: Likewise.
50460         * m4/lchown.m4: Likewise.
50461         * m4/lcmessage.m4: Likewise.
50462         * m4/ldexpl.m4: Likewise.
50463         * m4/lib-ld.m4: Likewise.
50464         * m4/lib-link.m4: Likewise.
50465         * m4/libsigsegv.m4: Likewise.
50466         * m4/link-follow.m4: Likewise.
50467         * m4/localcharset.m4: Likewise.
50468         * m4/locale-fr.m4: Likewise.
50469         * m4/locale-ja.m4: Likewise.
50470         * m4/locale-tr.m4: Likewise.
50471         * m4/locale-zh.m4: Likewise.
50472         * m4/lock.m4: Likewise.
50473         * m4/longlong.m4: Likewise.
50474         * m4/ls-mntd-fs.m4: Likewise.
50475         * m4/lstat.m4: Likewise.
50476         * m4/malloc.m4: Likewise.
50477         * m4/mathl.m4: Likewise.
50478         * m4/mbrtowc.m4: Likewise.
50479         * m4/mbstate_t.m4: Likewise.
50480         * m4/mbswidth.m4: Likewise.
50481         * m4/memchr.m4: Likewise.
50482         * m4/memcmp.m4: Likewise.
50483         * m4/memcpy.m4: Likewise.
50484         * m4/memmem.m4: Likewise.
50485         * m4/memmove.m4: Likewise.
50486         * m4/mempcpy.m4: Likewise.
50487         * m4/memrchr.m4: Likewise.
50488         * m4/memset.m4: Likewise.
50489         * m4/minmax.m4: Likewise.
50490         * m4/mkdir-slash.m4: Likewise.
50491         * m4/mkdtemp.m4: Likewise.
50492         * m4/mktime.m4: Likewise.
50493         * m4/mmap-anon.m4: Likewise.
50494         * m4/mountlist.m4: Likewise.
50495         * m4/nanosleep.m4: Likewise.
50496         * m4/nls.m4: Likewise.
50497         * m4/nocrash.m4: Likewise.
50498         * m4/open.m4: Likewise.
50499         * m4/openat.m4: Likewise.
50500         * m4/openmp.m4: Likewise.
50501         * m4/pathmax.m4: Likewise.
50502         * m4/perl.m4: Likewise.
50503         * m4/physmem.m4: Likewise.
50504         * m4/pipe.m4: Likewise.
50505         * m4/po.m4: Likewise.
50506         * m4/poll.m4: Likewise.
50507         * m4/posixtm.m4: Likewise.
50508         * m4/posixver.m4: Likewise.
50509         * m4/printf-frexp.m4: Likewise.
50510         * m4/printf-frexpl.m4: Likewise.
50511         * m4/printf-posix.m4: Likewise.
50512         * m4/printf-posix-rpl.m4: Likewise.
50513         * m4/printf.m4: Likewise.
50514         * m4/progtest.m4: Likewise.
50515         * m4/putenv.m4: Likewise.
50516         * m4/readline.m4: Likewise.
50517         * m4/readlink.m4: Likewise.
50518         * m4/readutmp.m4: Likewise.
50519         * m4/realloc.m4: Likewise.
50520         * m4/regex.m4: Likewise.
50521         * m4/relocatable.m4: Likewise.
50522         * m4/relocatable-lib.m4: Likewise.
50523         * m4/rename-dest-slash.m4: Likewise.
50524         * m4/rename.m4: Likewise.
50525         * m4/rmdir-errno.m4: Likewise.
50526         * m4/rmdir.m4: Likewise.
50527         * m4/roundf.m4: Likewise.
50528         * m4/roundl.m4: Likewise.
50529         * m4/rpmatch.m4: Likewise.
50530         * m4/save-cwd.m4: Likewise.
50531         * m4/selinux-selinux-h.m4: Likewise.
50532         * m4/setenv.m4: Likewise.
50533         * m4/settime.m4: Likewise.
50534         * m4/sig2str.m4: Likewise.
50535         * m4/sig_atomic_t.m4: Likewise.
50536         * m4/signalblocking.m4: Likewise.
50537         * m4/signbit.m4: Likewise.
50538         * m4/sigpipe.m4: Likewise.
50539         * m4/sockets.m4: Likewise.
50540         * m4/sockpfaf.m4: Likewise.
50541         * m4/st_dm_mode.m4: Likewise.
50542         * m4/stat-time.m4: Likewise.
50543         * m4/stdbool.m4: Likewise.
50544         * m4/stdint.m4: Likewise.
50545         * m4/stdint_h.m4: Likewise.
50546         * m4/stpcpy.m4: Likewise.
50547         * m4/stpncpy.m4: Likewise.
50548         * m4/strcase.m4: Likewise.
50549         * m4/strchrnul.m4: Likewise.
50550         * m4/strcspn.m4: Likewise.
50551         * m4/strdup.m4: Likewise.
50552         * m4/strftime.m4: Likewise.
50553         * m4/strndup.m4: Likewise.
50554         * m4/strnlen.m4: Likewise.
50555         * m4/strpbrk.m4: Likewise.
50556         * m4/strptime.m4: Likewise.
50557         * m4/strsep.m4: Likewise.
50558         * m4/strtod.m4: Likewise.
50559         * m4/strtoimax.m4: Likewise.
50560         * m4/strtok_r.m4: Likewise.
50561         * m4/strtol.m4: Likewise.
50562         * m4/strtoll.m4: Likewise.
50563         * m4/strtoul.m4: Likewise.
50564         * m4/strtoull.m4: Likewise.
50565         * m4/strtoumax.m4: Likewise.
50566         * m4/strverscmp.m4: Likewise.
50567         * m4/threadlib.m4: Likewise.
50568         * m4/timegm.m4: Likewise.
50569         * m4/tm_gmtoff.m4: Likewise.
50570         * m4/tmpdir.m4: Likewise.
50571         * m4/tmpfile.m4: Likewise.
50572         * m4/tzset.m4: Likewise.
50573         * m4/uintmax_t.m4: Likewise.
50574         * m4/unlinkdir.m4: Likewise.
50575         * m4/unlocked-io.m4: Likewise.
50576         * m4/uptime.m4: Likewise.
50577         * m4/userspec.m4: Likewise.
50578         * m4/utimbuf.m4: Likewise.
50579         * m4/utime.m4: Likewise.
50580         * m4/utimes-null.m4: Likewise.
50581         * m4/utimes.m4: Likewise.
50582         * m4/vararrays.m4: Likewise.
50583         * m4/vasnprintf.m4: Likewise.
50584         * m4/vfprintf-posix.m4: Likewise.
50585         * m4/vprintf-posix.m4: Likewise.
50586         * m4/wait-process.m4: Likewise.
50587         * m4/wchar_t.m4: Likewise.
50588         * m4/wint_t.m4: Likewise.
50589         * m4/write-any-file.m4: Likewise.
50590         * m4/yield.m4: Likewise.
50591
50592 2009-01-13  Bruno Haible  <bruno@clisp.org>
50593
50594         Avoid test-copy-file.sh failures when ACL support insufficient.
50595         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50596         TESTS_ENVIRONMENT.
50597         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50598         Reported by Jim Meyering.
50599
50600 2009-01-13  Bruno Haible  <bruno@clisp.org>
50601
50602         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50603         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50604         * modules/unistdio/u8-printf-parse (Files): Likewise.
50605         * modules/unistdio/u32-printf-parse (Files): Likewise.
50606         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50607
50608 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50609
50610         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50611         and m4/inttypes_h.m4 too.
50612
50613 2009-01-12  Eric Blake  <ebb9@byu.net>
50614
50615         tests: IRIX 6.2 cc can't compile -0.0 into .data
50616         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50617         rather than at compile-time.
50618         * tests/test-floorl.c (minus_zero): Likewise.
50619         * tests/test-frexpl.c (minus_zero): Likewise.
50620         * tests/test-isnan.c (minus_zerol): Likewise.
50621         * tests/test-isnanl.h (minus_zero): Likewise.
50622         * tests/test-ldexpl.c (minus_zero): Likewise.
50623         * tests/test-roundl.c (minus_zero): Likewise.
50624         * tests/test-signbit.c (minus_zerol): Likewise.
50625         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50626         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50627         * tests/test-truncl.c (minus_zero): Likewise.
50628         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50629         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50630         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50631
50632 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50633
50634         regex: fix glibc bug 9697
50635         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50636         handling.
50637
50638 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50639
50640         regex: fix glibc bug 697
50641         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50642         being NULL also if there are no backreferences.
50643
50644 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50645
50646         regex: merge glibc changes
50647         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50648         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50649         re_string_skip_chars, re_string_reconstruct): Likewise.
50650         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50651
50652 2009-01-07  Jim Meyering  <meyering@redhat.com>
50653
50654         poll: filter through cppi
50655         * lib/poll.c: Indent cpp directives to reflect nesting.
50656
50657 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50658
50659         poll: don't return uninitialized
50660         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50661
50662 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50663
50664         avoid compile failure on AIX 6.1
50665         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50666         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50667
50668 2009-01-04  Jim Meyering  <meyering@redhat.com>
50669
50670         remove duplicate inclusion of <stdio.h>
50671         * tests/test-fprintf-posix.c: Likewise.
50672         * tests/test-printf-posix.c: Likewise.
50673         * tests/test-snprintf-posix.c: Likewise.
50674         * tests/test-sprintf-posix.c: Likewise.
50675         * tests/test-vasprintf-posix.c: Likewise.
50676         * tests/test-vfprintf-posix.c: Likewise.
50677         * tests/test-vprintf-posix.c: Likewise.
50678         * tests/test-vsnprintf-posix.c: Likewise.
50679         * tests/test-vsprintf-posix.c: Likewise.
50680
50681 2009-01-03  Jim Meyering  <meyering@redhat.com>
50682
50683         gnulib-tool: fix sed-based filtering
50684         * gnulib-tool (func_filter_filelist): Remove extra backslash
50685         in sed_fff_filter definition.
50686
50687 2009-01-02  Jim Meyering  <meyering@redhat.com>
50688
50689         strftime: avoid compilation failure on Solaris 2.6
50690         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50691         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50692         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50693         be available.  Reported by Tom G. Christensen.  Details in
50694         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50695
50696 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50697             Bruno Haible  <bruno@clisp.org>
50698
50699         Speed up gnulib-tool by doing more string processing through shell
50700         built-ins.
50701         * gnulib-tool (fast_func_append): New variable.
50702         (func_remove_prefix, func_remove_suffix): New functions.
50703         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50704         (func_filter_filelist): New function.
50705         (func_get_dependencies): Use func_remove_suffix instead of sed.
50706         (func_get_automake_snippet): Use func_filter_filelist instead of a
50707         subshell and sed invocation.
50708
50709 2009-01-01  Bruno Haible  <bruno@clisp.org>
50710
50711         Fix a security bug.
50712         * gnulib-tool (func_import, import, update): Don't allow the characters
50713         '"', '$', '`', '\' in macro arguments that become part of commands that
50714         are evaluated.
50715
50716 2009-01-01  Bruno Haible  <bruno@clisp.org>
50717
50718         * gnulib-tool (func_reset_sigpipe): Add more comments.
50719
50720 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50721
50722         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50723         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50724         already know the answer.
50725
50726 2009-01-01  Jim Meyering  <meyering@redhat.com>
50727
50728         * lib/version-etc.c (version_etc_va): Update copyright year.
50729
50730 2008-12-30  Bruno Haible  <bruno@clisp.org>
50731
50732         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50733         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50734         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50735
50736 2008-12-29  Eric Blake  <ebb9@byu.net>
50737
50738         multiarch: avoid autoconf AC_REQUIRE bug
50739         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50740         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50741         2.63 and older.
50742         Reported by Bruno Haible, and analyzed in
50743         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50744
50745 2008-12-29  Bruno Haible  <bruno@clisp.org>
50746
50747         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50748         files in subdirectories correctly.
50749         Reported by Ralf Wildenhues.
50750
50751 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50752
50753         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50754         rather than 'join FILE -', for Solaris join.
50755
50756 2008-12-29  Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50759         quoting.
50760         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50761         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50762         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50763         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50764         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50765         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50766         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50767         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50768         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50769         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50770         * m4/nls.m4 (AM_NLS): Likewise.
50771         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50772         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50773         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50774         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50775         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50776         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50777         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50778         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50779         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50780         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50781         * m4/xsize.m4 (gl_XSIZE): Likewise.
50782         Suggested by Jim Meyering.
50783
50784 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50785
50786         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50787         * lib/parse-duration.c: use a switch instead of cascading if's.
50788
50789 2008-12-29  Eric Blake  <ebb9@byu.net>
50790
50791         wchar.h: supply WEOF on Irix 5.3
50792         * lib/wchar.in.h (wint_t): Also supply WEOF.
50793         * lib/wctype.in.h (wint_t): Likewise.
50794         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50795         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50796         Reported by Tom G. Christensen.
50797
50798 2008-12-26  Bruno Haible  <bruno@clisp.org>
50799
50800         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50801         i486, i586, i686.
50802
50803 2008-12-26  Bruno Haible  <bruno@clisp.org>
50804
50805         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50806
50807 2008-12-26  Bruno Haible  <bruno@clisp.org>
50808
50809         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50810         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50811         not __STDC_CONSTANT_MACROS.
50812         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50813
50814 2008-12-25  Bruno Haible  <bruno@clisp.org>
50815
50816         Add support for universal builds to vasnprintf.
50817         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50818         universal builds, guess no.
50819         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50820         * modules/vasprintf-posix (Depends-on): Likewise.
50821         * modules/fprintf-posix (Depends-on): Likewise.
50822         * modules/vfprintf-posix (Depends-on): Likewise.
50823         * modules/snprintf-posix (Depends-on): Likewise.
50824         * modules/vsnprintf-posix (Depends-on): Likewise.
50825         * modules/sprintf-posix (Depends-on): Likewise.
50826         * modules/vsprintf-posix (Depends-on): Likewise.
50827         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50828         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50829         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50830         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50831         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50832         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50833         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50834
50835         Add support for universal builds to <inttypes.h>.
50836         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50837         _SCNu64_PREFIX): In Apple
50838         universal builds, define directly, using _LP64.
50839         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50840         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50841         * modules/inttypes (Depends-on): Add multiarch.
50842         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50843
50844         Add support for universal builds to <stdint.h>.
50845         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50846         universal builds, define directly, using _LP64.
50847         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50848         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50849         and size_t.
50850         * modules/stdint (Depends-on): Add multiarch.
50851         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50852
50853         New module 'multiarch'.
50854         * modules/multiarch: New file.
50855         * m4/multiarch.m4: New file.
50856
50857 2008-12-25  Bruno Haible  <bruno@clisp.org>
50858
50859         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50860
50861 2008-12-25  Bruno Haible  <bruno@clisp.org>
50862
50863         * modules/btowc (License): Relicense under LGPLv2+.
50864         * modules/mbsinit (License): Likewise.
50865         * modules/mbrtowc (License): Likewise.
50866         * modules/wcrtomb (License): Likewise.
50867         * modules/streq (License): Likewise.
50868         Reported by David Lutterkort <lutter@redhat.com>.
50869
50870 2008-12-23  Bruno Haible  <bruno@clisp.org>
50871
50872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50873
50874 2008-12-23  Bruno Haible  <bruno@clisp.org>
50875
50876         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50878         GETADDRINFO_LIB, not in LIBS.
50879         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50880         * modules/canon-host (Link): Likewise.
50881         * NEWS: Mention the change.
50882         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50883         GETADDRINFO_LIB.
50884
50885 2008-12-22  Bruno Haible  <bruno@clisp.org>
50886
50887         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50888         * doc/posix-functions/iswalpha_l.texi: Likewise.
50889         * doc/posix-functions/iswblank_l.texi: Likewise.
50890         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50891         * doc/posix-functions/iswctype_l.texi: Likewise.
50892         * doc/posix-functions/iswdigit_l.texi: Likewise.
50893         * doc/posix-functions/iswgraph_l.texi: Likewise.
50894         * doc/posix-functions/iswlower_l.texi: Likewise.
50895         * doc/posix-functions/iswprint_l.texi: Likewise.
50896         * doc/posix-functions/iswpunct_l.texi: Likewise.
50897         * doc/posix-functions/iswspace_l.texi: Likewise.
50898         * doc/posix-functions/iswupper_l.texi: Likewise.
50899         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50900         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50901         * doc/posix-functions/open_wmemstream.texi: Likewise.
50902         * doc/posix-functions/swscanf.texi: Likewise.
50903         * doc/posix-functions/towctrans_l.texi: Likewise.
50904         * doc/posix-functions/towlower.texi: Likewise.
50905         * doc/posix-functions/towlower_l.texi: Likewise.
50906         * doc/posix-functions/towupper.texi: Likewise.
50907         * doc/posix-functions/towupper_l.texi: Likewise.
50908         * doc/posix-functions/vfwprintf.texi: Likewise.
50909         * doc/posix-functions/vfwscanf.texi: Likewise.
50910         * doc/posix-functions/vswscanf.texi: Likewise.
50911         * doc/posix-functions/vwprintf.texi: Likewise.
50912         * doc/posix-functions/vwscanf.texi: Likewise.
50913         * doc/posix-functions/wcpcpy.texi: Likewise.
50914         * doc/posix-functions/wcpncpy.texi: Likewise.
50915         * doc/posix-functions/wcscasecmp.texi: Likewise.
50916         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50917         * doc/posix-functions/wcscoll_l.texi: Likewise.
50918         * doc/posix-functions/wcsdup.texi: Likewise.
50919         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50920         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50921         * doc/posix-functions/wcsnlen.texi: Likewise.
50922         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50923         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50924         * doc/posix-functions/wctrans_l.texi: Likewise.
50925         * doc/posix-functions/wctype_l.texi: Likewise.
50926         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50927         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50928         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50929         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50930         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50931         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50932         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50933         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50934         * doc/glibc-functions/wcschrnul.texi: Likewise.
50935         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50936         * doc/glibc-functions/wcstod_l.texi: Likewise.
50937         * doc/glibc-functions/wcstof_l.texi: Likewise.
50938         * doc/glibc-functions/wcstol_l.texi: Likewise.
50939         * doc/glibc-functions/wcstold_l.texi: Likewise.
50940         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50941         * doc/glibc-functions/wcstoq.texi: Likewise.
50942         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50943         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50944         * doc/glibc-functions/wcstouq.texi: Likewise.
50945         * doc/glibc-functions/wmempcpy.texi: Likewise.
50946
50947 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50948             Eric Blake  <ebb9@byu.net>
50949             Paolo Bonzini  <bonzini@gnu.org>
50950             Bruno Haible  <bruno@clisp.org>
50951
50952         Make c-stack work on Haiku.
50953         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50954         (c_stack_action): Use SA_ONSTACK flag.
50955
50956 2008-12-22  Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50959
50960 2008-12-22  Bruno Haible  <bruno@clisp.org>
50961
50962         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50963         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50964         being overridden.
50965         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50966         New macros.
50967         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50969         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50970         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50971
50972 2008-12-22  Bruno Haible  <bruno@clisp.org>
50973
50974         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50975         from test code.
50976
50977 2008-12-22  Eric Blake  <ebb9@byu.net>
50978
50979         Avoid gcc warnings on cygwin.
50980         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50981         Avoid unused variable.
50982         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50983         Likewise.
50984
50985 2008-12-22  Bruno Haible  <bruno@clisp.org>
50986
50987         Remove HAVE_MBRTOWC conditionals.
50988         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50989         (mbscasecmp): Assume mbrtowc function.
50990         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50991         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50992         * lib/mbschr.c: Include mbuiter.h unconditionally.
50993         (mbschr): Assume mbrtowc function.
50994         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50995         (mbscspn): Assume mbrtowc function.
50996         * lib/mbslen.c: Include mbuiter.h unconditionally.
50997         (mbslen): Assume mbrtowc function.
50998         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50999         (mbsncasecmp): Assume mbrtowc function.
51000         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51001         (mbsnlen): Assume mbrtowc function.
51002         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51003         (mbspbrk): Assume mbrtowc function.
51004         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51005         (mbspcasecmp): Assume mbrtowc function.
51006         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51007         (mbsrchr): Assume mbrtowc function.
51008         * lib/mbssep.c: Include mbuiter.h unconditionally.
51009         (mbssep): Assume mbrtowc function.
51010         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51011         (mbsspn): Assume mbrtowc function.
51012         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51013         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51014         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51015         (mbstok_r): Assume mbrtowc function.
51016         * lib/propername.c: Include mbuiter.h unconditionally.
51017         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51018         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51019         (trim2): Assume mbrtowc function.
51020         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51021         (mbsnwidth): Assume mbrtowc function.
51022         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51023         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51024         fallback definitions.
51025         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51026
51027 2008-12-22  Bruno Haible  <bruno@clisp.org>
51028
51029         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51030
51031 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51032
51033         * modules/regex: Request emulations for the mb*/wc* functions we need.
51034         * m4/regex.m4: Don't look for those functions here.
51035         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51036
51037 2008-12-22  Bruno Haible  <bruno@clisp.org>
51038
51039         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51040
51041 2008-12-21  Bruno Haible  <bruno@clisp.org>
51042
51043         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51044         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51045         (Include): Remove conditionalization.
51046         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51047         (Include): Remove conditionalization.
51048         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51049         (Include): Remove conditionalization.
51050         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51051         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51052         * NEWS: Mention the change.
51053         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51054         via Sergey Poznyakoff <gray@gnu.org.ua>.
51055
51056 2008-12-21  Bruno Haible  <bruno@clisp.org>
51057
51058         * MODULES.html.sh (Extended multibyte and wide character utilities
51059         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51060         wcrtomb, wcsrtombs.
51061         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51062         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51063         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51064         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51065
51066 2008-12-21  Bruno Haible  <bruno@clisp.org>
51067
51068         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51069
51070 2008-12-21  Bruno Haible  <bruno@clisp.org>
51071
51072         * modules/wcsnrtombs-tests: New file.
51073         * tests/test-wcsnrtombs1.sh: New file.
51074         * tests/test-wcsnrtombs2.sh: New file.
51075         * tests/test-wcsnrtombs3.sh: New file.
51076         * tests/test-wcsnrtombs4.sh: New file.
51077         * tests/test-wcsnrtombs.c: New file.
51078
51079         New module 'wcsnrtombs'.
51080         * lib/wchar.in.h (wcsnrtombs): New declaration.
51081         * lib/wcsnrtombs.c: New file.
51082         * lib/wcsrtombs-state.c: New file.
51083         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51084         (internal_state): Remove variable.
51085         * m4/wcsnrtombs.m4: New file.
51086         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51087         compilation units.
51088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51089         HAVE_WCSNRTOMBS.
51090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51091         HAVE_WCSNRTOMBS.
51092         * modules/wcsnrtombs: New file.
51093         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51094         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51095
51096 2008-12-21  Bruno Haible  <bruno@clisp.org>
51097
51098         * modules/wcsrtombs-tests: New file.
51099         * tests/test-wcsrtombs1.sh: New file.
51100         * tests/test-wcsrtombs2.sh: New file.
51101         * tests/test-wcsrtombs3.sh: New file.
51102         * tests/test-wcsrtombs4.sh: New file.
51103         * tests/test-wcsrtombs.c: New file.
51104
51105         New module 'wcsrtombs'.
51106         * lib/wchar.in.h (wcsrtombs): New declaration.
51107         * lib/wcsrtombs.c: New file.
51108         * m4/wcsrtombs.m4: New file.
51109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51110         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51112         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51113         * modules/wcsrtombs: New file.
51114         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51115         bugs.
51116
51117 2008-12-21  Bruno Haible  <bruno@clisp.org>
51118
51119         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51120         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51122         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51123         if not correct.
51124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51125         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51126         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51127         m4/locale-zh.m4, m4/codeset.m4.
51128         * doc/posix-functions/wcrtomb.texi: Document the bug.
51129
51130 2008-12-21  Bruno Haible  <bruno@clisp.org>
51131
51132         Work around a btowc() bug on IRIX 6.5.
51133         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51134         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51135         REPLACE_WTOBC if not.
51136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51137         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51138         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51139
51140 2008-12-21  Bruno Haible  <bruno@clisp.org>
51141
51142         * modules/wcrtomb-tests: New file.
51143         * tests/test-wcrtomb.sh: New file.
51144         * tests/test-wcrtomb.c: New file.
51145
51146         New module 'wcrtomb'.
51147         * lib/wchar.in.h (wcrtomb): New declaration.
51148         * lib/wcrtomb.c: New file.
51149         * m4/wcrtomb.m4: New file.
51150         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51151         HAVE_WCRTOMB.
51152         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51153         HAVE_WCRTOMB.
51154         * modules/wcrtomb: New file.
51155         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51156
51157 2008-12-21  Bruno Haible  <bruno@clisp.org>
51158
51159         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51160         * modules/mbsrtowcs (Files): Likewise.
51161         * modules/wctob (Files): Likewise.
51162         * modules/c-strcase-tests (Files): Likewise.
51163         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51164         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51165         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51166         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51167         * modules/vasnprintf-posix-tests (Files): Likewise.
51168
51169 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51170
51171         gitlog-to-changelog: pass all command-line arguments to git-log
51172         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51173         it is sometimes convenient to filter the commits in various ways.
51174         gitlog-to-changelog only allows --since to specify a start date,
51175         but git-log itself supports many other filtering mechanisms.
51176         At the moment, I want to filter by branch name.  Rather than
51177         adding a --branch option to gitlog-to-changelog, it seems more
51178         flexible to simply pass all options directly to git-log and let
51179         git do the work.  Notice that this effectively makes --since a
51180         redundant option for gitlog-to-changelog, but removing it would
51181         require current usage to change since calls would then require
51182         an additional '--'.
51183
51184 2008-12-21  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/mbsnrtowcs-tests: New file.
51187         * tests/test-mbsnrtowcs1.sh: New file.
51188         * tests/test-mbsnrtowcs2.sh: New file.
51189         * tests/test-mbsnrtowcs3.sh: New file.
51190         * tests/test-mbsnrtowcs4.sh: New file.
51191         * tests/test-mbsnrtowcs.c: New file.
51192
51193         New module 'mbsnrtowcs'.
51194         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51195         * lib/mbsnrtowcs.c: New file.
51196         * lib/mbsrtowcs-state.c: New file.
51197         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51198         (internal_state): Remove variable.
51199         * m4/mbsnrtowcs.m4: New file.
51200         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51201         compilation units.
51202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51203         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51204         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51205         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51206         * modules/mbsnrtowcs: New file.
51207         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51208         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51209         portability problem.
51210
51211 2008-12-21  Bruno Haible  <bruno@clisp.org>
51212
51213         Work around mbsrtowcs bug.
51214         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51215         (gl_FUNC_MBSRTOWCS): Invoke it.
51216         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51217         m4/locale-zh.m4.
51218         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51219
51220 2008-12-21  Bruno Haible  <bruno@clisp.org>
51221
51222         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51223
51224 2008-12-21  Bruno Haible  <bruno@clisp.org>
51225
51226         Update doc for AIX.
51227         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51228         16-bit wchar_t type.
51229         * doc/posix-functions/btowc.texi: Likewise.
51230         * doc/posix-functions/fgetwc.texi: Likewise.
51231         * doc/posix-functions/fgetws.texi: Likewise.
51232         * doc/posix-functions/fputwc.texi: Likewise.
51233         * doc/posix-functions/fputws.texi: Likewise.
51234         * doc/posix-functions/fwide.texi: Likewise.
51235         * doc/posix-functions/fwprintf.texi: Likewise.
51236         * doc/posix-functions/fwscanf.texi: Likewise.
51237         * doc/posix-functions/getwchar.texi: Likewise.
51238         * doc/posix-functions/getwc.texi: Likewise.
51239         * doc/posix-functions/iswalnum.texi: Likewise.
51240         * doc/posix-functions/iswalpha.texi: Likewise.
51241         * doc/posix-functions/iswblank.texi: Likewise.
51242         * doc/posix-functions/iswcntrl.texi: Likewise.
51243         * doc/posix-functions/iswctype.texi: Likewise.
51244         * doc/posix-functions/iswdigit.texi: Likewise.
51245         * doc/posix-functions/iswgraph.texi: Likewise.
51246         * doc/posix-functions/iswlower.texi: Likewise.
51247         * doc/posix-functions/iswprint.texi: Likewise.
51248         * doc/posix-functions/iswpunct.texi: Likewise.
51249         * doc/posix-functions/iswspace.texi: Likewise.
51250         * doc/posix-functions/iswupper.texi: Likewise.
51251         * doc/posix-functions/iswxdigit.texi: Likewise.
51252         * doc/posix-functions/mbrtowc.texi: Likewise.
51253         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51254         * doc/posix-functions/mbstowcs.texi: Likewise.
51255         * doc/posix-functions/mbtowc.texi: Likewise.
51256         * doc/posix-functions/putwchar.texi: Likewise.
51257         * doc/posix-functions/putwc.texi: Likewise.
51258         * doc/posix-functions/swprintf.texi: Likewise.
51259         * doc/posix-functions/tolower.texi: Likewise.
51260         * doc/posix-functions/toupper.texi: Likewise.
51261         * doc/posix-functions/towctrans.texi: Likewise.
51262         * doc/posix-functions/ungetwc.texi: Likewise.
51263         * doc/posix-functions/vswprintf.texi: Likewise.
51264         * doc/posix-functions/wcrtomb.texi: Likewise.
51265         * doc/posix-functions/wcscat.texi: Likewise.
51266         * doc/posix-functions/wcschr.texi: Likewise.
51267         * doc/posix-functions/wcscmp.texi: Likewise.
51268         * doc/posix-functions/wcscoll.texi: Likewise.
51269         * doc/posix-functions/wcscpy.texi: Likewise.
51270         * doc/posix-functions/wcscspn.texi: Likewise.
51271         * doc/posix-functions/wcsftime.texi: Likewise.
51272         * doc/posix-functions/wcslen.texi: Likewise.
51273         * doc/posix-functions/wcsncat.texi: Likewise.
51274         * doc/posix-functions/wcsncmp.texi: Likewise.
51275         * doc/posix-functions/wcsncpy.texi: Likewise.
51276         * doc/posix-functions/wcspbrk.texi: Likewise.
51277         * doc/posix-functions/wcsrchr.texi: Likewise.
51278         * doc/posix-functions/wcsrtombs.texi: Likewise.
51279         * doc/posix-functions/wcsspn.texi: Likewise.
51280         * doc/posix-functions/wcsstr.texi: Likewise.
51281         * doc/posix-functions/wcstod.texi: Likewise.
51282         * doc/posix-functions/wcstof.texi: Likewise.
51283         * doc/posix-functions/wcstoimax.texi: Likewise.
51284         * doc/posix-functions/wcstok.texi: Likewise.
51285         * doc/posix-functions/wcstold.texi: Likewise.
51286         * doc/posix-functions/wcstoll.texi: Likewise.
51287         * doc/posix-functions/wcstol.texi: Likewise.
51288         * doc/posix-functions/wcstombs.texi: Likewise.
51289         * doc/posix-functions/wcstoull.texi: Likewise.
51290         * doc/posix-functions/wcstoul.texi: Likewise.
51291         * doc/posix-functions/wcstoumax.texi: Likewise.
51292         * doc/posix-functions/wcswidth.texi: Likewise.
51293         * doc/posix-functions/wcsxfrm.texi: Likewise.
51294         * doc/posix-functions/wctob.texi: Likewise.
51295         * doc/posix-functions/wctomb.texi: Likewise.
51296         * doc/posix-functions/wctrans.texi: Likewise.
51297         * doc/posix-functions/wctype.texi: Likewise.
51298         * doc/posix-functions/wcwidth.texi: Likewise.
51299         * doc/posix-functions/wmemchr.texi: Likewise.
51300         * doc/posix-functions/wmemcmp.texi: Likewise.
51301         * doc/posix-functions/wmemcpy.texi: Likewise.
51302         * doc/posix-functions/wmemmove.texi: Likewise.
51303         * doc/posix-functions/wmemset.texi: Likewise.
51304         * doc/posix-functions/wprintf.texi: Likewise.
51305         * doc/posix-functions/wscanf.texi: Likewise.
51306
51307 2008-12-21  Bruno Haible  <bruno@clisp.org>
51308
51309         Update doc for HP-UX 11.11.
51310         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51311         in HP-UX version 11.00, not in all versions of HP-UX 11.
51312         * doc/posix-functions/fwide.texi: Likewise.
51313         * doc/posix-functions/fwprintf.texi: Likewise.
51314         * doc/posix-functions/fwscanf.texi: Likewise.
51315         * doc/posix-functions/inet_ntop.texi: Likewise.
51316         * doc/posix-functions/inet_pton.texi: Likewise.
51317         * doc/posix-functions/mbrlen.texi: Likewise.
51318         * doc/posix-functions/mbrtowc.texi: Likewise.
51319         * doc/posix-functions/mbsinit.texi: Likewise.
51320         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51321         * doc/posix-functions/swprintf.texi: Likewise.
51322         * doc/posix-functions/swscanf.texi: Likewise.
51323         * doc/posix-functions/towctrans.texi: Likewise.
51324         * doc/posix-functions/vfwprintf.texi: Likewise.
51325         * doc/posix-functions/vswprintf.texi: Likewise.
51326         * doc/posix-functions/vwprintf.texi: Likewise.
51327         * doc/posix-functions/wcrtomb.texi: Likewise.
51328         * doc/posix-functions/wcsrtombs.texi: Likewise.
51329         * doc/posix-functions/wcsstr.texi: Likewise.
51330         * doc/posix-functions/wctob.texi: Likewise.
51331         * doc/posix-functions/wctrans.texi: Likewise.
51332         * doc/posix-functions/wmemchr.texi: Likewise.
51333         * doc/posix-functions/wmemcmp.texi: Likewise.
51334         * doc/posix-functions/wmemcpy.texi: Likewise.
51335         * doc/posix-functions/wmemmove.texi: Likewise.
51336         * doc/posix-functions/wmemset.texi: Likewise.
51337         * doc/posix-functions/wprintf.texi: Likewise.
51338         * doc/posix-functions/wscanf.texi: Likewise.
51339
51340 2008-12-21  Bruno Haible  <bruno@clisp.org>
51341
51342         Work around a portability problem.
51343         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51344         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51345
51346 2008-12-20  Bruno Haible  <bruno@clisp.org>
51347
51348         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51349         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51350         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51352         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51353
51354         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51355         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51356         set.
51357         (GNULIB_defined_mbstate_t): New macro.
51358         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51359         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51360         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51361         reuses the system's mbrtowc function but works around the bugs.
51362         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51363         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51364         macros.
51365         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51366         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51367         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51368         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51369         REPLACE_MBSINIT if mbsinit needs to be overridden.
51370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51371         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51372         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51373         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51374         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51375         m4/locale-zh.m4.
51376         (Depends): Add mbsinit.
51377         * modules/mbsinit (Depends): Add mbrtowc.
51378         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51379
51380 2008-12-20  Bruno Haible  <bruno@clisp.org>
51381
51382         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51383         so that there are no conversion errors on AIX.
51384         * tests/test-mbsrtowcs.c (main): LIkewise.
51385
51386 2008-12-20  Bruno Haible  <bruno@clisp.org>
51387
51388         Work around wctob bug on Solaris <= 9.
51389         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51390         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51392         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51393         * modules/wctob (Files): Add m4/locale-fr.m4.
51394         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51395
51396 2008-12-20  Bruno Haible  <bruno@clisp.org>
51397
51398         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51399         /dev/null.
51400         * tests/test-select-in.sh: Likewise.
51401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51402
51403 2008-12-20  Bruno Haible  <bruno@clisp.org>
51404
51405         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51406         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51407         Cygwin 1.5.x.
51408
51409 2008-12-20  Bruno Haible  <bruno@clisp.org>
51410
51411         Ensure mbstate_t is defined on HP-UX 11.11.
51412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51413         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51414         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51415         AC_USE_SYSTEM_EXTENSIONS.
51416         * modules/fnmatch (Depends-on): Add extensions.
51417         * modules/mbrlen (Depends-on): Likewise.
51418         * modules/mbrtowc (Depends-on): Likewise.
51419         * modules/mbsinit (Depends-on): Likewise.
51420         * modules/mbsrtowcs (Depends-on): Likewise.
51421         * modules/mbswidth (Depends-on): Likewise.
51422         * modules/quotearg (Depends-on): Likewise.
51423         * modules/strftime (Depends-on): Likewise.
51424
51425 2008-12-20  Bruno Haible  <bruno@clisp.org>
51426
51427         Ensure wctob is declared on IRIX 6.5.
51428         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51429         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51430         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51432         of HAVE_WCTOB.
51433         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51434         HAVE_WCTOB.
51435         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51436
51437 2008-12-19  Bruno Haible  <bruno@clisp.org>
51438
51439         * modules/mbsrtowcs-tests: New file.
51440         * tests/test-mbsrtowcs1.sh: New file.
51441         * tests/test-mbsrtowcs2.sh: New file.
51442         * tests/test-mbsrtowcs3.sh: New file.
51443         * tests/test-mbsrtowcs4.sh: New file.
51444         * tests/test-mbsrtowcs.c: New file.
51445
51446         New module 'mbsrtowcs'.
51447         * lib/wchar.in.h (mbsrtowcs): New declaration.
51448         * lib/mbsrtowcs.c: New file.
51449         * m4/mbsrtowcs.m4: New file.
51450         * modules/mbsrtowcs: New file.
51451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51452         HAVE_MBSRTOWCS.
51453         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51454         HAVE_MBSRTOWCS.
51455         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51456
51457 2008-12-19  Bruno Haible  <bruno@clisp.org>
51458
51459         New module 'mbrlen'.
51460         * lib/wchar.in.h (mbrlen): New declaration.
51461         * lib/mbrlen.c: New file.
51462         * m4/mbrlen.m4: New file.
51463         * modules/mbrlen: New file.
51464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51465         HAVE_MBRLEN.
51466         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51467         HAVE_MBRLEN.
51468         * doc/posix-functions/mbrlen.texi: Document the new module.
51469
51470 2008-12-19  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51473         * modules/mbrtowc (Depends-on): Add verify.
51474         Suggested by Paul Eggert.
51475
51476 2008-12-18  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/mbsinit-tests: New file.
51479         * tests/test-mbsinit.sh: New file.
51480         * tests/test-mbsinit.c: New file.
51481
51482 2008-12-18  Bruno Haible  <bruno@clisp.org>
51483
51484         * modules/mbrtowc-tests: New file.
51485         * tests/test-mbrtowc1.sh: New file.
51486         * tests/test-mbrtowc2.sh: New file.
51487         * tests/test-mbrtowc3.sh: New file.
51488         * tests/test-mbrtowc4.sh: New file.
51489         * tests/test-mbrtowc.c: New file.
51490
51491         New module 'mbrtowc'.
51492         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51493         mbsinit and mbrtowc.
51494         (mbrtowc): New declaration.
51495         * lib/mbrtowc.c: New file.
51496         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51497         * modules/mbrtowc: New file.
51498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51499         HAVE_MBRTOWC.
51500         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51501         HAVE_MBRTOWC.
51502         * doc/posix-functions/mbrtowc.texi: Document the new module.
51503
51504 2008-12-18  Bruno Haible  <bruno@clisp.org>
51505
51506         New module 'wctob'.
51507         * lib/wchar.in.h (wctob): New declaration.
51508         * lib/wctob.c: New file.
51509         * m4/wctob.m4: New file.
51510         * modules/wctob: New file.
51511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51512         HAVE_WCTOB.
51513         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51514         * doc/posix-functions/wctob.texi: Document the new module.
51515
51516 2008-12-18  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51519         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51520
51521 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51522
51523         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51524         G. Christensen" <tgc@jupiterrise.com>.
51525
51526         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51527         G. Christensen" <tgc@jupiterrise.com>.
51528
51529         * lib/flock.c: Need to include string.h.  Reported by "Tom
51530         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51531         <ebb9@byu.net>.
51532
51533 2008-12-18  Bruno Haible  <bruno@clisp.org>
51534
51535         * m4/locale-ja.m4: New file, from GNU gettext.
51536
51537 2008-12-17  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51540         Suggested by Eric Blake.
51541
51542 2008-12-17  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51545
51546 2008-12-17  Bruno Haible  <bruno@clisp.org>
51547
51548         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51549         * modules/mbsinit (Depends-on): Add verify.
51550         Suggested by Paul Eggert.
51551
51552 2008-12-17  Bruno Haible  <bruno@clisp.org>
51553
51554         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51555         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51556         gl_FUNC_MBRTOWC.
51557         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51558         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51559         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51560         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51561         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51562         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51563         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51564         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51565         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51566         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51567         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51568         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51569         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51570         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51571         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51572         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51573         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51574         * modules/trim (configure.ac): Likewise.
51575
51576 2008-12-17  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/btowc-tests: New file.
51579         * tests/test-btowc1.sh: New file.
51580         * tests/test-btowc2.sh: New file.
51581         * tests/test-btowc.c: New file.
51582
51583         New module 'btowc'.
51584         * lib/wchar.in.h (btowc): New declaration.
51585         * lib/btowc.c: New file.
51586         * m4/btowc.m4: New file.
51587         * modules/btowc: New file.
51588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51589         HAVE_BTOWC.
51590         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51591         * doc/posix-functions/btowc.texi: Document the new module.
51592
51593 2008-12-17  Bruno Haible  <bruno@clisp.org>
51594
51595         New module 'mbsinit'.
51596         * lib/wchar.in.h (mbsinit): New declaration.
51597         * lib/mbsinit.c: New file.
51598         * m4/mbsinit.m4: New file.
51599         * modules/mbsinit: New file.
51600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51601         HAVE_MBSINIT.
51602         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51603         HAVE_MBSINIT.
51604         * doc/posix-functions/mbsinit.texi: Document the new module.
51605
51606 2008-12-16  Bruno Haible  <bruno@clisp.org>
51607
51608         * lib/unistd.in.h: Add comment.
51609         * tests/test-environ.c: Don't include <stdlib.h>.
51610
51611 2008-12-16  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/parse-duration.h (parse_duration): Document return value
51614         convention.
51615         * lib/parse-duration.c: Include specification header first. Add
51616         comments.
51617         (_): Remove macro.
51618         (parse_year_month_day, parse_hour_minute_second): Move side effects
51619         outside of strchr call.
51620         (parse_non_iso8601): Move side effects outside of isspace call.
51621         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51622         call.
51623
51624 2008-12-16  Bruno Haible  <bruno@clisp.org>
51625
51626         * tests/test-parse-duration.sh: Produce no output when the test
51627         succeeds.
51628
51629 2008-12-16  Bruno Haible  <bruno@clisp.org>
51630
51631         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51632         expressions.
51633
51634 2008-12-15  Bruno Haible  <bruno@clisp.org>
51635
51636         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51637         * doc/glibc-functions/flistxattr.texi: Likewise.
51638         * doc/glibc-functions/fopencookie.texi: Likewise.
51639         * doc/glibc-functions/fremovexattr.texi: Likewise.
51640         * doc/glibc-functions/fsetxattr.texi: Likewise.
51641         * doc/glibc-functions/getxattr.texi: Likewise.
51642         * doc/glibc-functions/lgetxattr.texi: Likewise.
51643         * doc/glibc-functions/listxattr.texi: Likewise.
51644         * doc/glibc-functions/llistxattr.texi: Likewise.
51645         * doc/glibc-functions/lremovexattr.texi: Likewise.
51646         * doc/glibc-functions/lsetxattr.texi: Likewise.
51647         * doc/glibc-functions/removexattr.texi: Likewise.
51648         * doc/glibc-functions/setxattr.texi: Likewise.
51649         * doc/posix-functions/open_memstream.texi: Likewise.
51650
51651 2008-12-15  Eric Blake  <ebb9@byu.net>
51652
51653         Update doc for cygwin 1.7.
51654         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51655         functions.
51656         * doc/posix-functions/fchmodat.texi: Likewise.
51657         * doc/posix-functions/fchownat.texi: Likewise.
51658         * doc/posix-functions/fdopendir.texi: Likewise.
51659         * doc/posix-functions/fmemopen.texi: Likewise.
51660         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51661         * doc/posix-functions/fstatat.texi: Likewise.
51662         * doc/posix-functions/futimens.texi: Likewise.
51663         * doc/posix-functions/gai_strerror.texi: Likewise.
51664         * doc/posix-functions/getaddrinfo.texi: Likewise.
51665         * doc/posix-functions/getnameinfo.texi: Likewise.
51666         * doc/posix-functions/if_freenameindex.texi: Likewise.
51667         * doc/posix-functions/if_indextoname.texi: Likewise.
51668         * doc/posix-functions/if_nameindex.texi: Likewise.
51669         * doc/posix-functions/if_nametoindex.texi: Likewise.
51670         * doc/posix-functions/insque.texi: Likewise.
51671         * doc/posix-functions/linkat.texi: Likewise.
51672         * doc/posix-functions/llrint.texi: Likewise.
51673         * doc/posix-functions/llrintf.texi: Likewise.
51674         * doc/posix-functions/llrintl.texi: Likewise.
51675         * doc/posix-functions/lockf.texi: Likewise.
51676         * doc/posix-functions/lrintl.texi: Likewise.
51677         * doc/posix-functions/mkdirat.texi: Likewise.
51678         * doc/posix-functions/mkfifoat.texi: Likewise.
51679         * doc/posix-functions/mknodat.texi: Likewise.
51680         * doc/posix-functions/mq_close.texi: Likewise.
51681         * doc/posix-functions/mq_getattr.texi: Likewise.
51682         * doc/posix-functions/mq_notify.texi: Likewise.
51683         * doc/posix-functions/mq_open.texi: Likewise.
51684         * doc/posix-functions/mq_receive.texi: Likewise.
51685         * doc/posix-functions/mq_send.texi: Likewise.
51686         * doc/posix-functions/mq_setattr.texi: Likewise.
51687         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51688         * doc/posix-functions/mq_timedsend.texi: Likewise.
51689         * doc/posix-functions/mq_unlink.texi: Likewise.
51690         * doc/posix-functions/open_memstream.texi: Likewise.
51691         * doc/posix-functions/openat.texi: Likewise.
51692         * doc/posix-functions/posix_fadvise.texi: Likewise.
51693         * doc/posix-functions/posix_fallocate.texi: Likewise.
51694         * doc/posix-functions/posix_madvise.texi: Likewise.
51695         * doc/posix-functions/posix_memalign.texi: Likewise.
51696         * doc/posix-functions/posix_openpt.texi: Likewise.
51697         * doc/posix-functions/readlinkat.texi: Likewise.
51698         * doc/posix-functions/remque.texi: Likewise.
51699         * doc/posix-functions/renameat.texi: Likewise.
51700         * doc/posix-functions/rintl.texi: Likewise.
51701         * doc/posix-functions/sem_unlink.texi: Likewise.
51702         * doc/posix-functions/shm_open.texi: Likewise.
51703         * doc/posix-functions/shm_unlink.texi: Likewise.
51704         * doc/posix-functions/signgam.texi: Likewise.
51705         * doc/posix-functions/sigset.texi: Likewise.
51706         * doc/posix-functions/stpcpy.texi: Likewise.
51707         * doc/posix-functions/stpncpy.texi: Likewise.
51708         * doc/posix-functions/strerror.texi: Likewise.
51709         * doc/posix-functions/strtod.texi: Likewise.
51710         * doc/posix-functions/symlinkat.texi: Likewise.
51711         * doc/posix-functions/unlinkat.texi: Likewise.
51712         * doc/posix-functions/utimensat.texi: Likewise.
51713         * doc/glibc-functions/bindresvport.texi: Likewise.
51714         * doc/glibc-functions/dn_expand.texi: Likewise.
51715         * doc/glibc-functions/exp10.texi: Likewise.
51716         * doc/glibc-functions/exp10f.texi: Likewise.
51717         * doc/glibc-functions/fgetxattr.texi: Likewise.
51718         * doc/glibc-functions/flistxattr.texi: Likewise.
51719         * doc/glibc-functions/fopencookie.texi: Likewise.
51720         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51721         * doc/glibc-functions/fremovexattr.texi: Likewise.
51722         * doc/glibc-functions/fsetxattr.texi: Likewise.
51723         * doc/glibc-functions/getifaddrs.texi: Likewise.
51724         * doc/glibc-functions/getxattr.texi: Likewise.
51725         * doc/glibc-functions/lgetxattr.texi: Likewise.
51726         * doc/glibc-functions/listxattr.texi: Likewise.
51727         * doc/glibc-functions/llistxattr.texi: Likewise.
51728         * doc/glibc-functions/lremovexattr.texi: Likewise.
51729         * doc/glibc-functions/lsetxattr.texi: Likewise.
51730         * doc/glibc-functions/pow10.texi: Likewise.
51731         * doc/glibc-functions/pow10f.texi: Likewise.
51732         * doc/glibc-functions/rcmd_af.texi: Likewise.
51733         * doc/glibc-functions/removexattr.texi: Likewise.
51734         * doc/glibc-functions/res_init.texi: Likewise.
51735         * doc/glibc-functions/res_mkquery.texi: Likewise.
51736         * doc/glibc-functions/res_query.texi: Likewise.
51737         * doc/glibc-functions/res_querydomain.texi: Likewise.
51738         * doc/glibc-functions/res_send.texi: Likewise.
51739         * doc/glibc-functions/rresvport_af.texi: Likewise.
51740         * doc/glibc-functions/setxattr.texi: Likewise.
51741         * doc/glibc-functions/strcasestr.texi: Likewise.
51742
51743 2008-12-15  Bruno Haible  <bruno@clisp.org>
51744
51745         Fix compilation error on OSF/1 4.0.
51746         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51747         <sys/time.h>, simply delegate to the system header.
51748         Reported by Daniel Richard G. <oss@teragram.com>.
51749
51750 2008-12-15  Bruno Haible  <bruno@clisp.org>
51751
51752         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51753         * doc/posix-functions/fchmodat.texi: Likewise.
51754         * doc/posix-functions/fchownat.texi: Likewise.
51755         * doc/posix-functions/fdopendir.texi: Likewise.
51756         * doc/posix-functions/fstatat.texi: Likewise.
51757         * doc/posix-functions/mkdirat.texi: Likewise.
51758         * doc/posix-functions/unlinkat.texi: Likewise.
51759
51760 2008-12-14  Bruno Haible  <bruno@clisp.org>
51761
51762         Update doc for POSIX:2008.
51763         * doc/posix-functions/faccessat.texi: New file.
51764         * doc/posix-functions/fchmodat.texi: New file.
51765         * doc/posix-functions/fchownat.texi: New file.
51766         * doc/posix-functions/fdopendir.texi: New file.
51767         * doc/posix-functions/fstatat.texi: New file.
51768         * doc/posix-functions/futimens.texi: New file.
51769         * doc/posix-functions/linkat.texi: New file.
51770         * doc/posix-functions/mkdirat.texi: New file.
51771         * doc/posix-functions/mkfifoat.texi: New file.
51772         * doc/posix-functions/mknodat.texi: New file.
51773         * doc/posix-functions/open_wmemstream.texi: New file.
51774         * doc/posix-functions/openat.texi: New file.
51775         * doc/posix-functions/psiginfo.texi: New file.
51776         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51777         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51778         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51779         * doc/posix-functions/readlinkat.texi: New file.
51780         * doc/posix-functions/renameat.texi: New file.
51781         * doc/posix-functions/strerror_l.texi: New file.
51782         * doc/posix-functions/symlinkat.texi: New file.
51783         * doc/posix-functions/unlinkat.texi: New file.
51784         * doc/posix-functions/utimensat.texi: New file.
51785         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51786
51787 2008-12-14  Bruno Haible  <bruno@clisp.org>
51788
51789         Update doc for POSIX:2008.
51790         * doc/posix-functions/alphasort.texi: Renamed from
51791         doc/glibc-functions/alphasort.texi.
51792         * doc/posix-functions/dirfd.texi: Renamed from
51793         doc/glibc-functions/dirfd.texi.
51794         * doc/posix-functions/dprintf.texi: Renamed from
51795         doc/glibc-functions/dprintf.texi.
51796         * doc/posix-functions/duplocale.texi: Renamed from
51797         doc/glibc-functions/duplocale.texi.
51798         * doc/posix-functions/fexecve.texi: Renamed from
51799         doc/glibc-functions/fexecve.texi.
51800         * doc/posix-functions/fmemopen.texi: Renamed from
51801         doc/glibc-functions/fmemopen.texi.
51802         * doc/posix-functions/freelocale.texi: Renamed from
51803         doc/glibc-functions/freelocale.texi.
51804         * doc/posix-functions/getdate_err.texi: Renamed from
51805         doc/glibc-functions/getdate_err.texi.
51806         * doc/posix-functions/isalnum_l.texi: Renamed from
51807         doc/glibc-functions/isalnum_l.texi.
51808         * doc/posix-functions/isalpha_l.texi: Renamed from
51809         doc/glibc-functions/isalpha_l.texi.
51810         * doc/posix-functions/isblank_l.texi: Renamed from
51811         doc/glibc-functions/isblank_l.texi.
51812         * doc/posix-functions/iscntrl_l.texi: Renamed from
51813         doc/glibc-functions/iscntrl_l.texi.
51814         * doc/posix-functions/isdigit_l.texi: Renamed from
51815         doc/glibc-functions/isdigit_l.texi.
51816         * doc/posix-functions/isgraph_l.texi: Renamed from
51817         doc/glibc-functions/isgraph_l.texi.
51818         * doc/posix-functions/islower_l.texi: Renamed from
51819         doc/glibc-functions/islower_l.texi.
51820         * doc/posix-functions/isprint_l.texi: Renamed from
51821         doc/glibc-functions/isprint_l.texi.
51822         * doc/posix-functions/ispunct_l.texi: Renamed from
51823         doc/glibc-functions/ispunct_l.texi.
51824         * doc/posix-functions/isspace_l.texi: Renamed from
51825         doc/glibc-functions/isspace_l.texi.
51826         * doc/posix-functions/isupper_l.texi: Renamed from
51827         doc/glibc-functions/isupper_l.texi.
51828         * doc/posix-functions/iswalnum_l.texi: Renamed from
51829         doc/glibc-functions/iswalnum_l.texi.
51830         * doc/posix-functions/iswalpha_l.texi: Renamed from
51831         doc/glibc-functions/iswalpha_l.texi.
51832         * doc/posix-functions/iswblank_l.texi: Renamed from
51833         doc/glibc-functions/iswblank_l.texi.
51834         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51835         doc/glibc-functions/iswcntrl_l.texi.
51836         * doc/posix-functions/iswctype_l.texi: Renamed from
51837         doc/glibc-functions/iswctype_l.texi.
51838         * doc/posix-functions/iswdigit_l.texi: Renamed from
51839         doc/glibc-functions/iswdigit_l.texi.
51840         * doc/posix-functions/iswgraph_l.texi: Renamed from
51841         doc/glibc-functions/iswgraph_l.texi.
51842         * doc/posix-functions/iswlower_l.texi: Renamed from
51843         doc/glibc-functions/iswlower_l.texi.
51844         * doc/posix-functions/iswprint_l.texi: Renamed from
51845         doc/glibc-functions/iswprint_l.texi.
51846         * doc/posix-functions/iswpunct_l.texi: Renamed from
51847         doc/glibc-functions/iswpunct_l.texi.
51848         * doc/posix-functions/iswspace_l.texi: Renamed from
51849         doc/glibc-functions/iswspace_l.texi.
51850         * doc/posix-functions/iswupper_l.texi: Renamed from
51851         doc/glibc-functions/iswupper_l.texi.
51852         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51853         doc/glibc-functions/iswxdigit_l.texi.
51854         * doc/posix-functions/isxdigit_l.texi: Renamed from
51855         doc/glibc-functions/isxdigit_l.texi.
51856         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51857         doc/glibc-functions/mbsnrtowcs.texi.
51858         * doc/posix-functions/mkdtemp.texi: Renamed from
51859         doc/glibc-functions/mkdtemp.texi.
51860         * doc/posix-functions/newlocale.texi: Renamed from
51861         doc/glibc-functions/newlocale.texi.
51862         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51863         doc/glibc-functions/nl_langinfo_l.texi.
51864         * doc/posix-functions/open_memstream.texi: Renamed from
51865         doc/glibc-functions/open_memstream.texi.
51866         * doc/posix-functions/opterr.texi: Renamed from
51867         doc/glibc-functions/opterr.texi.
51868         * doc/posix-functions/optind.texi: Renamed from
51869         doc/glibc-functions/optind.texi.
51870         * doc/posix-functions/optopt.texi: Renamed from
51871         doc/glibc-functions/optopt.texi.
51872         * doc/posix-functions/psignal.texi: Renamed from
51873         doc/glibc-functions/psignal.texi.
51874         * doc/posix-functions/scandir.texi: Renamed from
51875         doc/glibc-functions/scandir.texi.
51876         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51877         doc/glibc-functions/sched_get_priority_min.texi.
51878         * doc/posix-functions/signgam.texi: Renamed from
51879         doc/glibc-functions/signgam.texi.
51880         * doc/posix-functions/stpcpy.texi: Renamed from
51881         doc/glibc-functions/stpcpy.texi.
51882         * doc/posix-functions/stpncpy.texi: Renamed from
51883         doc/glibc-functions/stpncpy.texi.
51884         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51885         doc/glibc-functions/strcasecmp_l.texi.
51886         * doc/posix-functions/strcoll_l.texi: Renamed from
51887         doc/glibc-functions/strcoll_l.texi.
51888         * doc/posix-functions/strfmon_l.texi: Renamed from
51889         doc/glibc-functions/strfmon_l.texi.
51890         * doc/posix-functions/strftime_l.texi: Renamed from
51891         doc/glibc-functions/strftime_l.texi.
51892         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51893         doc/glibc-functions/strncasecmp_l.texi.
51894         * doc/posix-functions/strndup.texi: Renamed from
51895         doc/glibc-functions/strndup.texi.
51896         * doc/posix-functions/strnlen.texi: Renamed from
51897         doc/glibc-functions/strnlen.texi.
51898         * doc/posix-functions/strsignal.texi: Renamed from
51899         doc/glibc-functions/strsignal.texi.
51900         * doc/posix-functions/strxfrm_l.texi: Renamed from
51901         doc/glibc-functions/strxfrm_l.texi.
51902         * doc/posix-functions/timer_gettime.texi: Renamed from
51903         doc/glibc-functions/timer_gettime.texi.
51904         * doc/posix-functions/tolower_l.texi: Renamed from
51905         doc/glibc-functions/tolower_l.texi.
51906         * doc/posix-functions/toupper_l.texi: Renamed from
51907         doc/glibc-functions/toupper_l.texi.
51908         * doc/posix-functions/towctrans_l.texi: Renamed from
51909         doc/glibc-functions/towctrans_l.texi.
51910         * doc/posix-functions/towlower_l.texi: Renamed from
51911         doc/glibc-functions/towlower_l.texi.
51912         * doc/posix-functions/towupper_l.texi: Renamed from
51913         doc/glibc-functions/towupper_l.texi.
51914         * doc/posix-functions/uselocale.texi: Renamed from
51915         doc/glibc-functions/uselocale.texi.
51916         * doc/posix-functions/vdprintf.texi: Renamed from
51917         doc/glibc-functions/vdprintf.texi.
51918         * doc/posix-functions/wcpcpy.texi:
51919         Renamed from doc/glibc-functions/wcpcpy.texi.
51920         * doc/posix-functions/wcpncpy.texi: Renamed from
51921         doc/glibc-functions/wcpncpy.texi.
51922         * doc/posix-functions/wcscasecmp.texi: Renamed from
51923         doc/glibc-functions/wcscasecmp.texi.
51924         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51925         doc/glibc-functions/wcscasecmp_l.texi.
51926         * doc/posix-functions/wcscoll_l.texi: Renamed from
51927         doc/glibc-functions/wcscoll_l.texi.
51928         * doc/posix-functions/wcsdup.texi: Renamed from
51929         doc/glibc-functions/wcsdup.texi.
51930         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51931         doc/glibc-functions/wcsncasecmp.texi.
51932         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51933         doc/glibc-functions/wcsncasecmp_l.texi.
51934         * doc/posix-functions/wcsnlen.texi: Renamed from
51935         doc/glibc-functions/wcsnlen.texi.
51936         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51937         doc/glibc-functions/wcsnrtombs.texi.
51938         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51939         doc/glibc-functions/wcsxfrm_l.texi.
51940         * doc/posix-functions/wctrans_l.texi: Renamed from
51941         doc/glibc-functions/wctrans_l.texi.
51942         * doc/posix-functions/wctype_l.texi: Renamed from
51943         doc/glibc-functions/wctype_l.texi.
51944         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51945         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51946         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51947         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51948         these subsections.
51949         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51950         Remove sections.
51951
51952 2008-12-14  Bruno Haible  <bruno@clisp.org>
51953
51954         Update doc for POSIX:2008.
51955         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51956
51957 2008-12-14  Bruno Haible  <bruno@clisp.org>
51958
51959         Update doc for POSIX:2008.
51960         * doc/pastposix-functions/bcmp.texi: Renamed from
51961         doc/posix-functions/bcmp.texi.
51962         * doc/pastposix-functions/bcopy.texi: Renamed from
51963         doc/posix-functions/bcopy.texi.
51964         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51965         doc/posix-functions/bsd_signal.texi.
51966         * doc/pastposix-functions/bzero.texi: Renamed from
51967         doc/posix-functions/bzero.texi.
51968         * doc/pastposix-functions/ecvt.texi: Renamed from
51969         doc/posix-functions/ecvt.texi.
51970         * doc/pastposix-functions/fcvt.texi: Renamed from
51971         doc/posix-functions/fcvt.texi.
51972         * doc/pastposix-functions/ftime.texi: Renamed from
51973         doc/posix-functions/ftime.texi.
51974         * doc/pastposix-functions/gcvt.texi: Renamed from
51975         doc/posix-functions/gcvt.texi.
51976         * doc/pastposix-functions/getcontext.texi: Renamed from
51977         doc/posix-functions/getcontext.texi.
51978         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51979         doc/posix-functions/gethostbyaddr.texi.
51980         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51981         doc/posix-functions/gethostbyname.texi.
51982         * doc/pastposix-functions/getwd.texi: Renamed from
51983         doc/posix-functions/getwd.texi.
51984         * doc/pastposix-functions/h_errno.texi: Renamed from
51985         doc/posix-functions/h_errno.texi.
51986         * doc/pastposix-functions/index.texi: Renamed from
51987         doc/posix-functions/index.texi.
51988         * doc/pastposix-functions/makecontext.texi: Renamed from
51989         doc/posix-functions/makecontext.texi.
51990         * doc/pastposix-functions/mktemp.texi: Renamed from
51991         doc/posix-functions/mktemp.texi.
51992         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51993         doc/posix-functions/pthread_attr_getstackaddr.texi.
51994         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51995         doc/posix-functions/pthread_attr_setstackaddr.texi.
51996         * doc/pastposix-functions/rindex.texi: Renamed from
51997         doc/posix-functions/rindex.texi.
51998         * doc/pastposix-functions/scalb.texi: Renamed from
51999         doc/posix-functions/scalb.texi.
52000         * doc/pastposix-functions/setcontext.texi: Renamed from
52001         doc/posix-functions/setcontext.texi.
52002         * doc/pastposix-functions/swapcontext.texi: Renamed from
52003         doc/posix-functions/swapcontext.texi.
52004         * doc/pastposix-functions/ualarm.texi: Renamed from
52005         doc/posix-functions/ualarm.texi.
52006         * doc/pastposix-functions/usleep.texi: Renamed from
52007         doc/posix-functions/usleep.texi.
52008         * doc/pastposix-functions/vfork.texi: Renamed from
52009         doc/posix-functions/vfork.texi.
52010         * doc/pastposix-functions/wcswcs.texi: Renamed from
52011         doc/posix-functions/wcswcs.texi.
52012         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52013         (Function Substitutes): Update.
52014
52015 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52016
52017         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52018         m4/strerror.m4.
52019
52020 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52021             Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52024
52025 2008-12-13  Bruno Haible  <bruno@clisp.org>
52026
52027         * modules/strtoull (Depends-on): Remove unistd.
52028
52029 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52030
52031         * modules/strtoull (Depends-on): Add stdlib.
52032
52033 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52034
52035         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52036
52037 2008-12-10  Jim Meyering  <meyering@redhat.com>
52038
52039         gl_ASSERT: don't say assertions are disabled when they're not
52040         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52041         "checking whether to enable assertions... no", when they are in
52042         fact enabled.  This is solely a bug in the output of configure.
52043         In spite of saying "no", NDEBUG was not defined in that case.
52044         Also, as noted by Eric Blake, leave assertions enabled upon
52045         --enable-assert=INVALID.
52046
52047 2008-12-10  Bruno Haible  <bruno@clisp.org>
52048
52049         Change MODULES.html to refer to POSIX:2008 where possible.
52050         * MODULES.html.sh (POSIX2008_URL): New variable.
52051         (posix_headers): Remove sys/timeb, ucontext.
52052         (posix2001_headers): New variable.
52053         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52054         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52055         index, makecontext, mktemp, pthread_attr_getstackaddr,
52056         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52057         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52058         (posix2001_functions): New variable.
52059         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52060         otherwise.
52061
52062 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52063
52064         add missing include to parse-duration.c
52065         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52066         * modules/parse-duration (Depends-on): Add xalloc.
52067
52068         fix sed script reading maint.mk
52069         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52070         (syntax-check-rules): Use it.
52071
52072 2008-12-09  Bruno Haible  <bruno@clisp.org>
52073
52074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52075         MacOS X 10.4/PowerPC.
52076         Reported by Simon Josefsson.
52077
52078 2008-12-08  Jim Meyering  <meyering@redhat.com>
52079
52080         work around mingw's lack of some S_IF definitions
52081         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52082         Reported by Simon Josefsson.
52083
52084 2008-12-08  Bruno Haible  <bruno@clisp.org>
52085
52086         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52087         applied to variables. Needed on MacOS X 10.4/PowerPC.
52088         Reported by Simon Josefsson.
52089
52090 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52091         and Eric Blake  <ebb9@byu.net>
52092
52093         assert: honor --enable-assert
52094         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52095         order to honor --enable-assert, rather than treating it as a
52096         synonym for --disable-assert.
52097
52098 2008-12-08  Jim Meyering  <meyering@redhat.com>
52099
52100         * lib/posixtm.c: Remove now-useless declaration of mktime.
52101
52102         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52103
52104 2008-12-07  Bruno Haible  <bruno@clisp.org>
52105
52106         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52107         test_once): Mark functions as static.
52108         * tests/test-tls.c (test_tls): Likewise.
52109
52110 2008-12-07  Bruno Haible  <bruno@clisp.org>
52111
52112         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52113         iconv_register_autodetect.
52114
52115 2008-12-07  Jim Meyering  <meyering@redhat.com>
52116
52117         posixtm.c: avoid a warning
52118         * lib/posixtm.c (posixtime): Don't initialize tm0.
52119         It's no longer needed to placate gcc4's -Wuninitialized,
52120         and the attempt to placate would elicit a new warning.
52121
52122         unicodeio.c: mark unused parameters
52123         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52124         (fallback_failure_callback): Likewise.
52125
52126 2008-12-07  Bruno Haible  <bruno@clisp.org>
52127
52128         * gnulib-tool (func_create_testdir): When building the tests
52129         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52130         Reported by Simon Josefsson.
52131
52132 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52133
52134         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52135
52136 2008-12-06  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52139         Suggested by Eric Blake.
52140
52141 2008-12-06  Bruno Haible  <bruno@clisp.org>
52142
52143         Fix a c-stack test failure on MacOS X.
52144         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52145         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52146         handler for SIGBUS as well.
52147         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52148         install a signal handler for SIGBUS as well.
52149         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52150
52151 2008-12-06  Bruno Haible  <bruno@clisp.org>
52152
52153         Advocacy documentation.
52154         * doc/gnulib-intro.texi (Benefits): New section.
52155         * doc/gnulib.texi: Update.
52156
52157 2008-12-06  Bruno Haible  <bruno@clisp.org>
52158
52159         Document the 'manywarnings' module.
52160         * doc/manywarnings.texi: New file.
52161         * doc/gnulib.texi: Include it.
52162
52163 2008-12-05  Eric Blake  <ebb9@byu.net>
52164
52165         tests: silence some gcc warnings
52166         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52167         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52168         type mismatches.
52169
52170 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52171             Bruno Haible  <bruno@clisp.org>
52172
52173         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52174
52175 2008-11-29  Jim Meyering  <meyering@redhat.com>
52176
52177         unicodeio.c: mark unused parameters
52178         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52179         (fallback_failure_callback): Likewise.
52180
52181         fts: fix a thinko
52182         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52183         (set_stat_type): Return S_IF*-valued "type" directly.
52184         Prompted by James Youngman's spotting a related bug.
52185         Confirmed by further testing through find.
52186
52187         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52188         * lib/fts.c (D_TYPE): Define.
52189         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52190         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52191         (s_ifmt_shift_bits): New function.
52192         (set_stat_type): New function.
52193         (fts_build): When not calling fts_stat, call set_stat_type
52194         to propagate dirent.d_type info to fts_read caller.
52195         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52196         fts_statp->st_mode type information may be valid.
52197
52198 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52199
52200         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52201         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52202         <sds@gnu.org>.
52203
52204 2008-11-20  Bruno Haible  <bruno@clisp.org>
52205
52206         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52207         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52208         INCLUDE_NEXT.
52209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52210         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52211         * modules/math (Makefile.am): Substitute
52212         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52214
52215 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52216             Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/stdint.in.h: Define all type macros so that their expansion is
52219         a single typedef'ed token. Fixes a compilation failure in Boost which
52220         does "using ::int8_t;".
52221
52222 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52223
52224         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52225         gl_MANYWARN_ALL_GCC.
52226         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52227         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52228         * modules/manywarnings: New file.
52229         * MODULES.html.sh: Mention manywarnings module.
52230
52231 2008-11-18  Bruno Haible  <bruno@clisp.org>
52232
52233         * doc/gnulib-tool.texi (Unit tests): New section.
52234
52235 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52236
52237         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52238         paths like 'lib/po/foo.po'.
52239
52240 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52241
52242         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52243         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52244
52245 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52246
52247         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52248         parameter works.
52249
52250 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52251
52252         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52253
52254 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52255
52256         * modules/parse-duration-tests: New file.
52257         * tests/test-parse-duration.sh: New file.
52258         * tests/test-parse-duration.c: New file.
52259
52260         New module 'parse-duration'.
52261         * lib/parse-duration.h: New file.
52262         * lib/parse-duration.c: New file.
52263         * modules/parse-duration: New file.
52264
52265 2008-11-17  Bruno Haible  <bruno@clisp.org>
52266
52267         * tests/test-select-out.sh: Comment out the first pipe test.
52268         Reported by Simon Josefsson.
52269
52270 2008-11-17  Bruno Haible  <bruno@clisp.org>
52271
52272         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52274         gl_HOSTENT.
52275
52276 2008-11-17  Bruno Haible  <bruno@clisp.org>
52277
52278         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52279         -lnetwork and -lnet. Needed for Haiku and BeOS.
52280
52281 2008-11-16  Bruno Haible  <bruno@clisp.org>
52282
52283         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52284
52285 2008-11-16  Bruno Haible  <bruno@clisp.org>
52286
52287         Avoid test failure on Haiku.
52288         * tests/test-fsync.c: Include <errno.h>.
52289         (main): Don't require that fsync (0) fails.
52290
52291 2008-11-15  Bruno Haible  <bruno@clisp.org>
52292
52293         New module 'hostent'.
52294         * modules/hostent: New file.
52295         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52296
52297 2008-11-15  Bruno Haible  <bruno@clisp.org>
52298
52299         New module 'servent'.
52300         * modules/servent: New file.
52301         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52302
52303 2008-11-15  Bruno Haible  <bruno@clisp.org>
52304
52305         Avoid generating same test program with two different rules.
52306         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52307         test-frexp to test-frexp-nolibm.
52308         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52309         test-frexpl to test-frexpl-nolibm.
52310
52311 2008-11-15  Bruno Haible  <bruno@clisp.org>
52312
52313         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52314         $(FREXPL_LIBM).
52315
52316 2008-11-15  Bruno Haible  <bruno@clisp.org>
52317
52318         * lib/netdb.in.h: Activate the definitions also when the system's
52319         <netdb.h> has 'struct addrinfo'.
52320         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52321         EAI_OVERFLOW or AI_NUMERICSERV.
52322         * doc/posix-headers/netdb.texi: Document the problem.
52323
52324 2008-11-15  Bruno Haible  <bruno@clisp.org>
52325
52326         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52327
52328         Make the 'sched' module work on platforms where <sched.h> exists but
52329         is incomplete (such as Haiku).
52330         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52331         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52332         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52333         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52334         HAVE_STRUCT_SCHED_PARAM.
52335         * modules/sched (Depends-on): Add include_next.
52336         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52337         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52338         * doc/posix-headers/sched.texi: Document the issue.
52339
52340 2008-11-13  Jim Meyering  <meyering@redhat.com>
52341
52342         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52343         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52344         test would fail due to the difference in the Report bugs to ...
52345         line.  The expected address is empty, "<>", while the actual
52346         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52347
52348 2008-11-12  Bruno Haible  <bruno@clisp.org>
52349
52350         lstat: don't compile lstat.c on systems lacking lstat
52351         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52352         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52353         Reported by Daniel P. Berrange via Jim Meyering.
52354
52355 2008-11-12  Jim Meyering  <meyering@redhat.com>
52356
52357         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52358
52359 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52360
52361         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52362         instead.
52363
52364 2008-11-12  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/unicodeio.c: Include unistr.h.
52367         (utf8_wctomb): Remove function.
52368         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52369
52370 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52371
52372         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52373         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52374         <bruno@clisp.org>.
52375         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52376
52377 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52378
52379         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52380         * doc/gnulib.texi: Add section for warnings.
52381
52382 2008-11-11  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/sockets.h: Add a comment.
52385
52386 2008-11-11  Karl Berry  <karl@gnu.org>
52387
52388         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52389
52390 2008-11-11  Eric Blake  <ebb9@byu.net>
52391
52392         fdl.texi: avoid git symlinks
52393         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52394
52395 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52396
52397         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52398
52399 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52400
52401         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52402         (gl_WARN_ADD): Substitute $2 if literal.
52403
52404 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52405
52406         * m4/warning.m4: Remove.
52407
52408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52409
52410         * m4/warnings.m4: Almost complete rewrite. :-)
52411
52412 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52413
52414         * modules/warnings: New module.
52415         * m4/warnings.m4: New file.
52416         * MODULES.html.sh: Mention warnings module.
52417         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52418         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52419
52420 2008-11-10  Eric Blake  <ebb9@byu.net>
52421
52422         fdl.texi: make a symlink to the latest version
52423         * doc/standards.texi: Revert today's earlier change.
52424         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52425         * doc/fdl.texi: ...and replace this with a symlink to the newer
52426         fdl-1.3.texi.
52427
52428 2008-11-10  Bruno Haible  <bruno@clisp.org>
52429
52430         * tests/test-select-fd.c (main): Accept the result file name as fourth
52431         argument.
52432         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52433         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52434
52435 2008-11-10  Bruno Haible  <bruno@clisp.org>
52436
52437         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52438         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52439         as autoconf-substituted macros.
52440         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52442         gl_NETDB_H_DEFAULTS. Set these variables.
52443         * modules/netdb (Makefile.am): Substitute these variables.
52444
52445 2008-11-10  Eric Blake  <ebb9@byu.net>
52446
52447         standards.texi: include correct file for FDL 1.3
52448         * doc/standards.texi (GNU Free Documentation License): Change
52449         include file to pull in FDL 1.3, not 1.2.
52450
52451         fdl.texi: revert accidental change to license
52452         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52453
52454 2008-11-10  Bruno Haible  <bruno@clisp.org>
52455
52456         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52457         cross-compiling guesses also when the native compile gives no result.
52458
52459 2008-11-10  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/spawni.c (__spawni): Force variable into the stack.
52462
52463 2008-11-10  Bruno Haible  <bruno@clisp.org>
52464
52465         Add support for Haiku.
52466         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52467         glibc and BeOS, but also on Haiku.
52468         * lib/fpurge.c (fpurge): Likewise.
52469         * lib/freadable.c (freadable): Likewise.
52470         * lib/freadahead.c (freadahead): Likewise.
52471         * lib/freading.c (freading): Likewise.
52472         * lib/freadptr.c (freadptr): Likewise.
52473         * lib/freadseek.c (freadptrinc): Likewise.
52474         * lib/fseeko.c (rpl_fseeko): Likewise.
52475         * lib/fseterr.c (fseterr): Likewise.
52476         * lib/fwritable.c (fwritable): Likewise.
52477         * lib/fwriting.c (fwriting): Likewise.
52478         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52479
52480 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52481
52482         * lib/config.charset: Treat Haiku like BeOS.
52483
52484 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52485
52486         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52487         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52488
52489 2008-11-08  Bruno Haible  <bruno@clisp.org>
52490
52491         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52492         AC_CACHE_CHECK.
52493
52494 2008-11-08  Bruno Haible  <bruno@clisp.org>
52495
52496         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52497
52498 2008-11-08  Bruno Haible  <bruno@clisp.org>
52499
52500         * tests/test-select-fd.c: New file.
52501         * tests/test-select-in.sh: New file.
52502         * tests/test-select-out.sh: New file.
52503         * tests/test-select-stdin.c: New file.
52504         * modules/select-tests (Files): Add the new files.
52505         (Depends-on): Add gettimeofday.
52506         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52507         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52508         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52509
52510 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52511             Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52514
52515 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52516
52517         * build-aux/pmccabe2html: Added support for C++ source files.
52518
52519 2008-11-05  Ben Pfaff  <blp@gnu.org>
52520
52521         Fix lib/close.c build on Windows.
52522         * modules/close (Files): Add lib/w32sock.h.
52523
52524 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52525
52526         Accept Bison's NEWS format.
52527         * build-aux/announce-gen (print_news_deltas): Tweak
52528         $re_prefix.
52529
52530 2008-11-04  Bruno Haible  <bruno@clisp.org>
52531
52532         * modules/random_r (Maintainer): Add glibc.
52533
52534 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52535
52536         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52537         by karl@freefriends.org (Karl Berry).
52538         * doc/alloca.texi: Likewise.
52539         * doc/c-ctype.texi: Likewise.
52540         * doc/c-strcase.texi: Likewise.
52541         * doc/c-strcaseeq.texi: Likewise.
52542         * doc/c-strcasestr.texi: Likewise.
52543         * doc/c-strstr.texi: Likewise.
52544         * doc/c-strtod.texi: Likewise.
52545         * doc/c-strtold.texi: Likewise.
52546         * doc/ctime.texi: Likewise.
52547         * doc/error.texi: Likewise.
52548         * doc/fdl.texi: Likewise.
52549         * doc/gcd.texi: Likewise.
52550         * doc/getdate.texi: Likewise.
52551         * doc/gnulib-intro.texi: Likewise.
52552         * doc/gnulib-tool.texi: Likewise.
52553         * doc/gnulib.texi: Likewise.
52554         * doc/inet_ntoa.texi: Likewise.
52555         * doc/maintain.texi: Likewise.
52556         * doc/make-stds.texi: Likewise.
52557         * doc/quote.texi: Likewise.
52558         * doc/regexprops-generic.texi: Likewise.
52559         * doc/standards.texi: Likewise.
52560         * doc/verify.texi: Likewise.
52561         * doc/visibility.texi: Likewise.
52562         * doc/gnulib.texi (GNU Free Documentation License): Include
52563         fdl-1.3.texi instead of fdl.texi.
52564
52565 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52566
52567         * doc/fdl-1.3.texi: New file, from
52568         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52569         * modules/fdl-1.3: Add.
52570         * MODULES.html.sh: Add fdl-1.3.
52571
52572 2008-11-03  Bruno Haible  <bruno@clisp.org>
52573
52574         Make determination of absolute name of header file work with AIX xlc.
52575         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52576         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52577         preprocessing.
52578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52579         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52580
52581 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52582
52583         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52584         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52585         <ludo@gnu.org>.
52586
52587 2008-11-02  Bruno Haible  <bruno@clisp.org>
52588
52589         Mark 'strpbrk' obsolete.
52590         * modules/strpbrk (Status, Notice): New sections.
52591         * modules/strtok_r (Depends-on): Add strpbrk.
52592
52593 2008-11-02  Bruno Haible  <bruno@clisp.org>
52594
52595         Mark 'strdup' obsolete.
52596         * modules/strdup (Status, Notice): New sections.
52597         * modules/findprog (Depends-on): Add strdup.
52598         * modules/getaddrinfo (Depends-on): Likewise.
52599         * modules/localename (Depends-on): Likewise.
52600         * modules/relocatable-lib (Depends-on): Likewise.
52601         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52602         * modules/relocatable-prog (Depends-on): Likewise.
52603         * modules/trim (Depends-on): Likewise.
52604         * modules/unictype/gen-ctype (Depends-on): Likewise.
52605         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52606
52607 2008-11-02  Bruno Haible  <bruno@clisp.org>
52608
52609         Mark 'strcspn' obsolete.
52610         * modules/strcspn (Status, Notice): New sections.
52611
52612 2008-11-02  Bruno Haible  <bruno@clisp.org>
52613
52614         Mark 'rmdir' obsolete.
52615         * modules/rmdir (Status, Notice): New sections.
52616         * modules/clean-temp (Depends-on): Add rmdir.
52617         * modules/openat (Depends-on): Likewise.
52618
52619 2008-11-02  Bruno Haible  <bruno@clisp.org>
52620
52621         Mark 'raise' obsolete.
52622         * modules/raise (Status, Notice): New sections.
52623         (Include): Specify <signal.h>.
52624         * modules/stdio (Depends-on): Add raise.
52625         * modules/write (Depends-on): Likewise.
52626
52627 2008-11-02  Bruno Haible  <bruno@clisp.org>
52628
52629         Mark 'memset' obsolete.
52630         * modules/memset (Status, Notice): New sections.
52631
52632 2008-11-02  Bruno Haible  <bruno@clisp.org>
52633
52634         Mark 'memmove' obsolete.
52635         * modules/memmove (Status, Notice): New sections.
52636         * modules/argp (Depends-on): Add memmove.
52637         * modules/argz (Depends-on): Likewise.
52638         * modules/canonicalize (Depends-on): Likewise.
52639         * modules/canonicalize-lgpl (Depends-on): Likewise.
52640         * modules/fts (Depends-on): Likewise.
52641         * modules/getcwd (Depends-on): Likewise.
52642         * modules/human (Depends-on): Likewise.
52643         * modules/regex (Depends-on): Likewise.
52644         * modules/striconveh (Depends-on): Likewise.
52645         * modules/trim (Depends-on): Likewise.
52646         * modules/unistr/u8-move (Depends-on): Likewise.
52647         * modules/unistr/u16-move (Depends-on): Likewise.
52648         * modules/unistr/u32-move (Depends-on): Likewise.
52649
52650 2008-11-02  Bruno Haible  <bruno@clisp.org>
52651
52652         Mark 'memcpy' obsolete.
52653         * modules/memcpy (Status, Notice): New sections.
52654
52655 2008-11-02  Bruno Haible  <bruno@clisp.org>
52656
52657         Mark 'memcmp' obsolete.
52658         * modules/memcmp (Status, Notice): New sections.
52659         * modules/argmatch (Depends-on): Add memchr.
52660         * modules/backupfile (Depends-on): Likewise.
52661         * modules/c-strcasestr (Depends-on): Likewise.
52662         * modules/crypto/des (Depends-on): Likewise.
52663         * modules/csharpcomp (Depends-on): Likewise.
52664         * modules/fnmatch (Depends-on): Likewise.
52665         * modules/git-merge-changelog (Depends-on): Likewise.
52666         * modules/isnand (Depends-on): Likewise.
52667         * modules/isnand-nolibm (Depends-on): Likewise.
52668         * modules/isnanf (Depends-on): Likewise.
52669         * modules/isnanf-nolibm (Depends-on): Likewise.
52670         * modules/isnanl (Depends-on): Likewise.
52671         * modules/isnanl-nolibm (Depends-on): Likewise.
52672         * modules/mbchar (Depends-on): Likewise.
52673         * modules/memcoll (Depends-on): Likewise.
52674         * modules/quotearg (Depends-on): Likewise.
52675         * modules/regex (Depends-on): Likewise.
52676         * modules/relocatable-prog (Depends-on): Likewise.
52677         * modules/same (Depends-on): Likewise.
52678         * modules/signbit (Depends-on): Likewise.
52679         * modules/strcasestr-simple (Depends-on): Likewise.
52680         * modules/unictype/gen-ctype (Depends-on): Likewise.
52681         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52682         * modules/uniname/uniname (Depends-on): Likewise.
52683         * modules/unistr/u8-cmp (Depends-on): Likewise.
52684
52685 2008-11-02  Bruno Haible  <bruno@clisp.org>
52686
52687         Mark 'memchr' obsolete.
52688         * modules/memchr (Status, Notice): New sections.
52689         * modules/argp (Depends-on): Add memchr.
52690         * modules/base64 (Depends-on): Likewise.
52691         * modules/c-strcasestr (Depends-on): Likewise.
52692         * modules/chdir-long (Depends-on): Likewise.
52693         * modules/fnmatch (Depends-on): Likewise.
52694         * modules/getsubopt (Depends-on): Likewise.
52695         * modules/git-merge-changelog (Depends-on): Likewise.
52696         * modules/glob (Depends-on): Likewise.
52697         * modules/strcasestr-simple (Depends-on): Likewise.
52698         * modules/strnlen (Depends-on): Likewise.
52699
52700 2008-11-02  Bruno Haible  <bruno@clisp.org>
52701
52702         Mark 'atexit' obsolete.
52703         * modules/atexit (Status, Notice): New sections.
52704         * modules/chdir-long (Depends-on): Add atexit.
52705         * modules/wait-process (Depends-on): Likewise.
52706
52707 2008-11-02  Bruno Haible  <bruno@clisp.org>
52708
52709         * gnulib-tool: New option --with-obsolete.
52710         (func_usage): Document it.
52711         (func_modules_transitive_closure): Drop obsolete dependencies if
52712         incobsolete is not true.
52713         (func_import): Read and save the incobsolete variable to the cache.
52714
52715 2008-11-02  Bruno Haible  <bruno@clisp.org>
52716
52717         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52718         * gnulib-tool: New option --extract-status.
52719         (func_usage): Document it.
52720         (sed_extract_prog): Recognize it.
52721         (func_get_status): New function.
52722
52723 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52724
52725         * modules/sockets (License): Change from LGPL to LGPLv2+.
52726
52727 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52728
52729         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52730
52731 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52732
52733         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52734         Mention times and sys_times.
52735         * modules/sys_times, modules/sys_times-tests: New modules.
52736         * modules/times, modules/times-tests: Likewise
52737         * m4/sys_times_h.m4: New file.
52738         * lib/sys_times.in.h: Likewise
52739         * lib/times.c: Likewise.
52740         * tests/test-sys_times.c: Likewise.
52741         * tests/test-times.c: Likewise.
52742         * doc/posix-headers/sys_times.texi: Update.
52743         * doc/posix-functions/times.texi: Update.
52744
52745 2008-10-28  Jim Meyering  <meyering@redhat.com>
52746
52747         * modules/tempname (Depends-on): Add lstat.
52748
52749         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52750
52751 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52752
52753         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52754         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52755         using idiom used elsewhere in gnulib.
52756
52757 2008-10-27  Jim Meyering  <meyering@redhat.com>
52758
52759         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52760
52761 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52762
52763         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52764         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52765         programs.
52766         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52767
52768 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52769
52770         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52771
52772 2008-10-27  Bruno Haible  <bruno@clisp.org>
52773
52774         * tests/test-lstat.c: Include <stdio.h>.
52775
52776 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52777
52778         * modules/lstat-tests: New module.
52779         * tests/test-lstat.c: New file.
52780
52781 2008-10-26  Jim Meyering  <meyering@redhat.com>
52782
52783         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52784
52785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52786             Bruno Haible  <bruno@clisp.org>
52787
52788         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52789         * modules/configmake (Include): Add a note that the include must come
52790         after all system headers.
52791         * lib/javaversion.c: Include configmake.h after all other includes.
52792
52793 2008-10-26  Bruno Haible  <bruno@clisp.org>
52794
52795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52796         HAVE_STRUCT_RANDOM_DATA to 1.
52797         (gl_STDLIB_H): Simplify.
52798
52799 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52800
52801         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52802         substitute HAVE_STRUCT_RANDOM_DATA.
52803         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52804         random_data.
52805         * modules/stdlib (Makefile.am): Substitute
52806         HAVE_STRUCT_RANDOM_DATA.
52807
52808 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52809
52810         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52811         * doc/gnulib-intro.texi (Copyright): Likewise.
52812
52813 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52814
52815         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52816         findings.
52817
52818 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52819             Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/unistd.in.h: Include <winsock2.h>.
52822         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52823         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52824         Provide dummy declarations.
52825         (gethostname): Override.
52826         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52827         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52828         gl_PREREQ_SYS_H_WINSOCK2.
52829         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52830         * doc/posix-functions/gethostname.texi: More details.
52831
52832 2008-10-25  Bruno Haible  <bruno@clisp.org>
52833
52834         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52835         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52836         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52837
52838         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52839         here ...
52840         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52841         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52842         gl_UNISTD_H_DEFAULTS.
52843
52844 2008-10-25  Eric Blake  <ebb9@byu.net>
52845
52846         signbit: avoid spurious compiler failure
52847         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52848         declarations inside function.
52849
52850 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52851             Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52854         * modules/random_r (Depends-on): Add stdint.
52855
52856 2008-10-24  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52859         Eggert.
52860         * modules/strerror (License): Likewise.
52861
52862 2008-10-24  Jim Meyering  <meyering@redhat.com>
52863
52864         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52865         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52866
52867 2008-10-24  Eric Blake  <ebb9@byu.net>
52868
52869         getgroups: fix compilation when getgroups is available
52870         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52871         but with <config.h> override of getgroups disabled.
52872
52873 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52874
52875         * doc/gnulib.texi (Header files): Add note about C++ problems.
52876         Explained by Bruno Haible <bruno@clisp.org>.
52877
52878 2008-10-23  Bruno Haible  <bruno@clisp.org>
52879
52880         Define a dummy SA_NODEFER macro on Interix.
52881         * lib/signal.in.h (SA_NODEFER): Define fallback.
52882         Reported by Aleksey Cheusov <cheusov@tut.by> via
52883         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52884
52885 2008-10-23  Bruno Haible  <bruno@clisp.org>
52886
52887         * modules/freadahead (License): Change to LGPLv2+.
52888         Suggested by Simon Josefsson.
52889
52890 2008-10-23  Jim Meyering  <meyering@redhat.com>
52891
52892         random_r: new module
52893         * modules/random_r: New file.
52894         * m4/random_r.m4: New file.
52895         * lib/random_r.c: New file, from glibc.
52896         * modules/random_r-tests: New file.
52897         * tests/test-random_r.c: New file.
52898         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52899          Declare.
52900         (RAND_MAX): Define.
52901         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52902         * modules/stdlib: Substitute them, too.
52903         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52904         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52905         * doc/glibc-functions/random_r.texi: Likewise.
52906         * doc/glibc-functions/setstate_r.texi: Likewise.
52907         * doc/glibc-functions/srandom_r.texi: Likewise.
52908         * config/srclist.txt: Mention it.
52909
52910 2008-10-23  David Lutterkort  <lutter@redhat.com>
52911
52912         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52913         link requirement
52914
52915 2008-10-23  Jim Meyering  <meyering@redhat.com>
52916
52917         selinux-h: mark parameters of stub functions as intentionally unused
52918         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52919         * lib/se-context.in.h: Likewise.
52920
52921 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52922
52923         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52924
52925 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52926
52927         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52928
52929 2008-10-22  Eric Blake  <ebb9@byu.net>
52930
52931         glthread/thread: avoid compiler warning
52932         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52933         Add unreachable abort to silence compiler.
52934
52935 2008-10-22  Eric Blake  <ebb9@byu.net>
52936
52937         netdb: also supply struct addrinfo for cygwin 1.5.x
52938         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52939         older cygwin.
52940         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52941         cygwin.
52942         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52943
52944 2008-10-22  Bruno Haible  <bruno@clisp.org>
52945
52946         * users.txt: Update entry about pspp.
52947
52948 2008-10-21  Bruno Haible  <bruno@clisp.org>
52949
52950         Simplification.
52951         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52952         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52953
52954         Simplification.
52955         * lib/ioctl.c (ioctl): Don't undefine.
52956         * lib/socket.c (socket): Don't undefine.
52957
52958         Remove unused module indicator macros.
52959         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52960         GNULIB_$1 as a C macro.
52961
52962         * doc/posix-functions/close.texi: Undo last change.
52963         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52964         Windows platforms.
52965
52966 2008-10-21  Bruno Haible  <bruno@clisp.org>
52967
52968         Add gethostname() declaration to <unistd.h>.
52969         * lib/unistd.in.h (gethostname): New declaration.
52970         * lib/gethostname.c: Include <unistd.h>.
52971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52972         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52974         and HAVE_GETHOSTNAME.
52975         * modules/gethostname (Depends-on): Add unistd.
52976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52977         (Include): Specify <unistd.h>.
52978         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52979         HAVE_GETHOSTNAME.
52980         * tests/test-gethostname.c: Include <unistd.h> first.
52981
52982 2008-10-21  Bruno Haible  <bruno@clisp.org>
52983
52984         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52985         * modules/select-tests (Depends-on): Likewise.
52986         Reported by Simon Josefsson.
52987
52988 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52989
52990         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52991         * lib/accept.c: New file, based on winsock.c.
52992         * lib/bind.c: New file, based on winsock.c.
52993         * lib/connect.c: New file, based on winsock.c.
52994         * lib/getpeername.c: New file, based on winsock.c.
52995         * lib/getsockname.c: New file, based on winsock.c.
52996         * lib/getsockopt.c: New file, based on winsock.c.
52997         * lib/ioctl.c: New file, based on winsock.c.
52998         * lib/listen.c: New file, based on winsock.c.
52999         * lib/recv.c: New file, based on winsock.c.
53000         * lib/recvfrom.c: New file, based on winsock.c.
53001         * lib/send.c: New file, based on winsock.c.
53002         * lib/sendto.c: New file, based on winsock.c.
53003         * lib/setsockopt.c: New file, based on winsock.c.
53004         * lib/shutdown.c: New file, based on winsock.c.
53005         * lib/socket.c: New file, based on winsock.c.
53006         * lib/w32sock.h: New file, based on winsock.c.
53007         * lib/winsock.c: Remove file.
53008         * modules/accept: Likewise.
53009         * modules/bind: Likewise.
53010         * modules/connect: Likewise.
53011         * modules/getpeername: Likewise.
53012         * modules/getsockname: Likewise.
53013         * modules/getsockopt: Likewise.
53014         * modules/ioctl: Likewise.
53015         * modules/listen: Likewise.
53016         * modules/recv: Likewise.
53017         * modules/recvfrom: Likewise.
53018         * modules/send: Likewise.
53019         * modules/sendto: Likewise.
53020         * modules/setsockopt: Likewise.
53021         * modules/shutdown: Likewise.
53022         * modules/socket: Use socket.c instead of winsock.c.
53023         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53024         * doc/posix-functions/accept.texi: Doc fix.
53025         * doc/posix-functions/bind.texi: Doc fix.
53026         * doc/posix-functions/close.texi: Doc fix.
53027         * doc/posix-functions/connect.texi: Doc fix.
53028         * doc/posix-functions/getpeername.texi: Doc fix.
53029         * doc/posix-functions/getsockname.texi: Doc fix.
53030         * doc/posix-functions/getsockopt.texi: Doc fix.
53031         * doc/posix-functions/ioctl.texi: Doc fix.
53032         * doc/posix-functions/listen.texi: Doc fix.
53033         * doc/posix-functions/recv.texi: Doc fix.
53034         * doc/posix-functions/recvfrom.texi: Doc fix.
53035         * doc/posix-functions/send.texi: Doc fix.
53036         * doc/posix-functions/sendto.texi: Doc fix.
53037         * doc/posix-functions/setsockopt.texi: Doc fix.
53038         * doc/posix-functions/shutdown.texi: Doc fix.
53039         * doc/posix-functions/socket.texi: Doc fix.
53040
53041 2008-10-20  Bruno Haible  <bruno@clisp.org>
53042
53043         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53044         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53045         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53046         as an alias for SIGABRT.
53047         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53048         (sigaction): Map it to SIGABRT.
53049         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53050
53051 2008-10-20  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/fts.c: Don't include lstat.h.
53054         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53055
53056         Move the lstat() declaration to <sys/stat.h>.
53057         * lib/lstat.h: Remove file.
53058         * lib/sys_stat.in.h: Add special invocation convention.
53059         (lstat): New declaration.
53060         * lib/lstat.c (orig_lstat): New function.
53061         (rpl_lstat): Use orig_lstat instead of lstat.
53062         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53063         AC_C_INLINE. Set REPLACE_LSTAT.
53064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53065         and REPLACE_LSTAT.
53066         * modules/lstat (Files): Remove lib/lstat.h.
53067         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53068         (Include): Specify <sys/stat.h> instead of lstat.h.
53069         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53070         REPLACE_LSTAT.
53071         * NEWS: Mention the change.
53072
53073 2008-10-20  Bruno Haible  <bruno@clisp.org>
53074
53075         * modules/posix_spawn-tests: New file.
53076         * tests/test-posix_spawn3.c: New file.
53077
53078 2008-10-20  Bruno Haible  <bruno@clisp.org>
53079
53080         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53081         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53082         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53083         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53084         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53085
53086 2008-10-20  Bruno Haible  <bruno@clisp.org>
53087
53088         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53089         of posix_spawn on AIX 5.3.
53090
53091 2008-10-20  Bruno Haible  <bruno@clisp.org>
53092
53093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53094
53095 2008-10-20  Bruno Haible  <bruno@clisp.org>
53096
53097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53098         of AC_LANG_PROGRAM.
53099
53100 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53101
53102         * lib/netdb.in.h: Don't define GNU specific constants until they
53103         are supported or needed.  Reported by Bruno Haible
53104         <bruno@clisp.org>.
53105
53106 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53107
53108         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53109
53110 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53111
53112         * lib/getaddrinfo.h: Remove file.
53113         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53114         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53115         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53116         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53117         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53118         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53119         * tests/test-getaddrinfo.c: Likewise.
53120         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53121         * NEWS: Mention change.
53122
53123 2008-10-19  Bruno Haible  <bruno@clisp.org>
53124
53125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53126
53127 2008-10-19  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/wait-process.c: Include simply <sys/wait.h>.
53130         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53131         WIFSTOPPED): Remove fallback definitions.
53132         * modules/wait-process (Depends-on): Add sys_wait.
53133
53134         New module 'sys_wait'.
53135         * modules/sys_wait: New file.
53136         * lib/sys_wait.in.h: New file, partially copied from
53137         lib/wait-process.c.
53138         * m4/sys_wait_h.m4: New file.
53139         * doc/posix-headers/sys_wait.texi: Mention the new module.
53140
53141 2008-10-19  Bruno Haible  <bruno@clisp.org>
53142
53143         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53144
53145 2008-10-19  Bruno Haible  <bruno@clisp.org>
53146
53147         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53148         * lib/wait-process.c (WAIT_T): Remove type.
53149         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53150         (wait_subprocess): Update.
53151
53152 2008-10-19  Bruno Haible  <bruno@clisp.org>
53153
53154         New module 'atoll'.
53155         * modules/atoll: New file.
53156         * lib/stdlib.in.h (atoll): New declaration.
53157         * lib/atoll.c: New file, from glibc with modifications.
53158         * m4/atoll.m4: New file.
53159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53160         HAVE_ATOLL.
53161         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53162         * doc/posix-functions/atoll.texi: Mention the new module.
53163
53164 2008-10-19  Bruno Haible  <bruno@clisp.org>
53165
53166         Add strtoull() declaration to <stdlib.h>.
53167         * lib/stdlib.in.h (strtoull): New declaration.
53168         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53169         Set HAVE_STRTOULL.
53170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53171         HAVE_STRTOULL.
53172         * modules/strtoull (Depends-on): Add stdlib.
53173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53174         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53175         HAVE_STRTOULL.
53176
53177 2008-10-19  Bruno Haible  <bruno@clisp.org>
53178
53179         Add strtoll() declaration to <stdlib.h>.
53180         * lib/stdlib.in.h (strtoll): New declaration.
53181         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53182         Set HAVE_STRTOLL.
53183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53184         HAVE_STRTOLL.
53185         * modules/strtoll (Depends-on): Add stdlib.
53186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53187         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53188
53189 2008-10-19  Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/bcopy (Depends-on): Add strings.
53192         (Include): Specify <strings.h>.
53193
53194 2008-10-19  Bruno Haible  <bruno@clisp.org>
53195
53196         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53197
53198 2008-10-19  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53201         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53202         mingw.
53203
53204 2008-10-19  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/atanl.c: Don't include isnanl.h.
53207         * lib/cosl.c: Likewise.
53208         * lib/ldexpl.c: Likewise.
53209         * lib/logl.c: Likewise.
53210         * lib/sinl.c: Likewise.
53211         * lib/sqrtl.c: Likewise.
53212         * lib/tanl.c: Likewise.
53213
53214         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53215         * lib/isnanf.h: Remove file.
53216         * lib/isnand.h: Remove file.
53217         * lib/isnanl.h: Remove file.
53218         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53219         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53220         macros.
53221         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53222         HAVE_ISNANF, don't define it as a C macro.
53223         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53224         HAVE_ISNAND, don't define it as a C macro.
53225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53226         HAVE_ISNANL, don't define it as a C macro.
53227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53228         HAVE_ISNAN[FDL].
53229         * modules/isnanf (Files): Remove lib/isnanf.h.
53230         (Depends-on): Add math.
53231         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53232         (Include): Specify <math.h> instead of isnanf.h.
53233         * modules/isnand (Files): Remove lib/isnand.h.
53234         (Depends-on): Add math.
53235         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53236         (Include): Specify <math.h> instead of isnand.h.
53237         * modules/isnanl (Files): Remove lib/isnanl.h.
53238         (Depends-on): Add math.
53239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53240         (Include): Specify <math.h> instead of isnanl.h.
53241         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53242         HAVE_ISNAN[FDL].
53243         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53244         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53245         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53246         * NEWS: Mention the change.
53247
53248 2008-10-18  Bruno Haible  <bruno@clisp.org>
53249
53250         Add getusershell(), setusershell(), endusershell() declarations to
53251         <unistd.h>.
53252         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53253         declarations.
53254         * lib/getusershell.c: Include unistd.h.
53255         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53256         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53257         HAVE_GETUSERSHELL.
53258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53259         and HAVE_GETUSERSHELL.
53260         * modules/getusershell (Depends-on): Add unistd, extensions.
53261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53262         (Include): Specify <unistd.h>.
53263         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53264         HAVE_GETUSERSHELL.
53265
53266 2008-10-18  Bruno Haible  <bruno@clisp.org>
53267
53268         Add a getloadavg() declaration to <stdlib.h>.
53269         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53270         getloadavg declaration.
53271         (getloadavg): New declaration.
53272         * lib/getloadavg.c: Include <stdlib.h> first.
53273         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53274         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53275         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53277         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53278         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53280         (Include): Specify <stdlib.h>.
53281         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53282         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53283
53284 2008-10-18  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/dirchownmod.c: Don't include lchmod.h.
53287
53288         Move the lchmod() declaration to <sys/stat.h>.
53289         * lib/lchmod.h: Remove file.
53290         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53291         (lchmod): New declaration, moved here from lib/lchown.h.
53292         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53293         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53294         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53295         and HAVE_LCHMOD.
53296         * modules/lchmod (Files): Remove lib/lchmod.h.
53297         (Depends-on): Add sys_stat, extensions.
53298         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53299         (Include): Specify <sys/stat.h> instead of lchmod.h.
53300         * modules/sys_stat (Depends-on): Add link-warning.
53301         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53302         definition of GL_LINK_WARNING.
53303         * NEWS: Mention the change.
53304
53305 2008-10-18  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/fchdir.c: Don't include dirfd.h.
53308         * lib/fts.c: Likewise.
53309         * lib/getcwd.c: Likewise.
53310         * lib/glob.c: Likewise.
53311
53312         Move the dirfd() declaration to <dirent.h>.
53313         * lib/dirfd.h: Remove file.
53314         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53315         (dirfd): New declaration.
53316         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53317         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53318         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53319         HAVE_DECL_DIRFD.
53320         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53321         HAVE_DECL_DIRFD.
53322         * modules/dirfd (Files): Remove lib/dirfd.h.
53323         (Depends-on): Add dirent, extensions.
53324         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53325         (Include): Specify <dirent.h> instead of dirfd.h.
53326         * modules/dirent (Depends-on): Add link-warning.
53327         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53328         definition of GL_LINK_WARNING.
53329         * NEWS: Mention the change.
53330
53331 2008-10-18  Bruno Haible  <bruno@clisp.org>
53332
53333         Move the euidaccess() declaration to <unistd.h>.
53334         * lib/euidaccess.h: Remove file.
53335         * lib/unistd.in.h (euidaccess): New declaration.
53336         * lib/euidaccess.c: Don't include euidaccess.h.
53337         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53338         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53340         and HAVE_EUIDACCESS.
53341         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53342         (Depends-on): Add unistd.
53343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53344         (Include): Specify <unistd.h> instead of euidaccess.h.
53345         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53346         HAVE_EUIDACCESS.
53347         * NEWS: Mention the change.
53348
53349 2008-10-18  Bruno Haible  <bruno@clisp.org>
53350
53351         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53352
53353         Move the getdomainname() declaration to <unistd.h>.
53354         * lib/getdomainname.h: Remove file.
53355         * lib/unistd.in.h (getdomainname): New declaration.
53356         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53357         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53358         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53359         HAVE_GETDOMAINNAME.
53360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53361         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53362         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53363         (Depends-on): Add unistd, extensions.
53364         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53365         (Includes): Specify <unistd.h> instead of getdomainname.h.
53366         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53367         HAVE_GETDOMAINNAME.
53368         * NEWS: Mention the change.
53369
53370 2008-10-18  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/dirent: New file.
53373         * m4/dirent_h.m4: New file.
53374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53375         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53376         * modules/fchdir (Files): Remove lib/dirent.in.h.
53377         (Depends-on): Add dirent.
53378         (Makefile.am): Move rules to modules/dirent.
53379         * doc/posix-headers/dirent.texi: Mention the new module.
53380
53381 2008-10-18  Bruno Haible  <bruno@clisp.org>
53382
53383         Avoid -Wunused-parameter warnings in public gnulib header files.
53384         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53385         macro.
53386         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53387
53388 2008-10-18  Bruno Haible  <bruno@clisp.org>
53389
53390         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53391         * doc/glibc-functions/error.texi: Mention the module 'error'.
53392         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53393         * doc/glibc-functions/getdomainname.texi: Mention the module
53394         'getdomainname'.
53395         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53396         * doc/glibc-functions/getpagesize.texi: Mention the module
53397         'getpagesize'.
53398         * doc/glibc-functions/getusershell.texi: Mention the module
53399         'getusershell'.
53400         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53401         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53402         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53403         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53404         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53405         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53406         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53407         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53408         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53409         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53410         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53411         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53412         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53413         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53414
53415 2008-10-17  Bruno Haible  <bruno@clisp.org>
53416
53417         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53418         HP-UX and IRIX, use -0.0L.
53419         * tests/test-ceill.c (minus_zero): Likewise.
53420         * tests/test-floorl.c (minus_zero): Likewise.
53421         * tests/test-frexpl.c (minus_zero): Likewise.
53422         * tests/test-isnan.c (minus_zerol): Likewise.
53423         * tests/test-isnanl.h (minus_zero): Likewise.
53424         * tests/test-ldexpl.c (minus_zero): Likewise.
53425         * tests/test-roundl.c (minus_zero): Likewise.
53426         * tests/test-signbit.c (minus_zerol): Likewise.
53427         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53428         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53429         * tests/test-truncl.c (minus_zero): Likewise.
53430         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53431         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53432         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53433         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53434
53435 2008-10-17  Bruno Haible  <bruno@clisp.org>
53436
53437         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53438         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53439         that it gets activated only for gcc >= 3.0.
53440         * lib/dirent.in.h: Likewise.
53441         * lib/errno.in.h: Likewise.
53442         * lib/fcntl.in.h: Likewise.
53443         * lib/float.in.h: Likewise.
53444         * lib/iconv.in.h: Likewise.
53445         * lib/inttypes.in.h: Likewise.
53446         * lib/locale.in.h: Likewise.
53447         * lib/math.in.h: Likewise.
53448         * lib/netdb.in.h: Likewise.
53449         * lib/netinet_in.in.h: Likewise.
53450         * lib/search.in.h: Likewise.
53451         * lib/signal.in.h: Likewise.
53452         * lib/spawn.in.h: Likewise.
53453         * lib/stdarg.in.h: Likewise.
53454         * lib/stdint.in.h: Likewise.
53455         * lib/stdio.in.h: Likewise.
53456         * lib/stdlib.in.h: Likewise.
53457         * lib/string.in.h: Likewise.
53458         * lib/strings.in.h: Likewise.
53459         * lib/sys_file.in.h: Likewise.
53460         * lib/sys_ioctl.in.h: Likewise.
53461         * lib/sys_select.in.h: Likewise.
53462         * lib/sys_socket.in.h: Likewise.
53463         * lib/sys_stat.in.h: Likewise.
53464         * lib/sys_time.in.h: Likewise.
53465         * lib/sysexits.in.h: Likewise.
53466         * lib/time.in.h: Likewise.
53467         * lib/unistd.in.h: Likewise.
53468         * lib/wchar.in.h: Likewise.
53469         * lib/wctype.in.h: Likewise.
53470         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53471
53472 2008-10-17  Jim Meyering  <meyering@redhat.com>
53473
53474         ignore-value: don't depend on inline module
53475         * modules/ignore-value (Depends-on): Remove 'inline'.
53476         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53477         Suggestion from Bruno Haible.
53478
53479 2008-10-17  Bruno Haible  <bruno@clisp.org>
53480
53481         New implementation of condition variables for Win32.
53482         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53483         (gl_linked_waitqueue_t): New type.
53484         (gl_cond_t): Use it.
53485         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53486         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53487         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53488         (glthread_cond_init_func, glthread_cond_wait_func,
53489         glthread_cond_timedwait_func, glthread_cond_signal_func,
53490         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53491         Reimplemented on the basis of gl_linked_waitqueue_t.
53492         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53493         gl_waitqueue_t.
53494         (gl_rwlock_t): Update.
53495         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53496
53497 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53498
53499         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53500         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53501
53502 2008-10-17  Jim Meyering  <meyering@redhat.com>
53503
53504         ignore-value: new module
53505         * modules/ignore-value: New file.
53506         * lib/ignore-value.h: New file.
53507         * MODULES.html.sh (Compiler warning management): New section,
53508         just for this module.  More to come.
53509
53510 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53513         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53514         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53515
53516 2008-10-16  Jim Meyering  <meyering@redhat.com>
53517
53518         openat-die.c: avoid 'no previous prototype' warning
53519         * lib/openat-die.c: Include "openat.h".
53520         Reported by Reuben Thomas <rrt@sc3d.org>.
53521
53522 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53523
53524         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53525         * lib/netdb.in.h: Fix typo.
53526         Reported by Bruno Haible  <bruno@clisp.org>
53527
53528         * lib/netdb.in.h: Include sys/socket.h for platforms without
53529         netdb.h, to get structures like hostent on MinGW.
53530         * modules/netdb (Depends-on): Add sys_socket.
53531
53532 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53533
53534         * modules/netdb, modules/netdb-tests: New file.
53535         * m4/netdb_h.m4: New file.
53536         * lib/netdb.in.h: Add, currently just an empty file pending
53537         definitions.
53538         * tests/test-netdb.c: New file.
53539         * doc/posix-headers/netdb.texi: Mention that we replace it if
53540         needed.
53541         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53542         netdb.
53543
53544 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53545
53546         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53547         with code.
53548
53549 2008-10-13  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/glthread/cond.c (glthread_cond_wait_func,
53552         glthread_cond_timedwait_func): Add a comment.
53553
53554 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53555
53556         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53557         * tests/test-select.c: Likewise,
53558
53559 2008-10-13  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/glthread/cond.c (glthread_cond_wait_func,
53562         glthread_cond_timedwait_func): Fix variable name.
53563         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53564
53565 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53566
53567         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53569         struct sockaddr.sa_len.
53570         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53571
53572 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53573
53574         * build-aux/pmccabe2html: Add css and css_url parameters.
53575
53576 2008-10-12  Bruno Haible  <bruno@clisp.org>
53577
53578         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53579         calling aclx_get.
53580         Reported by Rainer Tammer <tammer@tammer.net>.
53581
53582 2008-10-12  Bruno Haible  <bruno@clisp.org>
53583
53584         Use msvcrt aware primitives for creation/termination of Win32 threads.
53585         * lib/glthread/thread.c: Include <process.h>.
53586         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53587         (wrapper_func): Update signature.
53588         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53589
53590 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53591             Bruno Haible  <bruno@clisp.org>
53592
53593         Provide a Win32 implementation of the 'cond' module.
53594         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53595         * lib/glthread/cond.c (glthread_cond_init_func,
53596         glthread_cond_wait_func, glthread_cond_timedwait_func,
53597         glthread_cond_signal_func, glthread_cond_broadcast_func,
53598         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53599         * modules/cond (Dependencies): Add gettimeofday.
53600
53601 2008-10-11  Bruno Haible  <bruno@clisp.org>
53602
53603         Make sleep work on older versions of mingw.
53604         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53605         only whether it exists.
53606         * doc/posix-functions/sleep.texi: Mention the problem with older
53607         versions of mingw.
53608
53609 2008-10-11  Bruno Haible  <bruno@clisp.org>
53610
53611         New module 'shutdown'.
53612         * modules/shutdown: New file.
53613         * lib/sys_socket.in.h (shutdown): New declaration.
53614         * lib/winsock.c (shutdown): New function.
53615         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53616         GNULIB_SHUTDOWN.
53617         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53618         * doc/posix-functions/shutdown.texi: Document the new module.
53619
53620 2008-10-11  Jim Meyering  <meyering@redhat.com>
53621
53622         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53623
53624 2008-10-11  Bruno Haible  <bruno@clisp.org>
53625
53626         New module 'fclose'.
53627         * modules/fclose: New file.
53628         * lib/stdio.in.h (fclose): New declaration.
53629         * lib/fclose.c: New file.
53630         * m4/fclose.m4: New file.
53631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53632         REPLACE_FCLOSE.
53633         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53634         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53635         REPLACE_FCLOSE.
53636         * modules/close (Depends-on): fclose.
53637         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53638
53639 2008-10-11  Bruno Haible  <bruno@clisp.org>
53640
53641         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53642         set errno and don't call _close.
53643
53644 2008-10-10  Bruno Haible  <bruno@clisp.org>
53645
53646         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53647         ACL, not afterwards. Fixes test failure on Cygwin.
53648
53649 2008-10-09  Ben Pfaff  <blp@gnu.org>
53650
53651         * build-aux/announce-gen: Fix gnulib version related part of usage
53652         message.  Die with a useful error message if no tarballs are
53653         found.
53654
53655 2008-10-10  Jim Meyering  <meyering@redhat.com>
53656
53657         bootstrap: use git's --depth=N option only if it's supported
53658         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53659         recognize the --depth option.  Reported by Pádraig Brady.
53660
53661 2008-10-09  Bruno Haible  <bruno@clisp.org>
53662
53663         New module 'ioctl'.
53664         * modules/ioctl: New file.
53665         * lib/sys_socket.in.h (ioctl): Remove declaration.
53666         * lib/winsock.c: Include <sys/ioctl.h>.
53667         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53668         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53669         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53670         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53671         * doc/posix-functions/ioctl.texi: Mention the new module.
53672
53673 2008-10-09  Bruno Haible  <bruno@clisp.org>
53674
53675         New module 'sys_ioctl'.
53676         * lib/sys_ioctl.in.h: New file.
53677         * m4/sys_ioctl_h.m4: New file.
53678         * modules/sys_ioctl: New file.
53679         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53680
53681 2008-10-09  Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53684         * lib/winsock.c: Include <stdarg.h>.
53685         (rpl_ioctl): Change to second argument 'int' and then varargs.
53686
53687 2008-10-09  Bruno Haible  <bruno@clisp.org>
53688
53689         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53690         when the sys_socket module is present and the system has <winsock2.h>.
53691
53692 2008-10-09  Bruno Haible  <bruno@clisp.org>
53693
53694         * doc/posix-functions/close.texi: Mention module 'close' instead of
53695         module 'sys_socket'.
53696
53697 2008-10-09  Bruno Haible  <bruno@clisp.org>
53698
53699         * doc/glibc-headers/sys_ioctl.texi: New file.
53700         * doc/gnulib.texi: Include it.
53701
53702 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53703             Bruno Haible  <bruno@clisp.org>
53704
53705         Combine the two replacements of 'close'.
53706         * lib/sys_socket.in.h (close): Define to a reminder to include
53707         <unistd.h>.
53708         (_gl_close_fd_maybe_socket): New declaration.
53709         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53710         * lib/winsock.c (close): Remove undefinition.
53711         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53712         needed for the gnulib module 'close'.
53713         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53714         define to an error symbol or to a warning, if suitable.
53715         * lib/close.c: Include <sys/socket.h>.
53716         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53717         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53718         UNISTD_H_HAVE_WINSOCK2_H.
53719         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53721         UNISTD_H_HAVE_WINSOCK2_H.
53722         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53723         (configure.ac): Set a module indicator.
53724         (Makefile.am): Substitute GNULIB_CLOSE.
53725         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53726         * modules/poll-tests (Depends-on): Add close.
53727         * modules/select-tests (Depends-on): Likewise.
53728
53729 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53730             Bruno Haible  <bruno@clisp.org>
53731
53732         New module 'close'.
53733         * modules/close: New file.
53734         * lib/unistd.in.h (close): Move declaration out of the
53735         FCHDIR_REPLACEMENT scope.
53736         (_gl_unregister_fd): New declaration.
53737         * lib/close.c: New file.
53738         * lib/fchdir.c (rpl_close): Remove function.
53739         * m4/close.m4: New file.
53740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53741         close.
53742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53743         REPLACE_CLOSE.
53744         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53745         REPLACE_CLOSE.
53746         * modules/fchdir (Depends-on): Add close.
53747
53748 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53749             Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/fcntl.in.h (open): Simplify conditionals.
53752         (_gl_register_fd): New declaration.
53753         * lib/fchdir.c (rpl_open): Remove function.
53754         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53755         also.
53756         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53758         open.
53759
53760 2008-10-09  Jim Meyering  <meyering@redhat.com>
53761
53762         GNUmakefile: use the more name-space-friendly "_version"
53763         * top/GNUmakefile (_dummy): Update.
53764         (_version): Rename from "version".
53765
53766 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53767             Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53770         rpl_close.
53771         (_gl_register_fd): New function, extracted from rpl_open.
53772         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53773         (rpl_open, rpl_opendir): Use _gl_register_fd.
53774
53775 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53776
53777         Fix organization of 'open' replacement.
53778         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53779         (gl_FUNC_OPEN): Use it.
53780         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53781
53782 2008-10-08  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53785
53786 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53787
53788         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53789         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53790         listen).
53791
53792 2008-10-08  Eric Blake  <ebb9@byu.net>
53793
53794         GNUmakefile: add 'make version' target
53795         * top/GNUmakefile (_curr-ver): Split version update rules...
53796         (version): ...into a target.
53797
53798 2008-10-07  Bruno Haible  <bruno@clisp.org>
53799
53800         Use a more portable replacement expression for -0.0L.
53801         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53802         instead of -0.0L. Fix m4 quotation.
53803
53804         * tests/test-signbit.c: Include <float.h>.
53805         (minus_zero): New variable.
53806         (test_signbitl): Use minus_zero instead of -zero.
53807         * modules/signbit-tests (Depends-on): Add float.
53808
53809         * tests/test-ceill.c: Include <float.h>.
53810         (zero): Remove variable.
53811         (minus_zero): New variable.
53812         (main): Use minus_zero instead of -zero.
53813         * modules/ceill-tests (Depends-on): Add float.
53814
53815         * tests/test-floorl.c: Include <float.h>.
53816         (zero): Remove variable.
53817         (minus_zero): New variable.
53818         (main): Use minus_zero instead of -zero.
53819         * modules/floorl-tests (Depends-on): Add float.
53820
53821         * tests/test-roundl.c: Include <float.h>.
53822         (zero): Remove variable.
53823         (minus_zero): New variable.
53824         (main): Use minus_zero instead of -zero.
53825         * modules/roundl-tests (Depends-on): Add float.
53826
53827         * tests/test-truncl.c: Include <float.h>.
53828         (zero): Remove variable.
53829         (minus_zero): New variable.
53830         (main): Use minus_zero instead of -zero.
53831         * modules/truncl-tests (Depends-on): Add float.
53832
53833         * tests/test-frexpl.c (zero): Remove variable.
53834         (minus_zero): New variable.
53835         (main): Use minus_zero instead of -zero.
53836         * modules/frexpl-tests (Depends-on): Add float.
53837
53838         * tests/test-isnan.c (zerol): Remove variable.
53839         (minus_zerol): New variable.
53840         (test_long_double): Use minus_zerol instead of -zerol.
53841         * modules/isnan-tests (Depends-on): Add float.
53842
53843         * tests/test-isnanl.h (zero): Remove variable.
53844         (minus_zero): New variable.
53845         (main): Use minus_zero instead of -zero.
53846         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53847         * modules/isnanl-tests (Depends-on): Add float.
53848
53849         * tests/test-ldexpl.c (zero): Remove variable.
53850         (minus_zero): New variable.
53851         (main): Use minus_zero instead of -zero.
53852         * modules/ldexpl-tests (Depends-on): Add float.
53853
53854         * tests/test-snprintf-posix.h (zerol): Remove variable.
53855         (minus_zerol): New variable.
53856         (test_function): Use minus_zerol instead of -zerol.
53857         * modules/snprintf-posix-tests (Depends-on): Add float.
53858         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53859
53860         * tests/test-sprintf-posix.h (zerol): Remove variable.
53861         (minus_zerol): New variable.
53862         (test_function): Use minus_zerol instead of -zerol.
53863         * modules/sprintf-posix-tests (Depends-on): Add float.
53864         * modules/vsprintf-posix-tests (Depends-on): Add float.
53865
53866         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53867         (minus_zerol): New variable.
53868         (test_function): Use minus_zerol instead of -zerol.
53869         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53870
53871         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53872         (minus_zerol): New variable.
53873         (test_function): Use minus_zerol instead of -zerol.
53874         * modules/vasprintf-posix-tests (Depends-on): Add float.
53875
53876 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53877
53878         * MODULES.html.sh (Support for building documentation): Mention
53879         pmccabe2html.  Sort entries.
53880
53881         Add pmccabe2html module, from gnupdf.
53882         * build-aux/pmccabe.css: New file.
53883         * build-aux/pmccabe2html: New file.
53884         * m4/pmccabe2html.m4: New file.
53885         * modules/pmccabe2html: New file.
53886
53887 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53888
53889         flock: new module
53890         * MODULES.html.sh: Add to list of modules.
53891         * lib/flock.c: flock implementation for Windows and Unix systems
53892         which have fcntl.
53893         * doc/glibc-functions/flock.texi: Update documentation.
53894         * lib/sys_file.in.h: <sys/file.h> header file.
53895         * m4/flock.m4: M4 macros.
53896         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53897         * modules/flock: flock module.
53898         * modules/flock-tests: flock tests module.
53899         * modules/sys_file: sys/file.h module.
53900         * tests/test-flock.c: test suite for flock.
53901
53902 2008-10-06  Jim Meyering  <meyering@redhat.com>
53903
53904         bootstrap: check for LT_INIT more portably still ;-)
53905         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53906         Spotted by Bruno Haible.
53907
53908 2008-10-06  Eric Blake  <ebb9@byu.net>
53909
53910         test-signbit: avoid tripping Irix cc bug on -0.0L
53911         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53912         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53913         entire testsuite consistent and avoids an Irix 6.2 bug.
53914
53915 2008-10-05  Bruno Haible  <bruno@clisp.org>
53916             Jim Meyering  <jim@meyering.net>
53917
53918         Add an option for ignoring EPIPE during close_stdout.
53919         * lib/closeout.h: Include <stdbool.h>.
53920         (close_stdout_set_ignore_EPIPE): New declaration.
53921         * lib/closeout.c: Include <stdbool.h>.
53922         (ignore_EPIPE): New variable.
53923         (close_stdout_set_ignore_EPIPE): New function.
53924         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53925         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53926         failure.
53927         * modules/closeout (Depends-on): Add stdbool.
53928
53929 2008-10-05  Bruno Haible  <bruno@clisp.org>
53930
53931         * modules/accept: New file.
53932         * modules/bind: New file.
53933         * modules/connect: New file.
53934         * modules/getpeername: New file.
53935         * modules/getsockname: New file.
53936         * modules/getsockopt: New file.
53937         * modules/listen: New file.
53938         * modules/recv: New file.
53939         * modules/recvfrom: New file.
53940         * modules/send: New file.
53941         * modules/sendto: New file.
53942         * modules/setsockopt: New file.
53943         * modules/socket: New file.
53944         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53945         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53946         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53947         the particular module is requested. Add a link warning when the
53948         particular module is not requested.
53949         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53950         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53951         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53952         the particular module is requested.
53953         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53954         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53955         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53956         * modules/sys_socket (Depends-on): Add link-warning.
53957         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53958         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53959         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53960         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53961         GL_LINK_WARNING.
53962         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53963         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53964         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53965         * doc/posix-functions/getpeername.texi: Mention the new module
53966         'getpeername'.
53967         * doc/posix-functions/getsockname.texi: Mention the new module
53968         'getsockname'.
53969         * doc/posix-functions/getsockopt.texi: Mention the new module
53970         'getsockopt'.
53971         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53972         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53973         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53974         * doc/posix-functions/send.texi: Mention the new module 'send'.
53975         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53976         * doc/posix-functions/setsockopt.texi: Mention the new module
53977         'setsockopt'.
53978         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53979         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53980         listen, connect, accept.
53981         * modules/select-tests (Depends-on): Likewise.
53982
53983 2008-10-05  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/winsock.c (strerror): Remove unused #undef.
53986         (rpl_close): Remove unused local variable.
53987
53988         * modules/sys_socket (Depends-on); Add errno.
53989
53990 2008-10-05  Bruno Haible  <bruno@clisp.org>
53991
53992         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53993         (select): Add a link warning when the 'select' module is not used.
53994         * modules/sys_select (Depends-on): Add link-warning.
53995         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53996         Suggested by Paolo Bonzini.
53997
53998 2008-10-05  Jim Meyering  <meyering@redhat.com>
53999
54000         bootstrap: check for LT_INIT more portably
54001         * build-aux/bootstrap: Avoid using grep -E, since it's not
54002         portable enough.  Suggestion from Bruno Haible.
54003
54004 2008-10-05  Bruno Haible  <bruno@clisp.org>
54005
54006         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54007         as being fixed by gnulib.
54008
54009 2008-10-05  Bruno Haible  <bruno@clisp.org>
54010
54011         * modules/select-tests: New file, mostly copied from
54012         modules/sys_select-tests.
54013         * tests/test-select.c: New file, mostly copied from
54014         tests/test-sys_select.c.
54015         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54016         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54017         (Makefile.am): Remove test_sys_select_LDADD.
54018
54019         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54020         to an undefined symbol, for an error message.
54021         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54022         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54023         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54024         winsock-select.c here.
54025         * modules/sys_select (Files): Remove lib/winsock-select.c.
54026         (Depends-on): Remove alloca.
54027         (Makefile.am): Substitute GNULIB_SELECT.
54028         * modules/select: New file.
54029         * doc/posix-functions/select.texi: Update.
54030
54031 2008-10-05  Bruno Haible  <bruno@clisp.org>
54032
54033         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54034         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54035         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54036         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54037         getdtablesize.
54038         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54039         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54040
54041 2008-10-05  Bruno Haible  <bruno@clisp.org>
54042
54043         * modules/getdtablesize-tests: New file.
54044         * tests/test-getdtablesize.c: New file.
54045
54046         New module 'getdtablesize'.
54047         * lib/unistd.in.h (getdtablesize): New declaration.
54048         * lib/getdtablesize.c: New file.
54049         * m4/getdtablesize.m4: New file.
54050         * modules/getdtablesize: New file.
54051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54052         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54053         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54054         HAVE_GETDTABLESIZE.
54055         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54056
54057 2008-10-05  Bruno Haible  <bruno@clisp.org>
54058
54059         * modules/sched (Makefile.am): Fix typo.
54060         Reported by Simon Josefsson.
54061
54062 2008-10-05  Jim Meyering  <meyering@redhat.com>
54063
54064         bootstrap: check for LT_INIT, too
54065         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54066         are deprecated.  Suggestion from Ralf Wildenhues.
54067
54068 2008-10-05  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54071         overriding them by ours.
54072         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54073
54074 2008-10-05  Jim Meyering  <meyering@redhat.com>
54075
54076         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54077         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54078         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54079
54080 2008-10-04  Bruno Haible  <bruno@clisp.org>
54081
54082         * modules/dup2 (License): Change to LGPLv2+.
54083         * modules/sleep (License): Likewise.
54084         * modules/perror (License): Likewise.
54085         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54086         Blake.
54087         * modules/signal (License): Likewise.
54088         * modules/sigprocmask (License): Likewise.
54089         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54090         Meyering.
54091
54092 2008-10-04  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54095         Reported by Rainer Tammer <tammer@tammer.net>.
54096
54097 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54098             Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54101         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54102         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54103
54104 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54105
54106         filevercmp: new module
54107         * lib/filevercmp.h: New function filevercmp comparing version strings.
54108         * lib/filevercmp.c: Implementation of filevercmp function.
54109         * modules/filevercmp: Module metadata.
54110         * tests/test-filevercmp.c: Unit test for new module.
54111         * modules/filevercmp-tests: Unit test metadata.
54112         * MODULES.html.sh: Add filevercmp module.
54113
54114 2008-10-03  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/c-ctype.h: Add comment.
54117         Reported by Jim Meyering.
54118
54119 2008-10-02  Bruno Haible  <bruno@clisp.org>
54120
54121         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54122
54123 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54124
54125         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54126         name of bootstrap.conf accordingly.
54127
54128 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54129
54130         * build-aux/bootstrap: Install git-merge-changelog configuration
54131         items into .gitconfig if needed.
54132
54133 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54134
54135         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54136         git repository, and initialize/update it accordingly.
54137
54138 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54139
54140         * modules/fsync-tests: New file.
54141         * tests/test-fsync.c: New file.
54142
54143         New module 'fsync'.
54144         * lib/fsync.c: New file.
54145         * m4/fsync.m4: New file.
54146         * modules/fsync: New file.
54147         * lib/unistd.in.h (fsync): New declaration.
54148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54149         GNULIB_FSYNC and HAVE_FSYNC.
54150         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54151         * MODULES.html.sh (posix_functions): Add fsync.
54152         * doc/posix-functions/fsync.texi: Mention the new module.
54153
54154 2008-10-02  Jim Meyering  <meyering@redhat.com>
54155
54156         fts.c: sync with similar code from coreutils' remove.c
54157         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54158         Guard also with "#if defined __linux__", since for now at least,
54159         this code is Linux-kernel-specific.
54160
54161 2008-10-02  Jim Meyering  <meyering@redhat.com>
54162
54163         fts: bug fixes
54164         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54165         Include <sys/vfs.h>, not <sys/statfs.h>.
54166
54167         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54168         Include <sys/vfs.h>, not <sys/statfs.h>.
54169
54170 2008-10-01  Bruno Haible  <bruno@clisp.org>
54171
54172         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54174         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54175         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54176         * doc/posix-functions/posix_spawnp.texi: Likewise.
54177         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54178         whether posix_spawn actually works.
54179         * m4/pipe.m4 (gl_PIPE): Likewise.
54180         * modules/execute (Files): Add m4/posix_spawn.m4.
54181         * modules/pipe (Files): Add m4/posix_spawn.m4.
54182         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54183
54184 2008-10-01  Jim Meyering  <meyering@redhat.com>
54185
54186         remove trailing spaces
54187         * NEWS: Likewise.
54188         * lib/poll.c (poll): Likewise.
54189         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54190         * lib/winsock.c (rpl_close): Likewise.
54191         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54192         * modules/yield: Likewise.
54193         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54194         * tests/test-sys_select.c (connect_to_socket): Likewise.
54195
54196         fts.c: adjust a new interface to be more generally useful
54197         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54198         (fts_build): Adjust caller.
54199
54200 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54201
54202         * modules/cond-tests: New file.
54203         * tests/test-cond.c: New file.
54204
54205 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54206             Bruno Haible  <bruno@clisp.org>
54207
54208         * modules/cond (Dependencies): Add errno, time.
54209         * lib/glthread/cond.h: Include <time.h>.
54210         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54211         across platforms.
54212
54213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54214             Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54217
54218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54219             Bruno Haible  <bruno@clisp.org>
54220
54221         * modules/tls-tests (Depends-on): Add thread, yield.
54222         (configure.ac): Remove all checks.
54223         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54224         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54225         gl_thread_self): Remove definitions. Include glthread/thread.h and
54226         glthread/yield.h instead.
54227         (test_tls): Pass an additional NULL argument to gl_thread_join.
54228
54229 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54230             Bruno Haible  <bruno@clisp.org>
54231
54232         * modules/lock-tests (Depends-on): Add thread, yield.
54233         (configure.ac): Remove all checks.
54234         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54235         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54236         gl_thread_self): Remove definitions. Include glthread/thread.h and
54237         glthread/yield.h instead.
54238         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54239         additional NULL argument to gl_thread_join.
54240
54241 2008-09-30  Bruno Haible  <bruno@clisp.org>
54242
54243         Fix the Win32 implementation of the 'thread' module.
54244         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54245         pointer type.
54246         (gl_thread_self): Invoke gl_thread_self_func.
54247         (gl_thread_self_func): New declaration.
54248         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54249         (do_init_self_key, init_self_key): New functions.
54250         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54251         Remove some fields.
54252         (running_threads, running_lock): Remove variables.
54253         (get_current_thread_handle): New function.
54254         (gl_thread_self_func, wrapper_func, glthread_create_func,
54255         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54256         simplified.
54257
54258 2008-09-30  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54261         files.
54262
54263 2008-09-30  Jim Meyering  <meyering@redhat.com>
54264
54265         fts.m4: correct the test for statfs.f_type
54266         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54267         when checking for statfs.f_type.
54268
54269 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54270
54271         tests: avoid some compiler warnings
54272         * tests/test-memchr.c (main): Pass NULL indirectly.
54273         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54274
54275 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
54276
54277         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54278         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54279         exactly specified dayshifts.
54280         (dayshift): New rule.
54281         (rel): Add dayshift.
54282         (relative_time_table) [tomorrow, yesterday, today, now]:
54283         Use tDAY_SHIFT in place of tDAY_UNIT.
54284         * tests/test-getdate.c: Add tests for now-disallowed countable
54285         dayshifts, e.g., "4 yesterday ago".
54286
54287 2008-09-29  Bruno Haible  <bruno@clisp.org>
54288
54289         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54290         * tests/test-posix_spawn1.in.sh: Renamed from
54291         tests/test-posix_spawn.in.sh.
54292         * tests/test-posix_spawn2.c: New file.
54293         * tests/test-posix_spawn2.in.sh: New file.
54294         * modules/posix_spawnp-tests (Files): Update.
54295         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54296
54297 2008-09-29  Bruno Haible  <bruno@clisp.org>
54298
54299         Propagate effects of putenv/setenv/unsetenv to child processes.
54300         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54301         * lib/pipe.c (create_pipe): Likewise.
54302
54303 2008-09-29  Bruno Haible  <bruno@clisp.org>
54304
54305         Enable use of shell scripts as executables in mingw.
54306         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54307         run the program as a shell script.
54308         * lib/pipe.c (create_pipe): Likewise.
54309         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54310         resulting array.
54311
54312 2008-09-29  Eric Blake  <ebb9@byu.net>
54313
54314         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54315
54316 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54317
54318         * doc/posix-functions/accept.texi: Update mingw problems.
54319         * doc/posix-functions/bind.texi: Update mingw problems.
54320         * doc/posix-functions/close.texi: Update mingw problems.
54321         * doc/posix-functions/connect.texi: Update mingw problems.
54322         * doc/posix-functions/getpeername.texi: Update mingw problems.
54323         * doc/posix-functions/getsockname.texi: Update mingw problems.
54324         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54325         * doc/posix-functions/ioctl.texi: Update mingw problems.
54326         * doc/posix-functions/listen.texi: Update mingw problems.
54327         * doc/posix-functions/recv.texi: Update mingw problems.
54328         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54329         * doc/posix-functions/select.texi: Update mingw problems.
54330         * doc/posix-functions/send.texi: Update mingw problems.
54331         * doc/posix-functions/sendto.texi: Update mingw problems.
54332         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54333         * doc/posix-functions/socket.texi: Update mingw problems.
54334
54335 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54336             Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/sys_select.in.h: Include sys/time.h.
54339         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54340         * modules/sys_select: Depend on sys_time.
54341         * tests/test-sys_select.c: Test that sys/select.h defines struct
54342         timeval fully.
54343
54344 2008-09-29  Bruno Haible  <bruno@clisp.org>
54345
54346         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54347         * lib/sys_select.in.h: Likewise.
54348
54349 2008-09-29  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54352
54353 2008-09-29  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54356         Set LIBSOCKET instead of augmenting LIBS.
54357         * modules/sockets (Link): New section.
54358         * modules/sockets-tests (test_sockets_LDADD): New variable.
54359         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54360         * modules/poll-tests (test_poll_LDADD): New variable.
54361         * NEWS: Document the change.
54362
54363 2008-09-29  Bruno Haible  <bruno@clisp.org>
54364
54365         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54366         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54367         ARPA_INET_H directly.
54368         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54369
54370 2008-09-28  Bruno Haible  <bruno@clisp.org>
54371
54372         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54373         from gl_HEADER_SYS_SOCKET.
54374         (gl_HEADER_SYS_SOCKET): Invoke it.
54375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54376
54377 2008-09-28  Bruno Haible  <bruno@clisp.org>
54378
54379         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54380         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54381         Needed on OSF/1 4.0.
54382
54383 2008-09-28  Bruno Haible  <bruno@clisp.org>
54384
54385         Override open more carefully.
54386         * lib/open.c (orig_open): New function.
54387         (rpl_open): Use orig_open instead of open.
54388         * lib/fcntl.in.h: Add special invocation convention.
54389         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54390         (gl_FUNC_OPEN): Invoke it.
54391
54392         Override freopen more carefully.
54393         * lib/freopen.c (orig_freopen): New function.
54394         (rpl_freopen): Use orig_freopen instead of freopen.
54395         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54396         (gl_FUNC_FREOPEN): Invoke it.
54397
54398         Override fopen more carefully.
54399         * lib/fopen.c (orig_fopen): New function.
54400         (rpl_fopen): Use orig_fopen instead of fopen.
54401         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54402         (gl_FUNC_FOPEN): Invoke it.
54403         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54404
54405 2008-09-28  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54408         SIGPIPE.
54409
54410 2008-09-28  Bruno Haible  <bruno@clisp.org>
54411
54412         * tests/test-sigaction.c (handler, main): Disable the check whether
54413         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54414         glibc systems with LinuxThreads.
54415
54416 2008-09-28  Bruno Haible  <bruno@clisp.org>
54417
54418         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54419
54420         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54421         with AIX xlc.
54422         * lib/fcntl.in.h (open): Likewise.
54423         Reported by Rainer Tammer <tammer@tammer.net>.
54424
54425 2008-09-28  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/posix_spawnp-tests: New file.
54428         * tests/test-posix_spawn.c: New file.
54429         * tests/test-posix_spawn.in.sh: New file.
54430
54431         New module 'posix_spawnp'.
54432         * modules/posix_spawnp: New file.
54433         * lib/spawnp.c: New file, from GNU libc with modifications.
54434         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54435
54436         New module 'posix_spawn'.
54437         * modules/posix_spawn: New file.
54438         * lib/spawn.c: New file, from GNU libc with modifications.
54439         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54440
54441         New module 'posix_spawnattr_destroy'.
54442         * modules/posix_spawnattr_destroy: New file.
54443         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54444         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54445         module.
54446
54447         New module 'posix_spawnattr_setsigmask'.
54448         * modules/posix_spawnattr_setsigmask: New file.
54449         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54450         modifications.
54451         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54452         new module.
54453
54454         New module 'posix_spawnattr_getsigmask'.
54455         * modules/posix_spawnattr_getsigmask: New file.
54456         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54457         modifications.
54458         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54459         new module.
54460
54461         New module 'posix_spawnattr_setsigdefault'.
54462         * modules/posix_spawnattr_setsigdefault: New file.
54463         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54464         modifications.
54465         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54466         new module.
54467
54468         New module 'posix_spawnattr_getsigdefault'.
54469         * modules/posix_spawnattr_getsigdefault: New file.
54470         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54471         modifications.
54472         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54473         new module.
54474
54475         New module 'posix_spawnattr_setschedpolicy'.
54476         * modules/posix_spawnattr_setschedpolicy: New file.
54477         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54478         modifications.
54479         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54480         new module.
54481
54482         New module 'posix_spawnattr_getschedpolicy'.
54483         * modules/posix_spawnattr_getschedpolicy: New file.
54484         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54485         modifications.
54486         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54487         new module.
54488
54489         New module 'posix_spawnattr_setschedparam'.
54490         * modules/posix_spawnattr_setschedparam: New file.
54491         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54492         modifications.
54493         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54494         new module.
54495
54496         New module 'posix_spawnattr_getschedparam'.
54497         * modules/posix_spawnattr_getschedparam: New file.
54498         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54499         modifications.
54500         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54501         new module.
54502
54503         New module 'posix_spawnattr_setpgroup'.
54504         * modules/posix_spawnattr_setpgroup: New file.
54505         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54506         modifications.
54507         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54508         module.
54509
54510         New module 'posix_spawnattr_getpgroup'.
54511         * modules/posix_spawnattr_getpgroup: New file.
54512         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54513         modifications.
54514         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54515         module.
54516
54517         New module 'posix_spawnattr_setflags'.
54518         * modules/posix_spawnattr_setflags: New file.
54519         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54520         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54521         module.
54522
54523         New module 'posix_spawnattr_getflags'.
54524         * modules/posix_spawnattr_getflags: New file.
54525         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54526         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54527         module.
54528
54529         New module 'posix_spawnattr_init'.
54530         * modules/posix_spawnattr_init: New file.
54531         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54532         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54533         module.
54534
54535         New module 'posix_spawn_file_actions_destroy'.
54536         * modules/posix_spawn_file_actions_destroy: New file.
54537         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54538         modifications.
54539         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54540         the new module.
54541
54542         New module 'posix_spawn_file_actions_addopen'.
54543         * modules/posix_spawn_file_actions_addopen: New file.
54544         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54545         modifications.
54546         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54547         the new module.
54548
54549         New module 'posix_spawn_file_actions_adddup2'.
54550         * modules/posix_spawn_file_actions_adddup2: New file.
54551         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54552         modifications.
54553         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54554         the new module.
54555
54556         New module 'posix_spawn_file_actions_addclose'.
54557         * modules/posix_spawn_file_actions_addclose: New file.
54558         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54559         modifications.
54560         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54561         the new module.
54562
54563         New module 'posix_spawn_file_actions_init'.
54564         * modules/posix_spawn_file_actions_init: New file.
54565         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54566         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54567         new module.
54568
54569         New module 'posix_spawn-internal'.
54570         * modules/posix_spawn-internal: New file.
54571         * lib/spawn_int.h: New file, from GNU libc with modifications.
54572         * lib/spawni.c: New file, from GNU libc with modifications.
54573         * m4/posix_spawn.m4: New file.
54574
54575         New module 'spawn'.
54576         * modules/spawn: New file.
54577         * lib/spawn.in.h: New file, from GNU libc with modifications.
54578         * m4/spawn_h.m4: New file.
54579         * doc/posix-headers/spawn.texi: Mention the new module.
54580
54581 2008-09-28  Bruno Haible  <bruno@clisp.org>
54582
54583         * modules/sched-tests: New file.
54584         * tests/test-sched.c: New file.
54585
54586         New module 'sched'.
54587         * modules/sched: New file.
54588         * lib/sched.in.h: New file.
54589         * m4/sched_h.m4: New file.
54590         * doc/posix-headers/sched.texi: Mention the new module.
54591
54592 2008-09-27  Eric Blake  <ebb9@byu.net>
54593
54594         Fix previous patch, and tweak references to $0.
54595         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54596         (func_version, func_gnulib_dir): Don't call this program
54597         gnulib-tool.
54598         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54599         with using $0 in function.
54600         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54601         (func_fatal_error): Reuse the name the user invoked us with.
54602
54603 2008-09-27  Bruno Haible  <bruno@clisp.org>
54604
54605         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54606         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54607         (gl_ICONV_H): Not here.
54608         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54609         instead of assigning ICONV_H directly.
54610
54611         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54613         WCHAR_H directly.
54614
54615 2008-09-27  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54618         * modules/arpa_inet (Depends-on): Add link-warning.
54619         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54620         * modules/unistd (Makefile.am): Likewise.
54621
54622 2008-09-26  Bruno Haible  <bruno@clisp.org>
54623
54624         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54625         variables.
54626         (func_version): Essentially copied from gnulib-tool.
54627         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54628         func_readlink): Copied from gnulib-tool.
54629
54630 2008-09-26  Bruno Haible  <bruno@clisp.org>
54631
54632         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54633         invoking git-version-gen.
54634
54635 2008-09-26  Bruno Haible  <bruno@clisp.org>
54636
54637         * posix-modules: Update to directory names changed on 2008-01-19.
54638         Remove commas in output before splitting into words. No more need to
54639         avoid 'ftruncate' since 2007-02-19.
54640
54641 2008-09-26  Bruno Haible  <bruno@clisp.org>
54642
54643         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54644
54645 2008-09-26  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54648         * modules/fwriteerror (Depends-on): Add errno.
54649
54650 2008-09-26  Bruno Haible  <bruno@clisp.org>
54651
54652         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54653         * tests/test-vc-list-files-cvs.sh: Likewise.
54654
54655 2008-09-26  Bruno Haible  <bruno@clisp.org>
54656
54657         * doc/posix-headers/sys_resource.texi: Reorder items.
54658
54659 2008-09-26  Jim Meyering  <meyering@redhat.com>
54660
54661         fts: tweak inode comparison function
54662         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54663         inode numbers, as documented.
54664
54665         fts: sort dirent entries on inode number before traversing
54666         This avoids a quadratic, seek-related performance penalty when
54667         operating on a directory containing many entries (measurable at 10k;
54668         3.5 hours at 2 million entries with a cold cache) on certain types
54669         of file systems, including ext3 and ext4, but not tmpfs.
54670         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54671         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54672         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54673         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54674         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54675         (fts_build): Set the stat.st_ino member from D_INO.
54676         If it is likely to be useful, sort dirent entries on inode number.
54677
54678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54679         and the struct statfs.f_type member.
54680         * modules/fts (Depends-on): Add d-ino.
54681
54682 2008-09-26  Bruno Haible  <bruno@clisp.org>
54683
54684         * modules/sigpipe-die (Depends-on): Add sigpipe.
54685
54686         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54687         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54688         and GNULIB_STDIO_H_SIGPIPE are set.
54689         * lib/stdio-write.c: New file.
54690         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54691         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54692         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54693         REPLACE_STDIO_WRITE_FUNCS.
54694         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54695         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54696         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54697         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54698         * modules/stdio (Files): Add lib/stdio-write.c.
54699         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54700         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54701         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54702         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54703         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54704         REPLACE_FPRINTF_POSIX.
54705         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54706         REPLACE_PRINTF_POSIX.
54707         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54708         REPLACE_VFPRINTF_POSIX.
54709         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54710         REPLACE_VPRINTF_POSIX.
54711         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54712         SIGPIPE issue.
54713         * doc/posix-functions/fputc.texi: Likewise.
54714         * doc/posix-functions/fputs.texi: Likewise.
54715         * doc/posix-functions/fwrite.texi: Likewise.
54716         * doc/posix-functions/printf.texi: Likewise.
54717         * doc/posix-functions/putc.texi: Likewise.
54718         * doc/posix-functions/putchar.texi: Likewise.
54719         * doc/posix-functions/puts.texi: Likewise.
54720         * doc/posix-functions/vfprintf.texi: Likewise.
54721         * doc/posix-functions/vprintf.texi: Likewise.
54722
54723         * modules/safe-write (Depends-on): Add write.
54724
54725         * modules/sigpipe-tests: New file.
54726         * tests/test-sigpipe.c: New file.
54727         * tests/test-sigpipe.sh: New file.
54728
54729         * modules/write: New file.
54730         * lib/unistd.in.h: Include <sys/types.h>.
54731         (write): New declaration.
54732         * lib/write.c: New file.
54733         * m4/write.m4: New file.
54734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54735         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54736         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54737         GNULIB_WRITE, REPLACE_WRITE.
54738         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54739         and the SIGPIPE issue.
54740
54741         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54742         (raise): New declaration.
54743         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54744         (ext_signal): New function.
54745         (rpl_raise): New function.
54746         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54747         GNULIB_SIGNAL_H_SIGPIPE.
54748         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54749         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54750
54751         * modules/sigpipe: New file.
54752         * m4/sigpipe.m4: New file.
54753
54754 2008-09-25  Derek Price  <derek@ximbiot.com>
54755             Bruno Haible  <bruno@clisp.org>
54756
54757         * gnulib-tool (func_import): Report all license incompatibilities, not
54758         just the first one.
54759
54760 2008-09-25  Bruno Haible  <bruno@clisp.org>
54761
54762         * gnulib-tool (func_import): When computing the edits, consider not
54763         only the Makefile.ams that exist but also those that will be generated.
54764
54765 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54766
54767         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54768         fixes gnulib-tool --test warning about duplicate dependency.
54769
54770 2008-09-25  Bruno Haible  <bruno@clisp.org>
54771
54772         * gnulib-tool: Don't ask the user to perform edits in the generated
54773         Makefile.ams.
54774         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54775         apply to the Makefile.am being generated.
54776         (func_emit_tests_Makefile_am): Execute edits that apply to the
54777         Makefile.am being generated.
54778         (func_import): Setup list of Makefile.am edits before emitting the
54779         Makefile.ams, not at the end.
54780         (func_create_testdir): Update.
54781         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54782
54783 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54784
54785         * gnulib-tool (func_import): Store the --tests-base option in the
54786         comment in gnulib-cache.m4.
54787
54788 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54789
54790         * NEWS: Document increased portability that sys_select now provides.
54791
54792         * lib/sys_select.in.h: Install select wrapper.
54793         * lib/sys_socket.in.h: Use more descriptive name when there is no
54794         select wrapper.
54795         * lib/winsock-select.c: New.
54796         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54797         Require gl_HEADER_SYS_SOCKET.
54798         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54799         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54800         * tests/test-sys_select.c: Add functional tests.
54801
54802 2008-09-24  Eric Blake  <ebb9@byu.net>
54803
54804         open, fopen: close fd leak in last patch
54805         * lib/open.c (rpl_open): Close fd before returning error.
54806         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54807         * doc/posix-functions/open.texi (open): Document that Irix also
54808         has the bug.
54809         * doc/posix-functions/fopen.texi (fopen): Likewise.
54810         Reported by Paolo Bonzini.
54811
54812 2008-09-24  Bruno Haible  <bruno@clisp.org>
54813
54814         Ensure that a filename ending in a slash cannot be used to access a
54815         non-directory.
54816         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54817         to check whether it's really a directory.
54818         * lib/fopen.c: Include fcntl.h, unistd.h.
54819         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54820         and fdopen().
54821         * modules/fopen (Depends-on): Add unistd.
54822         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54823         * tests/test-fopen.c (main): Likewise.
54824         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54825         * doc/posix-functions/fopen.texi: Likewise.
54826         Reported by Eric Blake.
54827
54828 2008-09-23  Eric Blake  <ebb9@byu.net>
54829
54830         c-stack: avoid compiler optimizations when provoking overflow
54831         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54832         recursion harder to optimize, to ensure a stack overflow occurs.
54833         * tests/test-c-stack.c (recurse): Likewise.
54834         Borrowed from libsigsegv.
54835
54836         c-stack: work around Irix sigaltstack bug
54837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54838         whether sigaltstack uses wrong end of stack_t (copied in part from
54839         libsigsegv).
54840         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54841         Irix bug, without requiring an over-allocation.
54842         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54843         bug.
54844
54845         fopen: document mingw bug on directories
54846         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54847         not allowing a stream visiting a directory, even though reading
54848         from such a stream is not portable.
54849
54850 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54851
54852         * lib/poll.c: Rewrite.
54853         * modules/poll: Depend on alloca.
54854
54855 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54856
54857         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54858         instead define prototypes for a full set of wrappers.  Ensure
54859         that Cygwin does not use the compatibility code, which is only
54860         for MinGW.
54861         * lib/winsock.c: New.
54862         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54863         * modules/sys_socket: Add lib/winsock.c.
54864
54865         * modules/poll-tests: Add errno and perror.
54866         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54867
54868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54869
54870         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54871
54872 2008-09-23  Bruno Haible  <bruno@clisp.org>
54873
54874         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54875         * doc/glibc-functions/*: Likewise.
54876
54877 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54878
54879         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54880         success.
54881
54882 2008-09-22  Eric Blake  <ebb9@byu.net>
54883             Bruno Haible  <bruno@clisp.org>
54884
54885         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54886         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54887         supply %A but mishandle pseudo-NaN.
54888         Reported by Simon Josefsson.
54889
54890 2008-09-21  Bruno Haible  <bruno@clisp.org>
54891
54892         * tests/test-lock.c (main): Tweak skip message.
54893         * tests/test-tls.c (main): Likewise.
54894
54895 2008-09-21  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54898         whether 'struct sigaction' has sa_sigaction here...
54899         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54900         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54901
54902 2008-09-21  Bruno Haible  <bruno@clisp.org>
54903
54904         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54905         section.
54906         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54907         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54908         the new section.
54909         (Support for obsolete systems lacking POSIX:2001): New section.
54910         (String handling <string.h>): Move strdup to the new section.
54911         Suggested by Simon Josefsson and Paolo Bonzini.
54912
54913 2008-09-21  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54916         exponents in %e and %g results on 'long double'. Needed for mingw's
54917         improved *printf functions.
54918         * tests/test-vasprintf-posix.c (test_function): Likewise.
54919         * tests/test-snprintf-posix.h (test_function): Likewise.
54920         * tests/test-sprintf-posix.h (test_function): Likewise.
54921         Reported by Eric Blake.
54922
54923 2008-09-21  Bruno Haible  <bruno@clisp.org>
54924
54925         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54926         * tests/test-sprintf-posix.h (test_function): Likewise.
54927
54928 2008-09-21  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/getpass (Depends-on): Add strdup-posix.
54931
54932         New module 'strdup-posix'.
54933         * modules/strdup-posix: New file.
54934         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54935         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54937         REPLACE_STRDUP.
54938         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54939         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54941         strdup-posix.
54942
54943         * modules/strdup (Depends-on): Remove malloc-posix.
54944
54945 2008-09-20  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54948         Wildenhues.
54949
54950 2008-09-20  Bruno Haible  <bruno@clisp.org>
54951
54952         Ensure that wint_t gets defined on IRIX 5.3.
54953         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54954         * lib/wctype.in.h (wint_t): Likewise.
54955         (__wctype_wint_t): Remove type.
54956         (isw*): Use wint_t instead of __wctype_wint_t.
54957         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54958         * modules/wchar (Files): Add m4/wint_t.m4.
54959         (Makefile.am): Substitute HAVE_WINT_T.
54960         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54961         * tests/test-wctype.c: Check that wint_t is defined.
54962         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54963         * doc/posix-headers/wctype.texi: Likewise.
54964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54965
54966 2008-09-18  Bruno Haible  <bruno@clisp.org>
54967
54968         * gnulib-tool (func_exit): Update comment.
54969
54970 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54971
54972         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54973         assumes strdup exists and does not depend on strdup to return
54974         ENOMEM on out of memory conditions.
54975
54976 2008-09-18  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
54979         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54980         digits for the exponent.
54981
54982 2008-09-18  Jim Meyering  <meyering@redhat.com>
54983             Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/vasnprintf.c (decimal_point_char): Define also if
54986         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54987
54988 2008-09-16  Bruno Haible  <bruno@clisp.org>
54989         and Eric Blake  <ebb9@byu.net>
54990
54991         vasnprintf: support Irix 5.3
54992         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54993         that mishandle long double infinity.
54994         Reported by Tom G. Christensen.
54995
54996 2008-09-16  Bruno Haible  <bruno@clisp.org>
54997
54998         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54999         Solaris 9.
55000         * doc/glibc-functions/alphasort.texi: Likewise.
55001         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55002
55003 2008-09-16  Jim Meyering  <meyering@redhat.com>
55004
55005         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55006         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55007         a umask modification leak out of a subshell.  Otherwise, the
55008         opensolaris /bin/sh would be accepted and thus cause unwarranted
55009         failures in the coreutils test suite.
55010
55011 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55012
55013         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55014         to succeed.
55015
55016 2008-09-16  Jim Meyering  <meyering@redhat.com>
55017
55018         avoid spurious test failure when library is built without ACL support
55019         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55020         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55021         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55022         * tests/test-copy-acl.sh: Likewise.
55023
55024 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55025
55026         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55027         based on character occurrence counts.
55028
55029 2008-09-15  Eric Blake  <ebb9@byu.net>
55030
55031         tests: avoid some compiler warnings
55032         * tests/test-memchr.c (main): Pass NULL indirectly.
55033         * tests/test-closein.c (main): Avoid unused variable.
55034
55035 2008-09-15  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55038         are missing on OpenBSD 4.0 individually.
55039         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55040
55041 2008-09-15  Bruno Haible  <bruno@clisp.org>
55042
55043         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55044         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55045         * doc/posix-functions/perror.texi: Likewise.
55046         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55047         is missing.
55048         Reported by Eric Blake.
55049
55050         * lib/errno.in.h: Use replacement values >= 2000.
55051         Reported by Eric Blake.
55052
55053 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55054
55055         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55056         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55057         limit.
55058         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55059         compareseq was aborted.
55060
55061 2008-09-14  Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55064         yvec_edit_count.
55065         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55066         (fstrcmp_bounded): Simplify result computation accordingly.
55067
55068 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55069
55070         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55071         (fstrcmp): Define in terms of fstrcmp_bounded.
55072         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55073         lower_bound argument.
55074         Return quickly if the result is certainly < lower_bound.
55075         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55076
55077 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55078
55079         * lib/diffseq.h (EARLY_ABORT): New macro.
55080         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55081         evaluates to true.
55082
55083 2008-09-14  Bruno Haible  <bruno@clisp.org>
55084
55085         * modules/perror-tests: New file.
55086         * tests/test-perror.sh: New file.
55087         * tests/test-perror.c: New file.
55088
55089         New module 'perror'.
55090         * lib/stdio.in.h (perror): New declaration.
55091         * lib/perror.c: New file.
55092         * m4/perror.m4: New file.
55093         * modules/perror: New file.
55094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55095         * doc/posix-functions/perror.texi: Mention the perror module.
55096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55097         REPLACE_PERROR.
55098         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55099         REPLACE_PERROR.
55100
55101 2008-09-14  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/stdio (Makefile.am): Reorder to match the order in
55104         lib/stdio.in.h.
55105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55106
55107 2008-09-13  Bruno Haible  <bruno@clisp.org>
55108
55109         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55110
55111 2008-09-13  Bruno Haible  <bruno@clisp.org>
55112
55113         Extend strerror to cover the added errno values.
55114         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55115         (rpl_strerror): Provide error messages for the added errno values and
55116         for the WSA* values.
55117         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55118         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55119         strerror.
55120         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55121         * modules/strerror (Depends-on): Add errno.
55122         * doc/posix-functions/strerror.texi: Document the change.
55123         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55124         and EOVERFLOW.
55125
55126 2008-09-13  Bruno Haible  <bruno@clisp.org>
55127
55128         * modules/EOVERFLOW: Remove file.
55129         * m4/eoverflow.m4: Remove file.
55130         * modules/EOVERFLOW-tests: Remove file.
55131         * tests/test-EOVERFLOW.c: Remove file.
55132         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55133         * modules/ftell (Depends-on): Likewise.
55134         * modules/getdelim (Depends-on): Likewise.
55135         * modules/getugroups (Depends-on): Likewise.
55136         * modules/poll (Depends-on): Likewise.
55137         * modules/snprintf (Depends-on): Likewise.
55138         * modules/sprintf-posix (Depends-on): Likewise.
55139         * modules/vasnprintf (Depends-on): Likewise.
55140         * modules/vasprintf (Depends-on): Likewise.
55141         * modules/vfprintf-posix (Depends-on): Likewise.
55142         * modules/vsnprintf (Depends-on): Likewise.
55143         * modules/vsprintf-posix (Depends-on): Likewise.
55144         * modules/xvasprintf (Depends-on): Likewise.
55145         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55146         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55147         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55148         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55150         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55151         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55152         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55153         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55154         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55155         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55156         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55157         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55158         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55159         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55160         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55161         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55162         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55163         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55164         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55165         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55166         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55167         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55168         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55169         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55171         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55172         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55173         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55174         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55175         * MODULES.html.sh: Remove EOVERFLOW.
55176         * NEWS: Mention the change.
55177
55178 2008-09-13  Bruno Haible  <bruno@clisp.org>
55179
55180         * modules/errno-tests: New file.
55181         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55182
55183         * lib/errno.in.h: New file.
55184         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55185         * modules/errno: New file.
55186         * doc/posix-headers/errno.texi: Update documentation.
55187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55188
55189 2008-09-13  Bruno Haible  <bruno@clisp.org>
55190
55191         * tests/test-poll.c: Use #if for native Windows, rather than testing
55192         __MSVCRT__.
55193
55194 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55195             Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/glob.c: Don't include <pwd.h> on native Windows.
55198         (WINDOWS32): New macro.
55199         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55200
55201 2008-09-13  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55204         (ETIMEDOUT): Remove macro.
55205         (glthread_cond_timedwait_multithreaded): New declaration.
55206         (glthread_cond_timedwait): Use it.
55207         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55208         (glthread_cond_timedwait_multithreaded): New function.
55209
55210 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55211
55212         * modules/poll-tests: Do not check for io.h.
55213         * tests/test-poll.c: Check for __MSVCRT__ instead.
55214
55215 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55216
55217         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55218         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55219         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55220
55221 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55222
55223         * modules/poll-tests: New.
55224         * tests/test-poll.c: New.
55225
55226 2008-09-12  Eric Blake  <ebb9@byu.net>
55227
55228         frexp: test for NetBSD failure on -0.0
55229         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55230         not all, bugs from NetBSD 3.0 have been fixed.
55231         * doc/posix-functions/frexp.texi (frexp): Document bug.
55232         Reported by Thomas Klausner.
55233
55234         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55235         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55236         literal -0.0.
55237         Reported by Jonathan C. Patschke <jp@centtech.com>.
55238
55239 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55240
55241         * lib/glthread/cond.h: Use dummy implementation also if
55242         USE_WIN32_THREADS.
55243
55244 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55245
55246         * modules/fnmatch-posix (License): Change to LGPLv2+.
55247         * modules/fnmatch-gnu (License): Likewise.
55248
55249 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55250
55251         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55252
55253 2008-09-11  Jim Meyering  <meyering@redhat.com>
55254
55255         * users.txt: Add gtk-vnc.
55256
55257 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55258
55259         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55260         rotate amounts.
55261
55262         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55263         required for 16-bit and 8-bit rotates.
55264         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55265         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55266         UINT8_MAX instead of hard-coded constants.
55267         Suggested by Paul Eggert.
55268
55269 2008-09-07  Bruno Haible  <bruno@clisp.org>
55270
55271         * tests/test-striconveh.c (main): Check behaviour when converting from
55272         UTF-7.
55273
55274         Make striconveh work better with stateful encodings.
55275         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55276         that iconv does not increment the inptr when returning -1/EINVAL.
55277
55278 2008-09-07  Bruno Haible  <bruno@clisp.org>
55279
55280         * build-aux/config.rpath: Update according to libtool-2.2.6.
55281         * build-aux/config.libpath: Likewise.
55282
55283 2008-09-06  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55286         * lib/freadptr.c (freadptr): Likewise.
55287         * lib/freadseek.c (freadptrinc): Likewise.
55288         Reported by Simon Josefsson.
55289
55290 2008-09-06  Bruno Haible  <bruno@clisp.org>
55291
55292         * modules/freadptr (License): Change to LGPLv2+.
55293         * modules/freadseek (License): Likewise.
55294         Suggested by Eric Blake.
55295
55296         * modules/memchr2 (License): Change to LGPLv2+.
55297         Approved by Eric Blake.
55298
55299 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55300             Bruno Haible  <bruno@clisp.org>
55301
55302         Make gnulib-tool work with native 'sed' on AIX.
55303         * gnulib-tool (sed_noop): New variable.
55304         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55305         func_add_or_update, func_create_testdir): Use it to initialize sed
55306         script variables.
55307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55308
55309 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55310             Bruno Haible  <bruno@clisp.org>
55311
55312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55313         also works after #include directives.
55314
55315 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
55316
55317         getdate.y: reject an out-of-range timezone value
55318         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55319         the range [-24...+24].  When specified with only one or two digits,
55320         * tests/test-getdate.c: Tests for the fix.
55321         * doc/getdate.texi: Document this change.
55322
55323 2008-09-03  Bruno Haible  <bruno@clisp.org>
55324
55325         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55326
55327 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55328
55329         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55330         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55331         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55332         Blake <ebb9@byu.net>.
55333
55334         * tests/test-bitrotate.c: Add more test vectors.
55335
55336 2008-09-02  Eric Blake  <ebb9@byu.net>
55337
55338         vasnprintf-posix: handle large precision via %.*d
55339         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55340         when handling it ourselves.
55341         * tests/test-vasnprintf-posix.c (test_function): Add test.
55342         * tests/test-snprintf-posix.h (test_function): Likewise.
55343         * tests/test-sprintf-posix.h (test_function): Likewise.
55344         * tests/test-vasprintf-posix.c (test_function): Likewise.
55345         Reported by Alain Guibert.
55346
55347 2008-09-01  Eric Blake  <ebb9@byu.net>
55348
55349         c-stack: make configure-time check more robust
55350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55351         successful sigaction call.
55352         Reported by Tom G. Christensen.
55353
55354 2008-09-01  Bruno Haible  <bruno@clisp.org>
55355
55356         New module 'findprog-lgpl'.
55357         * modules/findprog-lgpl: New file.
55358         * lib/findprog-lgpl.c: New file.
55359         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55360         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55361         to decide whether to use strdup or xstrdup, concatenated_filename or
55362         xconcatenated_filename.
55363
55364 2008-09-01  Bruno Haible  <bruno@clisp.org>
55365
55366         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55367         'xconcat-filename' (GPL).
55368         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55369         (License): Change to LGPLv2+.
55370         * modules/xconcat-filename: New file.
55371         * lib/concat-filename.h (concatenated_filename): Change specification.
55372         (xconcatenated_filename): New declaration.
55373         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55374         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55375         memory situations.
55376         * lib/xconcat-filename.c: New file.
55377         * NEWS: Mention the change.
55378         * lib/findprog.c: Include concat-filename.h, not filename.h.
55379         (find_in_path): Use xconcatenated_filename instead of
55380         concatenated_filename.
55381         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55382         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55383         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55384         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55385         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55386         instead of concatenated_filename.
55387         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55388         (execute_java_class): Use xconcatenated_filename instead of
55389         concatenated_filename.
55390         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55391         * modules/javacomp (Depends-on): Likewise.
55392         * modules/javaexec (Depends-on): Likewise.
55393
55394 2008-09-01  Bruno Haible  <bruno@clisp.org>
55395
55396         Split module 'filename' into 'filename' and 'concat-filename'.
55397         * modules/filename: Keep only lib/filename.h.
55398         (License): Change to LGPLv2+.
55399         * modules/concat-filename: New file, extracted from modules/filename.
55400         * lib/filename.h (concatenated_filename): Remove declaration.
55401         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55402         * lib/concat-filename.c: Include concat-filename.h.
55403         * NEWS: Mention the change.
55404
55405 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55406
55407         * lib/bitrotate.h (rotl8, rotr8): Add.
55408
55409         * modules/bitrotate (configure.ac): Need
55410         AC_REQUIRE([AC_C_INLINE]).
55411         (Description): Mention stdint.h.  Reported by Bruno Haible
55412         <bruno@clisp.org>.
55413
55414         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55415         Paolo Bonzini <bonzini@gnu.org>.
55416
55417 2008-08-31  Bruno Haible  <bruno@clisp.org>
55418
55419         Assume Solaris specific bi-arch conventions on Solaris systems.
55420         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55421         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55423         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55424         like acl_libdirstem.
55425         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55426         acl_libdirstem.
55427         * NEWS: Mention the change.
55428         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55429
55430 2008-08-31  Jim Meyering  <meyering@redhat.com>
55431
55432         * lib/strftime.h: Add comments describing the two added arguments.
55433
55434         remove duplicate #include directives
55435         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55436         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55437
55438 2008-08-31  Bruno Haible  <bruno@clisp.org>
55439
55440         New module 'sigpipe-die'.
55441         * modules/sigpipe-die: New file.
55442         * lib/sigpipe-die.h: New file.
55443         * lib/sigpipe-die.c: New file.
55444         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55445
55446 2008-08-31  Bruno Haible  <bruno@clisp.org>
55447
55448         Don't override previously installed signal handlers.
55449         * lib/fatal-signal.c (saved_sigactions): New variable.
55450         (uninstall_handlers): Reset the signal to the saved handler, not
55451         to SIG_DFL (except when ignored).
55452         (install_handlers): Save the previous handlers.
55453
55454 2008-08-30  Bruno Haible  <bruno@clisp.org>
55455
55456         * gnulib-tool (func_reset_sigpipe): New function.
55457         (func_get_automake_snippet, func_modules_transitive_closure,
55458         func_import): Invoke it before a join command that reads from stdin,
55459         to avoid "echo: write error: Broken pipe" error messages on stderr.
55460         Reported by Sam Steingold <sds@gnu.org>.
55461
55462 2008-08-30  Bruno Haible  <bruno@clisp.org>
55463
55464         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55465         Code copied from m4/open.m4.
55466         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55467         access and the filename ends in a slash. Code copied from lib/open.c.
55468         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55469         * tests/test-fopen.c (main): Check against bug with trailing slash.
55470
55471 2008-08-29  Bruno Haible  <bruno@clisp.org>
55472
55473         Avoid some "gcc -pedantic" warnings.
55474         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55475         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55476         * lib/dirent.in.h: Likewise.
55477         * lib/fcntl.in.h: Likewise.
55478         * lib/float.in.h: Likewise.
55479         * lib/iconv.in.h: Likewise.
55480         * lib/inttypes.in.h: Likewise.
55481         * lib/locale.in.h: Likewise.
55482         * lib/math.in.h: Likewise.
55483         * lib/netinet_in.in.h: Likewise.
55484         * lib/search.in.h: Likewise.
55485         * lib/signal.in.h: Likewise.
55486         * lib/stdarg.in.h: Likewise.
55487         * lib/stdint.in.h: Likewise.
55488         * lib/stdio.in.h: Likewise.
55489         * lib/stdlib.in.h: Likewise.
55490         * lib/string.in.h: Likewise.
55491         * lib/strings.in.h: Likewise.
55492         * lib/sys_select.in.h: Likewise.
55493         * lib/sys_socket.in.h: Likewise.
55494         * lib/sys_stat.in.h: Likewise.
55495         * lib/sys_time.in.h: Likewise.
55496         * lib/sysexits.in.h: Likewise.
55497         * lib/time.in.h: Likewise.
55498         * lib/unistd.in.h: Likewise.
55499         * lib/wchar.in.h: Likewise.
55500         * lib/wctype.in.h: Likewise.
55501         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55502         * modules/fchdir (Makefile.am): Likewise.
55503         * modules/fcntl (Makefile.am): Likewise.
55504         * modules/float (Makefile.am): Likewise.
55505         * modules/iconv_open (Makefile.am): Likewise.
55506         * modules/inttypes (Makefile.am): Likewise.
55507         * modules/locale (Makefile.am): Likewise.
55508         * modules/math (Makefile.am): Likewise.
55509         * modules/netinet_in (Makefile.am): Likewise.
55510         * modules/search (Makefile.am): Likewise.
55511         * modules/signal (Makefile.am): Likewise.
55512         * modules/stdarg (Makefile.am): Likewise.
55513         * modules/stdint (Makefile.am): Likewise.
55514         * modules/stdio (Makefile.am): Likewise.
55515         * modules/stdlib (Makefile.am): Likewise.
55516         * modules/string (Makefile.am): Likewise.
55517         * modules/strings (Makefile.am): Likewise.
55518         * modules/sys_select (Makefile.am): Likewise.
55519         * modules/sys_socket (Makefile.am): Likewise.
55520         * modules/sys_stat (Makefile.am): Likewise.
55521         * modules/sys_time (Makefile.am): Likewise.
55522         * modules/sysexits (Makefile.am): Likewise.
55523         * modules/time (Makefile.am): Likewise.
55524         * modules/unistd (Makefile.am): Likewise.
55525         * modules/wchar (Makefile.am): Likewise.
55526         * modules/wctype (Makefile.am): Likewise.
55527         Reported by Reuben Thomas <rrt@sc3d.org>.
55528
55529 2008-08-29  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55532         any more.
55533
55534 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55535
55536         * MODULES.html.sh (Misc): Add bitrotate.
55537
55538         * modules/bitrotate: New file.
55539
55540         * lib/bitrotate.h: New file.
55541
55542         * modules/bitrotate-tests: New file.
55543
55544         * tests/test-bitrotate.c: New file.
55545
55546         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55547         on the bitrotate module.
55548
55549         * lib/arctwo.c: Use new bitrotate module.
55550
55551 2008-08-29  Jim Meyering  <meyering@redhat.com>
55552
55553         bootstrap: merge changes from coreutils
55554         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55555         of copied files.  Remove a kludge, now that this is fixed.
55556         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55557         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55558         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55559
55560 2008-08-29  Bruno Haible  <bruno@clisp.org>
55561
55562         * MODULES.html.sh: Remove --cvs-urls option.
55563
55564 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55565
55566         maint.mk: adjust to file name change
55567         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55568
55569 2008-08-28  Jim Meyering  <meyering@redhat.com>
55570
55571         * modules/getndelim2 (License): Relicense to LGPLv2+.
55572         Approved by Richard Stallman for the version of 1995, and by
55573         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55574
55575 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55576
55577         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55578         dummy if one is not available.  Do not touch them if
55579         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55580         (getc_maybe_unlocked): New.
55581         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55582
55583 2008-08-26  Eric Blake  <ebb9@byu.net>
55584
55585         doc/INSTALL: resync from autoconf
55586         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55587         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55588         moving...
55589         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55590         * INSTALL: Regenerate.
55591         * INSTALL.ISO: New file.
55592         * INSTALL.UTF-8: Likewise.
55593
55594 2008-08-26  Jim Meyering  <meyering@redhat.com>
55595
55596         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55597         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55598         these definitions conditional, so that they may be overridden, too.
55599
55600 2008-08-26  Bruno Haible  <bruno@clisp.org>
55601
55602         Generate INSTALL file variants with prettier quotes.
55603         * doc/Makefile (INSTALL_PRELUDE): New macro.
55604         (INSTALL): Use it.
55605         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55606
55607 2008-08-26  Bruno Haible  <bruno@clisp.org>
55608
55609         Run makeinfo in an English locale.
55610         * doc/Makefile (MAKEINFO): New variable.
55611
55612 2008-08-26  Bruno Haible  <bruno@clisp.org>
55613
55614         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55615         Suggested by Eric Blake.
55616
55617 2008-08-25  Bruno Haible  <bruno@clisp.org>
55618
55619         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55620
55621 2008-08-25  Eric Blake  <ebb9@byu.net>
55622
55623         c-stack: test that stack overflow can be caught
55624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55625         that platform allows handling stack overflow; at least OS/2 EMX
55626         has sigaltstack, but crashes before transferring control to
55627         handler on stack overflow.
55628         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55629         check for HAVE_STACK_OVERFLOW_HANDLING.
55630         Reported by Elbert Pol.
55631
55632 2008-08-25  Bruno Haible  <bruno@clisp.org>
55633
55634         * doc/posix-functions/strftime.texi: Fix description of strftime
55635         module.
55636
55637 2008-08-24  Bruno Haible  <bruno@clisp.org>
55638
55639         * tests/uniwidth/test-uc_width2.c: New file.
55640         * tests/uniwidth/test-uc_width2.sh: New file.
55641         * modules/uniwidth/width-tests (Files): Add the new files.
55642         (TESTS): Add uniwidth/test-uc_width2.sh.
55643         (TESTS_ENVIRONMENT): New variable.
55644         (check_PROGRAMS): Add test-uc_width2.
55645         (test_uc_width2_SOURCES): New variable.
55646
55647         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55648         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55649         not 0x00AB.
55650         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55651
55652 2008-08-22  Eric Blake  <ebb9@byu.net>
55653
55654         test-lock, test-tls: mention why a test is skipped
55655         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55656         skipped.
55657         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55658
55659         count-one-bits: relax license
55660         * modules/count-one-bits (License): Relicense to LGPLv2+.
55661         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55662
55663 2008-08-22  Andreas Schwab  <schwab@suse.de>
55664
55665         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55666         Remove spurious space in assignment.
55667
55668 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55669
55670         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55671         Paul Eggert <eggert@CS.UCLA.EDU>.
55672
55673 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55674
55675         * modules/gettext: Add m4/threadlib.m4.
55676
55677 2008-08-19  Eric Blake  <ebb9@byu.net>
55678
55679         test-c-stack: fix compilation failure on FreeBSD 5.0
55680         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55681         headers before <sys/resource.h>.
55682         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55683         the bug.
55684         Reported by Nelson H. F. Beebe.
55685
55686         strverscmp: migrate from "strverscmp.h" to <string.h>
55687         * modules/string (Makefile.am): Add new hooks.
55688         * modules/strverscmp (Files): Remove strverscmp.h.
55689         (Depends-on): Add string.
55690         (configure.ac): Add indicator.
55691         (Include): Mention new header.
55692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55693         defaults.
55694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55695         results.
55696         * lib/strverscmp.h: Delete.
55697         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55698         * tests/test-strverscmp.c (includes): Adjust client.
55699         * lib/check-version.c (includes): Likewise.
55700         * NEWS: Document the change.
55701
55702         strverscmp: add unit test
55703         * modules/strverscmp-tests: New file.
55704         * tests/test-strverscmp.c: Likewise.
55705
55706 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55707
55708         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55709         regarding Windows crypto stuff, from Mono.
55710
55711 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55712
55713         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55714         if present, for intel RND.  Return error on failures.
55715
55716 2008-08-18  Ben Pfaff  <blp@gnu.org>
55717
55718         gitlog-to-changelog: give better diagnostic for failed pipe-open
55719         * build-aux/gitlog-to-changelog: Improve error message: suggest
55720         that the version of Git may be too old.
55721
55722 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55723
55724         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55725         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55726
55727 2008-08-18  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55730         pthread_in_use().
55731
55732 2008-08-18  Bruno Haible  <bruno@clisp.org>
55733
55734         * lib/glthread/threadlib.c: Include <pthread.h>.
55735
55736 2008-08-18  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55739         glthread_recursive_lock_* macros.
55740         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55741         Fix syntax error.
55742
55743 2008-08-18  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/glthread/thread.c: Avoid forcing a context switch right after
55746         thread creation.
55747
55748 2008-08-17  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55751         * lib/glthread/thread.h: Provide Win32 specific implementation.
55752         * modules/thread (Files): Add lib/glthread/thread.c.
55753         (Depends-on): Add lock.
55754         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55755
55756 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55757
55758         New module 'yield'.
55759         * modules/yield: New file.
55760         * lib/glthread/yield.h: New file.
55761         * m4/yield.m4: New file.
55762         * MODULES.html.sh (Multithreading): Add yield.
55763
55764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55765
55766         New module 'thread'.
55767         * modules/thread: New file.
55768         * lib/glthread/thread.h: New file.
55769         * m4/thread.m4: New file.
55770         * MODULES.html.sh (Multithreading): Add thread.
55771
55772 2008-08-17  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/glthread/lock.h: Include <stdlib.h> always.
55775         * lib/glthread/tls.h: Likewise.
55776         * lib/glthread/cond.h: Likewise.
55777
55778 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55779
55780         New module 'cond'.
55781         * modules/cond: New file.
55782         * lib/glthread/cond.h: New file.
55783         * lib/glthread/cond.c: New file.
55784         * m4/cond.m4: New file.
55785         * MODULES.html.sh (Multithreading): Add cond.
55786
55787 2008-08-16  Eric Blake  <ebb9@byu.net>
55788
55789         c-stack: fix regression on Irix 5.3 from 2008-06-21
55790         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55791         sa_sigaction...
55792         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55793         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55794         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55795         * modules/signal (Makefile.am): Use the value.
55796         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55797         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55798         * doc/posix-headers/signal.texi (signal.h): Document this
55799         portability issue.
55800         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55801         Reported by Tom G. Christensen.
55802
55803 2008-08-17  Bruno Haible  <bruno@clisp.org>
55804
55805         New module 'threadlib'.
55806         * modules/threadlib: New file.
55807         * lib/glthread/threadlib.c: New file, extracted from
55808         lib/glthread/lock.c.
55809         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55810         functions.
55811         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55812         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55813         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55814         macros.
55815         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55816         (gl_DISABLE_THREADS): Remove macro.
55817         * modules/lock (Files): Remove build-aux/config.rpath.
55818         (Depends-on): Remove havelib. Add threadlib.
55819         (configure.ac-early): Remove section.
55820         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55821         * modules/tls (Depends-on): Remove lock. Add threadlib.
55822         (Link): New section, copied from threadlib.
55823         * MODULES.html.sh (Multithreading): Add threadlib.
55824
55825 2008-08-14  Bruno Haible  <bruno@clisp.org>
55826
55827         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55828         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55829         glthread_rwlock_unlock, glthread_rwlock_destroy,
55830         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55831         glthread_recursive_lock_destroy): Define as macros always.
55832         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55833         glthread_lock_lock.
55834         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55835         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55836         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55837         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55838         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55839         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55840         (glthread_recursive_lock_lock_func): Renamed from
55841         glthread_recursive_lock_lock.
55842         (glthread_recursive_lock_unlock_func): Renamed from
55843         glthread_recursive_lock_unlock.
55844         (glthread_recursive_lock_destroy_func): Renamed from
55845         glthread_recursive_lock_destroy.
55846
55847 2008-08-14  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/glthread/lock.h: Renamed from lib/lock.h.
55850         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55851         * lib/glthread/tls.h: Renamed from lib/tls.h.
55852         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55853         * lib/fstrcmp.c: Update includes.
55854         * lib/strsignal.c: Update includes.
55855         * modules/lock (Files, Makefile.am): Update.
55856         (Include): Change to "glthread/lock.h".
55857         * modules/tls (Files, Makefile.am): Update.
55858         (Include): Change to "glthread/tls.h".
55859         * tests/test-lock.c: Update includes.
55860         * tests/test-tls.c: Update includes.
55861         * NEWS: Mention the renamed header files.
55862
55863 2008-08-11  Jim Meyering  <meyering@redhat.com>
55864
55865         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55866
55867 2008-08-11  Eric Blake  <ebb9@byu.net>
55868
55869         test-c-stack: avoid C99-ism
55870         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55871         before statement.
55872         Reported by Alain Guibert.
55873
55874 2008-08-10  Jim Meyering  <meyering@redhat.com>
55875
55876         ensure that return value of uinttostr et al are not ignored
55877         * lib/inttostr.h (__GNUC_PREREQ): Define.
55878         (__attribute_warn_unused_result__): Define.
55879         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55880
55881 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55882
55883         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55884         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55885
55886 2008-08-07  Jim Meyering  <meyering@redhat.com>
55887
55888         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55889
55890         * modules/mkstemp (License): Relicense under LGPLv2+.
55891         * modules/tempname (License): Likewise.
55892
55893 2008-08-06  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/poll.c (poll): Further micro-optimization.
55896
55897 2008-08-06  Jim Meyering  <meyering@redhat.com>
55898
55899         inet_pton.c: use locale-independent tolower
55900         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55901         (inet_pton6): Use c_tolower rather than tolower.
55902         * modules/inet_pton (Depends-on): Add c-ctype.
55903
55904 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55905
55906         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55907         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55908
55909 2008-08-06  Jim Meyering  <meyering@redhat.com>
55910
55911         * modules/inet_pton (License): Relicense under LGPLv2+.
55912
55913 2008-08-03  Bruno Haible  <bruno@clisp.org>
55914
55915         Additional non-aborting API for lock and tls.
55916         * lib/lock.h: Include <errno.h>.
55917         (glthread_lock_init): New macro/function.
55918         (gl_lock_init): Define as wrapper around glthread_lock_init.
55919         (glthread_lock_lock): New macro/function.
55920         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55921         (glthread_lock_unlock): New macro/function.
55922         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55923         (glthread_lock_destroy): New macro/function.
55924         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55925         (glthread_rwlock_init): New macro/function.
55926         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55927         (glthread_rwlock_rdlock): New macro/function.
55928         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55929         (glthread_rwlock_wrlock): New macro/function.
55930         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55931         (glthread_rwlock_unlock): New macro/function.
55932         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55933         (glthread_rwlock_destroy): New macro/function.
55934         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55935         (glthread_recursive_lock_init): New macro/function.
55936         (gl_recursive_lock_init): Define as wrapper around
55937         glthread_recursive_lock_init.
55938         (glthread_recursive_lock_lock): New macro/function.
55939         (gl_recursive_lock_lock): Define as wrapper around
55940         glthread_recursive_lock_lock.
55941         (glthread_recursive_lock_unlock): New macro/function.
55942         (gl_recursive_lock_unlock): Define as wrapper around
55943         glthread_recursive_lock_unlock.
55944         (glthread_recursive_lock_destroy): New macro/function.
55945         (gl_recursive_lock_destroy): Define as wrapper around
55946         glthread_recursive_lock_destroy.
55947         (glthread_once): New macro/function.
55948         (gl_once): Define as wrapper around glthread_once.
55949         Update function declarations.
55950         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55951         glthread_rwlock_init. Return error code.
55952         (glthread_rwlock_rdlock_multithreaded): Renamed from
55953         glthread_rwlock_rdlock. Return error code.
55954         (glthread_rwlock_wrlock_multithreaded): Renamed from
55955         glthread_rwlock_wrlock. Return error code.
55956         (glthread_rwlock_unlock_multithreaded): Renamed from
55957         glthread_rwlock_unlock. Return error code.
55958         (glthread_rwlock_destroy_multithreaded): Renamed from
55959         glthread_rwlock_destroy. Return error code.
55960         (glthread_recursive_lock_init_multithreaded): Renamed from
55961         glthread_recursive_lock_init. Return error code.
55962         (glthread_recursive_lock_lock_multithreaded): Renamed from
55963         glthread_recursive_lock_lock. Return error code.
55964         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55965         glthread_recursive_lock_unlock. Return error code.
55966         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55967         glthread_recursive_lock_destroy. Return error code.
55968         (glthread_once_call): Make static.
55969         (glthread_once_multithreaded): Renamed from glthread_once.
55970         * lib/tls.h: Include <errno.h>.
55971         (glthread_tls_key_init): New macro/function.
55972         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55973         (glthread_tls_set): New macro/function.
55974         (gl_tls_set): Define as wrapper around glthread_tls_set.
55975         (glthread_tls_key_destroy): New macro/function.
55976         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55977         Update function declarations.
55978         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55979         glthread_tls_get.
55980         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55981
55982 2008-08-04  Eric Blake  <ebb9@byu.net>
55983
55984         gnumakefile: use space, not TAB, outside of targets
55985         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55986
55987 2008-08-02  Jim Meyering  <meyering@redhat.com>
55988
55989         getdate.y: avoid locale-dependent date parsing failure
55990         In Turkish locales, getdate would fail to recognize keywords
55991         containing a lowercase "i".  The solution is not to rely on
55992         locale-sensitive case-conversion.
55993         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55994         (lookup_word): Use c_toupper in place of toupper.
55995         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55996         Reported by Vefa Bicakci <bicave@superonline.com> in
55997         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55998         * modules/getdate (Depends-on): Add c-ctype.
55999
56000 2008-08-02  Bruno Haible  <bruno@clisp.org>
56001
56002         * gnulib-tool (func_import): When updating or creating a .gitignore
56003         file, prepend each added line with a slash, and ignore leading slashes
56004         from the existing lines.
56005         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56006
56007 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56008
56009         Portability fix for GNU make 3.79.1.
56010         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56011         versions do not understand.
56012
56013 2008-08-01  Bruno Haible  <bruno@clisp.org>
56014
56015         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56016         * tests/test-isnanf.h (zero): New variable.
56017         (main): Avoid literal -0.0f.
56018         * tests/test-isnand.h (zero): New variable.
56019         (main): Avoid literal -0.0.
56020         * tests/test-isnanl.h (zero): New variable.
56021         (main): Avoid literal -0.0L.
56022         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56023         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56024         -0.0, -0.0L.
56025         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56026         (test_signbitd): Avoid literal -0.0.
56027         (test_signbitl): Avoid literal -0.0L.
56028         * tests/test-ceilf1.c (zero): New variable.
56029         (main): Avoid literal -0.0f.
56030         * tests/test-ceill.c (zero): New variable.
56031         (main): Avoid literal -0.0L.
56032         * tests/test-floorf1.c (zero): New variable.
56033         (main): Avoid literal -0.0f.
56034         * tests/test-floorl.c (zero): New variable.
56035         (main): Avoid literal -0.0L.
56036         * tests/test-roundf1.c (zero): New variable.
56037         (main): Avoid literal -0.0f.
56038         * tests/test-round1.c (zero): New variable.
56039         (main): Avoid literal -0.0.
56040         * tests/test-roundl.c (zero): New variable.
56041         (main): Avoid literal -0.0L.
56042         * tests/test-truncf1.c (zero): New variable.
56043         (main): Avoid literal -0.0f.
56044         * tests/test-trunc1.c (zero): New variable.
56045         (main): Avoid literal -0.0.
56046         * tests/test-truncl.c (zero): New variable.
56047         (main): Avoid literal -0.0L.
56048         * tests/test-frexp.c (zero): New variable.
56049         (main): Avoid literal -0.0.
56050         * tests/test-frexpl.c (zero): New variable.
56051         (main): Avoid literal -0.0L.
56052         * tests/test-ldexpl.c (zero): New variable.
56053         (main): Avoid literal -0.0L.
56054         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56055         (zerod, zerol): New variables.
56056         (test_function): Avoid literals -0.0, -0.0L.
56057         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56058         (zerod, zerol): New variables.
56059         (test_function): Avoid literals -0.0, -0.0L.
56060         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56061         (zerod, zerol): New variables.
56062         (test_function): Avoid literals -0.0, -0.0L.
56063         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56064         (zerod, zerol): New variables.
56065         (test_function): Avoid literals -0.0, -0.0L.
56066         * tests/test-strtod.c (zero): New variable.
56067         (main): Avoid literal -0.0.
56068         Reported by Jonathan C. Patschke <jp@centtech.com>.
56069
56070 2008-07-31  Jim Meyering  <meyering@redhat.com>
56071
56072         sha256.h: correct definition of SHA224_DIGEST_SIZE
56073         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56074         Reported by Paulie Pena IV <paulie4@gmail.com>.
56075         Define as 224 / 8, rather than as a literal.
56076         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56077         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56078         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56079
56080 2008-07-31  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56083         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56084         Reported by Jonathan Patschke <jp@centtech.com>.
56085
56086 2008-07-31  Bruno Haible  <bruno@clisp.org>
56087
56088         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56089         Reported by Paolo Bonzini <bonzini@gnu.org>.
56090
56091 2008-07-30  Eric Blake  <ebb9@byu.net>
56092
56093         test-strtod: allow compilation without -lm
56094         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56095         Reported by Dennis Clarke <blastwave@gmail.com>.
56096
56097 2008-07-28  Jim Meyering  <meyering@redhat.com>
56098
56099         bootstrap: work also when there are no .po files in po/
56100         * build-aux/bootstrap (update_po_files): Complete the change
56101         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56102
56103 2008-07-27  Jim Meyering  <meyering@redhat.com>
56104
56105         * users.txt: Add zile.
56106
56107 2008-07-26  Ben Pfaff  <blp@gnu.org>
56108
56109         Add missing dependencies on new m4/exponent[fdl].m4 files.
56110         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56111         * modules/isnand-nolibm: Add m4/exponentd.m4.
56112         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56113         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56114         m4/isnan[fdl].m4, because the macros actually used moved.
56115         Reported by Jim Meyering.
56116
56117 2008-07-14  Ben Pfaff  <blp@gnu.org>
56118
56119         Add isinf module.
56120         * lib/isinf.c: New file.
56121         * lib/math.in.h: Define isinf macro if we have decided to replace
56122         it.
56123         * m4/isinf.m4: New file.
56124         * m4/math_h.m4: Initialize and substitute variables for isinf
56125         module.
56126         * modules/isinf: New file.
56127         * modules/isinf-tests: New file.
56128         * modules/math: Add substitutions for new module.
56129         * tests/test-isinf.c: New file.
56130         * doc/posix-functions/isinf.texi: Mention new module.
56131         * MODULES.html.sh: Mention new module.
56132
56133 2008-07-14  Ben Pfaff  <blp@gnu.org>
56134
56135         Factor out some macros for use by additional modules.
56136         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56137         exponentf.m4.
56138         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56139         exponentd.m4.
56140         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56141         file exponentl.m4.
56142         * m4/exponentf.m4: New file.
56143         * m4/exponentd.m4: New file.
56144         * m4/exponentl.m4: New file.
56145         * modules/isnanf: Use new file m4/exponentf.m4.
56146         * modules/isnand: Use new file m4/exponentd.m4.
56147         * modules/isnanl: Use new file m4/exponentl.m4.
56148
56149 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56150
56151         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56152         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56153         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56154         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56155
56156         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56157         readlink on platforms without PATH_MAX.
56158
56159 2008-07-21  Eric Blake  <ebb9@byu.net>
56160
56161         Warn, not fail, on stale version.
56162         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56163
56164         Don't allow installation with stale devel version number.
56165         * top/GNUmakefile (_is-install-target): New macro.
56166         (_curr-ver): Forbid installation with stale version number.
56167
56168 2008-07-20  Bruno Haible  <bruno@clisp.org>
56169
56170         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56171         TESTS_ENVIRONMENT.
56172         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56173
56174 2008-07-20  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/c-stack.h (c_stack_action): Add documentation.
56177         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56178
56179 2008-07-20  Bruno Haible  <bruno@clisp.org>
56180
56181         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56182         * modules/readlink (License): Likewise.
56183
56184 2008-07-17  Eric Blake  <ebb9@byu.net>
56185
56186         * modules/c-stack (Link): Fix typo.
56187
56188         Make c-stack use libsigsegv, when available.
56189         * modules/c-stack (Depends-on): Add libsigsegv.
56190         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56191         needed.
56192         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56193         (segv_handler, overflow_handler, c_stack_action)
56194         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56195         implementation when libsigsegv is available, but only when using
56196         the library is necessary.
56197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56198         comment, explaining why XSI check fails on Linux.
56199         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56200         * tests/test-c-stack2.sh: Tweak skip message.
56201         * NEWS: Document new link-time requirements.
56202
56203 2008-07-16  Eric Blake  <ebb9@byu.net>
56204
56205         c-stack: Expose false positives when not using libsigsegv.
56206         * modules/c-stack-tests (Files): Expand test.
56207         * tests/test-c-stack.c (main): Add means to conditionally trigger
56208         non-overflow SIGSEGV.
56209         * tests/test-c-stack2.sh: New file.
56210
56211 2008-07-14  Bruno Haible  <bruno@clisp.org>
56212
56213         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56214         Reported by Eric Blake.
56215
56216 2008-07-14  Sam Steingold  <sds@gnu.org>
56217             Bruno Haible  <bruno@clisp.org>
56218
56219         New module libsigsegv.
56220         * modules/libsigsegv: New file.
56221         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56222         modifications.
56223         * MODULES.html.sh (Signal handling): New section.
56224
56225 2008-07-14  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/unictype/ctype-* (Description): Add the word "function".
56228         Improves the resulting doc in MODULES.html.
56229
56230 2008-07-12  Ben Pfaff  <blp@gnu.org>
56231
56232         Add longlong module.
56233         * modules/longlong: New file.
56234
56235 2008-07-12  Bruno Haible  <bruno@clisp.org>
56236
56237         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56238         to empty.
56239
56240 2008-07-10  Ben Pfaff  <blp@gnu.org>
56241
56242         Add isnan module.
56243         * doc/posix-functions/isnan.texi: Mention new module.
56244         * lib/math.in.h: Define isnan macro if we have decided to replace
56245         it.
56246         * m4/isnan.m4: New file.
56247         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56248         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56249         also.
56250         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56251         redundancy.
56252         * m4/math_h.m4: Initialize and substitute variables for isnan
56253         module.
56254         * modules/isnan: New file.
56255         * modules/isnan-tests: New file.
56256         * modules/math: Add substitutions for new module.
56257         * tests/test-isnan.c: New file.
56258         * MODULES.html.sh: Mention new module.
56259
56260 2008-07-10  Ben Pfaff  <blp@gnu.org>
56261
56262         Add isnanf module.
56263         * lib/isnanf.m4: New file.
56264         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56265         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56266         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56267         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56268         * modules/isnanf: New file.
56269         * modules/isnanf-tests: New file.
56270         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56271         files.
56272         * tests/test-isnanf-nolibm.c: factored most of its contents into
56273         new file tests/test-isnanf.h.
56274         * tests/test-isnanf.h: New file.
56275         * tests/test-isnanf.c: New file.
56276         * MODULES.html.sh: Mention new module.
56277         * doc/glibc-functions/isnanf.texi: Mention new module.
56278
56279 2008-07-10  Ben Pfaff  <blp@gnu.org>
56280
56281         Add isnand module.
56282         * lib/isnand.h: New file.
56283         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56284         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56285         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56286         functionality also.
56287         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56288         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56289         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56290         * modules/isnand: New file.
56291         * modules/isnand-tests: New file.
56292         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56293         files.
56294         * tests/test-isnand-nolibm.c: factored most of its contents into
56295         new file tests/test-isnand.h.
56296         * tests/test-isnand.h: New file.
56297         * tests/test-isnand.c: New file.
56298         * MODULES.html.sh: Mention new module.
56299
56300 2008-07-10  Ben Pfaff  <blp@gnu.org>
56301
56302         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56303         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56304         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56305         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56306         * modules/isnanf-nolibm: Update references to renamed files.
56307         * modules/isnand-nolibm: Likewise.
56308         * modules/isnanf-nolibm-tests: Likewise.
56309         * modules/isnand-nolibm-tests: Likewise.
56310         * lib/frexp.c: Likewise.
56311         * lib/isfinite.c: Likewise.
56312         * lib/signbitd.c: Likewise.
56313         * lib/signbitf.c: Likewise.
56314         * lib/vasnprintf.c: Likewise.
56315         * tests/test-ceilf1.c: Likewise.
56316         * tests/test-ceilf2.c: Likewise.
56317         * tests/test-floorf1.c: Likewise.
56318         * tests/test-floorf2.c: Likewise.
56319         * tests/test-frexp.c: Likewise.
56320         * tests/test-round1.c: Likewise.
56321         * tests/test-round2.c: Likewise.
56322         * tests/test-roundf1.c: Likewise.
56323         * tests/test-strtod.c: Likewise.
56324         * tests/test-trunc1.c: Likewise.
56325         * tests/test-trunc2.c: Likewise.
56326         * tests/test-truncf1.c: Likewise.
56327         * tests/test-truncf2.c: Likewise.
56328         * NEWS: Mention the renamed header files.
56329
56330 2008-07-11  Jim Meyering  <meyering@redhat.com>
56331
56332         vc-list-files: make the last-resort awk code more portable
56333         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56334         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56335         does not support it.
56336
56337 2008-07-10  Eric Blake  <ebb9@byu.net>
56338
56339         Work with tar's bootstrap.
56340         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56341         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56342         an m4 comment.
56343
56344 2008-07-09  Jim Meyering  <meyering@redhat.com>
56345
56346         posix-shell.m4: fix typo that made this test malfunction
56347         * m4/posix-shell.m4: Remove capitalization in variable name.
56348
56349 2008-07-08  Bruno Haible  <bruno@clisp.org>
56350
56351         * m4/onceonly.m4: Update comments.
56352         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56353
56354 2008-07-04  Jim Meyering  <meyering@redhat.com>
56355
56356         * users.txt: Add vc-dwim.
56357         (bison, coreutils): Use the gitweb URL.
56358
56359 2008-07-03  Jim Meyering  <meyering@redhat.com>
56360
56361         * users.txt: Add libffcall.  From Sam Steingold.
56362
56363 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
56364
56365         getdate.y: do not ignore TZ with relative day, month or year offset
56366         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56367         relative-date-handling, since otherwise, the latter would clobber the
56368         sole output (an updated Start value) of the tz-handling block.
56369         * tests/test-getdate.c: Tests for the fix
56370
56371 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56372
56373         Recognize 'foo_LIBRARIES += libgnu.a'.
56374         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56375         makefile snippet has already specified an installation location,
56376         also using '+='.
56377
56378 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
56379
56380         getdate.y: factor out common actions
56381         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56382         Use them in place of open-coded actions.
56383
56384 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56385
56386         Add self-test for getdate module.
56387         * modules/getdate-tests: New file.
56388         * tests/test-getdate.c: New file.
56389
56390 2008-06-29  Bruno Haible  <bruno@clisp.org>
56391
56392         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56393         .gitignore.
56394         Reported by Sylvain Beucler <beuc@beuc.net>.
56395
56396 2008-06-29  Bruno Haible  <bruno@clisp.org>
56397
56398         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56399         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56400
56401 2008-06-29  Bruno Haible  <bruno@clisp.org>
56402
56403         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56404         EXTRA_DIST.
56405         Reported by Sylvain Beucler <beuc@beuc.net>.
56406
56407 2008-06-26  Jim Meyering  <meyering@redhat.com>
56408
56409         make several modules depend on the "open" module
56410         This provides slightly increased consistency when opening-for-write
56411         the name of a non-directory spelled with a trailing slash.
56412         * modules/chdir-safer: Likewise.
56413         * modules/chown: Likewise.
56414         * modules/clean-temp: Likewise.
56415         * modules/copy-file: Likewise.
56416         * modules/fchdir: Likewise.
56417         * modules/fcntl-safer: Likewise.
56418         * modules/pipe: Likewise.
56419         * modules/utime: Likewise.
56420         Prompted by Eric Blake and Bruno Haible.
56421
56422 2008-06-24  Andreas Schwab  <schwab@suse.de>
56423
56424         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56425         literals can be used as initializers for global variables.
56426
56427 2008-06-23  Eric Blake  <ebb9@byu.net>
56428
56429         Make gnulib-cache.m4 easier to diff.
56430         * gnulib-tool (func_import): Allow newlines when reading cached
56431         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56432
56433 2008-06-23  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56436         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56437         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56438         m4/signalblocking.m4.
56439         (gl_PREREQ_SIGACTION): Don't invoke it.
56440         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56441         gl_PREREQ_SIG_HANDLER_H.
56442         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56443         Don't check for sigaction here.
56444
56445 2008-06-23  Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56448         (install_handlers): Don't set the SA_RESETHAND flag.
56449
56450 2008-06-23  Bruno Haible  <bruno@clisp.org>
56451
56452         * m4/sigaction.m4: Comment fixes.
56453         * lib/signal.in.h: Likewise.
56454
56455 2008-06-23  Eric Blake  <ebb9@byu.net>
56456
56457         Fix typo.
56458         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56459
56460         Avoid SA_ namespace.
56461         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56462         Reported by Ralf Wildenhues.
56463
56464         Avoid test failure due to SA_RESTORER.
56465         * tests/test-sigaction.c (SA_MASK): New macro.
56466         (main): Avoid failing due to extension flags being set.
56467         Reported by Jim Meyering.
56468
56469         Revert use of sig-handler.h in sigprocmask.c.
56470         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56471         it requires the existence of struct sigaction.
56472         * lib/sigprocmask.c (handler_t): Restore typedef.
56473         (rpl_signal, old_handlers): Use local type.
56474
56475 2008-06-22  Bruno Haible  <bruno@clisp.org>
56476
56477         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56478         conditionally.
56479         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56480
56481 2008-06-22  Bruno Haible  <bruno@clisp.org>
56482
56483         * doc/posix-functions/siginterrupt.texi: Move note.
56484
56485         * lib/signal.in.h (SA_RESTART): New macro.
56486         * lib/sigaction.c: Update comment.
56487
56488         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56489
56490         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56491         (gl_PREREQ_SIGPROCMASK): Invoke it.
56492         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56493
56494         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56495
56496         * lib/sigprocmask.c: Update a comment.
56497
56498 2008-06-21  Eric Blake  <ebb9@byu.net>
56499
56500         Use sigaction module rather than signal().
56501         * modules/c-stack (Depends-on): Add sigaction.
56502         * modules/fatal-signal (Depends-on): Likewise.
56503         * modules/nanosleep (Depends-on): Likewise.
56504         * modules/sigprocmask (Files): Add sig-handler.h.
56505         * modules/sigaction (Files): Likewise.
56506         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56507         Eggert.
56508         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56509         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56510         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56511         (init_fatal_signals): Likewise.
56512         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56513         (siginterrupt): Delete fallback.
56514         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56515         instead.
56516         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56517         siginterrupt.
56518
56519         New module sigaction, for mingw.
56520         * modules/sigaction: New module...
56521         * modules/sigaction-tests: ...and its test.
56522         * m4/sigaction.m4: New file.
56523         * lib/sigaction.c: Likewise.
56524         * tests/test-sigaction.c: Likewise.
56525         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56526         * modules/signal (Makefile.am): Likewise.
56527         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56528         needed.
56529         * doc/posix-headers/signal.texi (signal.h): Mention provided
56530         types.
56531         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56532         that sigaction is preferable.
56533         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56534         module.
56535         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56536         sigaction.
56537
56538         Improve robustness of sigprocmask by overriding signal.
56539         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56540         is in use.
56541         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56542         (SIGKILL, SIGSTOP): Provide fallbacks.
56543         (rpl_signal): Implement.
56544         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56545         signal can be called inside handlers.
56546
56547         Fix nanosleep module on mingw.
56548         * modules/nanosleep (Depends-on): Add sys_select.
56549         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56550
56551         Fix licensing of sigprocmask.
56552         * modules/raise (License): Relicense as LGPL.
56553
56554 2008-06-21  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56557         result if it contains question marks.
56558         Reported by Michael Geng <linux@michaelgeng.de>.
56559
56560 2008-06-19  Bruno Haible  <bruno@clisp.org>
56561
56562         Fix CVS-ism.
56563         * doc/gnulib.texi: Include updated-stamp.texi.
56564         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56565         (updated-stamp.texi): New rule.
56566         (gnulib.info): Depend on it.
56567         * doc/.gitignore: Add updated-stamp.texi.
56568         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56569
56570 2008-06-19  Bruno Haible  <bruno@clisp.org>
56571
56572         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56573         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56574
56575 2008-06-19  Eric Blake  <ebb9@byu.net>
56576
56577         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56578         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56579         Reported by Stepan Kasal.
56580
56581 2008-06-18  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56584         Reported by Eric Blake.
56585
56586 2008-06-18  Eric Blake  <ebb9@byu.net>
56587
56588         Work around cygwin 1.5.25 strsignal bug.
56589         * tests/test-strsignal.c: Allow for const char *.
56590         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56591
56592 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56593
56594         * users.txt: Update URL to article and add author/date
56595         information.
56596
56597 2008-06-17  Bruno Haible  <bruno@clisp.org>
56598
56599         New macro gl_DISABLE_THREADS.
56600         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56601         if the user did not pass --enable-threads or --disable-threads option.
56602         (gl_DISABLE_THREADS): New macro.
56603         Reported by Eric Blake <ebb9@byu.net>.
56604
56605 2008-06-17  Bruno Haible  <bruno@clisp.org>
56606
56607         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56608         when the macro ignores it.
56609         Based on a patch by Eric Blake <ebb9@byu.net>.
56610
56611 2008-06-17  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/tls (License): Change to LGPLv2+.
56614         Reported by Eric Blake.
56615
56616 2008-06-17  Eric Blake  <ebb9@byu.net>
56617
56618         Simplify c-stack prerequisites.
56619         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56620         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56621         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56622         check.
56623         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56624         <sys/resource.h>.
56625
56626         Move c-stack test into testsuite.
56627         * modules/c-stack-tests: New file.
56628         * lib/c-stack.c [DEBUG]: Move test program...
56629         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56630         fail test if sigaltstack is lacking.
56631         * tests/test-c-stack.sh: New driver file.
56632
56633 2008-06-16  Eric Blake  <ebb9@byu.net>
56634
56635         Use raise module consistently.
56636         * modules/fatal-signal (Depends-on): Add raise.
56637         * modules/sigprocmask (Depends-on): Likewise.
56638         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56639         * lib/sigprocmask.c (sigprocmask): Likewise.
56640         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56641         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56642
56643         Fix compliance bug in sigpending.
56644         * lib/sigprocmask.c (sigpending): Return pending array via
56645         parameter, not return value.
56646
56647 2008-06-14  Eric Blake  <ebb9@byu.net>
56648
56649         Improve obstack-printf test code.
56650         * tests/test-obstack-printf.c (test_function): Fix comment, and
56651         simplify usage of obstack_* in macros.  Add a test for coverage.
56652         Reported by Bruno Haible.
56653
56654 2008-06-14  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56657         array size as a constant, not as a const variable.
56658         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56659         AC_USE_SYSTEM_EXTENSIONS.
56660         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56661         Test whether the obstack_printf function actually exists.
56662         * modules/obstack-printf (Depends-on): Add extensions.
56663         (Include): Remove obstack.h.
56664         * modules/obstack-printf-posix (Depends-on): Add extensions.
56665         (Include): Remove obstack.h.
56666
56667 2008-06-13  Eric Blake  <ebb9@byu.net>
56668
56669         Add obstack-printf and obstack-printf-posix modules.
56670         * modules/obstack-printf: New file.
56671         * modules/obstack-printf-posix: Likewise.
56672         * MODULES.html.sh (Misc): Mention them.
56673         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56674         Likewise.
56675         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56676         Likewise.
56677         * modules/stdio (Makefile.am): Accomodate new modules.
56678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56679         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56680         Declare.
56681         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56682         functions.
56683         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56684         (gl_REPLACE_OBSTACK_PRINTF): New macros
56685         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56686         * tests/test-obstack-printf.c: New file.
56687         * modules/obstack-printf-tests: Likewise.
56688         * modules/obstack-printf-posix-tests: Likewise.
56689
56690 2008-06-11  Bruno Haible  <bruno@clisp.org>
56691
56692         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56693         * lib/open.c: Include errno.h.
56694         (open): Fail when attempting to write to a file that has a trailing
56695         slash.
56696         * tests/test-open.c (main): Test against trailing slash bug.
56697         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56698
56699 2008-06-10  Bruno Haible  <bruno@clisp.org>
56700
56701         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56702         for $? to work inside the trap command, with various /bin/sh-s.
56703         * tests/test-vc-list-files-cvs.sh: Likewise.
56704
56705 2008-06-10  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/acl-internal.h: Don't include gettext.h here.
56708         * lib/set-mode-acl.c: Include gettext.h here.
56709         * lib/copy-acl.c: Likewise.
56710
56711 2008-06-10  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56714         * lib/wait-process.c (wait_subprocess): Likewise.
56715         * lib/execute.h (execute): Add termsigp argument.
56716         * lib/execute.c (execute): Likewise.
56717         * lib/csharpcomp.c (compile_csharp_using_pnet,
56718         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56719         * lib/csharpexec.c (execute_csharp_using_pnet,
56720         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56721         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56722         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56723         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56724         is_jikes_present): Update.
56725         * lib/javaexec.c (execute_java_class): Update.
56726         * lib/javaversion.c (execute_and_read_line): Update.
56727         * NEWS: Document the changes.
56728         Reported by Eric Blake.
56729
56730 2008-06-10  Eric Blake  <ebb9@byu.net>
56731
56732         Add missing include.
56733         * tests/test-strstr.c (includes): Add <signal.h>.
56734         * tests/test-strcasestr.c (includes): Likewise.
56735         * tests/test-memmem.c (includes): Likewise.
56736
56737 2008-06-10  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/wait-process.c (wait_subprocess): Add an assertion.
56740
56741 2008-06-10  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56744
56745 2008-06-10  Bruno Haible  <bruno@clisp.org>
56746
56747         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56748         using alarm().
56749         * tests/test-strcasestr.c (main): Likewise.
56750         * tests/test-strstr.c (main): Likewise.
56751
56752 2008-06-09  Bruno Haible  <bruno@clisp.org>
56753
56754         Work around the Solaris 10 ACE ACLs ABI change.
56755         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56756         declare if ACL_NO_TRIVIAL is present.
56757         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56758         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56759         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56760         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56761         define if ACL_NO_TRIVIAL is present.
56762         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56763         and use the current ABI.
56764         (file_has_acl): Use same #if condition as elsewhere.
56765         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56766         in use, and use the current ABI.
56767         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56768         Reported by Jim Meyering.
56769
56770 2008-06-09  Eric Blake  <ebb9@byu.net>
56771
56772         Work around environments that (stupidly) ignore SIGALRM.
56773         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56774         before using alarm().
56775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56777         Reported by Ian Beckwith <ianb@erislabs.net>.
56778
56779         Produce autobuild blurb earlier in log.
56780         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56781
56782 2008-06-09  Jim Meyering  <meyering@redhat.com>
56783         and Ondřej Vašík  <ovasik@redhat.com>
56784
56785         utimens.c: correct kernel bug work-around
56786         Ondřej Vašík found that the invalid return value of 280 indicates
56787         failure, not success, and the kernel bug we're trying to work
56788         around affects not just the utimensat call, but also the fallback
56789         futimens call.
56790         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56791         not success.
56792         [HAVE_FUTIMENS]: Use the same work-around, here.
56793
56794 2008-06-09  Jim Meyering  <meyering@redhat.com>
56795
56796         add more guards around definition of ACE_-related code
56797         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56798         ALLOW and ACE_OWNER are also defined.
56799
56800 2008-06-08  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/acl-internal.h: Add me as co-author.
56803         * lib/file-has-acl.c: Likewise.
56804         * lib/set-mode-acl.c: Likewise.
56805         * lib/copy-acl.c: Likewise.
56806
56807 2008-06-08  Bruno Haible  <bruno@clisp.org>
56808
56809         Add support for AIX ACLs.
56810         * lib/acl-internal.h (acl_nontrivial): New declaration.
56811         * lib/file-has-acl.c (acl_nontrivial): New function.
56812         (file_has_acl): Add implementation using AIX 4 ACL API.
56813         * lib/set-mode-acl.c (qset_acl): Likewise.
56814         * lib/copy-acl.c (qcopy_acl): Likewise.
56815
56816 2008-06-08  Bruno Haible  <bruno@clisp.org>
56817
56818         Add support for HP-UX ACLs.
56819         * lib/acl-internal.h (acl_nontrivial): New declaration.
56820         * lib/file-has-acl.c (acl_nontrivial): New function.
56821         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56822         * lib/set-mode-acl.c (qset_acl): Likewise.
56823         * lib/copy-acl.c (qcopy_acl): Likewise.
56824
56825 2008-06-08  Bruno Haible  <bruno@clisp.org>
56826
56827         Add support for Cygwin ACLs.
56828         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56829         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56830         the chmod_or_fchmod call.
56831         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56832
56833 2008-06-08  Bruno Haible  <bruno@clisp.org>
56834
56835         Fix bug with setuid modes in Solaris 10+ code.
56836         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56837         succeeded, when the mode contains some special bits.
56838
56839 2008-06-08  Bruno Haible  <bruno@clisp.org>
56840
56841         Add support for Solaris 7..10 ACLs.
56842         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56843         declarations.
56844         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56845         functions.
56846         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56847         * lib/set-mode-acl.c (qset_acl): Likewise.
56848         * lib/copy-acl.c (qcopy_acl): Likewise.
56849
56850 2008-06-08  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56853         declaration.
56854         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56855         (acl_access_nontrivial): Remove MacOS X case.
56856         (file_has_acl): Use acl_extended_nontrivial.
56857         * lib/copy-acl.c (qcopy_acl): Likewise.
56858
56859 2008-06-08  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56862
56863 2008-06-08  Jim Meyering  <meyering@redhat.com>
56864
56865         * modules/acl (Maintainer): Add Bruno Haible.
56866
56867 2008-06-07  Bruno Haible  <bruno@clisp.org>
56868
56869         Improve support for Tru64 ACLs.
56870         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56871         ACL on OSF/1.
56872
56873 2008-06-07  Bruno Haible  <bruno@clisp.org>
56874
56875         Add support for MacOS X ACLs.
56876         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56877         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56878         * lib/set-mode-acl.c (qset_acl): Likewise.
56879         * lib/copy-acl.c (qcopy_acl): Likewise.
56880
56881 2008-06-07  Bruno Haible  <bruno@clisp.org>
56882
56883         Fix memory leak introduced on 2008-05-22.
56884         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56885         use.
56886
56887 2008-06-07  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56890         to construct an empty ACL.
56891
56892 2008-06-07  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56895         precisely.
56896         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56897
56898 2008-06-07  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56901         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56902
56903 2008-06-07  Bruno Haible  <bruno@clisp.org>
56904
56905         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56906         regardless of POSIX.
56907         * doc/posix-functions/_longjmp.texi: Likewise.
56908         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56909         SystemV platform in this case.
56910
56911 2008-06-06  Eric Blake  <ebb9@byu.net>
56912
56913         Document abort() bugs.
56914         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56915
56916         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56917         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56918         sigsetjmp.
56919         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56920         siglongjmp, but only as a macro.
56921         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56922         is obsolete.
56923         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56924
56925         Tweak documentation to cover cygwin argz bugs.
56926         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56927         argz bug fix; no code change needed since no cygwin releases
56928         occurred between the last fix and the bug being tested.
56929         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56930         module and recently fixed cygwin bugs.
56931         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56932         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56933         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56934         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56935         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56936         Likewise.
56937         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56938         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56939         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56940         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56941         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56942         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56943         Likewise.
56944
56945         Avoid gcc warning on cygwin.
56946         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56947         !ACL_NO_TRIVIAL]: Avoid unused variable.
56948
56949 2008-06-05  Eric Blake  <ebb9@byu.net>
56950
56951         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56952         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56953         git-version-gen fails to come up with a version.
56954         Reported by Simon Josefsson.
56955
56956 2008-06-05  Jim Meyering  <meyering@redhat.com>
56957             Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         utimens.c: work around a probable Linux kernel bug
56960         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56961         appears to be a kernel bug that causes utimensat to return 280
56962         instead of 0, indicating success.
56963
56964 2008-06-04  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56967         2008-06-01 commit.
56968
56969 2008-06-04  Bruno Haible  <bruno@clisp.org>
56970
56971         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56972         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56973         (file_has_acl): Use it. Save errno afterwards.
56974         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56975
56976 2008-06-03  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56979         draft code. Simplify #ifs.
56980         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56981         Put Solaris code after POSIX-draft code. Fix comments regarding
56982         Solaris 10, HP-UX. Mention Cygwin.
56983         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56984
56985 2008-06-03  Eric Blake  <ebb9@byu.net>
56986
56987         Provide fallback for older kernels.
56988         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56989         Provide runtime fallback if kernel lacks support.
56990         Reported by Mike Frysinger.
56991
56992 2008-06-02  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56995         it exists.
56996
56997 2008-06-02  Bruno Haible  <bruno@clisp.org>
56998
56999         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57000         * lib/copy-acl.c (qcopy_acl): Update comment.
57001
57002 2008-06-02  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57005         like ACL APIs.
57006
57007 2008-06-02  Bruno Haible  <bruno@clisp.org>
57008
57009         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57010         * tests/test-set-mode-acl.sh: Likewise.
57011         * tests/test-copy-acl.sh: Likewise.
57012         * tests/test-copy-file.sh: Likewise.
57013
57014 2008-06-02  Bruno Haible  <bruno@clisp.org>
57015
57016         * tests/test-file-has-acl.sh: Remove unused code.
57017
57018 2008-06-01  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57021         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57022         messages.
57023         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57024
57025 2008-06-01  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57028         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57029         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57030         APIs.
57031         * modules/acl-tests (configure.ac): Remove tests now contained in
57032         m4/acl.m4.
57033
57034 2008-06-02  Jim Meyering  <meyering@redhat.com>
57035
57036         announce-gen: use a better key-server host name
57037         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57038         it may be more consistently reliable.  Suggested by Werner Koch
57039         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57040
57041 2008-06-01  Bruno Haible  <bruno@clisp.org>
57042
57043         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57044         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57045
57046 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57047
57048         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57049
57050 2008-06-01  Bruno Haible  <bruno@clisp.org>
57051
57052         New ACL tests.
57053         * tests/test-file-has-acl.sh: New file.
57054         * tests/test-file-has-acl.c: New file.
57055         * tests/test-set-mode-acl.sh: New file.
57056         * tests/test-set-mode-acl.c: New file.
57057         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57058         * tests/test-copy-acl.c: New file.
57059         * modules/acl-tests: New file, based on modules/copy-file-tests.
57060         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57061         (Depends-on): Add acl-tests.
57062         (configure.ac): Remove checks.
57063         (Makefile.am): Don't create test-sameacls program here any more.
57064
57065 2008-06-01  Bruno Haible  <bruno@clisp.org>
57066
57067         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57068         * tests/test-sameacls.c: Include progname.h.
57069         (main): Invoke set_program_name. Portability fixes for MacOS X,
57070         Solaris, HP-UX.
57071
57072 2008-06-01  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57075         function.
57076         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57077
57078 2008-06-01  Bruno Haible  <bruno@clisp.org>
57079
57080         * modules/rpmatch (Depends-on): Add strdup.
57081
57082 2008-06-01  Bruno Haible  <bruno@clisp.org>
57083
57084         * lib/pipe.c: Include unistd-safer.h.
57085         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57086         * modules/pipe (Depends-on): Add unistd-safer.
57087
57088 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57089
57090         * modules/autobuild (configure.ac): Call AB_INIT.
57091
57092 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57093
57094         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57095         Suggested by Bruno Haible <bruno@clisp.org>.
57096
57097 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57098
57099         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57100         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57101         <bruno@clisp.org>.
57102
57103 2008-05-29  Eric Blake  <ebb9@byu.net>
57104
57105         Prefer new POSIX 200x interfaces over futimesat.
57106         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57107         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57108         when available.
57109         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57110
57111 2008-05-28  Bruno Haible  <bruno@clisp.org>
57112
57113         * modules/stpcpy (License): Change to LGPLv2+.
57114         Requested by David Lutterkort <dlutter@redhat.com>.
57115
57116 2008-05-27  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57119         current mingw.
57120         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57121
57122 2008-05-27  Bruno Haible  <bruno@clisp.org>
57123
57124         * modules/iconv_open (Link): New section, from module 'iconv'.
57125         * modules/striconv (Link): Likewise.
57126         * modules/striconveh (Link): Likewise.
57127         * modules/xstriconv (Link): Likewise.
57128         * modules/unicodeio (Link): Likewise.
57129         * modules/propername (Link): Likewise.
57130         Reported by Jim Meyering.
57131
57132 2008-05-26  Jim Meyering  <meyering@redhat.com>
57133
57134         sha256: do not artificially restrict buffer length to be < 2^32
57135         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57136         uint32_t to size_t.
57137         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57138         to match.
57139
57140         avoid unaligned access errors, e.g., on sparc
57141         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57142         direct access through a possibly-unaligned uint64* pointer.
57143         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57144         direct access through a possibly-unaligned uint32* pointer.
57145         Prompted by this patch from Tom "spot" Callaway:
57146         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57147
57148         sha512.c: fix typo in comment
57149         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57150
57151 2008-05-25  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57154         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57155         (Makefile.am): Update lib_SOURCES.
57156
57157 2008-05-25  Bruno Haible  <bruno@clisp.org>
57158
57159         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57160
57161 2008-05-25  Jim Meyering  <meyering@redhat.com>
57162
57163         useless-if-before-free: freed expr may have white-space differences
57164         * build-aux/useless-if-before-free: Recognize cases in which the
57165         freed expression differs from the tested one in embedded white
57166         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57167         $1 was used, so we can't make any regexp shy.  Improved tests now
57168         detect this.
57169
57170         useless-if-before-free: accept white space in the expression.
57171         * build-aux/useless-if-before-free: For now, any white space
57172         in the expression must be identical in the free argument.
57173
57174         useless-if-before-free: efficiency tweak
57175         * build-aux/useless-if-before-free: Make the expression-matching
57176         regexp "shy".
57177         Make the *outer* regexp shy, not the expr-matching one.
57178
57179         update code-in-comment to accept cast of free arg
57180         * build-aux/useless-if-before-free: Update regexp.
57181
57182 2008-05-25  Bruno Haible  <bruno@clisp.org>
57183
57184         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57185         * modules/copy-file-tests (Files, Makefile.am): Update.
57186         * tests/test-copy-file.c (func_test_copy): Update.
57187
57188 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57189
57190         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57191
57192 2008-05-23  Bruno Haible  <bruno@clisp.org>
57193
57194         Improve support for ACLs on OSF/1.
57195         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57196         Remove fallback for unknown flavors of ACLs.
57197
57198 2008-05-22  Bruno Haible  <bruno@clisp.org>
57199
57200         Add support for ACLs on OSF/1.
57201         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57202         replacements.
57203         (acl_free_text): New macro fallback.
57204         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57205         acl_free.
57206         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57207         acl_free_text function. Require AC_C_INLINE.
57208
57209 2008-05-22  Bruno Haible  <bruno@clisp.org>
57210
57211         Make copy_acl work on MacOS X 10.5.
57212         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57213         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57214         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57215         If MODE_INSIDE_ACL, don't assume that every system has the same text
57216         representation for ACLs as FreeBSD.
57217         * lib/copy-acl.c (copy_acl): Add support for platforms with
57218         !MODE_INSIDE_ACL.
57219         * lib/file-has-acl.c (file_has_acl): Likewise.
57220         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57221         FreeBSD, MacOS X, or IRIX, respectively.
57222
57223 2008-05-22  Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/acl.h: Don't include <sys/acl.h>.
57226         (GETACLCNT): Move fallback to lib/acl-internal.h.
57227         * lib/acl-internal.h: Include <sys/acl.h> here.
57228         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57229
57230 2008-05-22  Bruno Haible  <bruno@clisp.org>
57231
57232         Split off copy_acl function to separate file.
57233         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57234         * lib/acl.c (copy_acl): Moved function to separate file.
57235         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57236         * modules/acl (Files): Add lib/copy-acl.c.
57237         (Makefiles.am): Augment lib_SOURCES.
57238
57239 2008-05-22  Bruno Haible  <bruno@clisp.org>
57240
57241         * modules/copy-file-tests: New file.
57242         * tests/test-copy-file.sh: New file.
57243         * tests/test-copy-file.c: New file.
57244         * tests/test-copy-file-sameacls.c: New file.
57245
57246 2008-05-22  Eric Blake  <ebb9@byu.net>
57247
57248         Avoid gcc warning.
57249         * tests/test-memcmp.c (main): Pass NULL indirectly.
57250
57251 2008-05-21  Bruno Haible  <bruno@clisp.org>
57252
57253         Add reference doc about ACLs.
57254         * doc/acl-resources.txt: New file.
57255         * doc/acl-cygwin.txt: New file.
57256
57257 2008-05-21  Bruno Haible  <bruno@clisp.org>
57258
57259         Avoid one more warning from gcc.
57260         * lib/vasnprintf.c (IF_LINT): Update comments.
57261         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57262
57263 2008-05-21  Jim Meyering  <meyering@redhat.com>
57264
57265         avoid a warning from gcc
57266         * lib/vasnprintf.c (IF_LINT): Define.
57267         (scale10_round_decimal_long_double):
57268         Use it to avoid a "may be used uninitialized" warning.
57269         (scale10_round_decimal_double): Likewise.
57270
57271 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57272
57273         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57274         declared.
57275
57276 2008-05-20  Bruno Haible  <bruno@clisp.org>
57277
57278         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57279         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57280
57281 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57282
57283         * modules/memcmp-tests: New file.
57284         * tests/test-memcmp.c: New file.
57285
57286 2008-05-19  Bruno Haible  <bruno@clisp.org>
57287
57288         * modules/propername (Notice, configure.ac): Put quoted "..." into
57289         --keyword option.
57290         * lib/propername.h: Update comments accordingly.
57291         Reported by Eric Blake.
57292
57293 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57294
57295         * modules/getpass-gnu (Depends-on): Add fseeko.
57296
57297 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57298
57299         * modules/base64-tests: New file.
57300
57301 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57302
57303         * lib/base64.c (base64_decode_ctx): If a decode context structure
57304         was passed in use it to ignore newlines.  If a context structure
57305         was _not_ passed in, continue to treat newlines as garbage (this
57306         is the historical behavior).  Formerly base64_decode.
57307         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57308         takes a decode context structure.
57309         * lib/base64.h (base64_decode): Macro for four-argument calls.
57310         (base64_decode_alloc): Likewise.
57311         * lib/base64.c (base64_decode_ctx): If a decode context structure
57312         was passed in use it to ignore newlines.  If a context structure
57313         was _not_ passed in, continue to treat newlines as garbage (this
57314         is the historical behavior).  Formerly base64_decode.
57315         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57316         takes a decode context structure.
57317         * lib/base64.h (base64_decode): Macro for four-argument calls.
57318         (base64_decode_alloc): Likewise.
57319
57320 2008-05-19  Jim Meyering  <meyering@redhat.com>
57321
57322         avoid a warning from gcc
57323         * lib/trim.c (IF_LINT): Define.
57324         (trim2): Use it to avoid a "may be used uninitialized" warning.
57325
57326         Fix doc typo.
57327         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57328
57329 2008-05-19  Bruno Haible  <bruno@clisp.org>
57330
57331         * doc/glibc-functions/getpass.texi: Document limits of other
57332         implementations.
57333
57334 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57335             Bruno Haible <bruno@clisp.org>
57336
57337         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57338
57339 2008-05-18  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/propername: New file, from GNU gettext.
57342         * lib/propername.h: New file, from GNU gettext.
57343         * lib/propername.c: New file, from GNU gettext.
57344         * MODULES.html.sh (Internationalization functions): Add propername.
57345
57346 2008-05-16  Jim Meyering  <meyering@redhat.com>
57347             Bruno Haible  <bruno@clisp.org>
57348
57349         Avoid some warnings from "gcc -Wshadow".
57350         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57351
57352 2008-05-15  Eric Blake  <ebb9@byu.net>
57353
57354         Extend previous patch to cygwin 1.7.0.
57355         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57356         fast implementation in cygwin >= 1.7.0.
57357         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57359
57360 2008-05-15  Bruno Haible  <bruno@clisp.org>
57361
57362         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57363         implementation in glibc >= 2.9.
57364         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57366
57367 2008-05-15  Bruno Haible  <bruno@clisp.org>
57368
57369         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57370         (Unicode string functions): Add unilbrk/*.
57371         Reported by Karl Berry.
57372
57373 2008-05-15  Eric Blake  <ebb9@byu.net>
57374
57375         Fix violation of <stdbool.h> replacement in regex.
57376         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57377         * lib/regexec.c (re_search_internal): Likewise.
57378         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57379
57380 2008-05-15  Jim Meyering  <meyering@redhat.com>
57381
57382         avoid distracting test output when git or cvs is not found
57383         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57384         * tests/test-vc-list-files-git.sh: Likewise.
57385
57386 2008-05-15  Eric Blake  <ebb9@byu.net>
57387
57388         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57389         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57390         glibc version.
57391         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57392         * doc/posix-functions/strstr.texi (strstr): Likewise.
57393         * lib/str-two-way.h (MAX): Sychronize with glibc.
57394
57395 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57396
57397         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57398         opr.ctx_type.
57399         (calc_first): Initialize constraint field.
57400         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57401         Fix grammar.
57402         (duplicate_node): Merge constraint field for all node types.
57403         (calc_eclosure_iter): Look at constraint field for all node types.
57404         * lib/regex_internal.c (create_cd_newstate): Don't look at
57405         opr.ctx_type.
57406
57407 2008-05-14  Bruno Haible  <bruno@clisp.org>
57408
57409         Help GCC to do better code generation.
57410         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57411         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57412         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57413         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57414         Declare with attribute 'malloc' if supported.
57415
57416 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57417
57418         use "echo STR|wc -c" rather than unportable "expr length STR"
57419         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57420         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57421
57422 2008-05-14  Jim Meyering  <meyering@redhat.com>
57423
57424         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57425         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57426         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57427         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57428         via Collin Lasse.
57429
57430 2008-05-14  Eric Blake  <ebb9@byu.net>
57431
57432         Avoid quadratic growth in gl_LIBSOURCES.
57433         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57434         Suggested by Bruno Haible.
57435
57436         Test xmemdup0.
57437         * modules/xmemdup0-tests: New file.
57438         * tests/test-xmemdup0.c: Likewise.
57439
57440 2008-05-13  Eric Blake  <ebb9@byu.net>
57441
57442         Split xmemdup0 into its own module.
57443         * modules/xmemdup0: New file.
57444         * lib/xmemdup0.h: Likewise.
57445         * lib/xmemdup0.c: Likewise.
57446         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57447         * lib/xalloc.h (xmemdup0): Remove.
57448         * lib/xmalloc.c (xmemdup0): Likewise.
57449
57450 2008-05-13  Eric Blake  <ebb9@byu.net>
57451             Bruno Haible  <bruno@clisp.org>
57452
57453         Reduce number of forks required during autoconf.
57454         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57455         and gl_LIBSOURCES_DIR.
57456         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57457         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57458         m4_syscmd per file.
57459         <m4_foreach_w>: Move...
57460         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57461
57462 2008-05-13  Eric Blake  <ebb9@byu.net>
57463
57464         * gnulib-tool: Fix various comment typos.
57465
57466 2008-05-12  Bruno Haible  <bruno@clisp.org>
57467
57468         Tailor the linebreaking algorithm.
57469         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57470
57471 2008-05-12  Bruno Haible  <bruno@clisp.org>
57472
57473         Update to Unicode 5.0.0.
57474         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57475         LBP_JV, LBP_JT. Redistribute values.
57476         (unilbrk_table): Change size.
57477         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57478         Unicode TR#14 rev. 22.
57479         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57480         LBP_JV, LBP_JT. Redistribute values.
57481         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57482         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57483         Update.
57484         * lib/unilbrk/lbrkprop1.h: Regenerated.
57485         * lib/unilbrk/lbrkprop2.h: Regenerated.
57486         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57487         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57488         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57489         Likewise.
57490         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57491         Likewise.
57492         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57493         result.
57494         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57495         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57496         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57497         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57498         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57499         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57500
57501 2008-05-11  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57504
57505 2008-05-11  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57508         * modules/unilbrk/gen-lbrk: New file.
57509
57510 2008-05-11  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57513         * m4/sha512.m4 (gl_SHA512): Likewise.
57514
57515 2008-05-11  Jim Meyering  <meyering@redhat.com>
57516
57517         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57518         * modules/crypto/sha256: New file.
57519         * modules/crypto/sha512: Likewise.
57520         * lib/sha256.c: Likewise.
57521         * lib/sha256.h: Likewise.
57522         * lib/sha512.c: Likewise.
57523         * lib/sha512.h: Likewise.
57524         * lib/u64.h: Likewise.
57525         * m4/sha256.m4: Likewise.
57526         * m4/sha512.m4: Likewise.
57527         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57528
57529 2008-05-10  Bruno Haible  <bruno@clisp.org>
57530
57531         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57532         (Input/Output <stdio.h>): Add xprintf.
57533         (Signal handling <signal.h>): Add strsignal.
57534         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57535         (Core language properties): Add func.
57536         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57537         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57538         strings.
57539         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57540         (Input/output): New section.
57541         (File system functions): Add openat-die, stat-macros.
57542         (Networking functions): Add sockets.
57543         (Unicode string functions): Add unictype/*.
57544         (Support for building libraries and executables): Add gperf.
57545         (Support for building documentation): Add agpl-3.0.
57546         (Misc): Add nocrash.
57547
57548 2008-05-10  Bruno Haible  <bruno@clisp.org>
57549
57550         * modules/unictype/gen-ctype: New file.
57551
57552 2008-05-10  Jim Meyering  <meyering@redhat.com>
57553
57554         Make chdir-safer.c more efficient on a system with no symlinks.
57555         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57556         also if ELOOP is zero.  Suggested by Bruno Haible.
57557
57558         Make chdir-safer.c slightly safer.
57559         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57560         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57561
57562         Avoid compile failure on systems without ELOOP (like mingw).
57563         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57564         Reported by Bruno Haible.
57565
57566 2008-05-10  Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57569         (is_utf8_encoding): Use a case-insensitive comparison.
57570         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57571         streq.
57572
57573 2008-05-10  Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57576         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57577         * lib/unilbrk/ulc-common.h (iconv_string_length,
57578         iconv_string_keeping_offsets): Remove declarations.
57579         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57580         Don't include <iconv.h>, streq.h, xsize.h.
57581         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57582         conversion.
57583         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57584         <iconv.h>, streq.h, xsize.h.
57585         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57586         conversion.
57587         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57588         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57589         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57590         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57591
57592 2008-05-10  Bruno Haible  <bruno@clisp.org>
57593
57594         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57595         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57596
57597         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57598         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57599
57600         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57601         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57602
57603         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57604         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57605
57606         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57607         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57608
57609         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57610         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57611
57612         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57613         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57614
57615         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57616         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57617
57618 2008-05-10  Bruno Haible  <bruno@clisp.org>
57619
57620         Split up 'linebreak' module.
57621         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57622         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57623         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57624         modifications.
57625         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57626         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57627         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57628         lib/linebreak.c.
57629         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57630         lib/linebreak.c.
57631         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57632         lib/linebreak.c.
57633         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57634         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57635         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57636         lib/linebreak.c.
57637         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57638         lib/linebreak.c.
57639         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57640         lib/linebreak.c.
57641         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57642         lib/linebreak.c.
57643         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57644         lib/linebreak.c.
57645         * modules/unilbrk/base: New file.
57646         * modules/unilbrk/tables: New file.
57647         * modules/unilbrk/u8-possible-linebreaks: New file.
57648         * modules/unilbrk/u16-possible-linebreaks: New file.
57649         * modules/unilbrk/u32-possible-linebreaks: New file.
57650         * modules/unilbrk/ulc-common: New file.
57651         * modules/unilbrk/ulc-possible-linebreaks: New file.
57652         * modules/unilbrk/u8-width-linebreaks: New file.
57653         * modules/unilbrk/u16-width-linebreaks: New file.
57654         * modules/unilbrk/u32-width-linebreaks: New file.
57655         * modules/unilbrk/ulc-width-linebreaks: New file.
57656         * lib/linebreak.h: Remove file.
57657         * lib/linebreak.c: Remove file.
57658         * m4/linebreak.m4: Remove file.
57659         * modules/linebreak: Remove file.
57660         * NEWS: Mention the changes.
57661
57662 2008-05-09  Eric Blake  <ebb9@byu.net>
57663
57664         Add xmemdup0.
57665         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57666         implementation.
57667         * lib/xmalloc.c (xmemdup0): New C implementation.
57668
57669 2008-05-08  Bruno Haible  <bruno@clisp.org>
57670
57671         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57672
57673 2008-05-07  Eric Blake  <ebb9@byu.net>
57674
57675         Support cross-compilation of <wctype.h>.
57676         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57677         AC_CACHE_CHECK.
57678
57679 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57680
57681         * build-aux/vc-list-files: Add support for bzr.
57682
57683 2008-05-03  Jim Meyering  <meyering@redhat.com>
57684
57685         avoid failed assertion with tight malloc
57686         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57687
57688 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57689
57690         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57691         are needed from arpa/inet.h.
57692         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57693         Reported by Bruno Haible.
57694
57695 2008-05-02  Jim Meyering  <meyering@redhat.com>
57696
57697         avoid compilation error on FreeBSD 6
57698         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57699
57700 2008-05-01  Jim Meyering  <meyering@redhat.com>
57701
57702         useless-if-before-free: correct --help's exit status description
57703         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57704         for one or more matches, etc.  Reported by Bruno Haible.
57705
57706         vc-list-files: make the stand-alone gnulib test work
57707         * modules/vc-list-files-tests (configure.ac):
57708         Define and AC_SUBST abs_aux_dir.
57709         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57710         $(abs_top_srcdir) to each script and having each of them
57711         duplicate the work of setting PATH, set PATH here, using
57712         the new variable, abs_aux_dir instead.
57713         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57714         * tests/test-vc-list-files-git.sh: Likewise.
57715         Reported by Bruno Haible.
57716
57717 2008-05-01  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57720         reallocation. Rename 'done' to 'found_delimiter'.
57721
57722 2008-05-01  Jim Meyering  <meyering@redhat.com>
57723
57724         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57725         * build-aux/vc-list-files: Use `...`, not $(...).
57726
57727 2008-04-30  Jim Meyering  <meyering@redhat.com>
57728
57729         add tests for vc-list-files
57730         * modules/vc-list-files-tests: New module.
57731         * tests/test-vc-list-files-cvs.sh: New file.
57732         * tests/test-vc-list-files-git.sh: New file.
57733
57734         avoid a warning from gcc
57735         * lib/getndelim2.c (IF_LINT): Define.
57736         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57737
57738         vc-list-files: work properly with build-aux/cvsu, too
57739         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57740         to all cvs-based clauses.
57741
57742         vc-list-files: work properly in the CVS+awk case, too
57743         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57744
57745         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57746         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57747         take more than one file argument, so .  Add quotes, just in case $dir
57748         ever contains a shell meta-character.  Prompted by Soren Hansen in
57749         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57750
57751 2008-04-29  Eric Blake  <ebb9@byu.net>
57752
57753         Optimize getndelim2 to use block operations when possible.
57754         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57755         freadseek, and memchr2.
57756         * lib/getndelim2.c (getndelim2): Use them for block reads.
57757
57758 2008-04-29  Bruno Haible  <bruno@clisp.org>
57759
57760         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57761         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57762         * modules/inet_ntop (Depends-on): Add extensions.
57763         * modules/inet_pton (Depends-on): Likewise.
57764         Reported by Simon Josefsson.
57765
57766 2008-04-29  Jim Meyering  <meyering@redhat.com>
57767
57768         When the is more than one match in a block, match all of them.
57769         * build-aux/useless-if-before-free: Iterate through each block
57770         until there are no more matches.
57771
57772         Fix broken useless-if-before-free script.
57773         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57774         the expression to match cast of argument to free-like function.
57775
57776 2008-04-29  Eric Blake  <ebb9@byu.net>
57777
57778         Use new header.
57779         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57780
57781 2008-04-29  Jim Meyering  <meyering@redhat.com>
57782
57783         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57784         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57785         by gnulib to exist and to declare e.g., inet_ntop.
57786         Don't include "inet_ntop.h", now removed.
57787
57788         * m4/arpa_inet_h.m4: Remove trailing blanks.
57789
57790 2008-04-29  Eric Blake  <ebb9@byu.net>
57791
57792         Silence valgrind on safe reads beyond potential array bounds.
57793         * lib/rawmemchr.valgrind: New file.
57794         * lib/strchrnul.valgrind: Likewise.
57795         * modules/rawmemchr (Files): Distribute new file.
57796         * modules/strchrnul (Files): Likewise.
57797         Suggested by Bruno Haible.
57798
57799 2008-04-29  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57802         (inet_ntop, inet_pton): Change portability warning's wording.
57803         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57804         Invoke gl_CHECK_NEXT_HEADERS.
57805         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57806         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57807         set ARPA_INET_H.
57808         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57809         * modules/arpa_inet (Description): No longer only for systems that
57810         lack it.
57811         (Depends-on): Add include_next.
57812         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57813         HAVE_ARPA_INET_H.
57814
57815 2008-04-29  Jim Meyering  <meyering@redhat.com>
57816
57817         * modules/mkdir (License): Re-license as LGPLv2+.
57818
57819 2008-04-29  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/rawmemchr (Maintainer): Set to Eric.
57822         * modules/strchrnul (Maintainer): Likewise.
57823
57824 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57825
57826         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57827         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57828
57829         * modules/arpa_inet (arpa/inet.h): Use them.
57830
57831 2008-04-28  Eric Blake  <ebb9@byu.net>
57832
57833         Test getndelim2.
57834         * modules/getndelim2-tests: New file.
57835         * tests/test-getndelim2.c: Likewise.
57836         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57837         stream.
57838         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57839
57840         * MODULES.html.sh: Document new module.
57841
57842 2008-04-20  Bruno Haible  <bruno@clisp.org>
57843
57844         * lib/c-stack.c (die): Use raise.
57845         * modules/c-stack (Depends-on): Add raise.
57846
57847 2008-04-28  Bruno Haible  <bruno@clisp.org>
57848
57849         Expect rpmatch to be declared.
57850         * lib/yesno.c (rpmatch): Remove declaration.
57851
57852         Declare rpmatch.
57853         * lib/stdlib.in.h (rpmatch): New declaration.
57854         * lib/rpmatch.c: Include <stdlib.h> first.
57855         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57856         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57858         HAVE_RPMATCH.
57859         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57860         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57861         (Include): Set to <stdlib.h>.
57862         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57863         HAVE_RPMATCH.
57864         * NEWS: Document the change.
57865
57866 2008-04-28  Bruno Haible  <bruno@clisp.org>
57867
57868         Change rpmatch to use nl_langinfo when appropriate.
57869         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57870         (N_): New macro.
57871         (localized_pattern): New function/macro.
57872         (try): Remove match, nomatch arguments. Copy the pattern into safe
57873         memory before caching it.
57874         (rpmatch): Use localized_pattern. Add translator comments.
57875         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57876         Suggested by Eric Blake.
57877         * modules/rpmatch (Depends-on): Add stdbool.
57878
57879 2008-04-28  Eric Blake  <ebb9@byu.net>
57880
57881         Add rawmemchr module, matching glibc.
57882         * modules/string (Makefile.am): New indicator.
57883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57884         * lib/string.in.h (rawmemchr): Declare when appropriate.
57885         * modules/rawmemchr: New file.
57886         * m4/rawmemchr.m4: Likewise.
57887         * lib/rawmemchr.c: Likewise.
57888         * modules/rawmemchr-tests: Likewise.
57889         * tests/test-rawmemchr.c: Likewise.
57890         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57891         module.
57892         * modules/strchrnul (Depends-on): Add rawmemchr.
57893         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57894
57895         Whitespace cleanup.
57896         * tests/test-strchrnul.c: Reindent.
57897         * lib/strchrnul.c: Likewise.
57898
57899         Optimize and test strchrnul.
57900         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57901         * modules/strchrnul-tests: New file.
57902         * tests/test-strchrnul.c: Likewise.
57903
57904         Remove intprops dependency.
57905         * modules/memchr (Depends-on): Remove intprops.
57906         * modules/memrchr (Depends-on): Likewise.
57907         * modules/memchr2 (Depends-on): Likewise.
57908         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57909         * lib/memrchr.c (__memrchr): Likewise.
57910         * lib/memrchr2.c (memchr2): Likewise.
57911         Reported by Simon Josefsson.
57912
57913 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57914
57915         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57916         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57917
57918 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57919
57920         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57921
57922         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57923
57924         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57925
57926         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57927         declarations.
57928         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57929
57930         * m4/inet_pton.m4: Don't check for header files.
57931
57932         * m4/inet_ntop.m4: Don't check for header files.
57933
57934 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57935
57936         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57937         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57938         trigger for cygwin).
57939         Reported by Bruno Haible  <bruno@clisp.org>.
57940
57941 2008-04-28  Bruno Haible  <bruno@clisp.org>
57942
57943         * doc/posix-functions/strdup.texi: Mention mingw problem.
57944
57945 2008-04-27  Bruno Haible  <bruno@clisp.org>
57946
57947         * modules/stat-time-tests (Depends-on): Add sleep.
57948         * tests/test-stat-time.c (force_unlink): New function.
57949         (cleanup): Use it.
57950         (test_mtime): Remove the ctime related tests.
57951         (test_ctime): New function, containing the ctime related tests.
57952         (main): Call test_ctime, except on native Windows platforms.
57953
57954 2008-04-27  Bruno Haible  <bruno@clisp.org>
57955
57956         * lib/rpmatch.c (rpmatch): Add some comments.
57957         Reported by James Youngman <jay@gnu.org>.
57958
57959 2008-04-27  Bruno Haible  <bruno@clisp.org>
57960
57961         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57962         quiet NaNs.
57963
57964 2008-04-27  Bruno Haible  <bruno@clisp.org>
57965
57966         Make test-yesno.sh work on mingw.
57967         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57968         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57969         (main): Set stdin to binary mode.
57970         * modules/yesno-tests (Depends-on): Add binary-io.
57971
57972 2008-04-27  Bruno Haible  <bruno@clisp.org>
57973
57974         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57975         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57976         argument that lie outside the IEEE 854 domain.
57977         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57978         (gl_ISFINITE): Use it.
57979         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57980
57981 2008-04-27  Bruno Haible  <bruno@clisp.org>
57982
57983         Allow local renaming in config.h.
57984         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57985
57986 2008-04-27  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/memchr.c (__memchr): Change type of 'i'.
57989         * lib/memchr2.c (memchr2): Likewise.
57990
57991 2008-04-26  Eric Blake  <ebb9@byu.net>
57992         and Bruno Haible  <bruno@clisp.org>
57993
57994         Optimize and test memrchr.
57995         * modules/memrchr (Depends-on): Add intprops.
57996         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57997         * modules/memrchr-tests: New file.
57998         * tests/test-memrchr.c: New file.
57999
58000 2008-04-26  Bruno Haible  <bruno@clisp.org>
58001
58002         Add tentative support for DragonFly BSD.
58003         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58004         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58005         fp.
58006         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58007         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58008         * lib/fpurge.c (fpurge): Likewise.
58009         * lib/freadable.c (freaadable): Likewise.
58010         * lib/freadahead.c (freadahead): Likewise.
58011         * lib/freading.c (freading): Likewise.
58012         * lib/freadptr.c (freadptr): Likewise.
58013         * lib/freadseek.c (freadptrinc): Likewise.
58014         * lib/fseeko.c (fseeko): Likewise.
58015         * lib/fseterr.c (fseterr): Likewise.
58016         * lib/fwritable.c (fwritable): Likewise.
58017         * lib/fwriting.c (fwriting): Likewise.
58018
58019 2008-04-26  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/stdio-impl.h: New file.
58022         * lib/fbufmode.c: Include stdio-impl.h.
58023         (fbufmode): Use fp_, remove redundant #defines.
58024         * lib/fflush.c: Include stdio-impl.h.
58025         (clear_ungetc_buffer): Remove redundant #defines.
58026         * lib/fpurge.c: Include stdio-impl.h.
58027         (fpurge): Remove redundant #defines.
58028         * lib/freadable.c: Include stdio-impl.h.
58029         (freadable): Remove redundant #defines.
58030         * lib/freadahead.c: Include stdio-impl.h.
58031         (freadahead): Remove redundant #defines.
58032         * lib/freading.c: Include stdio-impl.h.
58033         (freading): Remove redundant #defines.
58034         * lib/freadptr.c: Include stdio-impl.h.
58035         (freadptr): Remove redundant #defines.
58036         * lib/freadseek.c: Include stdio-impl.h.
58037         (freadptrinc): Remove redundant #defines.
58038         * lib/fseeko.c: Include stdio-impl.h.
58039         (rpl_fseeko): Remove redundant #defines.
58040         * lib/fseterr.c: Include stdio-impl.h.
58041         (fseterr): Remove redundant #defines.
58042         * lib/fwritable.c: Include stdio-impl.h.
58043         (fwritable: Remove redundant #defines.
58044         * lib/fwriting.c: Include stdio-impl.h.
58045         (fwriting): Remove redundant #defines.
58046         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58047         * modules/fflush (Files): Likewise.
58048         * modules/fpurge (Files): Likewise.
58049         * modules/freadable (Files): Likewise.
58050         * modules/freadahead (Files): Likewise.
58051         * modules/freading (Files): Likewise.
58052         * modules/freadptr (Files): Likewise.
58053         * modules/freadseek (Files): Likewise.
58054         * modules/fseeko (Files): Likewise.
58055         * modules/fseterr (Files): Likewise.
58056         * modules/fwritable (Files): Likewise.
58057         * modules/fwriting (Files): Likewise.
58058
58059 2008-04-26  Bruno Haible  <bruno@clisp.org>
58060
58061         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58062         restore_seek_optimization, update_fpos_cache): New functions, extracted
58063         from rpl_fflush.
58064         (rpl_fflush): Use them.
58065         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58066         (gl_REPLACE_FFLUSH): Use it.
58067
58068 2008-04-26  Bruno Haible  <bruno@clisp.org>
58069
58070         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58071         on Solaris.
58072         * tests/test-xstrtoimax.sh: Likewise.
58073         * tests/test-xstrtoumax.sh: Likewise.
58074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58075
58076 2008-04-26  Bruno Haible  <bruno@clisp.org>
58077
58078         * modules/memchr-tests: New file.
58079         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58080
58081 2008-04-26  Eric Blake  <ebb9@byu.net>
58082             Bruno Haible  <bruno@clisp.org>
58083
58084         * lib/memchr.c: Include intprops.h.
58085         (__memchr): Optimize parallel detection of matching bytes. Rename local
58086         variables. Add explanatory comments.
58087
58088 2008-04-26  Bruno Haible  <bruno@clisp.org>
58089
58090         Fix module 'memchr', broken since 2000-10-28.
58091         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58092
58093 2008-04-26  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58096         comments.
58097
58098 2008-04-25  Eric Blake  <ebb9@byu.net>
58099
58100         Use native fstatat on cygwin 1.7.0.
58101         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58102         first.
58103
58104 2008-04-23  Eric Blake  <ebb9@byu.net>
58105
58106         Improve memchr2 performance.
58107         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58108         NUL bytes.
58109         * modules/memchr2 (Depends-on): Use intprops.h.
58110
58111 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58112
58113         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58114         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58115         <blp@cs.stanford.edu>.
58116
58117 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58118
58119         * lib/arpa_inet.in.h: New file.
58120
58121         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58122         (Makefile.am): Sed in substitute header file.
58123
58124         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58125         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58126
58127         * modules/inet_ntop (configure.ac): Use
58128         gl_ARPA_INET_MODULE_INDICATOR.
58129
58130         * modules/inet_pton (configure.ac): Use
58131         gl_ARPA_INET_MODULE_INDICATOR.
58132
58133 2008-04-22  Jim Meyering  <meyering@redhat.com>
58134
58135         * modules/verify (License): Re-license as LGPLv2+.
58136
58137 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58138
58139         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58140         parameter to void* as per POSIX standard (MinGW uses char*).
58141
58142 2008-04-21  Bruno Haible  <bruno@clisp.org>
58143
58144         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58145         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58146         Define to replacements if REPLACE_ISWCNTRL is 1.
58147         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58148         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58149         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58150         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58151         what it fixes.
58152         * doc/posix-functions/iswalpha.texi: Likewise.
58153         * doc/posix-functions/iswblank.texi: Likewise.
58154         * doc/posix-functions/iswcntrl.texi: Likewise.
58155         * doc/posix-functions/iswdigit.texi: Likewise.
58156         * doc/posix-functions/iswgraph.texi: Likewise.
58157         * doc/posix-functions/iswlower.texi: Likewise.
58158         * doc/posix-functions/iswprint.texi: Likewise.
58159         * doc/posix-functions/iswpunct.texi: Likewise.
58160         * doc/posix-functions/iswspace.texi: Likewise.
58161         * doc/posix-functions/iswupper.texi: Likewise.
58162         * doc/posix-functions/iswxdigit.texi: Likewise.
58163         Reported by Alain Guibert.
58164
58165 2008-04-21  Bruno Haible  <bruno@clisp.org>
58166
58167         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58168         Patch by Alain Guibert.
58169
58170 2008-04-21  Bruno Haible  <bruno@clisp.org>
58171
58172         Fix test failures on mingw.
58173         * tests/test-xstrtol.c (print_no_progname): New function.
58174         (main): Install it in error_print_progname hook.
58175         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58176         * tests/test-xstrtoimax.sh: Likewise.
58177         * tests/test-xstrtoumax.sh: Likewise.
58178
58179 2008-04-21  Bruno Haible  <bruno@clisp.org>
58180
58181         Fix test failure on mingw.
58182         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58183
58184 2008-04-21  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58187         Actually assign a value.
58188
58189 2008-04-20  Bruno Haible  <bruno@clisp.org>
58190
58191         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58192         take 2.
58193         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58194         'canonicalize-lgpl' module is also used.
58195         * lib/canonicalize-lgpl.c: Undo last change.
58196         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58197
58198 2008-04-20  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58201         config.h. Provide _mkdir based fallback for mingw.
58202         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58203         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58204         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58205         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58206         rather than defining mkdir in config.h.
58207         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58208         (gl_SYS_STAT_H_DEFAULTS): New macro.
58209         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58210         HAVE_IO_H any more.
58211         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58212         HAVE_DECL_MKDIR and HAVE_IO_H.
58213
58214 2008-04-20  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/isapipe.c: Port to native Windows platforms.
58217
58218 2008-04-20  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58221
58222 2008-04-21  Eric Blake  <ebb9@byu.net>
58223
58224         Work around preprocessors that don't handle UINTMAX_MAX.
58225         * lib/memchr2.c (memchr2): Avoid embedded #if.
58226         Reported by Alain Guibert, fix suggested by Bruno Haible.
58227
58228 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58229
58230         * doc/posix-functions/strftime.texi (strftime): Explain better
58231         Windows incompatibility.  Suggested by Micah Cowan
58232         <micah@cowan.name>.
58233
58234 2008-04-20  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58237         unistr/u8-mblen.
58238
58239 2008-04-20  Bruno Haible  <bruno@clisp.org>
58240
58241         Fix test failure on platforms with non-GNU iconv.
58242         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58243         (U_TO_U8): Use it, rather than u16_to_u8.
58244         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58245         units at the end of the input string.
58246         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58247
58248 2008-04-20  Bruno Haible  <bruno@clisp.org>
58249
58250         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58251         when the resulting length is 0.
58252         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58253
58254 2008-04-20  Bruno Haible  <bruno@clisp.org>
58255
58256         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58257         works.
58258         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58259
58260 2008-04-20  Bruno Haible  <bruno@clisp.org>
58261
58262         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58263         * modules/tsearch-tests (configure.ac): Test for initstate function.
58264
58265 2008-04-20  Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58268         for nlink_t if missing.
58269         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58270
58271 2008-04-19  Bruno Haible  <bruno@clisp.org>
58272
58273         Work around snprintf bug on Linux libc5.
58274         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58276         gl_SNPRINTF_SIZE1.
58277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58278         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58279         that test failed.
58280         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58281         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58282         * modules/snprintf (Files): Add m4/printf.m4.
58283         * modules/vsnprintf (Files): Likewise.
58284         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58285         * doc/posix-functions/vsnprintf.texi: Likewise.
58286
58287 2008-04-19  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58290         from 0.0058 to less than 10^-7.
58291
58292 2008-04-19  Bruno Haible  <bruno@clisp.org>
58293
58294         Fix rounding when a precision is given.
58295         * lib/vasnprintf.c (is_borderline): New function.
58296         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58297         9...9x.
58298         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58299         %e, %g.
58300         * tests/test-vasprintf-posix.c (test_function): Likewise.
58301         * tests/test-snprintf-posix.h (test_function): Likewise.
58302         * tests/test-sprintf-posix.h (test_function): Likewise.
58303         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58304         * tests/test-printf-posix.h (test_function): Likewise.
58305         * tests/test-printf-posix.output: Update.
58306         Reported by John Darrington <john@darrington.wattle.id.au> via
58307         Ben Pfaff <blp@cs.stanford.edu>.
58308
58309 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58310
58311         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58312         Suggested by Bruno Haible <bruno@clisp.org>.
58313
58314 2008-04-17  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58317         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58318         implementation.
58319         Patch by Bruce Merry <bmerry@gmail.com>.
58320
58321 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58322
58323         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58324         doesn't work under Windows.
58325
58326 2008-04-16  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58329         New macros.
58330         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58331         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58332         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58333         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58334         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58335         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58336         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58337         macros.
58338         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58339         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58340         Northern Sotho, Uighur.
58341
58342 2008-04-16  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58345         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58346         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58347         Reported by Daniel Bergström <daniel@octocode.com>.
58348
58349 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58350             Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58353         function.
58354         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58355         New functions, mostly extracted from gl_locale_name_default.
58356         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58357
58358 2008-04-16  Eric Blake  <ebb9@byu.net>
58359
58360         Adjust strtod detection to catch glibc 2.7 bug.
58361         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58362         Reported by John Gatewood Ham.
58363
58364 2008-04-16  Bruno Haible  <bruno@clisp.org>
58365
58366         Add tentative support for Linux libc5.
58367         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58368         * lib/fpurge.c (fpurge): Likewise.
58369         * lib/freadable.c (freadable): Likewise.
58370         * lib/freadahead.c (freadahead): Likewise.
58371         * lib/freading.c (freading): Likewise.
58372         * lib/freadptr.c (freadptr): Likewise.
58373         * lib/freadseek.c (freadptrinc): Likewise.
58374         * lib/fseeko.c (rpl_fseeko): Likewise.
58375         * lib/fseterr.c (fseterr): Likewise.
58376         * lib/fwritable.c (fwritable): Likewise.
58377         * lib/fwriting.c (fwriting): Likewise.
58378         Reported by Alain Guibert <alguibert+bts@free.fr>.
58379
58380 2008-04-15  Bruno Haible  <bruno@clisp.org>
58381
58382         * modules/mathl (configure.ac): Define module indicator.
58383
58384 2008-04-15  Bruno Haible  <bruno@clisp.org>
58385
58386         * lib/logl.c (logl): Remove unused variables.
58387
58388 2008-04-15  Bruno Haible  <bruno@clisp.org>
58389
58390         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58391         fails.
58392
58393 2008-04-15  Bruno Haible  <bruno@clisp.org>
58394
58395         * lib/trim.c (trim2): Fix argument of isspace() macro.
58396
58397 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58398
58399         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58400         to 0.
58401         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58402
58403 2008-04-14  Bruno Haible  <bruno@clisp.org>
58404
58405         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58406         AC_LANG_PROGRAM argument.
58407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58408         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58410         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58411         * m4/math_h.m4 (gl_MATH_H): Likewise.
58412         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58414         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58415         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58416         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58417         * m4/regex.m4 (gl_REGEX): Likewise.
58418         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58419         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58421         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58426
58427 2008-04-14  Jim Meyering  <meyering@redhat.com>
58428
58429         test-strtod: fix typos: s/abs/fabs/
58430         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58431
58432 2008-04-13  Bruno Haible  <bruno@clisp.org>
58433
58434         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58435         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58436         module is also used and while not building the reloc-wrapper.
58437
58438 2008-04-13  Bruno Haible  <bruno@clisp.org>
58439
58440         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58441
58442 2008-04-13  Bruno Haible  <bruno@clisp.org>
58443
58444         Fix AIX compilation failure introduced on 2008-04-02.
58445         * tests/test-frexp.c (exp): Undefine before redefining.
58446         * tests/test-frexpl.c (exp): Likewise.
58447
58448 2008-04-13  Bruno Haible  <bruno@clisp.org>
58449
58450         Work around a HP-UX stdio bug.
58451         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58452         * tests/test-ftello.c (main): Likewise.
58453         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58454         * doc/posix-functions/ftello.texi: Likewise.
58455
58456 2008-04-13  Bruno Haible  <bruno@clisp.org>
58457
58458         Make test-signbit pass on HP-UX/hppa.
58459         * tests/test-signbit.c (minus_zerol): New variable.
58460         (test_signbitl): Use it.
58461
58462 2008-04-13  Bruno Haible  <bruno@clisp.org>
58463
58464         Make truncl work on OSF/1 4.0.
58465         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58466         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58467         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58469         HAVE_DECL_TRUNCL.
58470         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58471         HAVE_DECL_TRUNCL.
58472         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58473
58474 2008-04-13  Bruno Haible  <bruno@clisp.org>
58475
58476         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58477
58478 2008-04-13  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58481         expression, so as to avoid HP-UX 11 cc compiler bug.
58482
58483 2008-04-13  Bruno Haible  <bruno@clisp.org>
58484
58485         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58486
58487 2008-04-13  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/git-merge-changelog.c: Remove empty declaration outside of
58490         functions.
58491
58492 2008-04-13  Bruno Haible  <bruno@clisp.org>
58493
58494         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58495
58496 2008-04-13  Bruno Haible  <bruno@clisp.org>
58497
58498         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58499         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58501         also if it exists but lacks definitions of the SHUT_* macros.
58502         * modules/sys_socket (Description): Update.
58503         Reported by Elbert Pol <e.pol@chello.nl>.
58504
58505 2008-04-13  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/localcharset.c (OS2): Don't redefine if already defined.
58508         Reported by Elbert Pol <e.pol@chello.nl>.
58509
58510 2008-04-13  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/binary-io.h [__EMX__]: Include <io.h>.
58513         Reported by Elbert Pol <e.pol@chello.nl>.
58514
58515 2008-04-12  Bruno Haible  <bruno@clisp.org>
58516
58517         * lib/fpucw.h: Enable the definitions also for x86_64.
58518         Needed for NetBSD/x86_64.
58519         Reported by Thomas Klausner <tk@giga.or.at>.
58520
58521 2008-04-12  Bruno Haible  <bruno@clisp.org>
58522
58523         * tests/test-strtod.c: Include isnand.h.
58524         (main): Use isnand instead of isnan.
58525         Reported by Jim Meyering.
58526
58527 2008-04-12  Bruno Haible  <bruno@clisp.org>
58528
58529         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58530         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58531
58532 2008-04-12  Jim Meyering  <meyering@redhat.com>
58533
58534         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58535
58536 2008-04-12  Bruno Haible  <bruno@clisp.org>
58537
58538         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58539         Reported by Elbert Pol <e.pol@chello.nl>.
58540
58541 2008-04-12  Eric Blake  <ebb9@byu.net>
58542
58543         Work around Solaris 10 math.h bug.
58544         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58545         (gl_MATH_H_DEFAULTS): Set up default.
58546         * modules/math (Makefile.am): Replace new indicators.
58547         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58548         * tests/test-math.c (main): Test this.
58549         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58550         * doc/posix-headers/math.texi (math.h): Mention bug.
58551         Reported by Nelson H. F. Beebe and Jim Meyering.
58552
58553 2008-04-11  Bruno Haible  <bruno@clisp.org>
58554
58555         Adapt to future versions of Apple GCC.
58556         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58557         Reported by Peter O'Gorman <peter@pogma.com>.
58558
58559 2008-04-11  Bruno Haible  <bruno@clisp.org>
58560
58561         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58562
58563 2008-04-11  Bruno Haible  <bruno@clisp.org>
58564
58565         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58566
58567         * modules/getaddrinfo-tests (Makefile.am): Define
58568         test_getaddrinfo_LDADD.
58569
58570 2008-04-11  Bruno Haible  <bruno@clisp.org>
58571
58572         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58573         (init): Fix syntax error.
58574         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58575         is declared.
58576
58577 2008-04-11  Bruno Haible  <bruno@clisp.org>
58578
58579         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58580         * modules/glob (Depends-on): Add stdbool.
58581
58582 2008-04-11  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/trim.c: Include <string.h>.
58585
58586 2008-04-11  Eric Blake  <ebb9@byu.net>
58587
58588         Avoid compile failure on OS/2.
58589         * lib/regex_internal.h (internal_function): Disable optimization
58590         on OS/2 (__EMX__), where it caused compiler error.
58591         Reported by Elbert Pol.
58592
58593 2008-04-11  Bruno Haible  <bruno@clisp.org>
58594
58595         Flush the standard error stream before aborting. Needed on mingw.
58596         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58597         * tests/test-array_list.c (ASSERT): Likewise.
58598         * tests/test-array_oset.c (ASSERT): Likewise.
58599         * tests/test-avltree_list.c (ASSERT): Likewise.
58600         * tests/test-avltree_oset.c (ASSERT): Likewise.
58601         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58602         * tests/test-binary-io.c (ASSERT): Likewise.
58603         * tests/test-byteswap.c (ASSERT): Likewise.
58604         * tests/test-c-ctype.c (ASSERT): Likewise.
58605         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58606         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58607         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58608         * tests/test-c-strstr.c (ASSERT): Likewise.
58609         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58610         * tests/test-canonicalize.c (ASSERT): Likewise.
58611         * tests/test-carray_list.c (ASSERT): Likewise.
58612         * tests/test-ceilf1.c (ASSERT): Likewise.
58613         * tests/test-ceilf2.c (ASSERT): Likewise.
58614         * tests/test-ceill.c (ASSERT): Likewise.
58615         * tests/test-count-one-bits.c (ASSERT): Likewise.
58616         * tests/test-fbufmode.c (ASSERT): Likewise.
58617         * tests/test-fflush2.c (ASSERT): Likewise.
58618         * tests/test-floorf1.c (ASSERT): Likewise.
58619         * tests/test-floorf2.c (ASSERT): Likewise.
58620         * tests/test-floorl.c (ASSERT): Likewise.
58621         * tests/test-fopen.c (ASSERT): Likewise.
58622         * tests/test-fpending.c (ASSERT): Likewise.
58623         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58624         * tests/test-fpurge.c (ASSERT): Likewise.
58625         * tests/test-freadable.c (ASSERT): Likewise.
58626         * tests/test-freadahead.c (ASSERT): Likewise.
58627         * tests/test-freading.c (ASSERT): Likewise.
58628         * tests/test-freadptr.c (ASSERT): Likewise.
58629         * tests/test-freadptr2.c (ASSERT): Likewise.
58630         * tests/test-freadseek.c (ASSERT): Likewise.
58631         * tests/test-freopen.c (ASSERT): Likewise.
58632         * tests/test-frexp.c (ASSERT): Likewise.
58633         * tests/test-frexpl.c (ASSERT): Likewise.
58634         * tests/test-fseek.c (ASSERT): Likewise.
58635         * tests/test-fseeko.c (ASSERT): Likewise.
58636         * tests/test-fstrcmp.c (ASSERT): Likewise.
58637         * tests/test-ftell.c (ASSERT): Likewise.
58638         * tests/test-ftello.c (ASSERT): Likewise.
58639         * tests/test-func.c (ASSERT): Likewise.
58640         * tests/test-fwritable.c (ASSERT): Likewise.
58641         * tests/test-fwriting.c (ASSERT): Likewise.
58642         * tests/test-getdelim.c (ASSERT): Likewise.
58643         * tests/test-getline.c (ASSERT): Likewise.
58644         * tests/test-i-ring.c (ASSERT): Likewise.
58645         * tests/test-iconv-utf.c (ASSERT): Likewise.
58646         * tests/test-iconv.c (ASSERT): Likewise.
58647         * tests/test-isfinite.c (ASSERT): Likewise.
58648         * tests/test-isnand.c (ASSERT): Likewise.
58649         * tests/test-isnanf.c (ASSERT): Likewise.
58650         * tests/test-isnanl.h (ASSERT): Likewise.
58651         * tests/test-ldexpl.c (ASSERT): Likewise.
58652         * tests/test-linked_list.c (ASSERT): Likewise.
58653         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58654         * tests/test-localename.c (ASSERT): Likewise.
58655         * tests/test-lseek.c (ASSERT): Likewise.
58656         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58657         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58658         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58659         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58660         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58661         * tests/test-mbschr.c (ASSERT): Likewise.
58662         * tests/test-mbscspn.c (ASSERT): Likewise.
58663         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58664         * tests/test-mbspbrk.c (ASSERT): Likewise.
58665         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58666         * tests/test-mbsrchr.c (ASSERT): Likewise.
58667         * tests/test-mbsspn.c (ASSERT): Likewise.
58668         * tests/test-mbsstr1.c (ASSERT): Likewise.
58669         * tests/test-mbsstr2.c (ASSERT): Likewise.
58670         * tests/test-mbsstr3.c (ASSERT): Likewise.
58671         * tests/test-memchr2.c (ASSERT): Likewise.
58672         * tests/test-memmem.c (ASSERT): Likewise.
58673         * tests/test-open.c (ASSERT): Likewise.
58674         * tests/test-printf-frexp.c (ASSERT): Likewise.
58675         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58676         * tests/test-printf-posix.c (ASSERT): Likewise.
58677         * tests/test-quotearg.c (ASSERT): Likewise.
58678         * tests/test-rbtree_list.c (ASSERT): Likewise.
58679         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58680         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58681         * tests/test-round1.c (ASSERT): Likewise.
58682         * tests/test-roundf1.c (ASSERT): Likewise.
58683         * tests/test-roundl.c (ASSERT): Likewise.
58684         * tests/test-signbit.c (ASSERT): Likewise.
58685         * tests/test-sleep.c (ASSERT): Likewise.
58686         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58687         * tests/test-snprintf.c (ASSERT): Likewise.
58688         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58689         * tests/test-stat-time.c (ASSERT): Likewise.
58690         * tests/test-strcasestr.c (ASSERT): Likewise.
58691         * tests/test-strerror.c (ASSERT): Likewise.
58692         * tests/test-striconv.c (ASSERT): Likewise.
58693         * tests/test-striconveh.c (ASSERT): Likewise.
58694         * tests/test-striconveha.c (ASSERT): Likewise.
58695         * tests/test-strsignal.c (ASSERT): Likewise.
58696         * tests/test-strstr.c (ASSERT): Likewise.
58697         * tests/test-strtod.c (ASSERT): Likewise.
58698         * tests/test-trunc1.c (ASSERT): Likewise.
58699         * tests/test-trunc2.c (ASSERT): Likewise.
58700         * tests/test-truncf1.c (ASSERT): Likewise.
58701         * tests/test-truncf2.c (ASSERT): Likewise.
58702         * tests/test-truncl.c (ASSERT): Likewise.
58703         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58704         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58705         * tests/test-vasnprintf.c (ASSERT): Likewise.
58706         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58707         * tests/test-vasprintf.c (ASSERT): Likewise.
58708         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58709         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58710         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58711         * tests/test-vsnprintf.c (ASSERT): Likewise.
58712         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58713         * tests/test-wcwidth.c (ASSERT): Likewise.
58714         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58715         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58716         * tests/test-xvasprintf.c (ASSERT): Likewise.
58717         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58718         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58719         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58720         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58721         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58722         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58723         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58724         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58725         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58726         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58727         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58728         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58729         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58730         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58731         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58732         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58733         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58734         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58735         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58736         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58737         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58738         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58739         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58740         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58741         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58742         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58743         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58744         * tests/unictype/test-combining.c (ASSERT): Likewise.
58745         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58746         * tests/unictype/test-digit.c (ASSERT): Likewise.
58747         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58748         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58749         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58750         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58751         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58752         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58753         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58754         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58755         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58756         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58757         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58758         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58759         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58760         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58761         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58762         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58763         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58764         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58765         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58766         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58767         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58768         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58769         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58770         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58771         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58772         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58773         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58774         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58775         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58776         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58777         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58778         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58779         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58780         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58781         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58782         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58783         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58784         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58785         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58786         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58787         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58788         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58789         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58790         Reported by Eric Blake.
58791
58792 2008-04-11  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/wchar.in.h: Tweak comment.
58795
58796 2008-04-11  Bruno Haible  <bruno@clisp.org>
58797
58798         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58799         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58800         gl_COMMON.
58801         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58802
58803 2008-04-11  Bruno Haible  <bruno@clisp.org>
58804
58805         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58806
58807 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58808
58809         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58810         of attempting to use non-existing /dev/*random.  Based on patch
58811         from Adam Strzelecki <ono@java.pl> in
58812         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58813
58814 2008-04-08  Bruno Haible  <bruno@clisp.org>
58815
58816         Add tentative support for emx+gcc.
58817         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58818         * lib/fpurge.c (fpurge): Likewise.
58819         * lib/freadable.c (freadable): Likewise.
58820         * lib/freadahead.c (freadahead): Likewise.
58821         * lib/freading.c (freading): Likewise.
58822         * lib/freadptr.c (freadptr): Likewise.
58823         * lib/freadseek.c (freadptrinc): Likewise.
58824         * lib/fseeko.c (rpl_fseeko): Likewise.
58825         * lib/fseterr.c (fseterr): Likewise.
58826         * lib/fwritable.c (fwritable): Likewise.
58827         * lib/fwriting.c (fwriting): Likewise.
58828         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58829
58830 2008-04-09  Eric Blake  <ebb9@byu.net>
58831
58832         Avoid some autoconf warnings.
58833         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58834         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58835         * m4/afs.m4 (gl_AFS): Likewise.
58836         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58837         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58839         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58840         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58841         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58842         (AC_CHECK_DECLS_ONCE): Likewise.
58843         Rename file...
58844         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58845         gnulib-tool requires autoconf 2.59 or better.
58846         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58847
58848 2008-04-08  Eric Blake  <ebb9@byu.net>
58849
58850         Use 'git describe --match' if present (added in git 1.5.5).
58851         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58852         if possible.
58853
58854 2008-04-08  Bruno Haible  <bruno@clisp.org>
58855
58856         Add tentative support for OpenServer.
58857         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58858         _ptr, _cnt.
58859         * lib/fpurge.c (fpurge): Likewise.
58860         * lib/freadable.c (freadable): Likewise.
58861         * lib/freadahead.c (freadahead): Likewise.
58862         * lib/freading.c (freading): Likewise.
58863         * lib/freadptr.c (freadptr): Likewise.
58864         * lib/freadseek.c (freadptrinc): Likewise.
58865         * lib/fseeko.c (rpl_fseeko): Likewise.
58866         * lib/fseterr.c (fseterr): Likewise.
58867         * lib/fwritable.c (fwritable): Likewise.
58868         * lib/fwriting.c (fwriting): Likewise.
58869         Reported by Roger Cornelius <rac@tenzing.org> and
58870         Brian K. White <brian@aljex.com>.
58871
58872 2008-04-06  Jim Meyering  <meyering@redhat.com>
58873
58874         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58875
58876 2008-04-06  Bruno Haible  <bruno@clisp.org>
58877
58878         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58879         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58880         * tests/test-printf-posix.sh: Likewise.
58881         * tests/test-vfprintf-posix.sh: Likewise.
58882         * tests/test-vprintf-posix.sh: Likewise.
58883         * tests/test-xprintf-posix.sh: Likewise.
58884
58885 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58886
58887         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58888         hide error from 'ls', needed on OS/2.
58889         Report by Elbert Pol <elbert.pol@gmail.com>.
58890
58891 2008-04-04  Eric Blake  <ebb9@byu.net>
58892
58893         Make test-fseeko.c failures meaningful.
58894         * tests/test-fseeko.c: Print line number on failure.
58895         * tests/test-fseek.c: Likewise.
58896         Reported by Nelson H. F. Beebe.
58897
58898         Improve strtod bug detection check.
58899         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58900         required for Solaris 10.
58901         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58902
58903 2008-04-04  Bruno Haible  <bruno@clisp.org>
58904
58905         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58906         by m4/setenv.m4.
58907
58908 2008-04-03  Eric Blake  <ebb9@byu.net>
58909
58910         Ensure sane .version contents.
58911         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58912         version string.
58913         * build-aux/git-version-gen: Improve documentation.
58914
58915         Make GNU make output nicer.
58916         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58917         MAKECMDGOALS to enforce message for all command line targets.  Set
58918         srcdir for use in maint.mk.
58919
58920         Another maintainer tweak.
58921         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58922         a target that regenerates version.
58923
58924 2008-04-03  Jim Meyering  <meyering@redhat.com>
58925
58926         vc-list-files: don't cause coreutils "make po-check" failure
58927         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58928
58929 2008-04-03  Eric Blake  <ebb9@byu.net>
58930
58931         Allow VPATH usage of vc-list-files.
58932         * build-aux/vc-list-files (scriptversion): Add timestamp.
58933         (options): Add --help, --version, -C.
58934         (CVS): Support installed cvsu.
58935
58936 2008-04-02  Bruno Haible  <bruno@clisp.org>
58937
58938         Avoid some "statement with no effect" warnings from gcc.
58939         * tests/test-wctype.c (main): Explicitly ignore unused values.
58940         Reported by Jim Meyering.
58941
58942 2008-04-02  Jim Meyering  <meyering@redhat.com>
58943
58944         Avoid some warnings from "gcc -Wshadow".
58945         * tests/test-frexp.c (exp): Define to a different identifier.
58946         * tests/test-frexpl.c (exp): Likewise.
58947
58948 2008-04-03  Jim Meyering  <meyering@redhat.com>
58949
58950         bootstrap: remove dangling *.[ch] symlinks from lib
58951         * build-aux/bootstrap [dangling symlink removal]: Move find's
58952         -depth option to precede all others, to avoid a warning.
58953         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58954
58955 2008-04-02  Bruno Haible  <bruno@clisp.org>
58956
58957         Avoid some warnings from "gcc -Wshadow".
58958         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58959         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58960         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58961         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58962         Reported by Jim Meyering.
58963
58964 2008-04-01  Bruno Haible  <bruno@clisp.org>
58965
58966         Fix test to work on IRIX 6.5 with cc.
58967         * tests/test-math.c (numeric_equal): New function.
58968         (main): Use it.
58969
58970 2008-04-01  Bruno Haible  <bruno@clisp.org>
58971
58972         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58973
58974 2008-04-01  Bruno Haible  <bruno@clisp.org>
58975
58976         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58977         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58978         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58979         (Depends-on): Remove math.
58980
58981         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58982         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58983         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58984         (Depends-on): Remove math.
58985
58986         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58987         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58988         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58989         (Depends-on): Remove math.
58990         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58991         (Depends-on): Remove math.
58992
58993         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58994         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58995         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58996         (Depends-on): Remove math.
58997         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58998         (Depends-on): Remove math.
58999
59000         * tests/test-round1.c: Include nan.h.
59001         (main): Use NaNd instead of NAN.
59002         * modules/round-tests (Files): Add tests/nan.h.
59003
59004         * tests/test-trunc1.c: Include nan.h.
59005         (main): Use NaNd instead of NAN.
59006         * modules/trunc-tests (Files): Add tests/nan.h.
59007
59008         * tests/test-roundf1.c: Include nan.h.
59009         (main): Use NaNf instead of NAN.
59010         * modules/roundf-tests (Files): Add tests/nan.h.
59011
59012         * tests/test-truncf1.c: Include nan.h.
59013         (main): Use NaNf instead of NAN.
59014         * modules/truncf-tests (Files): Add tests/nan.h.
59015
59016         * tests/test-ceilf1.c: Include nan.h.
59017         (main): Use NaNf instead of NAN.
59018         * modules/ceilf-tests (Files): Add tests/nan.h.
59019
59020         * tests/test-floorf1.c: Include nan.h.
59021         (main): Use NaNf instead of NAN.
59022         * modules/floorf-tests (Files): Add tests/nan.h.
59023
59024         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59025         (main): Use NaNf instead of NAN.
59026         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59027
59028         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59029         (main): Use NaNd instead of NAN.
59030         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59031
59032         * tests/test-frexp.c: Include nan.h.
59033         (main): Use NaNd instead of NAN.
59034         * modules/frexp-tests (Files): Add tests/nan.h.
59035
59036         * lib/isnan.c: Don't include <math.h>.
59037         (FUNC): Don't use NAN macro.
59038         * modules/isnand-nolibm (Depends-on): Remove math.
59039         * modules/isnanf-nolibm (Depends-on): Remove math.
59040         * modules/isnanl (Depends-on): Remove math.
59041         * modules/isnanl-nolibm (Depends-on): Remove math.
59042
59043         * tests/nan.h: New file.
59044
59045 2008-04-01  Eric Blake  <ebb9@byu.net>
59046
59047         Fix typos.
59048         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59049         values to be the right type.
59050
59051         For now, cater to gnulib strtod inaccuracies.
59052         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59053         fractional results.  While not as nice from a QoI perspective, it
59054         is a quicker patch than correctly implementing decimal to binary
59055         rounding.
59056
59057 2008-03-31  Eric Blake  <ebb9@byu.net>
59058
59059         Guarantee a definition of NAN.
59060         * lib/math.in.h (NAN): Define if missing.
59061         * tests/test-math.c (main): Test it.
59062         * doc/posix-headers/math.texi (math.h): Document this.
59063         * lib/isnan.c (rpl_isnand): Use it.
59064         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59065         * tests/test-floorf1.c (NaN): Likewise.
59066         * tests/test-frexp.c (NaN): Likewise.
59067         * tests/test-isnand.c (NaN): Likewise.
59068         * tests/test-isnanf.c (NaN): Likewise.
59069         * tests/test-round1.c (NaN): Likewise.
59070         * tests/test-roundf1.c (NaN): Likewise.
59071         * tests/test-snprintf-posix.h (NaN): Likewise.
59072         * tests/test-sprintf-posix.h (NaN): Likewise.
59073         * tests/test-trunc1.c (NaN): Likewise.
59074         * tests/test-truncf1.c (NaN): Likewise.
59075         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59076         * tests/test-vasprintf-posix.c (NaN): Likewise.
59077         * modules/isnand-nolibm (Depends-on): Add math.
59078         * modules/isnanf-nolibm (Depends-on): Likewise.
59079         * modules/isnanl (Depends-on): Likewise.
59080         * modules/isnanl-nolibm (Depends-on): Likewise.
59081         * modules/snprintf-posix-tests (Depends-on): Likewise.
59082         * modules/sprintf-posix-tests (Depends-on): Likewise.
59083         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59084         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59085         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59086         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59087
59088 2008-03-31  Bruno Haible  <bruno@clisp.org>
59089
59090         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59091         * doc/posix-functions/strtod.texi: Likewise.
59092
59093 2008-03-31  Bruno Haible  <bruno@clisp.org>
59094
59095         * tests/test-strtod.c (main): Don't use C99 syntax.
59096
59097 2008-03-31  Bruno Haible  <bruno@clisp.org>
59098
59099         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59100         Reported by Eric Blake.
59101
59102 2008-03-31  Jim Meyering  <meyering@redhat.com>
59103
59104         Don't compare actual signbit return values.
59105         * tests/test-strtod.c (main): Rather, compare only their
59106         zero/non-zero nature.
59107
59108 2008-03-31  Eric Blake  <ebb9@byu.net>
59109
59110         More strtod documentation.
59111         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59112         failures as distinct bugs.
59113
59114 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59117         Problem reported by Erik Benada in
59118         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59119
59120 2008-03-30  Bruno Haible  <bruno@clisp.org>
59121
59122         * tests/test-strtod.c: Add comments about which assertion fails on which
59123         platform.
59124         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59125
59126 2008-03-30  Eric Blake  <ebb9@byu.net>
59127
59128         Test signbit behavior on zeros.
59129         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59130         (test_signbitd, test_signbitl): Likewise.
59131
59132         More strtod touchups.
59133         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59134         sign of negative underflow, for now.  Use .5, not .1.
59135         * doc/posix-functions/strtod.texi (strtod): Mention these
59136         limitations.
59137         Reported by Jim Meyering.
59138
59139 2008-03-30  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59142         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59143
59144 2008-03-30  Bruno Haible  <bruno@clisp.org>
59145
59146         Avoid failure when attempting to return empty iconv results on some
59147         platforms.
59148         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59149         allocation, don't report ENOMEM when the resulting string is empty.
59150
59151 2008-03-30  Bruno Haible  <bruno@clisp.org>
59152
59153         Fix buffer overrun.
59154         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59155         Don't consider the width for tmp_length. Check count against tmp_length
59156         before doing the padding. Ensure enough allocation during padding.
59157
59158 2008-03-30  Eric Blake  <ebb9@byu.net>
59159
59160         strtod touchups.
59161         * lib/strtod.c (strtod): Avoid compiler warnings.
59162         Reported by Jim Meyering.
59163
59164 2008-03-30  Bruno Haible  <bruno@clisp.org>
59165
59166         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59167         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59168         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59169         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59170         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59171         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59172         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59173         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59174
59175         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59176         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59177         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59178         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59179         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59180         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59181         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59182         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59183
59184         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59185         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59186         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59187         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59188         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59189         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59190         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59191         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59192
59193         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59194         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59195
59196         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59197         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59198
59199         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59200         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59201
59202         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59204         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59205
59206         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59208         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59209
59210         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59212         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59213
59214         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59216         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59217
59218         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59219         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59221         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59222         (Depends-on): Add EOVERFLOW.
59223         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59224         (Depends-on): Add EOVERFLOW.
59225         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59226         (Depends-on): Add EOVERFLOW.
59227         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59228         (Depends-on): Add EOVERFLOW.
59229         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59230         (Depends-on): Add EOVERFLOW.
59231         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59232         (Depends-on): Add EOVERFLOW.
59233         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59234         (Depends-on): Add EOVERFLOW.
59235         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59236         (Depends-on): Add EOVERFLOW.
59237
59238         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59240         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59241
59242         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59244         * modules/snprintf (Depends-on): Add EOVERFLOW.
59245
59246         * lib/poll.c (EOVERFLOW): Remove fallback.
59247         * modules/poll (Depends-on): Add EOVERFLOW.
59248
59249         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59250         * modules/getugroups (Depends-on): Add EOVERFLOW.
59251
59252         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59253         * modules/getdelim (Depends-on): Add EOVERFLOW.
59254
59255         * lib/ftell.c (EOVERFLOW): Remove fallback.
59256         * modules/ftell (Depends-on): Add EOVERFLOW.
59257
59258         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59260         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59261
59262         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59263
59264         * modules/EOVERFLOW-tests: New file.
59265         * tests/test-EOVERFLOW.c: New file.
59266
59267         * modules/EOVERFLOW: New file.
59268         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59269
59270 2008-03-30  Bruno Haible  <bruno@clisp.org>
59271
59272         Fix bug introduced on 2007-06-10.
59273         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59274         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59275
59276 2008-03-30  Bruno Haible  <bruno@clisp.org>
59277
59278         Improve freadseek's efficiency after ungetc.
59279         * lib/freadseek.c: Include freadahead.h.
59280         (freadptrinc): New function, extracted from freadseek.
59281         (freadseek): Use it in a loop. Use freadahead to determine the number
59282         of loop iterations.
59283         * modules/freadseek (Depends-on): Add freadahead.
59284         (configure.ac): Require AC_C_INLINE.
59285
59286 2008-03-30  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/freadseek.c (freadseek): Don't ignore the return value of
59289         freadptr.
59290
59291 2008-03-29  Eric Blake  <ebb9@byu.net>
59292
59293         Add hex float support.
59294         * modules/strtod (Depends-on): Add c-ctype.
59295         (Link): Mention POW_LIB.
59296         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59297         whitespace between 'e' and exponent.
59298         * tests/test-strtod.c (main): Enable hex float tests.
59299         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59300         now provides.
59301
59302         Document various strtod bugs, with some fixes.
59303         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59304         "-0x", "inf", "nan", and hex constants.
59305         * doc/posix-functions/atof.texi (atof): Likewise.
59306         * modules/stdlib (Makefile.am): Support strtod.
59307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59308         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59309         detect additional strtod bugs.
59310         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59311         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59312         bool where appropriate.  Parse 'inf' and 'nan'.
59313         * tests/test-strtod.c: New file.
59314         * modules/strtod (Depends-on): Add stdbool, stdlib.
59315         (configure.ac): Turn on module indicator.
59316         * modules/strtod-tests: New module.
59317
59318 2008-03-29  Eric Blake  <ebb9@byu.net>
59319
59320         Fix ftell on mingw.
59321         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59322         * modules/ftell-tests (Depends-on): Add binary-io.
59323         * modules/ftello-tests (Depends-on): Likewise.
59324         * tests/test-ftell.c (main): Enhance test to cover behavior after
59325         ungetc.  Enforce binary mode.
59326         * tests/test-ftello.c (main): Likewise.
59327
59328         Pass test-freadseek on cygwin.
59329         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59330         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59331         ungetc buffer.
59332
59333         * tests/test-fflush2.c (main): Fix typo.
59334
59335 2008-03-29  Bruno Haible  <bruno@clisp.org>
59336
59337         * tests/test-fflush2.c (main): Temporarily disable the contents of
59338         this test.
59339         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59340         Reported by Eric Blake.
59341
59342 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59343
59344         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59345         (GC_SHA224_DIGEST_SIZE): Add.
59346
59347         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59348         (gc_hash_digest_length): Likewise.
59349         (gc_hash_buffer): Likewise.
59350
59351 2008-03-25  Bruno Haible  <bruno@clisp.org>
59352
59353         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59354         detail which gettext release to use.
59355         Reported by Simon Josefsson.
59356
59357 2008-03-26  Jim Meyering  <meyering@redhat.com>
59358
59359         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59360         * modules/gnumakefile (clean-GNUmakefile): Also, use
59361         test ... && ... || : syntax rather than if-then ... fi.
59362
59363         gnumakefile: Don't double-quote-expand $(VPATH) value.
59364         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59365
59366 2008-03-24  Eric Blake  <ebb9@byu.net>
59367
59368         Alter GNUmakefile to install into top directory.
59369         * modules/maintainer-makefile: Split, and add dependency...
59370         * modules/gnumakefile: to this new module.
59371         * build-aux/GNUmakefile: Move...
59372         * top/GNUmakefile: ...here.
59373         * build-aux/maint.mk: Move...
59374         * top/maint.mk: ...here.
59375         * MODULES.html.sh (Support for maintaining...): Document new
59376         module.
59377
59378 2008-03-23  Bruno Haible  <bruno@clisp.org>
59379
59380         * gnulib-tool: New options --vc-files, --no-vc-files.
59381         (func_usage): Document them.
59382         (vc_files): New variable.
59383         (func_import): Consider vc_files.
59384         (func_create_testdir): Set vc_files to empty.
59385         Suggested by Jim Meyering and Karl Berry.
59386
59387 2008-03-23  Bruno Haible  <bruno@clisp.org>
59388
59389         Fix regex compilation error on HP-UX 11.
59390         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59391         * modules/regex (Files): Add m4/mbstate_t.m4.
59392         Reported by Ton Voon <ton.voon@altinity.com>.
59393
59394 2008-03-23  Bruno Haible  <bruno@clisp.org>
59395
59396         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59397
59398 2008-03-23  Eric Blake  <ebb9@byu.net>
59399             Bruno Haible  <bruno@clisp.org>
59400
59401         Install files from top/ in the destination directory.
59402         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59403         augmentation also for the files from top/.
59404         (func_import, func_create_testdir): Rewrite file names:
59405         top/filename -> filename.
59406
59407 2008-03-23  Bruno Haible  <bruno@clisp.org>
59408
59409         Tweak "gnulib --version" output.
59410         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59411
59412 2008-03-23  Bruno Haible  <bruno@clisp.org>
59413
59414         Tweak "gnulib --version" output.
59415         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59416         rather than contents of ChangeLog, when possible.
59417
59418 2008-03-21  Eric Blake  <ebb9@byu.net>
59419
59420         More --version tweaks.
59421         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59422         date of last ChangeLog entry.
59423
59424 2008-03-21  Jim Meyering  <meyering@redhat.com>
59425
59426         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59427
59428 2008-03-20  Eric Blake  <ebb9@byu.net>
59429
59430         VPATH fix.
59431         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59432
59433 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59434
59435         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59436         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59437
59438 2008-03-20  Eric Blake  <ebb9@byu.net>
59439
59440         Sync GNUmakefile with coreutils.
59441         * build-aux/GNUmakefile (have-Makefile): Rename...
59442         (_have-Makefile): ...to this, for namespace consideration.
59443         (GNUmakefile.cfg): Include, if present.
59444         (_autoreconf): Define a default.
59445         (_is-dist-target): New rule for rebuilds to pick up intra-release
59446         version.
59447         (maint-cfg.mk): Rename...
59448         (cfg.mk): ...to this.
59449
59450 2008-03-18  Jim Meyering  <meyering@redhat.com>
59451
59452         New script and module: mktempd
59453         * MODULES.html.sh (maint+release support): Add mktempd.
59454         * build-aux/mktempd: New file.
59455         * modules/mktempd: New file.
59456
59457 2008-03-15  Jim Meyering  <meyering@redhat.com>
59458
59459         Undo last change.
59460         * lib/sha1.c, lib/md5.c: 63 != ~63.
59461         Reported by Andreas Schwab.
59462
59463         sha1.c, md5.c: Hoist a redundant expression.
59464         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59465         "ctx->buflen" only once, before calling *_process_block.
59466         * lib/md5.c (md5_process_bytes): Likewise.
59467
59468 2008-03-14  Eric Blake  <ebb9@byu.net>
59469
59470         Bump copyright year in files generated by gnulib-tool.
59471         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59472         gnulib-tool, rather than hard-coding it.
59473
59474         Fix 'gnulib-tool --version' output to work with git.
59475         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59476         (startup): ...here.
59477         (func_version): Use it to invoke git-version-gen, rather than
59478         relying on CVS keyword expansion.  Modernize wording.
59479         (cvsdatestamp, last_checkin_date, version): Kill unused
59480         variables.
59481
59482 2008-03-12  Jim Meyering  <meyering@redhat.com>
59483
59484         Recognize optional cast of the argument to free.
59485         * build-aux/useless-if-before-free: Update regexps.
59486
59487         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59488
59489 2008-03-11  Bruno Haible  <bruno@clisp.org>
59490
59491         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59492         by a single package.
59493         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59494         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59495         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59496         Reported by Sam Steingold <sds@gnu.org>.
59497
59498 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59499
59500         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59501         repositories.
59502
59503 2008-03-11  Bruno Haible  <bruno@clisp.org>
59504
59505         Avoid conflicts between local macro definitions.
59506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59507         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59508
59509 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59510             Bruno Haible  <bruno@clisp.org>
59511
59512         Make va_copy work with some version of xlc on AIX 5.1.
59513         * lib/stdarg.in.h: New file.
59514         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59515         On AIX, use a <stdarg.h> file substitute.
59516         * modules/stdarg (Files): Add lib/stdarg.in.h.
59517         (Depends-on): Add include_next.
59518         (Makefile.am): Build a stdarg.h substitute if requested.
59519         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59520
59521 2008-03-10  Bruno Haible  <bruno@clisp.org>
59522
59523         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59525         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59526
59527 2008-03-10  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/stdlib (Depends-on): Add include_next, remove
59530         absolute-header.
59531
59532 2008-03-09  Bruno Haible  <bruno@clisp.org>
59533
59534         * lib/freadahead.h (freadahead): Document more precisely.
59535         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59536         the sum of both buffer sizes.
59537         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59538         * NEWS: Document the change.
59539
59540 2008-03-09  Bruno Haible  <bruno@clisp.org>
59541
59542         Extend freadptr to return also the buffer size.
59543         * lib/freadptr.h (freadptr): Add sizep argument.
59544         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59545         (freadptr): Add sizep argument. Determine buffer size like freadahead
59546         does.
59547         * tests/test-freadptr.c: Don't include freadahead.h.
59548         (main): Adapt for new calling convention of freadptr.
59549         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59550         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59551         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59552         tests/test-freadptr2.sh.
59553         (Depends): Remove freadahead.
59554         (TESTS): Add test-freadptr2.sh.
59555         (check_PROGRAMS): Add test-freadptr2.
59556
59557 2008-03-09  Bruno Haible  <bruno@clisp.org>
59558
59559         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59560         Report and solution by Simon Josefsson.
59561
59562 2008-03-06  Bruno Haible  <bruno@clisp.org>
59563
59564         Make fflush after ungetc work on BSD platforms.
59565         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59566         * tests/test-fflush2.c: New file.
59567         * tests/test-fflush2.sh: New file.
59568         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59569         tests/test-fflush2.c.
59570         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59571         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59572
59573 2008-03-06  Eric Blake  <ebb9@byu.net>
59574
59575         Likewise for ftello.
59576         * modules/ftello (Dependencies): Add extensions.
59577         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59578
59579 2008-03-06  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/fseeko (Dependencies): Add extensions.
59582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59583         Needed on glibc systems.
59584
59585 2008-03-06  Bruno Haible  <bruno@clisp.org>
59586
59587         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59588         email address.
59589         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59590
59591 2008-03-06  Bruno Haible  <bruno@clisp.org>
59592
59593         * users.txt: Add libgnupdf.
59594
59595 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59596
59597         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59598         (Header File Substitutes, Function Substitutes,
59599         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59600         (Build robot for gnulib): Fix typo.
59601
59602 2008-03-06  Bruno Haible  <bruno@clisp.org>
59603
59604         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59605         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59606
59607 2008-03-06  Bruno Haible  <bruno@clisp.org>
59608
59609         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59610         * doc/gnulib.texi: Include it.
59611
59612 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59613
59614         * modules/func (License): Change license to unlimited; there was
59615         no LGPL parts in the module anyway.
59616
59617 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59618
59619         * modules/__func__: Renamed to modules/func.
59620         * modules/__func__-tests: Renamed to modules/func-tests.
59621         * tests/test-__func__.c: Renamed to tests/test-func.c.
59622         * m4/__func__.m4: Renamed to m4/func.m4.
59623         * doc/gnulib.texi (__func__): Section renamed to func.
59624         Suggested by Eric Blake <ebb9@byu.net>.
59625
59626 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59627
59628         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59629         about __func__.  Make example self-contained.  Suggested by Eric
59630         Blake <ebb9@byu.net>.
59631
59632         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59633         Suggested by Eric Blake <ebb9@byu.net>.
59634
59635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59636
59637         * modules/__func__: New file.
59638         * modules/__func__-tests: New file.
59639         * tests/test-__func__.c: New file.
59640         * m4/__func__.m4: New file.
59641         * doc/gnulib.texi (__func__): Document __func__ module.
59642
59643 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59644
59645         * modules/byteswap (License): Re-license as LGPLv2+.
59646
59647 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59648
59649         * doc/Makefile: Add pdf target.
59650
59651 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59652
59653         * modules/inline (License): Use 'unlimited', since there are only
59654         *.m4 files in this module.
59655
59656 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59657             Bruno Haible  <bruno@clisp.org>
59658
59659         Add support for HP C 7.1 on OpenVMS 8.3.
59660         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59661
59662 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59663
59664         Update VMS specifics.
59665         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59666
59667 2008-03-02  Jim Meyering  <meyering@redhat.com>
59668
59669         Remove the last dependency on the "free" module.
59670         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59671         Reported by Bob Proulx.
59672
59673         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59674
59675         Remove useless "if" tests before free.  Deprecate "free" module.
59676         * doc/posix-functions/free.texi: Mention that this
59677         module is no longer useful.
59678         * modules/free (Notice): Say this module is obsolete.
59679         * modules/readutmp (Depends-on): Remove free.
59680         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59681         * lib/putenv.c (putenv): Likewise.
59682         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59683         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59684         * tests/test-c-strcasestr.c (main): Likewise.
59685         * tests/test-c-strstr.c (main): Likewise.
59686         * tests/test-mbscasestr1.c (main): Likewise.
59687         * tests/test-mbscasestr2.c (main): Likewise.
59688         * tests/test-mbsstr1.c (main): Likewise.
59689         * tests/test-mbsstr2.c (main): Likewise.
59690         * tests/test-memmem.c (main): Likewise.
59691         * tests/test-strcasestr.c (main): Likewise.
59692         * tests/test-striconv.c (main): Likewise.
59693         * tests/test-striconveh.c (main): Likewise.
59694         * tests/test-striconveha.c (main): Likewise.
59695         * tests/test-strstr.c (main): Likewise.
59696
59697         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59698
59699         bootstrap: sync from coreutils again
59700         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59701
59702 2008-03-01  Jim Meyering  <meyering@redhat.com>
59703
59704         bootstrap: sync from coreutils
59705         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59706         also when the target doesn't exist.
59707
59708 2008-03-01  Eric Blake  <ebb9@byu.net>
59709
59710         Fix bugs in last patch.
59711         * lib/memchr2.c (memchr2): Fix typo.
59712         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59713         extension.
59714         Reported by Bruce Korb.
59715
59716         New module 'memchr2'.
59717         * modules/memchr2: New file.
59718         * modules/memchr2-tests: Likewise.
59719         * lib/memchr2.h: Likewise.
59720         * lib/memchr2.c: Likewise, based on memchr.c.
59721         * tests/test-memchr2.c: New test.
59722         * MODULES.html.sh (String handling): Add memchr2.
59723
59724 2008-02-29  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/freadseek-tests: New file.
59727         * tests/test-freadseek.sh: New file.
59728         * tests/test-freadseek.c: New file.
59729
59730         New module 'freadseek'.
59731         * modules/freadseek: New file.
59732         * lib/freadseek.h: New file.
59733         * lib/freadseek.c: New file.
59734         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59735
59736 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59737
59738         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59739         wydawca.
59740
59741         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59742         program_invocation_name and program_invocation_short_name are
59743         present.
59744
59745 2008-02-28  Bruno Haible  <bruno@clisp.org>
59746
59747         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59748         * tests/test-freadptr.sh: Also test non-seekable stdin.
59749
59750 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59751
59752         * build-aux/bootstrap (source_base, m4_base)
59753         (doc_base, tests_base): New variables.
59754         (gnulib_tool_options): Do not hardcode base directories, use
59755         the above variables instead.
59756
59757 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59758
59759         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59760
59761 2008-02-28  Bruno Haible  <bruno@clisp.org>
59762
59763         * modules/freadptr-tests: New file.
59764         * tests/test-freadptr.sh: New file.
59765         * tests/test-freadptr.c: New file.
59766
59767         New module 'freadptr'.
59768         * modules/freadptr: New file.
59769         * lib/freadptr.h: New file.
59770         * lib/freadptr.c: New file.
59771         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59772
59773 2008-02-26  Karl Berry  <karl@freefriends.org>
59774
59775         Sync from Libtool:
59776         * libltdl/argz.c (argz_add, argz_count): New functions.
59777         * libltdl/argz.in.h: Declare them.
59778         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59779
59780 2008-02-22  Bruno Haible  <bruno@clisp.org>
59781
59782         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59783         is a pointer type.  Needed for HP-UX 10.
59784         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59785         * doc/posix-functions/gmtime_r.texi: Likewise.
59786         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59787
59788 2008-02-24  Bruno Haible  <bruno@clisp.org>
59789
59790         * modules/environ-tests: New file.
59791         * tests/test-environ.c: New file.
59792
59793         New module 'environ'.
59794         * modules/environ: New file.
59795         * lib/unistd.in.h (environ): New declaration.
59796         * m4/environ.m4: New file.
59797         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59798         after use.
59799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59800         HAVE_DECL_ENVIRON.
59801         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59802         HAVE_DECL_ENVIRON.
59803         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59804         wrong claim that 'environ' is missing on some systems.
59805         * modules/execute (Depends-on): Add environ.
59806         * lib/execute.c (environ): Remove fallback declaration.
59807         * modules/pipe (Depends-on): Add environ.
59808         * lib/pipe.c (environ): Remove fallback declaration.
59809         * modules/setenv (Depends-on): Add environ.
59810         * lib/setenv.c (environ): Remove fallback declaration.
59811         * modules/unsetenv (Depends-on): Add environ.
59812         * lib/unsetenv.c (environ): Remove fallback declaration.
59813         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59814         m4/environ.m4.
59815         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59816         (gl_PREREQ_UNSETENV): Likewise.
59817
59818 2008-02-24  Bruno Haible  <bruno@clisp.org>
59819
59820         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59821
59822 2008-02-20  Bob Proulx  <bob@proulx.com>
59823
59824         Enable use of older two part flavor 'git describe'.
59825         * build-aux/git-version-gen: If using the older two part flavor of
59826         git version then recreate the third part now present in the
59827         newer three part flavor of git describe.
59828
59829 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59830
59831         * lib/fts.c (fts_build): Typo correction to comment.
59832
59833 2008-02-17  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59836         generating no-op conflicts.
59837
59838 2008-02-17  Bruno Haible  <bruno@clisp.org>
59839
59840         Speed up by 10%.
59841         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59842         result_entries, rather than an index-based loop.
59843
59844 2008-02-17  Bruno Haible  <bruno@clisp.org>
59845
59846         Speed up by 25%.
59847         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59848         'hashcode_cached'.
59849         (entry_create): New function.
59850         (entry_hashcode): Use the cached hashcode if possible.
59851         (read_changelog_file, try_split_merged_entry): Use entry_create.
59852
59853 2008-02-17  Bruno Haible  <bruno@clisp.org>
59854
59855         Speed up from O(n^2) to O(n) for long ChangeLog files.
59856         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59857         (read_changelog_file): Change implementation of entries_reversed list
59858         to rbtreehash.
59859         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59860
59861 2008-02-17  Bruno Haible  <bruno@clisp.org>
59862
59863         New option --split-merged-entry.
59864         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59865         (find_paragraph_end, try_split_merged_entry): New functions.
59866         (long_options): Add option --split-merged-entry.
59867         (usage): Document option --split-merged-entry.
59868         (main): Implement option --split-merged-entry.
59869         Reported by Eric Blake.
59870
59871 2008-02-17  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/git-merge-changelog.c: Include c-strstr.h.
59874         (main): Support the "git pull --rebase" situation.
59875         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59876         Reported by Eric Blake.
59877
59878 2008-02-16  Eric Blake  <ebb9@byu.net>
59879
59880         Avoid doubling \ in common case of "c-maybe" quoting style.
59881         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59882         eliding outer quotes.
59883         * lib/quotearg.h: Document this.
59884         * tests/test-quotearg.c (result_strings, inputs, results_g)
59885         (flag_results, locale_results): Test it by adding a new string to
59886         each test group.
59887         (compare_strings): Test new string.
59888
59889 2008-02-13  Eric Blake  <ebb9@byu.net>
59890
59891         Avoid trigraph quoting in default output.
59892         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59893         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59894         unless explicitly requested.
59895         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59896
59897 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59898
59899         Don't rely on signed integer overflowing to negative value.
59900         * lib/getugroups.c (getugroups): Include <limits.h>.
59901         Instead, compare against INT_MAX, and increment only if the test passes.
59902
59903 2008-02-13  Jim Meyering  <meyering@redhat.com>
59904         and Eric Blake  <ebb9@byu.net>
59905
59906         Avoid shadowing warning and compile errors on Linux.
59907         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59908         forwarding macros on Linux.
59909         (dcgettext): Define a stub, for Linux.
59910         (results_g, main): Avoid warnings.
59911
59912 2008-02-12  Eric Blake  <ebb9@byu.net>
59913
59914         Silence warning in last patch.
59915         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59916
59917         Quotearg part 4: add tests, fix c-maybe colon quoting.
59918         * lib/quotearg.h: Improve documentation.
59919         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59920         escapes when adding outer quotes.  When quoting trigraphs, use
59921         valid C notation.  When quoting NUL, omit extra characters if next
59922         character is not digit.  Alter prototype.
59923         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59924         callers.
59925         * modules/quotearg-tests: New module.
59926         * tests/test-quotearg.c: New test.
59927
59928 2008-02-07  Eric Blake  <ebb9@byu.net>
59929
59930         Quotearg part 3: add flag to control outer quote elision.
59931         * lib/quotearg.h (c_maybe_quoting_style): New style.
59932         (enum quoting_flags): Better documentation of flags.
59933         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59934         c-maybe style.
59935         (quotearg_buffer_restyled): Handle new flag to elide outer
59936         quotes.
59937
59938         Quotearg part 2: add flag that can control NUL elision.
59939         * lib/quotearg.h (set_quoting_flags): New prototype.
59940         * lib/quotearg.c (struct quoting_options): Add flag field.
59941         (set_quoting_flags): New function.
59942         (quotearg_buffer_restyled): Add flags parameter.
59943         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59944         (quotearg_n_options): Set the flag, since length cannot be
59945         returned.
59946         (quoting_options_from_style): Default flags correctly.
59947
59948         Quotearg part 1: more wrappers, restore quotearg_char state.
59949         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59950         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59951         (quotearg_colon_mem): New wrappers.
59952         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59953         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59954         functions.
59955         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59956         (quotearg_colon_mem): New functions.
59957
59958 2008-02-11  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59961         library in the current directory: it does not work with parallel make.
59962         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59963
59964 2008-02-11  Bruno Haible  <bruno@clisp.org>
59965
59966         * .gitattributes: New file.
59967
59968 2008-02-11  Jim Meyering  <meyering@redhat.com>
59969
59970         useless-if-before-free: Fix reversed exit values.
59971         * build-aux/useless-if-before-free: Use correct values
59972         for EXIT_MATCH and EXIT_NO_MATCH.
59973
59974         * build-aux/useless-if-before-free: Close stdout carefully.
59975
59976 2008-02-10  Bruno Haible  <bruno@clisp.org>
59977
59978         New module 'git-merge-changelog'.
59979         * modules/git-merge-changelog: New file.
59980         * lib/git-merge-changelog.c: New file.
59981
59982 2008-02-10  Jim Meyering  <meyering@redhat.com>
59983
59984         useless-if-before-free: New option: --list (-l).
59985
59986         useless-if-before-free: Don't exit immediately upon open failure.
59987         * build-aux/useless-if-before-free: Exit 2 for errors.
59988         Upon failure to open a file, don't exit immediately.
59989         Rather, just warn and continue with any remaining files.
59990
59991 2008-02-10  Bruno Haible  <bruno@clisp.org>
59992
59993         New abstract list operation 'node_set_value'.
59994         * lib/gl_list.h (gl_list_node_set_value): New function.
59995         (struct gl_list_implementation): New field node_set_value.
59996         * lib/gl_list.c (gl_list_node_set_value): New function.
59997         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59998         (gl_array_list_implementation): Update.
59999         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60000         (gl_carray_list_implementation): Update.
60001         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60002         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60003         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60004         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60005         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60006         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60007         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60008         Update.
60009         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60010         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60011         (gl_sublist_list_implementation): Update.
60012
60013 2008-02-10  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60016         Needed when ELEMENT is #defined to 'some_type *'.
60017
60018 2008-02-10  Jim Meyering  <meyering@redhat.com>
60019
60020         New script and module: useless-if-before-free
60021         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60022         * build-aux/useless-if-before-free: New file.
60023         * modules/useless-if-before-free: New file.
60024
60025         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60026
60027         xstrtol_error: Fix typo.
60028         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60029         s/exit_failure/exit_status/.
60030
60031 2008-02-09  Jim Meyering  <meyering@redhat.com>
60032
60033         New script and module: gitlog-to-changelog
60034         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60035         * modules/gitlog-to-changelog: New file.
60036         * build-aux/gitlog-to-changelog: New file.
60037
60038 2008-02-08  Jim Meyering  <meyering@redhat.com>
60039
60040         Avoid two "parameter unused" warnings.
60041         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60042         Mark "st" as used.
60043
60044         Use "git COMMAND", not "git-COMMAND".
60045         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60046         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60047         * build-aux/git-version-gen: Use "git status", not "git-status".
60048
60049 2008-02-07  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60052         Avoids a crash on Windows Vista.
60053         Reported by Adam Strzelecki <ono@java.pl> via
60054         Simon Josefsson <simon@josefsson.org>.
60055
60056 2008-02-06  Bruno Haible  <bruno@clisp.org>
60057
60058         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60059         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60060         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60062         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60064         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60065         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60073         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60074         left-adjust flag.
60075         * tests/test-snprintf-posix.h (test_function): Likewise.
60076         * tests/test-sprintf-posix.h (test_function): Likewise.
60077         * tests/test-vasprintf-posix.c (test_function): Likewise.
60078         * doc/posix-functions/fprintf.texi: Update.
60079         * doc/posix-functions/printf.texi: Update.
60080         * doc/posix-functions/snprintf.texi: Update.
60081         * doc/posix-functions/sprintf.texi: Update.
60082         * doc/posix-functions/vfprintf.texi: Update.
60083         * doc/posix-functions/vprintf.texi: Update.
60084         * doc/posix-functions/vsnprintf.texi: Update.
60085         * doc/posix-functions/vsprintf.texi: Update.
60086         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60087
60088 2008-02-06  Bruno Haible  <bruno@clisp.org>
60089
60090         Fix bug introduced on 2008-01-26.
60091         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60092
60093 2008-02-06  Bruno Haible  <bruno@clisp.org>
60094
60095         Fix bug introduced on 2007-06-10.
60096         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60097         !NEED_PRINTF_FLAG_ZERO.
60098
60099 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60100
60101         getloadavg: use libperfstat on AIX5
60102         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60103
60104 2008-02-03  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/diffseq.h: Add comments about required #includes.
60107         Reported by Michael Biggs <gnulib@doubleplum.net>.
60108
60109 2008-02-01  Bruno Haible  <bruno@clisp.org>
60110
60111         * users.txt: Add gnuit.
60112
60113 2008-01-31  Bruno Haible  <bruno@clisp.org>
60114
60115         * lib/md4.c (set_uint32): Mark as inline.
60116         * lib/md5.c (set_uint32): Likewise.
60117         * lib/sha1.c (set_uint32): Likewise.
60118         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60119         * m4/md5.m4 (gl_MD5): Likewise.
60120         * m4/sha1.m4 (gl_SHA1): Likewise.
60121
60122 2008-01-31  Jim Meyering  <meyering@redhat.com>
60123
60124         Use "sizeof VAR", rather than a literal "4".
60125         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60126         * lib/md4.c (md4_read_ctx): Likewise.
60127         * lib/sha1.c (sha1_read_ctx): Likewise.
60128
60129 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60130
60131         * tests/test-sha1.c: New file, based on test-md5.c.
60132
60133         * modules/crypto/sha1-tests: New file.
60134
60135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60136
60137         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60138
60139 2008-01-31  Jim Meyering  <meyering@redhat.com>
60140
60141         Prefer "sizeof v" over the equivalent "4".
60142         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60143         * lib/md5.c (set_uint32): Likewise.
60144         * lib/sha1.c (set_uint32): Likewise.
60145
60146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60147
60148         * lib/sha1.c (set_uint32): Mark function as static.
60149
60150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60151
60152         md2: clarify comments to say that alignment is not required.
60153         * lib/md2.h: Remove warning about alignment in comment.
60154         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60155         never been required.
60156
60157 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60158
60159         md4: adapt alignment constraint fix from sha1.
60160         * lib/md4.c (set_uint32): New function, from sha1.c
60161         (md4_read_ctx): Use it.
60162         (md4_finish_ctx): Doc fix.
60163         * lib/md4.h: Doc fix.
60164
60165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60166
60167         md5: adapt alignment constraint fix from sha1.
60168         * lib/md5.c (set_uint32): New function, from sha1.c
60169         (md5_read_ctx): Use it.
60170         (md5_finish_ctx): Doc fix.
60171         * lib/md5.h: Doc fix.
60172
60173 2008-01-30  Peter Palfrader  <weasel@debian.org>
60174
60175         sha1: remove the result buffer alignment constraint
60176         * lib/sha1.c (set_uint32): New function.
60177         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60178         constraint.
60179         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60180         * lib/sha1.h: Likewise.
60181
60182 2008-01-30  Andreas Schwab  <schwab@suse.de>
60183             Bruno Haible  <bruno@clisp.org>
60184
60185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60186         correct definition of LDBL_MIN_EXP.
60187
60188 2008-01-30  Karl Berry  <karl@gnu.org>
60189
60190         * config/srclist-update: try to preserve x bit on updates.
60191         * config/srclistvars.sh: update for karl.
60192
60193 2008-01-29  Jim Meyering  <meyering@redhat.com>
60194
60195         vasnprintf.c: Avoid warning about unused label
60196         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60197         "overflow" label definition and associated code with the
60198         same cpp condition that guards the sole use of that label.
60199
60200 2008-01-26  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60203         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60204         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60205         * lib/isnanl-nolibm.h (isnanl): Likewise.
60206         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60207
60208 2008-01-26  Bruno Haible  <bruno@clisp.org>
60209
60210         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60211         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60212
60213 2008-01-26  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60216         GCC >= 4.0 built-in.
60217         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60218
60219 2008-01-26  Bruno Haible  <bruno@clisp.org>
60220
60221         Rename isnan, applicable to 'double' only, to isnand.
60222         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60223         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60224         (configure.ac): Update.
60225         (Include): Replace "isnan.h" with "isnand.h".
60226         * m4/isnand.m4: Renamed from m4/isnan.m4.
60227         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60228         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60229         instead of isnan.c.
60230         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60231         instead of HAVE_ISNAN_IN_LIBC.
60232         (isnand): Renamed from isnan.
60233         * lib/isnand.c: New file.
60234         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60235         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60236         (Makefile.am): Update.
60237         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60238         Include isnand.h instead of isnan.h.
60239         (main): Test isnand instead of isnan.
60240         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60241         isnan-nolibm.
60242         * modules/frexp (Depends-on): Likewise.
60243         * modules/frexp-tests (Depends-on): Likewise.
60244         * modules/frexp-nolibm (Depends-on): Likewise.
60245         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60246         * modules/isfinite (Depends-on): Likewise.
60247         * modules/round-tests (Depends-on): Likewise.
60248         * modules/signbit (Depends-on): Likewise.
60249         * modules/signbit-tests (Depends-on): Likewise.
60250         * modules/snprintf-posix (Depends-on): Likewise.
60251         * modules/sprintf-posix (Depends-on): Likewise.
60252         * modules/trunc-tests (Depends-on): Likewise.
60253         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60260         * modules/vasnprintf-posix (Depends-on): Likewise.
60261         * modules/vasprintf-posix (Depends-on): Likewise.
60262         * modules/vfprintf-posix (Depends-on): Likewise.
60263         * modules/vsnprintf-posix (Depends-on): Likewise.
60264         * modules/vsprintf-posix (Depends-on): Likewise.
60265         * lib/frexp.c: Include isnand.h instead of isnan.h.
60266         (ISNAN): Set to isnand instead of isnan.
60267         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60268         (gl_isfinited): Use isnand instead of isnan.
60269         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60270         (gl_signbitd): Use isnand instead of isnan.
60271         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60272         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60273         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60274         (main): Use isnand instead of isnan.
60275         * tests/test-round1.c: Include isnand.h.
60276         (main): Use isnand instead of isnan.
60277         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60278         (ISNAN): Set to isnand instead of isnan.
60279         * tests/test-trunc1.c: Include isnand.h.
60280         (main): Use isnand instead of isnan.
60281         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60282         (equal): Use isnand instead of isnan.
60283         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60284         isnand-nolibm.
60285         * NEWS: Mention the change.
60286
60287 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60288             Bruno Haible  <bruno@clisp.org>
60289
60290         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60291         the GCC builtins for signbits are present and set
60292         REPLACE_SIGNBIT_USING_GCC if so.
60293         * lib/math.in.h (signbit): Define using GCC builtins if
60294         REPLACE_SIGNBIT_USING_GCC is set.
60295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60296         REPLACE_SIGNBIT_USING_GCC.
60297         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60298
60299 2008-01-25  Jim Meyering  <meyering@redhat.com>
60300
60301         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60302         * lib/poll.c: Include <config.h>, not "config.h".
60303         * tests/test-getaddrinfo.c: Likewise.
60304
60305 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60306
60307         * modules/sockets-tests: New file.
60308
60309 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60310
60311         * modules/sockets: New module, can be used to call WSA_Startup and
60312         WSA_Cleanup when needed.
60313
60314         * lib/sockets.h, lib/sockets.c: New files.
60315
60316         * m4/sockets.m4: New file.
60317
60318         * tests/test-sockets.c: New file.
60319
60320 2008-01-19  Bruno Haible  <bruno@clisp.org>
60321
60322         * doc/posix-headers: Renamed from doc/headers.
60323         * doc/posix-functions: Renamed from doc/functions.
60324         * doc/gnulib.texi: Update.
60325
60326 2008-01-19  Bruno Haible  <bruno@clisp.org>
60327
60328         * doc/glibc-functions/strcasestr.texi: Include contents of
60329         doc/functions/strcasestr.texi, fixing the list of platforms.
60330         * doc/functions/strcasestr.texi: Remove file.
60331
60332 2008-01-19  Bruno Haible  <bruno@clisp.org>
60333
60334         * doc/glibc-functions/memmem.texi: Include contents of
60335         doc/functions/memmem.texi.
60336         * doc/functions/memmem.texi: Remove file.
60337
60338 2008-01-18  Bruno Haible  <bruno@clisp.org>
60339
60340         * doc/glibc-functions/*.texi: New files.
60341         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60342         to use the new files.
60343
60344 2008-01-17  Bruno Haible  <bruno@clisp.org>
60345
60346         * tests/test-gethostname.c (main): Fix printf statement.
60347
60348 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60349
60350         * modules/gethostname-tests: New file.
60351
60352         * tests/test-gethostname.c: New file.
60353
60354 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60355
60356         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60357         used by the UNAME case.  Reported by Bruno Haible
60358         <bruno@clisp.org>.
60359
60360 2008-01-17  Eric Blake  <ebb9@byu.net>
60361
60362         Convert c-strcasestr to be more efficient.
60363         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60364         (Depends-on): Add c-strcase, remove malloca, strnlen.
60365         * tests/test-c-strcasestr.c (main): Enhance test.
60366         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60367
60368 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60369
60370         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60371         Use it in creating po/Makevars.
60372
60373 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60374
60375         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60376         Applications that requires it should initialize libgcrypt
60377         manually.
60378
60379 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60380
60381         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60382
60383 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60384
60385         Fix problem with getdate on mingw32 reported by Simon Josefsson
60386         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60387         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60388         tzname", when deciding whether to declare tzname.
60389         * lib/strftime.c (tzname): Likewise.
60390
60391 2008-01-15  Bruno Haible  <bruno@clisp.org>
60392
60393         Work around a MacOS X 10.5 bug in frexpl().
60394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60395         * doc/functions/frexpl.texi: Document the bug.
60396         Reported by Elias Pipping <pipping@gentoo.org>.
60397
60398 2008-01-14  Eric Blake  <ebb9@byu.net>
60399
60400         Touch up previous patch.
60401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60402         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60403
60404         Convert strcasestr module to use Two-Way algorithm.
60405         * modules/strcasestr-simple: New module, based on the old
60406         strcasestr, but with Two-Way rather than KMP.
60407         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60408         * lib/string.in.h (rpl_strcasestr): Declare.
60409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60410         performance.
60411         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60412         * modules/string (Makefile.am): Support strcasestr.
60413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60414         * modules/strcasestr-tests (Depends-on): Check for alarm.
60415         * tests/test-strcasestr.c: Augment test.
60416         * lib/str-two-way.h: Clean up stray macro.
60417         * NEWS: Document new module.
60418         * MODULES.html.sh (string handling): Likewise.
60419         * doc/functions/strcasestr.texi: New file.
60420         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60421         here, since it is not a POSIX function.
60422
60423 2008-01-14  Colin Watson  <cjwatson@debian.org>
60424             Bruno Haible  <bruno@clisp.org>
60425
60426         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60427         works fine; if not, set REPLACE_STRSIGNAL.
60428         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60430         REPLACE_STRSIGNAL.
60431         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60432         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60433         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60434
60435 2008-01-14  Bruno Haible  <bruno@clisp.org>
60436
60437         * modules/strsignal (Include): Change to <string.h>.
60438
60439 2008-01-14  Colin Watson  <cjwatson@debian.org>
60440
60441         * modules/argp (Notice): Add a notice recommending to change
60442         XGETTEXT_OPTIONS.
60443         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60444
60445 2008-01-13  Colin Watson  <cjwatson@debian.org>
60446
60447         * modules/strsignal-tests: New file.
60448         * tests/test-strsignal.c: New file.
60449
60450         * lib/strsignal.c: New file, from glibc with modifications.
60451         * lib/siglist.h: New file, from glibc with modifications.
60452         * lib/string.in.h (strsignal): New declaration.
60453         * m4/strsignal.m4: New file.
60454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60455         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60456         * modules/strsignal: New file.
60457         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60458         HAVE_DECL_STRSIGNAL.
60459
60460 2008-01-13  Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60463         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60464         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60466
60467 2008-01-13  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60470         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60471         * lib/argp.h (__attribute__): Likewise.
60472         * lib/c-stack.c (__attribute__): Likewise.
60473         * lib/error.h (__attribute__): Likewise.
60474         * lib/fts.c (__attribute__): Likewise.
60475         * lib/openat.h (__attribute__): Likewise.
60476         * lib/stdio.in.h (__attribute__): Likewise.
60477         * lib/string.in.h (__attribute__): Likewise.
60478         * lib/utimens.c (__attribute__): Likewise.
60479         * lib/vasnprintf.h (__attribute__): Likewise.
60480         * lib/xalloc.h (__attribute__): Likewise.
60481         * lib/xprintf.h (__attribute__): Likewise.
60482         * lib/xstrtol.h (__attribute__): Likewise.
60483         * lib/xvasprintf.h (__attribute__): Likewise.
60484
60485 2008-01-12  Bruno Haible  <bruno@clisp.org>
60486
60487         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60488         * doc/glibc-headers/a.out.texi: New file.
60489         * doc/glibc-headers/aliases.texi: New file.
60490         * doc/glibc-headers/alloca.texi: New file.
60491         * doc/glibc-headers/ar.texi: New file.
60492         * doc/glibc-headers/argp.texi: New file.
60493         * doc/glibc-headers/argz.texi: New file.
60494         * doc/glibc-headers/byteswap.texi: New file.
60495         * doc/glibc-headers/crypt.texi: New file.
60496         * doc/glibc-headers/endian.texi: New file.
60497         * doc/glibc-headers/envz.texi: New file.
60498         * doc/glibc-headers/err.texi: New file.
60499         * doc/glibc-headers/error.texi: New file.
60500         * doc/glibc-headers/execinfo.texi: New file.
60501         * doc/glibc-headers/fpu_control.texi: New file.
60502         * doc/glibc-headers/fstab.texi: New file.
60503         * doc/glibc-headers/fts.texi: New file.
60504         * doc/glibc-headers/getopt.texi: New file.
60505         * doc/glibc-headers/ieee754.texi: New file.
60506         * doc/glibc-headers/ifaddrs.texi: New file.
60507         * doc/glibc-headers/libintl.texi: New file.
60508         * doc/glibc-headers/mcheck.texi: New file.
60509         * doc/glibc-headers/mntent.texi: New file.
60510         * doc/glibc-headers/obstack.texi: New file.
60511         * doc/glibc-headers/paths.texi: New file.
60512         * doc/glibc-headers/printf.texi: New file.
60513         * doc/glibc-headers/pty.texi: New file.
60514         * doc/glibc-headers/resolv.texi: New file.
60515         * doc/glibc-headers/shadow.texi: New file.
60516         * doc/glibc-headers/sysexits.texi: New file.
60517         * doc/glibc-headers/ttyent.texi: New file.
60518
60519 2008-01-12  Jim Meyering  <meyering@redhat.com>
60520
60521         announce-gen: emit Gnulib's git-based version string.
60522         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60523         New option --gnulib-version=V, where V is expected to be
60524         the output of running git describe in the gnulib directory.
60525         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60526         not useful, and plan to stop publishing an xdelta file with each
60527         coreutils release.
60528
60529         * build-aux/announce-gen: Also check for lzma-compressed files.
60530
60531 2008-01-11  Bruno Haible  <bruno@clisp.org>
60532
60533         * tests/test-memmem.c (main): Increase maximum allowed time.
60534         * tests/test-strstr.c (main): Likewise.
60535
60536 2008-01-11  Bruno Haible  <bruno@clisp.org>
60537
60538         * doc/functions/memmem.texi: Add more precisions about platforms.
60539         * doc/functions/strstr.texi: Likewise.
60540
60541 2008-01-10  Eric Blake  <ebb9@byu.net>
60542
60543         * m4/strstr.m4: Delete cruft from copy-n-paste.
60544         Reported by Bruno Haible.
60545
60546 2008-01-10  Bruno Haible  <bruno@clisp.org>
60547
60548         Make c-strstr rely on strstr.
60549         * lib/c-strstr.c: Don't include str-kmp.h.
60550         (c_strstr): Define in terms of strstr.
60551         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60552         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60553
60554 2008-01-10  Bruno Haible  <bruno@clisp.org>
60555
60556         * doc/gnulib.texi (String Functions in C Locale): New section.
60557         * doc/c-ctype.texi: New file.
60558         * doc/c-strcase.texi: New file.
60559         * doc/c-strcaseeq.texi: New file.
60560         * doc/c-strcasestr.texi: New file.
60561         * doc/c-strstr.texi: New file.
60562         * doc/c-strtod.texi: New file.
60563         * doc/c-strtold.texi: New file.
60564
60565 2008-01-10  Eric Blake  <ebb9@byu.net>
60566
60567         * lib/relocatable.h: Fix a comment.
60568
60569 2008-01-10  Eric Blake  <ebb9@byu.net>
60570
60571         Share two-way algorithm.
60572         * lib/str-two-way.h: New file, merged from...
60573         * lib/memmem.c: ...here...
60574         * lib/strstr.c: ...and here.
60575         * modules/memmem (Files): Use it.
60576         * modules/strstr (Files): Likewise.
60577
60578         Avoid quadratic strstr implementations.
60579         * lib/strstr.c: New file.
60580         * m4/strstr.m4: Likewise.
60581         * modules/strstr: Likewise.
60582         * modules/strstr-tests: Likewise.
60583         * tests/test-strstr.c: Likewise.
60584         * lib/string.in.h (rpl_strstr): Declare.
60585         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60587         * modules/string (Makefile.am): Likewise.
60588         * MODULES.html.sh (string handling): Mention new module.
60589         * doc/functions/strstr.texi (strstr): Document the bug.
60590
60591 2008-01-10  Bruno Haible  <bruno@clisp.org>
60592
60593         * lib/relocatable.h (relocate): State whether result is freshly
60594         allocated or not.
60595         * lib/relocatable.c (relocate): Return a freshly allocated string
60596         instead of a pointer to a privately held string.
60597         Reported by Sylvain Beucler <beuc@gnu.org>.
60598
60599 2008-01-10  Colin Watson  <cjwatson@debian.org>
60600
60601         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60602         s/S_ISNLK/S_ISLNK/.
60603
60604 2008-01-09  Bruno Haible  <bruno@clisp.org>
60605
60606         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60607         and other files.
60608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60609         if it's only a guess.
60610         * modules/memmem: Simplify by depending on memmem-simple.
60611
60612 2008-01-09  Bruno Haible  <bruno@clisp.org>
60613
60614         Work around OpenBSD 4.0 tdelete() bug.
60615         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60616         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60617         macros and don't redefine the enum values.
60618         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60619         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60620         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60621
60622 2008-01-09  Bruno Haible  <bruno@clisp.org>
60623
60624         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60625         (main): Don't perform the tests if setlocale did not install a UTF-8
60626         locale. Needed on OpenBSD 4.0.
60627         * modules/wcwidth-tests (Depends-on): Add localcharset.
60628
60629 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60630
60631         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60632         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60633         * NEWS: announce this.
60634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60635
60636 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60637         and Eric Blake  <ebb9@byu.net>
60638
60639         Add memmem-simple module.
60640         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60641         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60642         * modules/memmem-simple: New file.
60643         * modules/memmem (Description): Tweak.
60644         * MODULES.html.sh (string handling): Mention new module.
60645         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60646         addressed by memmem-simple.
60647         * NEWS: Document the difference.
60648
60649 2008-01-09  Eric Blake  <ebb9@byu.net>
60650
60651         Give gcc some memmem optimization hints.
60652         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60653         (strcasestr): Declare as pure.
60654         * modules/memmem (Maintainer): Claim my implementation.
60655
60656 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60657
60658         Support AIX 6.1 and higher.
60659         * build-aux/config.libpath: Likewise.
60660         * build-aux/config.rpath: Likewise.
60661
60662 2008-01-08  Jim Meyering  <meyering@redhat.com>
60663             Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60666         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60667         Reported by Peter Fales in
60668         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60669
60670 2008-01-08  Bruno Haible  <bruno@clisp.org>
60671
60672         * modules/unictype/category-of (Depends-on): Add
60673         unictype/category-none.
60674         * modules/unictype/category-and-tests (Depends-on): Add
60675         unictype/category-{L,N,Lu,Nd}.
60676         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60677         * modules/unictype/category-or-tests (Depends-on): Add
60678         unictype/category-{L,N}.
60679         * modules/unictype/category-name-tests (Depends-on): Add
60680         unictype/category-{Z,Nl}.
60681         Reported by Simon Josefsson.
60682
60683 2008-01-08  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60686         convention better.
60687         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60688         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60689         Reported by Peter Miller <millerp@canb.auug.org.au>.
60690
60691 2008-01-08  Eric Blake  <ebb9@byu.net>
60692
60693         Rewrite memmem to guarantee linear complexity without malloc.
60694         * lib/memmem.c (memmem): Use Two-Way rather than
60695         Knuth-Morris-Pratt, to allow O(1) space usage.
60696         (critical_factorization, two_way_short_needle)
60697         (two_way_long_needle): New functions.
60698         (knuth_morris_pratt): Delete.
60699         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60700         Add stdint.
60701         * tests/test-memmem.c (main): Add tests for periodic needle and
60702         sublinear performance.
60703         * doc/functions/memmem.texi (memmem): Document other deficiencies
60704         in cygwin and older glibc.
60705
60706 2008-01-08  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60709         augmentation.
60710
60711 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60712
60713         Add a configure time option: --disable-acl.
60714         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60715         AC_ARG_ENABLE(acl).
60716
60717 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60718
60719         * tests/test-localename.c: Don't include obsolete "setenv.h".
60720
60721         * modules/localename-tests (Depends-on): Need unsetenv.
60722
60723 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60724
60725         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60726
60727 2008-01-06  Colin Watson  <cjwatson@debian.org>
60728
60729         * users.txt: Add man-db.
60730
60731 2008-01-07  Bruno Haible  <bruno@clisp.org>
60732
60733         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60734         previous section name.
60735
60736 2008-01-07  Bruno Haible  <bruno@clisp.org>
60737
60738         * lib/progname.c (set_program_name): Don't strip off a leading
60739         "lt-" prefix outside a .libs directory.
60740         Suggested by Paul Eggert.
60741
60742 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60743             Bruno Haible  <bruno@clisp.org>
60744
60745         Improve memory cleanup in 'relocatable' module.
60746         * lib/relocatable.h (compute_curr_prefix): Change return type to
60747         'char *'.
60748         * lib/relocatable.c (compute_curr_prefix): Change return type to
60749         'char *'. Free curr_installdir after use.
60750         (relocate): Free curr_prefix_better after use.
60751         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60752
60753 2008-01-01  Bruno Haible  <bruno@clisp.org>
60754
60755         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60756         failure on older glibc systems.
60757         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60758
60759 2008-01-05  Eric Blake  <ebb9@byu.net>
60760
60761         Avoid quadratic system memmem.
60762         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60763         Reported by Ralf Wildenhues.
60764
60765         Fix memmem test for mingw.
60766         * modules/memmem-tests (configure.ac): Check for alarm.
60767         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60768         it.
60769         * doc/functions/memmem.texi: New file.
60770         * doc/gnulib.texi (Function Substitutes): Add memmem.
60771         Reported by Bruno Haible.
60772
60773 2008-01-04  Bruno Haible  <bruno@clisp.org>
60774
60775         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60776         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60777         gl_HEADER_STRING_H_DEFAULTS.
60778
60779 2008-01-04  Eric Blake  <ebb9@byu.net>
60780
60781         Shorten duration of memmem test.
60782         * tests/test-memmem.c (main): Use alarm to declare failure if test
60783         is taking too long.
60784         Reported by Ralf Wildenhues.
60785
60786 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60787
60788         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60789         string, needed by strerror.
60790
60791 2008-01-03  Colin Watson  <cjwatson@debian.org>
60792             Bruno Haible  <bruno@clisp.org>
60793
60794         * doc/gnulib-tool.texi (Localization): New section.
60795
60796 2008-01-02  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60799         variables to 'unsigned char *' type.
60800         Reported by Paul Eggert.
60801
60802 2008-01-02  Jim Meyering  <jim@meyering.net>
60803
60804         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60805
60806 2007-12-31  Jim Meyering  <jim@meyering.net>
60807
60808         Avoid use of private FTS type name.
60809         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60810
60811 2007-12-30  Karl Berry  <karl@gnu.org>
60812
60813         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60814         work around defect in Texinfo and/or the standalone Info browser.
60815
60816 2007-12-30  Bruno Haible  <bruno@clisp.org>
60817
60818         Unify 5 copies of the KMP code.
60819         * lib/str-kmp.h: New file.
60820         * lib/c-strcasestr.c: Include str-kmp.h.
60821         (knuth_morris_pratt): Remove function.
60822         (c_strcasestr): Update.
60823         * lib/c-strstr.c: Include str-kmp.h.
60824         (knuth_morris_pratt): Remove function.
60825         (c_strcasestr): Update.
60826         * lib/mbscasestr.c: Include str-kmp.h.
60827         (knuth_morris_pratt_unibyte): Remove function.
60828         * lib/mbsstr.c: Include str-kmp.h.
60829         (knuth_morris_pratt_unibyte): Remove function.
60830         * lib/strcasestr.c: Include str-kmp.h.
60831         (knuth_morris_pratt): Remove function.
60832         (strcasestr): Update.
60833         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60834         * modules/c-strstr (Files): Likewise.
60835         * modules/mbscasestr (Files): Likewise.
60836         * modules/mbsstr (Files): Likewise.
60837         * modules/strcasestr (Files): Likewise.
60838         Suggested by Paul Eggert.
60839
60840 2007-12-30  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60843         defined.
60844
60845 2007-12-30  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/xmalloca.h: Include xalloc.h.
60848         (xnmalloca): New macro.
60849
60850 2007-12-30  Bruno Haible  <bruno@clisp.org>
60851
60852         * lib/malloca.h (nmalloca): New macro.
60853         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60854         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60855         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60856         knuth_morris_pratt_multibyte): Likewise.
60857         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60858         knuth_morris_pratt_multibyte): Likewise.
60859         * lib/memmem.c (knuth_morris_pratt): Likewise.
60860         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60861
60862 2007-12-25  Bruno Haible  <bruno@clisp.org>
60863
60864         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60865         * lib/glob.c: Don't include openat.h.
60866         (link_exists2_p): Add back the code that deals with the
60867         !GLOB_ALTDIRFUNC case.
60868         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60869         let it do the filename concatenation.
60870         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60871         * modules/glob (Depends-on): Remove openat.
60872
60873 2007-12-31  Bruno Haible  <bruno@clisp.org>
60874
60875         * modules/dirfd (License): Change to LGPLv2+.
60876         Approved by Jim Meyering.
60877
60878 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60881         when multiplying M by sizeof (size_t).
60882
60883 2007-12-10  Martin Lambers  <marlam@marlam.de>
60884
60885         Override getpagesize on mingw.
60886         * lib/getpagesize.c: New file.
60887         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60888         * modules/getpagesize (Files): Add lib/getpagesize.c.
60889         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60891         REPLACE_GETPAGESIZE.
60892         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60893
60894 2007-12-25  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/localcharset (Notice): New field.
60897         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60898         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60899
60900 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60901             Bruno Haible  <bruno@clisp.org>
60902
60903         Avoid using the syntax symbol() in formatted documentation.
60904         * MODULES.html.sh (func_module): When replacing symbol() with a
60905         hyperlink, remove the parentheses. Show an error if some remain.
60906         Recognize and render the '...' syntax.
60907         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60908         Rework. Add paragraph about GCC's inlining.
60909         * doc/alloca.texi: Likewise.
60910         * doc/error.texi: Remove parentheses from symbol reference.
60911         * doc/gnulib-intro.texi: Likewise.
60912         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60913         * modules/fnmatch (Description): Reword to say "the ... function".
60914         * modules/full-read (Description): Likewise.
60915         * modules/full-write (Description): Likewise.
60916         * modules/safe-read (Description): Likewise.
60917         * modules/safe-write (Description): Likewise.
60918         * modules/strchrnul (Description): Likewise.
60919         * modules/trim (Description): Likewise.
60920         * modules/error (Description): Remove parentheses from symbol
60921         references.
60922         * modules/verror (Description): Likewise.
60923         Reported by Karl Berry.
60924
60925 2007-12-25  Bruno Haible  <bruno@clisp.org>
60926
60927         Fixup after 2007-10-16 commit.
60928         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60929
60930 2007-12-24  Bruno Haible  <bruno@clisp.org>
60931
60932         Make --enable-relocatable work with DESTDIR.
60933         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60934         to compute installdir from destprog.
60935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60936         also set the RELOC_DESTDIR variable.
60937         Reported by Левашев Иван <octagram@bluebottle.com>.
60938
60939 2007-12-24  Bruno Haible  <bruno@clisp.org>
60940
60941         Fix link error due to xalloc_die().
60942         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60943         of xreadlink.
60944         * lib/relocwrapper.c: Update comments.
60945         * build-aux/install-reloc: Remove xreadlink.c from file list.
60946         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60947         xreadlink.c.
60948         Reported by Левашев Иван <octagram@bluebottle.com>.
60949
60950 2007-12-24  Bruno Haible  <bruno@clisp.org>
60951
60952         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60953         * lib/setenv.h: Remove file.
60954         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60955         lib/setenv.h.
60956         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60957         (Depends-on): Add stdlib.
60958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60959         gl_FUNC_UNSETENV.
60960         (Include): Replace setenv.h with <stdlib.h>.
60961         * modules/unsetenv: New file.
60962         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60963         * lib/unsetenv.c: Include <stdlib.h> first.
60964         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60965         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60966         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60967         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60968         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60969         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60971         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60972         * doc/functions/unsetenv.texi: Update.
60973         * modules/xsetenv (Depends-on): Add unsetenv.
60974         * modules/getdate (Depends-on): Likewise.
60975         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60976         * lib/xsetenv.c: Don't include setenv.h.
60977         * lib/getdate.y: Likewise.
60978         * lib/relocwrapper.c: Likewise.
60979         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60980         (Depends-on): Add stdlib.
60981         * NEWS: Mention the changes.
60982         Reported by Левашев Иван <octagram@bluebottle.com>.
60983
60984 2007-12-23  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60987         indentation.
60988
60989 2007-12-23  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/c-strcasestr.c: Add more comments.
60992         * lib/c-strstr.c: Likewise.
60993         * lib/mbscasestr.c: Likewise.
60994         * lib/mbsstr.c: Likewise.
60995         * lib/strcasestr.c: Likewise.
60996         * lib/memmem.c: Likewise.
60997
60998 2007-12-23  Bruno Haible  <bruno@clisp.org>
60999
61000         * tests/test-memmem.c: Include <string.h> first.
61001
61002 2007-12-22  Bruno Haible  <bruno@clisp.org>
61003
61004         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61005         the contents of $testsbase.
61006         Reported by Ralf Wildenhues.
61007
61008 2007-12-22  Bruno Haible  <bruno@clisp.org>
61009
61010         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61011         two variables local_ldadd_before, local_ldadd_last.
61012
61013 2007-12-20  Eric Blake  <ebb9@byu.net>
61014
61015         Work around circular library issue when cross-compiling.
61016         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61017         that progname.o does not need to pull in rpl_memcmp.
61018
61019 2007-12-19  Eric Blake  <ebb9@byu.net>
61020
61021         Fix memmem to avoid O(n^2) worst-case complexity.
61022         * lib/memmem.c (knuth_morris_pratt): New function.
61023         (memmem): Use it if first few naive iterations fail.
61024         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61025         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61026         * modules/memchr (License): Likewise.
61027         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61028         malloca.
61029         * tests/test-memmem.c: Rewrite, borrowing ideas from
61030         test-mbsstr1.c; the old version wouldn't even compile!
61031         * modules/memmem-tests: New file.
61032         * lib/string.in.h (rpl_memmem): Add declaration.
61033         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61035         REPLACE_MEMMEM.
61036
61037 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61038
61039         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61040         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61041         before any system include files, and undef after them all.  This
61042         should fix a problem on VMS reported by John E. Malmberg in
61043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61044
61045 2007-12-17  Eric Blake  <ebb9@byu.net>
61046
61047         Revert addition of verify, for BSD/OS.
61048         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61049         can't handle large files, for the sake of obsolete platforms.
61050         * modules/fseeko (Depends-on): Remove verify.
61051         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61052         * doc/functions/ftello.texi (ftello): Likewise.
61053         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61054         Reported by Larry Jones.
61055
61056 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61057
61058         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61059         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61060
61061 2007-12-17  Jim Meyering  <meyering@redhat.com>
61062
61063         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61064         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61065         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61066         * modules/getcwd (Depends-on): Add openat.
61067         Reported by Petr Salinger.
61068
61069 2007-12-17  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61072         avoid a segmentation fault of the configure test on x86_64 systems.
61073
61074 2007-12-15  Jim Meyering  <meyering@redhat.com>
61075
61076         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61077
61078 2007-12-13  Eric Blake  <ebb9@byu.net>
61079
61080         Another fseek test.
61081         * tests/test-fseek.c (main): Also test ungetc handling.
61082         * tests/test-fseeko.c (main): Likewise.
61083         * modules/fseeko (Depends-on): Add verify.
61084         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61085         large.
61086         Reported by Larry Jones.
61087
61088         Fix fseeko on mingw.
61089         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61090         seek.
61091
61092         Beef up fseek tests.
61093         * tests/test-fseek.c (main): Also test eof handling.
61094         * tests/test-fseeko.c (main): Likewise.
61095         Reported by Larry Jones.
61096
61097 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61098
61099         Fix fseeko on BSD-based platforms.
61100         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61101         successful seek.
61102
61103 2007-12-12  Eric Blake  <ebb9@byu.net>
61104
61105         Allow circular dependency of separate libtests.a
61106         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61107         when use_libtests.
61108
61109 2007-12-11  Eric Blake  <ebb9@byu.net>
61110
61111         Fix bug with -0.0L in previous patch.
61112         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61113         * tests/test-isnan.c (main): Also test on zeroes.
61114         * tests/test-isnanf.c (main): Likewise.
61115         * tests/test-isnanl.h (main): Likewise.
61116
61117         Detect pseudo-denormals on x86 even when cross-compiling.
61118         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61119         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61120         invalid bit patterns that happen to satisfy ==.
61121
61122         Avoid link failures with separate libtests.a.
61123         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61124         last, to satisfy circular dependencies.
61125
61126 2007-12-11  Eric Blake  <ebb9@byu.net>
61127         and Bruno Haible  <bruno@clisp.org>
61128
61129         Fix OpenBSD 4.0 <float.h> handling of long double.
61130         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61131         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61132         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61133
61134 2007-12-11  Jim Meyering  <meyering@redhat.com>
61135
61136         * users.txt: Add libvirt.
61137
61138         Support versions of autoconf prior to 2.59c.
61139         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61140         if it is not already defined.
61141
61142 2007-12-09  Bruno Haible  <bruno@clisp.org>
61143
61144         Let 'gnulib-tool --import' collect sources needed for the tests in
61145         tests/ rather than in lib/.
61146         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61147         argument. If true, add rules to generate libtests.a, and put libtests.a
61148         into $(LDADD). Consider source files in subdirectories and set
61149         uses_subdirs.
61150         (func_emit_initmacro_start, func_emit_initmacro_end,
61151         func_emit_initmacro_done): Pass all arguments explicitly.
61152         (func_import): Determine two module lists main_modules,
61153         testsrelated_modules. Determine use_libtests. Determine two variables
61154         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61155         instead of just sed_transform_lib_file. Determine two variables
61156         main_files and testsrelated_files. Compute 'files' as the union of
61157         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61158         func_add_or_update. In the generated gnulib-comp.m4, collect the
61159         object files for tests/ in different variables than those for lib/.
61160         Substitute LIBTESTS_LIBDEPS.
61161         (func_create_testdir): Combine the uses_subdirs results from
61162         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61163
61164 2007-12-09  Bruno Haible  <bruno@clisp.org>
61165
61166         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61167         the build-aux directory.
61168
61169 2007-12-09  Bruno Haible  <bruno@clisp.org>
61170
61171         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61172         introduced on 2006-09-09.
61173
61174 2007-12-07  Jim Meyering  <meyering@redhat.com>
61175
61176         Let these macros work also with autoconf-2.59.
61177         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61178         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61180
61181 2007-12-06  Jim Meyering  <meyering@redhat.com>
61182
61183         Avoid a configure-time syntax error in gl_FUNC_ACL.
61184         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61185         function in each branch, before testing the cache variable.
61186
61187 2007-12-04  Eric Blake  <ebb9@byu.net>
61188
61189         Make scripts executable.
61190         * build-aux/config.guess: Add execute permissions.
61191         * build-aux/config.sub: Likewise.
61192         * build-aux/gendocs.sh: Likewise.
61193
61194         Fix frexp on mingw.
61195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61196         cross-compiling.
61197         * doc/functions/frexp.texi (frexp): Document the bug.
61198
61199         Make cygwin fseeko check more reliable.
61200         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61201         version numbers, rather than unrelated feature check.
61202         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61203         * doc/functions/ftello.texi (ftello): Likewise.
61204         Reported by Bruno Haible.
61205
61206         * m4/strerror.m4: Bump version number.
61207
61208 2007-12-03  Bruno Haible  <bruno@clisp.org>
61209
61210         * doc/functions/mprotect.texi: Mention the mingw problem.
61211
61212 2007-12-03  Eric Blake  <ebb9@byu.net>
61213
61214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61215         REPLACE_STRERROR is initialized before this macro.
61216
61217 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61218
61219         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61220         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61221         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61222         put -lsec in even for programs other than 'ls'.  This fixes a problem
61223         for gettext reported by Bruno Haible in
61224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61225         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61226         Add support for Solaris 10.  This isn't efficient, but should get the
61227         job done for now.
61228
61229 2007-12-03  James Youngman  <jay@gnu.org>
61230
61231         * doc/regexprops-generic.texi: change "an close-group" to "a
61232         close-group" and "illegal" to "not allowed".
61233
61234 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61235
61236         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61237         pr_byname.h. Needed for the rare case when the maintainer has done
61238         "make maintainer-clean" in the source directory and then attempts a
61239         build outside the source directory.
61240         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61241         scripts_byname.h.
61242
61243 2007-12-02  Martin Lambers <marlam@marlam.de>
61244             Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/getpagesize.h: Remove file.
61247         * lib/unistd.in.h: Include declaration of getpagesize here.
61248         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61249         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61250         HAVE_SYS_PARAM_H.
61251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61252         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61253         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61254         (Depends-on): Add unistd.
61255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61256         (Include): Use <unistd.h> instead of getpagesize.h.
61257         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61258         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61259         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61260         gl_GETPAGESIZE invocation, already handled by module dependency.
61261         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61262
61263 2007-12-02  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/strings-tests: New file.
61266         * tests/test-strings.c: New file.
61267
61268         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61269         * lib/strings.in.h: New file.
61270         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61271         * m4/strings_h.m4: New file.
61272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61273         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61274         * modules/strings: New file.
61275         * modules/string (Makefile.am): Update.
61276         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61277         Reported by Karl Berry.
61278
61279 2007-12-01  Eric Blake  <ebb9@byu.net>
61280
61281         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61282         accommodate fix in cygwin 1.5.25.
61283
61284 2007-12-01  Jim Meyering  <meyering@redhat.com>
61285
61286         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61287         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61288         that would inhibit utf8-optimization of a regexp containing line-
61289         or buffer-anchors, e.g., `^', `$'.
61290
61291 2007-11-30  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61294         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61295         glthread_recursive_lock_init.
61296         * lib/lock.c (glthread_recursive_lock_init)
61297         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61298         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61299
61300 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         New function qset_acl, like set_acl but with syscall semantics.
61303         * lib/acl.h (qset_acl): New decl.
61304         * lib/acl.c (qset_acl): New function.
61305         (set_acl): Use new function.  Use more-consistent diagnostics.
61306
61307 2007-11-28  Jim Meyering  <meyering@redhat.com>
61308
61309         * modules/physmem (License): Change from GPL to LGPLv2+.
61310
61311 2007-11-26  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61314         'long double' type has excess precision.
61315         Reported by Jim Meyering in
61316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61317
61318 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61319
61320         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61321         Sync from <http://gnu.org/licenses>.
61322         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61323         with license text from same location.
61324         * doc/maintain.texi, doc/standards.texi:  Sync from
61325         <http://savannah.gnu.org/projects/gnustandards>.
61326
61327 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
61328         and Jim Meyering  <meyering@redhat.com>
61329
61330         Adjust getdate' grammar to accept a slightly more regular language.
61331         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61332         Before, the former was rejected.
61333         * lib/getdate.y (digits_to_date_time): New function, factored
61334         out of ...
61335         (number): ...here.  Just call digits_to_date_time.
61336         (hybrid): New non-terminal to handle an <unsigned number,
61337         signed relative offset> sequence consistently.
61338
61339 2007-11-18  Jim Meyering  <meyering@redhat.com>
61340
61341         Pull my changes from coreutils:
61342         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61343         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61344         use of $gnulib_tool_option_extras, so that it's separated from the
61345         preceding argument.
61346
61347         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61348         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61349         parent destination directories before copying a file into place.
61350
61351 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61352
61353         bootstrap: work also with 4-argument variant of AC_INIT
61354         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61355
61356 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         Port test-getaddrinfo to Solaris.
61359         Problem reported by Bruno Haible in
61360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61361         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61362         explanation of setting 'hints'.
61363         Don't reject an implementation merely because it returns EAI_SERVICE.
61364         (EAI_SERVICE): Define to 0 if not defined.
61365
61366 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         The license of gnu-make and posix-shell is now "GPLed build tool".
61369         * modules/gnu-make (License): Likewise.
61370         * modules/posix-shell (License): Likewise.
61371
61372         New module posix-shell, for determining a POSIX shell
61373         or perhaps something that is close enough to a POSIX shell.
61374         * m4/posix-shell.m4: New file.
61375         * modules/posix-shell: New file.
61376
61377         * MODULES.html.sh: Mention new module.
61378
61379         New module gnu-make, for determining whether we're using GNU Make.
61380         * m4/gnu-make.m4: New file.
61381         * modules/gnu-make: New file.
61382         * MODULES.html.sh: Mention new module.
61383
61384 2007-11-14  Jim Meyering  <meyering@redhat.com>
61385
61386         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61387         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61388         use this macro to create a function _definition_.
61389         Remove useless "#undef ARGMATCH_DIE".
61390
61391 2007-11-14  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/config.charset: Update for OpenBSD 4.1.
61394         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61395
61396 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61397
61398         Document 64-bit #if problems in stdint.texi.
61399         * doc/headers/stdint.texi (stdint.h): Mention problems with
61400         64-bit-#if, and how to work around them.
61401
61402         Don't insist on 'long long int' support in the preprocessor.  It
61403         breaks too many things.  For example, PRIdMAX still uses a 'long
61404         long int' format with the latest Sun compiler, even though
61405         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61406         preprocessor problem.  This causes the latest coreutils to dump
61407         core on Solaris 10 sparc with the Sun C compiler.
61408         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61409         the troublesome expressions at configure-time, not at #if-time.
61410         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61411         preprocessor.
61412         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61413         compile-time C checks, done at 'configure'-time.
61414         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61415         * modules/inttypes (Makefile): Substitute the new symbols that
61416         gl_INTTYPES_H now generates.
61417         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61418
61419 2007-11-12  Bruno Haible  <bruno@clisp.org>
61420
61421         Tests for Unicode character classification functions.
61422
61423         * modules/unictype/bidicategory-byname-tests: New file.
61424         * modules/unictype/bidicategory-name-tests: New file.
61425         * modules/unictype/bidicategory-of-tests: New file.
61426         * modules/unictype/bidicategory-test-tests: New file.
61427         * modules/unictype/block-list-tests: New file.
61428         * modules/unictype/block-of-tests: New file.
61429         * modules/unictype/block-test-tests: New file.
61430         * modules/unictype/category-C-tests: New file.
61431         * modules/unictype/category-Cc-tests: New file.
61432         * modules/unictype/category-Cf-tests: New file.
61433         * modules/unictype/category-Cn-tests: New file.
61434         * modules/unictype/category-Co-tests: New file.
61435         * modules/unictype/category-Cs-tests: New file.
61436         * modules/unictype/category-L-tests: New file.
61437         * modules/unictype/category-Ll-tests: New file.
61438         * modules/unictype/category-Lm-tests: New file.
61439         * modules/unictype/category-Lo-tests: New file.
61440         * modules/unictype/category-Lt-tests: New file.
61441         * modules/unictype/category-Lu-tests: New file.
61442         * modules/unictype/category-M-tests: New file.
61443         * modules/unictype/category-Mc-tests: New file.
61444         * modules/unictype/category-Me-tests: New file.
61445         * modules/unictype/category-Mn-tests: New file.
61446         * modules/unictype/category-N-tests: New file.
61447         * modules/unictype/category-Nd-tests: New file.
61448         * modules/unictype/category-Nl-tests: New file.
61449         * modules/unictype/category-No-tests: New file.
61450         * modules/unictype/category-P-tests: New file.
61451         * modules/unictype/category-Pc-tests: New file.
61452         * modules/unictype/category-Pd-tests: New file.
61453         * modules/unictype/category-Pe-tests: New file.
61454         * modules/unictype/category-Pf-tests: New file.
61455         * modules/unictype/category-Pi-tests: New file.
61456         * modules/unictype/category-Po-tests: New file.
61457         * modules/unictype/category-Ps-tests: New file.
61458         * modules/unictype/category-S-tests: New file.
61459         * modules/unictype/category-Sc-tests: New file.
61460         * modules/unictype/category-Sk-tests: New file.
61461         * modules/unictype/category-Sm-tests: New file.
61462         * modules/unictype/category-So-tests: New file.
61463         * modules/unictype/category-Z-tests: New file.
61464         * modules/unictype/category-Zl-tests: New file.
61465         * modules/unictype/category-Zp-tests: New file.
61466         * modules/unictype/category-Zs-tests: New file.
61467         * modules/unictype/category-and-not-tests: New file.
61468         * modules/unictype/category-and-tests: New file.
61469         * modules/unictype/category-byname-tests: New file.
61470         * modules/unictype/category-name-tests: New file.
61471         * modules/unictype/category-none-tests: New file.
61472         * modules/unictype/category-of-tests: New file.
61473         * modules/unictype/category-or-tests: New file.
61474         * modules/unictype/category-test-withtable-tests: New file.
61475         * modules/unictype/combining-class-tests: New file.
61476         * modules/unictype/ctype-alnum-tests: New file.
61477         * modules/unictype/ctype-alpha-tests: New file.
61478         * modules/unictype/ctype-blank-tests: New file.
61479         * modules/unictype/ctype-cntrl-tests: New file.
61480         * modules/unictype/ctype-digit-tests: New file.
61481         * modules/unictype/ctype-graph-tests: New file.
61482         * modules/unictype/ctype-lower-tests: New file.
61483         * modules/unictype/ctype-print-tests: New file.
61484         * modules/unictype/ctype-punct-tests: New file.
61485         * modules/unictype/ctype-space-tests: New file.
61486         * modules/unictype/ctype-upper-tests: New file.
61487         * modules/unictype/ctype-xdigit-tests: New file.
61488         * modules/unictype/decimal-digit-tests: New file.
61489         * modules/unictype/digit-tests: New file.
61490         * modules/unictype/mirror-tests: New file.
61491         * modules/unictype/numeric-tests: New file.
61492         * modules/unictype/property-alphabetic-tests: New file.
61493         * modules/unictype/property-ascii-hex-digit-tests: New file.
61494         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61495         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61496         * modules/unictype/property-bidi-block-separator-tests: New file.
61497         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61498         * modules/unictype/property-bidi-common-separator-tests: New file.
61499         * modules/unictype/property-bidi-control-tests: New file.
61500         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61501         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61502         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61503         * modules/unictype/property-bidi-european-digit-tests: New file.
61504         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61505         * modules/unictype/property-bidi-left-to-right-tests: New file.
61506         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61507         * modules/unictype/property-bidi-other-neutral-tests: New file.
61508         * modules/unictype/property-bidi-pdf-tests: New file.
61509         * modules/unictype/property-bidi-segment-separator-tests: New file.
61510         * modules/unictype/property-bidi-whitespace-tests: New file.
61511         * modules/unictype/property-byname-tests: New file.
61512         * modules/unictype/property-combining-tests: New file.
61513         * modules/unictype/property-composite-tests: New file.
61514         * modules/unictype/property-currency-symbol-tests: New file.
61515         * modules/unictype/property-dash-tests: New file.
61516         * modules/unictype/property-decimal-digit-tests: New file.
61517         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61518         * modules/unictype/property-deprecated-tests: New file.
61519         * modules/unictype/property-diacritic-tests: New file.
61520         * modules/unictype/property-extender-tests: New file.
61521         * modules/unictype/property-format-control-tests: New file.
61522         * modules/unictype/property-grapheme-base-tests: New file.
61523         * modules/unictype/property-grapheme-extend-tests: New file.
61524         * modules/unictype/property-grapheme-link-tests: New file.
61525         * modules/unictype/property-hex-digit-tests: New file.
61526         * modules/unictype/property-hyphen-tests: New file.
61527         * modules/unictype/property-id-continue-tests: New file.
61528         * modules/unictype/property-id-start-tests: New file.
61529         * modules/unictype/property-ideographic-tests: New file.
61530         * modules/unictype/property-ids-binary-operator-tests: New file.
61531         * modules/unictype/property-ids-trinary-operator-tests: New file.
61532         * modules/unictype/property-ignorable-control-tests: New file.
61533         * modules/unictype/property-iso-control-tests: New file.
61534         * modules/unictype/property-join-control-tests: New file.
61535         * modules/unictype/property-left-of-pair-tests: New file.
61536         * modules/unictype/property-line-separator-tests: New file.
61537         * modules/unictype/property-logical-order-exception-tests: New file.
61538         * modules/unictype/property-lowercase-tests: New file.
61539         * modules/unictype/property-math-tests: New file.
61540         * modules/unictype/property-non-break-tests: New file.
61541         * modules/unictype/property-not-a-character-tests: New file.
61542         * modules/unictype/property-numeric-tests: New file.
61543         * modules/unictype/property-other-alphabetic-tests: New file.
61544         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61545         * modules/unictype/property-other-grapheme-extend-tests: New file.
61546         * modules/unictype/property-other-id-continue-tests: New file.
61547         * modules/unictype/property-other-id-start-tests: New file.
61548         * modules/unictype/property-other-lowercase-tests: New file.
61549         * modules/unictype/property-other-math-tests: New file.
61550         * modules/unictype/property-other-uppercase-tests: New file.
61551         * modules/unictype/property-paired-punctuation-tests: New file.
61552         * modules/unictype/property-paragraph-separator-tests: New file.
61553         * modules/unictype/property-pattern-syntax-tests: New file.
61554         * modules/unictype/property-pattern-white-space-tests: New file.
61555         * modules/unictype/property-private-use-tests: New file.
61556         * modules/unictype/property-punctuation-tests: New file.
61557         * modules/unictype/property-quotation-mark-tests: New file.
61558         * modules/unictype/property-radical-tests: New file.
61559         * modules/unictype/property-sentence-terminal-tests: New file.
61560         * modules/unictype/property-soft-dotted-tests: New file.
61561         * modules/unictype/property-space-tests: New file.
61562         * modules/unictype/property-terminal-punctuation-tests: New file.
61563         * modules/unictype/property-test-tests: New file.
61564         * modules/unictype/property-titlecase-tests: New file.
61565         * modules/unictype/property-unassigned-code-value-tests: New file.
61566         * modules/unictype/property-unified-ideograph-tests: New file.
61567         * modules/unictype/property-uppercase-tests: New file.
61568         * modules/unictype/property-variation-selector-tests: New file.
61569         * modules/unictype/property-white-space-tests: New file.
61570         * modules/unictype/property-xid-continue-tests: New file.
61571         * modules/unictype/property-xid-start-tests: New file.
61572         * modules/unictype/property-zero-width-tests: New file.
61573         * modules/unictype/scripts-tests: New file.
61574         * modules/unictype/syntax-c-ident-tests: New file.
61575         * modules/unictype/syntax-c-whitespace-tests: New file.
61576         * modules/unictype/syntax-java-ident-tests: New file.
61577         * modules/unictype/syntax-java-whitespace-tests: New file.
61578         * tests/unictype/test-bidi_byname.c: New file.
61579         * tests/unictype/test-bidi_name.c: New file.
61580         * tests/unictype/test-bidi_of.c: New file.
61581         * tests/unictype/test-bidi_test.c: New file.
61582         * tests/unictype/test-block_list.c: New file.
61583         * tests/unictype/test-block_of.c: New file.
61584         * tests/unictype/test-block_test.c: New file.
61585         * tests/unictype/test-categ_and.c: New file.
61586         * tests/unictype/test-categ_and_not.c: New file.
61587         * tests/unictype/test-categ_byname.c: New file.
61588         * tests/unictype/test-categ_name.c: New file.
61589         * tests/unictype/test-categ_none.c: New file.
61590         * tests/unictype/test-categ_of.c: New file.
61591         * tests/unictype/test-categ_or.c: New file.
61592         * tests/unictype/test-categ_test_withtable.c: New file.
61593         * tests/unictype/test-combining.c: New file.
61594         * tests/unictype/test-decdigit.c: New file.
61595         * tests/unictype/test-digit.c: New file.
61596         * tests/unictype/test-mirror.c: New file.
61597         * tests/unictype/test-numeric.c: New file.
61598         * tests/unictype/test-pr_byname.c: New file.
61599         * tests/unictype/test-pr_test.c: New file.
61600         * tests/unictype/test-predicate-part1.h: New file.
61601         * tests/unictype/test-predicate-part2.h: New file.
61602         * tests/unictype/test-scripts.c: New file.
61603         * tests/unictype/test-sy_c_ident.c: New file.
61604         * tests/unictype/test-sy_java_ident.c: New file.
61605
61606         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61607         for Unicode 5.0.0.
61608         * tests/unictype/test-categ_Cc.c: Likewise.
61609         * tests/unictype/test-categ_Cf.c: Likewise.
61610         * tests/unictype/test-categ_Cn.c: Likewise.
61611         * tests/unictype/test-categ_Co.c: Likewise.
61612         * tests/unictype/test-categ_Cs.c: Likewise.
61613         * tests/unictype/test-categ_L.c: Likewise.
61614         * tests/unictype/test-categ_Ll.c: Likewise.
61615         * tests/unictype/test-categ_Lm.c: Likewise.
61616         * tests/unictype/test-categ_Lo.c: Likewise.
61617         * tests/unictype/test-categ_Lt.c: Likewise.
61618         * tests/unictype/test-categ_Lu.c: Likewise.
61619         * tests/unictype/test-categ_M.c: Likewise.
61620         * tests/unictype/test-categ_Mc.c: Likewise.
61621         * tests/unictype/test-categ_Me.c: Likewise.
61622         * tests/unictype/test-categ_Mn.c: Likewise.
61623         * tests/unictype/test-categ_N.c: Likewise.
61624         * tests/unictype/test-categ_Nd.c: Likewise.
61625         * tests/unictype/test-categ_Nl.c: Likewise.
61626         * tests/unictype/test-categ_No.c: Likewise.
61627         * tests/unictype/test-categ_P.c: Likewise.
61628         * tests/unictype/test-categ_Pc.c: Likewise.
61629         * tests/unictype/test-categ_Pd.c: Likewise.
61630         * tests/unictype/test-categ_Pe.c: Likewise.
61631         * tests/unictype/test-categ_Pf.c: Likewise.
61632         * tests/unictype/test-categ_Pi.c: Likewise.
61633         * tests/unictype/test-categ_Po.c: Likewise.
61634         * tests/unictype/test-categ_Ps.c: Likewise.
61635         * tests/unictype/test-categ_S.c: Likewise.
61636         * tests/unictype/test-categ_Sc.c: Likewise.
61637         * tests/unictype/test-categ_Sk.c: Likewise.
61638         * tests/unictype/test-categ_Sm.c: Likewise.
61639         * tests/unictype/test-categ_So.c: Likewise.
61640         * tests/unictype/test-categ_Z.c: Likewise.
61641         * tests/unictype/test-categ_Zl.c: Likewise.
61642         * tests/unictype/test-categ_Zp.c: Likewise.
61643         * tests/unictype/test-categ_Zs.c: Likewise.
61644         * tests/unictype/test-ctype_alnum.c: Likewise.
61645         * tests/unictype/test-ctype_alpha.c: Likewise.
61646         * tests/unictype/test-ctype_blank.c: Likewise.
61647         * tests/unictype/test-ctype_cntrl.c: Likewise.
61648         * tests/unictype/test-ctype_digit.c: Likewise.
61649         * tests/unictype/test-ctype_graph.c: Likewise.
61650         * tests/unictype/test-ctype_lower.c: Likewise.
61651         * tests/unictype/test-ctype_print.c: Likewise.
61652         * tests/unictype/test-ctype_punct.c: Likewise.
61653         * tests/unictype/test-ctype_space.c: Likewise.
61654         * tests/unictype/test-ctype_upper.c: Likewise.
61655         * tests/unictype/test-ctype_xdigit.c: Likewise.
61656         * tests/unictype/test-decdigit.h: Likewise.
61657         * tests/unictype/test-digit.h: Likewise.
61658         * tests/unictype/test-numeric.h: Likewise.
61659         * tests/unictype/test-pr_alphabetic.c: Likewise.
61660         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61661         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61662         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61663         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61664         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61665         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61666         * tests/unictype/test-pr_bidi_control.c: Likewise.
61667         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61668         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61669         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61670         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61671         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61672         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61673         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61674         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61675         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61676         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61677         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61678         * tests/unictype/test-pr_combining.c: Likewise.
61679         * tests/unictype/test-pr_composite.c: Likewise.
61680         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61681         * tests/unictype/test-pr_dash.c: Likewise.
61682         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61683         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61684         * tests/unictype/test-pr_deprecated.c: Likewise.
61685         * tests/unictype/test-pr_diacritic.c: Likewise.
61686         * tests/unictype/test-pr_extender.c: Likewise.
61687         * tests/unictype/test-pr_format_control.c: Likewise.
61688         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61689         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61690         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61691         * tests/unictype/test-pr_hex_digit.c: Likewise.
61692         * tests/unictype/test-pr_hyphen.c: Likewise.
61693         * tests/unictype/test-pr_id_continue.c: Likewise.
61694         * tests/unictype/test-pr_id_start.c: Likewise.
61695         * tests/unictype/test-pr_ideographic.c: Likewise.
61696         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61697         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61698         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61699         * tests/unictype/test-pr_iso_control.c: Likewise.
61700         * tests/unictype/test-pr_join_control.c: Likewise.
61701         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61702         * tests/unictype/test-pr_line_separator.c: Likewise.
61703         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61704         * tests/unictype/test-pr_lowercase.c: Likewise.
61705         * tests/unictype/test-pr_math.c: Likewise.
61706         * tests/unictype/test-pr_non_break.c: Likewise.
61707         * tests/unictype/test-pr_not_a_character.c: Likewise.
61708         * tests/unictype/test-pr_numeric.c: Likewise.
61709         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61710         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61711         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61712         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61713         * tests/unictype/test-pr_other_id_start.c: Likewise.
61714         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61715         * tests/unictype/test-pr_other_math.c: Likewise.
61716         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61717         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61718         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61719         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61720         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61721         * tests/unictype/test-pr_private_use.c: Likewise.
61722         * tests/unictype/test-pr_punctuation.c: Likewise.
61723         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61724         * tests/unictype/test-pr_radical.c: Likewise.
61725         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61726         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61727         * tests/unictype/test-pr_space.c: Likewise.
61728         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61729         * tests/unictype/test-pr_titlecase.c: Likewise.
61730         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61731         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61732         * tests/unictype/test-pr_uppercase.c: Likewise.
61733         * tests/unictype/test-pr_variation_selector.c: Likewise.
61734         * tests/unictype/test-pr_white_space.c: Likewise.
61735         * tests/unictype/test-pr_xid_continue.c: Likewise.
61736         * tests/unictype/test-pr_xid_start.c: Likewise.
61737         * tests/unictype/test-pr_zero_width.c: Likewise.
61738         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61739         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61740
61741 2007-11-12  Bruno Haible  <bruno@clisp.org>
61742
61743         Unicode character classification functions.
61744         * lib/unictype.h: New file.
61745         * modules/unictype/base: New file.
61746         * modules/unictype/category-L: New file.
61747         * modules/unictype/category-Lu: New file.
61748         * modules/unictype/category-Ll: New file.
61749         * modules/unictype/category-Lt: New file.
61750         * modules/unictype/category-Lm: New file.
61751         * modules/unictype/category-Lo: New file.
61752         * modules/unictype/category-M: New file.
61753         * modules/unictype/category-Mn: New file.
61754         * modules/unictype/category-Mc: New file.
61755         * modules/unictype/category-Me: New file.
61756         * modules/unictype/category-N: New file.
61757         * modules/unictype/category-Nd: New file.
61758         * modules/unictype/category-Nl: New file.
61759         * modules/unictype/category-No: New file.
61760         * modules/unictype/category-P: New file.
61761         * modules/unictype/category-Pc: New file.
61762         * modules/unictype/category-Pd: New file.
61763         * modules/unictype/category-Ps: New file.
61764         * modules/unictype/category-Pe: New file.
61765         * modules/unictype/category-Pi: New file.
61766         * modules/unictype/category-Pf: New file.
61767         * modules/unictype/category-Po: New file.
61768         * modules/unictype/category-S: New file.
61769         * modules/unictype/category-Sm: New file.
61770         * modules/unictype/category-Sc: New file.
61771         * modules/unictype/category-Sk: New file.
61772         * modules/unictype/category-So: New file.
61773         * modules/unictype/category-Z: New file.
61774         * modules/unictype/category-Zs: New file.
61775         * modules/unictype/category-Zl: New file.
61776         * modules/unictype/category-Zp: New file.
61777         * modules/unictype/category-C: New file.
61778         * modules/unictype/category-Cc: New file.
61779         * modules/unictype/category-Cf: New file.
61780         * modules/unictype/category-Cs: New file.
61781         * modules/unictype/category-Co: New file.
61782         * modules/unictype/category-Cn: New file.
61783         * modules/unictype/category-or: New file.
61784         * modules/unictype/category-of: New file.
61785         * modules/unictype/category-test: New file.
61786         * modules/unictype/category-test-withtable: New file.
61787         * modules/unictype/category-byname: New file.
61788         * modules/unictype/category-none: New file.
61789         * modules/unictype/category-and: New file.
61790         * modules/unictype/category-and-not: New file.
61791         * modules/unictype/category-name: New file.
61792         * modules/unictype/combining-class: New file.
61793         * modules/unictype/category-all: New file.
61794         * modules/unictype/bidicategory-all: New file.
61795         * modules/unictype/bidicategory-byname: New file.
61796         * modules/unictype/bidicategory-name: New file.
61797         * modules/unictype/bidicategory-of: New file.
61798         * modules/unictype/bidicategory-test: New file.
61799         * modules/unictype/decimal-digit: New file.
61800         * modules/unictype/digit: New file.
61801         * modules/unictype/numeric: New file.
61802         * modules/unictype/mirror: New file.
61803         * modules/unictype/property-white-space: New file.
61804         * modules/unictype/property-alphabetic: New file.
61805         * modules/unictype/property-other-alphabetic: New file.
61806         * modules/unictype/property-not-a-character: New file.
61807         * modules/unictype/property-default-ignorable-code-point: New file.
61808         * modules/unictype/property-other-default-ignorable-code-point: New
61809         file.
61810         * modules/unictype/property-deprecated: New file.
61811         * modules/unictype/property-logical-order-exception: New file.
61812         * modules/unictype/property-variation-selector: New file.
61813         * modules/unictype/property-private-use: New file.
61814         * modules/unictype/property-unassigned-code-value: New file.
61815         * modules/unictype/property-uppercase: New file.
61816         * modules/unictype/property-other-uppercase: New file.
61817         * modules/unictype/property-lowercase: New file.
61818         * modules/unictype/property-other-lowercase: New file.
61819         * modules/unictype/property-titlecase: New file.
61820         * modules/unictype/property-soft-dotted: New file.
61821         * modules/unictype/property-id-start: New file.
61822         * modules/unictype/property-other-id-start: New file.
61823         * modules/unictype/property-id-continue: New file.
61824         * modules/unictype/property-other-id-continue: New file.
61825         * modules/unictype/property-xid-start: New file.
61826         * modules/unictype/property-xid-continue: New file.
61827         * modules/unictype/property-pattern-white-space: New file.
61828         * modules/unictype/property-pattern-syntax: New file.
61829         * modules/unictype/property-join-control: New file.
61830         * modules/unictype/property-grapheme-base: New file.
61831         * modules/unictype/property-grapheme-extend: New file.
61832         * modules/unictype/property-other-grapheme-extend: New file.
61833         * modules/unictype/property-grapheme-link: New file.
61834         * modules/unictype/property-bidi-control: New file.
61835         * modules/unictype/property-bidi-left-to-right: New file.
61836         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61837         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61838         * modules/unictype/property-bidi-european-digit: New file.
61839         * modules/unictype/property-bidi-eur-num-separator: New file.
61840         * modules/unictype/property-bidi-eur-num-terminator: New file.
61841         * modules/unictype/property-bidi-arabic-digit: New file.
61842         * modules/unictype/property-bidi-common-separator: New file.
61843         * modules/unictype/property-bidi-block-separator: New file.
61844         * modules/unictype/property-bidi-segment-separator: New file.
61845         * modules/unictype/property-bidi-whitespace: New file.
61846         * modules/unictype/property-bidi-non-spacing-mark: New file.
61847         * modules/unictype/property-bidi-boundary-neutral: New file.
61848         * modules/unictype/property-bidi-pdf: New file.
61849         * modules/unictype/property-bidi-embedding-or-override: New file.
61850         * modules/unictype/property-bidi-other-neutral: New file.
61851         * modules/unictype/property-hex-digit: New file.
61852         * modules/unictype/property-ascii-hex-digit: New file.
61853         * modules/unictype/property-ideographic: New file.
61854         * modules/unictype/property-unified-ideograph: New file.
61855         * modules/unictype/property-radical: New file.
61856         * modules/unictype/property-ids-binary-operator: New file.
61857         * modules/unictype/property-ids-trinary-operator: New file.
61858         * modules/unictype/property-zero-width: New file.
61859         * modules/unictype/property-space: New file.
61860         * modules/unictype/property-non-break: New file.
61861         * modules/unictype/property-iso-control: New file.
61862         * modules/unictype/property-format-control: New file.
61863         * modules/unictype/property-dash: New file.
61864         * modules/unictype/property-hyphen: New file.
61865         * modules/unictype/property-punctuation: New file.
61866         * modules/unictype/property-line-separator: New file.
61867         * modules/unictype/property-paragraph-separator: New file.
61868         * modules/unictype/property-quotation-mark: New file.
61869         * modules/unictype/property-sentence-terminal: New file.
61870         * modules/unictype/property-terminal-punctuation: New file.
61871         * modules/unictype/property-currency-symbol: New file.
61872         * modules/unictype/property-math: New file.
61873         * modules/unictype/property-other-math: New file.
61874         * modules/unictype/property-paired-punctuation: New file.
61875         * modules/unictype/property-left-of-pair: New file.
61876         * modules/unictype/property-combining: New file.
61877         * modules/unictype/property-composite: New file.
61878         * modules/unictype/property-decimal-digit: New file.
61879         * modules/unictype/property-numeric: New file.
61880         * modules/unictype/property-diacritic: New file.
61881         * modules/unictype/property-extender: New file.
61882         * modules/unictype/property-ignorable-control: New file.
61883         * modules/unictype/property-test: New file.
61884         * modules/unictype/property-byname: New file.
61885         * modules/unictype/property-all: New file.
61886         * modules/unictype/scripts: New file.
61887         * modules/unictype/scripts-all: New file.
61888         * modules/unictype/block-of: New file.
61889         * modules/unictype/block-test: New file.
61890         * modules/unictype/block-list: New file.
61891         * modules/unictype/block-all: New file.
61892         * modules/unictype/syntax-c-whitespace: New file.
61893         * modules/unictype/syntax-java-whitespace: New file.
61894         * modules/unictype/syntax-c-ident: New file.
61895         * modules/unictype/syntax-java-ident: New file.
61896         * modules/unictype/ctype-alnum: New file.
61897         * modules/unictype/ctype-alpha: New file.
61898         * modules/unictype/ctype-cntrl: New file.
61899         * modules/unictype/ctype-digit: New file.
61900         * modules/unictype/ctype-graph: New file.
61901         * modules/unictype/ctype-lower: New file.
61902         * modules/unictype/ctype-print: New file.
61903         * modules/unictype/ctype-punct: New file.
61904         * modules/unictype/ctype-space: New file.
61905         * modules/unictype/ctype-upper: New file.
61906         * modules/unictype/ctype-xdigit: New file.
61907         * modules/unictype/ctype-blank: New file.
61908         * lib/unictype/bidi_byname.c: New file.
61909         * lib/unictype/bidi_name.c: New file.
61910         * lib/unictype/bidi_of.c: New file.
61911         * lib/unictype/bidi_test.c: New file.
61912         * lib/unictype/bitmap.h: New file.
61913         * lib/unictype/block_test.c: New file.
61914         * lib/unictype/blocks.c: New file.
61915         * lib/unictype/categ_C.c: New file.
61916         * lib/unictype/categ_Cc.c: New file.
61917         * lib/unictype/categ_Cf.c: New file.
61918         * lib/unictype/categ_Cn.c: New file.
61919         * lib/unictype/categ_Co.c: New file.
61920         * lib/unictype/categ_Cs.c: New file.
61921         * lib/unictype/categ_L.c: New file.
61922         * lib/unictype/categ_Ll.c: New file.
61923         * lib/unictype/categ_Lm.c: New file.
61924         * lib/unictype/categ_Lo.c: New file.
61925         * lib/unictype/categ_Lt.c: New file.
61926         * lib/unictype/categ_Lu.c: New file.
61927         * lib/unictype/categ_M.c: New file.
61928         * lib/unictype/categ_Mc.c: New file.
61929         * lib/unictype/categ_Me.c: New file.
61930         * lib/unictype/categ_Mn.c: New file.
61931         * lib/unictype/categ_N.c: New file.
61932         * lib/unictype/categ_Nd.c: New file.
61933         * lib/unictype/categ_Nl.c: New file.
61934         * lib/unictype/categ_No.c: New file.
61935         * lib/unictype/categ_P.c: New file.
61936         * lib/unictype/categ_Pc.c: New file.
61937         * lib/unictype/categ_Pd.c: New file.
61938         * lib/unictype/categ_Pe.c: New file.
61939         * lib/unictype/categ_Pf.c: New file.
61940         * lib/unictype/categ_Pi.c: New file.
61941         * lib/unictype/categ_Po.c: New file.
61942         * lib/unictype/categ_Ps.c: New file.
61943         * lib/unictype/categ_S.c: New file.
61944         * lib/unictype/categ_Sc.c: New file.
61945         * lib/unictype/categ_Sk.c: New file.
61946         * lib/unictype/categ_Sm.c: New file.
61947         * lib/unictype/categ_So.c: New file.
61948         * lib/unictype/categ_Z.c: New file.
61949         * lib/unictype/categ_Zl.c: New file.
61950         * lib/unictype/categ_Zp.c: New file.
61951         * lib/unictype/categ_Zs.c: New file.
61952         * lib/unictype/categ_and.c: New file.
61953         * lib/unictype/categ_and_not.c: New file.
61954         * lib/unictype/categ_byname.c: New file.
61955         * lib/unictype/categ_name.c: New file.
61956         * lib/unictype/categ_none.c: New file.
61957         * lib/unictype/categ_of.c: New file.
61958         * lib/unictype/categ_or.c: New file.
61959         * lib/unictype/categ_test.c: New file.
61960         * lib/unictype/combining.c: New file.
61961         * lib/unictype/ctype_alnum.c: New file.
61962         * lib/unictype/ctype_alpha.c: New file.
61963         * lib/unictype/ctype_blank.c: New file.
61964         * lib/unictype/ctype_cntrl.c: New file.
61965         * lib/unictype/ctype_digit.c: New file.
61966         * lib/unictype/ctype_graph.c: New file.
61967         * lib/unictype/ctype_lower.c: New file.
61968         * lib/unictype/ctype_print.c: New file.
61969         * lib/unictype/ctype_punct.c: New file.
61970         * lib/unictype/ctype_space.c: New file.
61971         * lib/unictype/ctype_upper.c: New file.
61972         * lib/unictype/ctype_xdigit.c: New file.
61973         * lib/unictype/decdigit.c: New file.
61974         * lib/unictype/digit.c: New file.
61975         * lib/unictype/identsyntaxmap.h: New file.
61976         * lib/unictype/mirror.c: New file.
61977         * lib/unictype/numeric.c: New file.
61978         * lib/unictype/pr_alphabetic.c: New file.
61979         * lib/unictype/pr_ascii_hex_digit.c: New file.
61980         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61981         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61982         * lib/unictype/pr_bidi_block_separator.c: New file.
61983         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61984         * lib/unictype/pr_bidi_common_separator.c: New file.
61985         * lib/unictype/pr_bidi_control.c: New file.
61986         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61987         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61988         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61989         * lib/unictype/pr_bidi_european_digit.c: New file.
61990         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61991         * lib/unictype/pr_bidi_left_to_right.c: New file.
61992         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61993         * lib/unictype/pr_bidi_other_neutral.c: New file.
61994         * lib/unictype/pr_bidi_pdf.c: New file.
61995         * lib/unictype/pr_bidi_segment_separator.c: New file.
61996         * lib/unictype/pr_bidi_whitespace.c: New file.
61997         * lib/unictype/pr_byname.c: New file.
61998         * lib/unictype/pr_byname.gperf: New file.
61999         * lib/unictype/pr_combining.c: New file.
62000         * lib/unictype/pr_composite.c: New file.
62001         * lib/unictype/pr_currency_symbol.c: New file.
62002         * lib/unictype/pr_dash.c: New file.
62003         * lib/unictype/pr_decimal_digit.c: New file.
62004         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62005         * lib/unictype/pr_deprecated.c: New file.
62006         * lib/unictype/pr_diacritic.c: New file.
62007         * lib/unictype/pr_extender.c: New file.
62008         * lib/unictype/pr_format_control.c: New file.
62009         * lib/unictype/pr_grapheme_base.c: New file.
62010         * lib/unictype/pr_grapheme_extend.c: New file.
62011         * lib/unictype/pr_grapheme_link.c: New file.
62012         * lib/unictype/pr_hex_digit.c: New file.
62013         * lib/unictype/pr_hyphen.c: New file.
62014         * lib/unictype/pr_id_continue.c: New file.
62015         * lib/unictype/pr_id_start.c: New file.
62016         * lib/unictype/pr_ideographic.c: New file.
62017         * lib/unictype/pr_ids_binary_operator.c: New file.
62018         * lib/unictype/pr_ids_trinary_operator.c: New file.
62019         * lib/unictype/pr_ignorable_control.c: New file.
62020         * lib/unictype/pr_iso_control.c: New file.
62021         * lib/unictype/pr_join_control.c: New file.
62022         * lib/unictype/pr_left_of_pair.c: New file.
62023         * lib/unictype/pr_line_separator.c: New file.
62024         * lib/unictype/pr_logical_order_exception.c: New file.
62025         * lib/unictype/pr_lowercase.c: New file.
62026         * lib/unictype/pr_math.c: New file.
62027         * lib/unictype/pr_non_break.c: New file.
62028         * lib/unictype/pr_not_a_character.c: New file.
62029         * lib/unictype/pr_numeric.c: New file.
62030         * lib/unictype/pr_other_alphabetic.c: New file.
62031         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62032         * lib/unictype/pr_other_grapheme_extend.c: New file.
62033         * lib/unictype/pr_other_id_continue.c: New file.
62034         * lib/unictype/pr_other_id_start.c: New file.
62035         * lib/unictype/pr_other_lowercase.c: New file.
62036         * lib/unictype/pr_other_math.c: New file.
62037         * lib/unictype/pr_other_uppercase.c: New file.
62038         * lib/unictype/pr_paired_punctuation.c: New file.
62039         * lib/unictype/pr_paragraph_separator.c: New file.
62040         * lib/unictype/pr_pattern_syntax.c: New file.
62041         * lib/unictype/pr_pattern_white_space.c: New file.
62042         * lib/unictype/pr_private_use.c: New file.
62043         * lib/unictype/pr_punctuation.c: New file.
62044         * lib/unictype/pr_quotation_mark.c: New file.
62045         * lib/unictype/pr_radical.c: New file.
62046         * lib/unictype/pr_sentence_terminal.c: New file.
62047         * lib/unictype/pr_soft_dotted.c: New file.
62048         * lib/unictype/pr_space.c: New file.
62049         * lib/unictype/pr_terminal_punctuation.c: New file.
62050         * lib/unictype/pr_test.c: New file.
62051         * lib/unictype/pr_titlecase.c: New file.
62052         * lib/unictype/pr_unassigned_code_value.c: New file.
62053         * lib/unictype/pr_unified_ideograph.c: New file.
62054         * lib/unictype/pr_uppercase.c: New file.
62055         * lib/unictype/pr_variation_selector.c: New file.
62056         * lib/unictype/pr_white_space.c: New file.
62057         * lib/unictype/pr_xid_continue.c: New file.
62058         * lib/unictype/pr_xid_start.c: New file.
62059         * lib/unictype/pr_zero_width.c: New file.
62060         * lib/unictype/scripts.c: New file.
62061         * lib/unictype/sy_c_ident.c: New file.
62062         * lib/unictype/sy_c_whitespace.c: New file.
62063         * lib/unictype/sy_java_ident.c: New file.
62064         * lib/unictype/sy_java_whitespace.c: New file.
62065
62066         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62067         Unicode 5.0.0.
62068         * lib/unictype/blocks.h: Likewise.
62069         * lib/unictype/categ_C.h: Likewise.
62070         * lib/unictype/categ_Cc.h: Likewise.
62071         * lib/unictype/categ_Cf.h: Likewise.
62072         * lib/unictype/categ_Cn.h: Likewise.
62073         * lib/unictype/categ_Co.h: Likewise.
62074         * lib/unictype/categ_Cs.h: Likewise.
62075         * lib/unictype/categ_L.h: Likewise.
62076         * lib/unictype/categ_Ll.h: Likewise.
62077         * lib/unictype/categ_Lm.h: Likewise.
62078         * lib/unictype/categ_Lo.h: Likewise.
62079         * lib/unictype/categ_Lt.h: Likewise.
62080         * lib/unictype/categ_Lu.h: Likewise.
62081         * lib/unictype/categ_M.h: Likewise.
62082         * lib/unictype/categ_Mc.h: Likewise.
62083         * lib/unictype/categ_Me.h: Likewise.
62084         * lib/unictype/categ_Mn.h: Likewise.
62085         * lib/unictype/categ_N.h: Likewise.
62086         * lib/unictype/categ_Nd.h: Likewise.
62087         * lib/unictype/categ_Nl.h: Likewise.
62088         * lib/unictype/categ_No.h: Likewise.
62089         * lib/unictype/categ_P.h: Likewise.
62090         * lib/unictype/categ_Pc.h: Likewise.
62091         * lib/unictype/categ_Pd.h: Likewise.
62092         * lib/unictype/categ_Pe.h: Likewise.
62093         * lib/unictype/categ_Pf.h: Likewise.
62094         * lib/unictype/categ_Pi.h: Likewise.
62095         * lib/unictype/categ_Po.h: Likewise.
62096         * lib/unictype/categ_Ps.h: Likewise.
62097         * lib/unictype/categ_S.h: Likewise.
62098         * lib/unictype/categ_Sc.h: Likewise.
62099         * lib/unictype/categ_Sk.h: Likewise.
62100         * lib/unictype/categ_Sm.h: Likewise.
62101         * lib/unictype/categ_So.h: Likewise.
62102         * lib/unictype/categ_Z.h: Likewise.
62103         * lib/unictype/categ_Zl.h: Likewise.
62104         * lib/unictype/categ_Zp.h: Likewise.
62105         * lib/unictype/categ_Zs.h: Likewise.
62106         * lib/unictype/categ_of.h: Likewise.
62107         * lib/unictype/combining.h: Likewise.
62108         * lib/unictype/ctype_alnum.h: Likewise.
62109         * lib/unictype/ctype_alpha.h: Likewise.
62110         * lib/unictype/ctype_blank.h: Likewise.
62111         * lib/unictype/ctype_cntrl.h: Likewise.
62112         * lib/unictype/ctype_digit.h: Likewise.
62113         * lib/unictype/ctype_graph.h: Likewise.
62114         * lib/unictype/ctype_lower.h: Likewise.
62115         * lib/unictype/ctype_print.h: Likewise.
62116         * lib/unictype/ctype_punct.h: Likewise.
62117         * lib/unictype/ctype_space.h: Likewise.
62118         * lib/unictype/ctype_upper.h: Likewise.
62119         * lib/unictype/ctype_xdigit.h: Likewise.
62120         * lib/unictype/decdigit.h: Likewise.
62121         * lib/unictype/digit.h: Likewise.
62122         * lib/unictype/mirror.h: Likewise.
62123         * lib/unictype/numeric.h: Likewise.
62124         * lib/unictype/pr_alphabetic.h: Likewise.
62125         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62126         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62127         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62128         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62129         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62130         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62131         * lib/unictype/pr_bidi_control.h: Likewise.
62132         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62133         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62134         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62135         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62136         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62137         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62138         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62139         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62140         * lib/unictype/pr_bidi_pdf.h: Likewise.
62141         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62142         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62143         * lib/unictype/pr_combining.h: Likewise.
62144         * lib/unictype/pr_composite.h: Likewise.
62145         * lib/unictype/pr_currency_symbol.h: Likewise.
62146         * lib/unictype/pr_dash.h: Likewise.
62147         * lib/unictype/pr_decimal_digit.h: Likewise.
62148         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62149         * lib/unictype/pr_deprecated.h: Likewise.
62150         * lib/unictype/pr_diacritic.h: Likewise.
62151         * lib/unictype/pr_extender.h: Likewise.
62152         * lib/unictype/pr_format_control.h: Likewise.
62153         * lib/unictype/pr_grapheme_base.h: Likewise.
62154         * lib/unictype/pr_grapheme_extend.h: Likewise.
62155         * lib/unictype/pr_grapheme_link.h: Likewise.
62156         * lib/unictype/pr_hex_digit.h: Likewise.
62157         * lib/unictype/pr_hyphen.h: Likewise.
62158         * lib/unictype/pr_id_continue.h: Likewise.
62159         * lib/unictype/pr_id_start.h: Likewise.
62160         * lib/unictype/pr_ideographic.h: Likewise.
62161         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62162         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62163         * lib/unictype/pr_ignorable_control.h: Likewise.
62164         * lib/unictype/pr_iso_control.h: Likewise.
62165         * lib/unictype/pr_join_control.h: Likewise.
62166         * lib/unictype/pr_left_of_pair.h: Likewise.
62167         * lib/unictype/pr_line_separator.h: Likewise.
62168         * lib/unictype/pr_logical_order_exception.h: Likewise.
62169         * lib/unictype/pr_lowercase.h: Likewise.
62170         * lib/unictype/pr_math.h: Likewise.
62171         * lib/unictype/pr_non_break.h: Likewise.
62172         * lib/unictype/pr_not_a_character.h: Likewise.
62173         * lib/unictype/pr_numeric.h: Likewise.
62174         * lib/unictype/pr_other_alphabetic.h: Likewise.
62175         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62176         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62177         * lib/unictype/pr_other_id_continue.h: Likewise.
62178         * lib/unictype/pr_other_id_start.h: Likewise.
62179         * lib/unictype/pr_other_lowercase.h: Likewise.
62180         * lib/unictype/pr_other_math.h: Likewise.
62181         * lib/unictype/pr_other_uppercase.h: Likewise.
62182         * lib/unictype/pr_paired_punctuation.h: Likewise.
62183         * lib/unictype/pr_paragraph_separator.h: Likewise.
62184         * lib/unictype/pr_pattern_syntax.h: Likewise.
62185         * lib/unictype/pr_pattern_white_space.h: Likewise.
62186         * lib/unictype/pr_private_use.h: Likewise.
62187         * lib/unictype/pr_punctuation.h: Likewise.
62188         * lib/unictype/pr_quotation_mark.h: Likewise.
62189         * lib/unictype/pr_radical.h: Likewise.
62190         * lib/unictype/pr_sentence_terminal.h: Likewise.
62191         * lib/unictype/pr_soft_dotted.h: Likewise.
62192         * lib/unictype/pr_space.h: Likewise.
62193         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62194         * lib/unictype/pr_titlecase.h: Likewise.
62195         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62196         * lib/unictype/pr_unified_ideograph.h: Likewise.
62197         * lib/unictype/pr_uppercase.h: Likewise.
62198         * lib/unictype/pr_variation_selector.h: Likewise.
62199         * lib/unictype/pr_white_space.h: Likewise.
62200         * lib/unictype/pr_xid_continue.h: Likewise.
62201         * lib/unictype/pr_xid_start.h: Likewise.
62202         * lib/unictype/pr_zero_width.h: Likewise.
62203         * lib/unictype/scripts.h: Likewise.
62204         * lib/unictype/scripts_byname.gperf: Likewise.
62205         * lib/unictype/sy_c_ident.h: Likewise.
62206         * lib/unictype/sy_c_whitespace.h: Likewise.
62207         * lib/unictype/sy_java_ident.h: Likewise.
62208         * lib/unictype/sy_java_whitespace.h: Likewise.
62209
62210         * lib/unictype/Makefile: New file.
62211         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62212         glibc.
62213         * lib/unictype/3level.h: New file, copied from glibc.
62214         * lib/unictype/3levelbit.h: New file.
62215
62216 2007-11-11  Bruno Haible  <bruno@clisp.org>
62217
62218         * modules/gperf: New file.
62219         * modules/iconv_open (Depends-on): Add it.
62220         (Makefile.am): Remove the GPERF definition.
62221
62222 2007-11-11  Bruno Haible  <bruno@clisp.org>
62223
62224         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62225         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62226
62227 2007-11-11  Bruno Haible  <bruno@clisp.org>
62228
62229         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62230         (usage): Remove function.
62231
62232 2007-11-11  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62235         gl_FUNC_CEILF_LIBS.
62236         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62237         gl_FUNC_CEIL_LIBS.
62238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62239         gl_FUNC_CEILL_LIBS.
62240         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62241         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62242         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62243
62244 2007-11-11  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62247         roundf were declared but do not exist on functions.
62248         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62249         roundl were declared but do not exist on functions.
62250         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62251         HAVE_FLOORL_AND_CEILL, respectively.
62252         Needed for Sun C on Solaris 10.
62253
62254 2007-11-11  Bruno Haible  <bruno@clisp.org>
62255
62256         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62257         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62258         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62259         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62260         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62261         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62262         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62263         HAVE_DECL_ROUNDF.
62264         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62265         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62267         of HAVE_DECL_ROUND*.
62268         * modules/math (Makefile.am): Update.
62269
62270 2007-11-10  Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62273         ptrdiff_t as m4/intl.m4.
62274
62275 2007-11-10  Jim Meyering  <meyering@redhat.com>
62276
62277         Avoid link failure for the argmatch test.
62278         * tests/test-argmatch.c (usage): Define function to avoid a link
62279         failure: argmatch_die requires a usage function.
62280
62281 2007-11-09  Bruno Haible  <bruno@clisp.org>
62282
62283         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62284         * doc/functions/vsnprintf.texi: Likewise.
62285         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62286         with a size argument < 2.
62287
62288 2007-11-09  Bruno Haible  <bruno@clisp.org>
62289
62290         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62291         buffer. Fixes an inefficiency introduced on 2007-11-03.
62292
62293 2007-11-09  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62296         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62297
62298 2007-11-08  Jim Meyering  <meyering@redhat.com>
62299
62300         Change cache variable name prefix "jm_" to "gl_" everywhere.
62301         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62302         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62303         * m4/uptime.m4: s/gl_/jm_/
62304
62305 2007-11-07  Bruno Haible  <bruno@clisp.org>
62306
62307         Update to GNU gettext 0.17.
62308         * m4/intl.m4: Update to GNU gettext 0.17.
62309         * m4/po.m4: Likewise.
62310         * modules/gettext (Files): Remove m4/ulonglong.m4.
62311         (configure.ac): Require gettext infrastructure from version 0.17.
62312
62313 2007-11-06  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62316         symbolic values are not defined in a public header.
62317         * lib/freadable.c (freadable) [QNX]: Likewise.
62318         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62319         * lib/freading.c (freading) [QNX]: Likewise.
62320         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62321         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62322         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62323         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62324         Reported by Alain Magloire.
62325
62326         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62327
62328 2007-11-05  Bruno Haible  <bruno@clisp.org>
62329
62330         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62331         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62332         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62333         Reported by Eric Blake.
62334
62335 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62336             Bruno Haible  <bruno@clisp.org>
62337
62338         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62339         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62340         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62341         (malloc): Undefine also before including <stdlib.h>.
62342         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62343         Needed on OSF/1 4.0.
62344
62345 2007-11-05  Jim Meyering  <meyering@redhat.com>
62346
62347         git-version-gen: sync from coreutils.
62348         * build-aux/git-version-gen: Add comments.
62349         Change the first '-' to '.' in the snapshot version string,
62350         e.g., 6.9-377-08144 -> 6.9.377-08144
62351         Remove first parameter.
62352         Don't declare a version "-dirty" merely because a time
62353         stamp has changed.
62354
62355 2007-11-04  Bruno Haible  <bruno@clisp.org>
62356
62357         * lib/lock.h: Protect all macro definitions containing an 'if'
62358         statement through a "do { ... } while (0)".
62359         * lib/tls.h: Likewise.
62360
62361 2007-11-04  Bruno Haible  <bruno@clisp.org>
62362
62363         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62364
62365 2007-11-04  Bruno Haible  <bruno@clisp.org>
62366
62367         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62368         * modules/fprintf-posix (Depends-on): Add nocrash.
62369         * modules/snprintf-posix (Depends-on): Likewise.
62370         * modules/sprintf-posix (Depends-on): Likewise.
62371         * modules/vasnprintf-posix (Depends-on): Likewise.
62372         * modules/vasprintf-posix (Depends-on): Likewise.
62373         * modules/vfprintf-posix (Depends-on): Likewise.
62374         * modules/vsnprintf-posix (Depends-on): Likewise.
62375         * modules/vsprintf-posix (Depends-on): Likewise.
62376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62383
62384 2007-11-04  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/nocrash: New file.
62387         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62388         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62389
62390 2007-11-04  Bruno Haible  <bruno@clisp.org>
62391
62392         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62393         precision handling.
62394         * tests/test-vasprintf-posix.c (test_function): Likewise.
62395         * tests/test-snprintf-posix.h (test_function): Likewise.
62396         * tests/test-sprintf-posix.h (test_function): Likewise.
62397
62398         Fix *printf behaviour for large precisions on mingw and BeOS.
62399         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62404         gl_PRINTF_PRECISION and test its result. Invoke
62405         gl_PREREQ_VASNPRINTF_PRECISION.
62406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62413         * doc/functions/fprintf.texi: Update.
62414         * doc/functions/printf.texi: Update.
62415         * doc/functions/snprintf.texi: Update.
62416         * doc/functions/sprintf.texi: Update.
62417         * doc/functions/vfprintf.texi: Update.
62418         * doc/functions/vprintf.texi: Update.
62419         * doc/functions/vsnprintf.texi: Update.
62420         * doc/functions/vsprintf.texi: Update.
62421
62422 2007-11-04  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62425
62426 2007-11-04  Bruno Haible  <bruno@clisp.org>
62427
62428         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62429         Reported by Sylvain Beucler <beuc@gnu.org>.
62430
62431 2007-11-03  Bruno Haible  <bruno@clisp.org>
62432
62433         * tests/test-fprintf-posix2.sh: New file.
62434         * tests/test-fprintf-posix2.c: New file.
62435         * modules/fprintf-posix-tests (Files): Add them.
62436         (TESTS): Add test-fprintf-posix2.sh.
62437         (configure.ac): Check for getrlimit and setrlimit.
62438         (check_PROGRAMS): Add test-fprintf-posix2.
62439
62440         * tests/test-printf-posix2.sh: New file.
62441         * tests/test-printf-posix2.c: New file.
62442         * modules/printf-posix-tests (Files): Add them.
62443         (TESTS): Add test-printf-posix2.sh.
62444         (configure.ac): Check for getrlimit and setrlimit.
62445         (check_PROGRAMS): Add test-printf-posix2.
62446
62447         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62448         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62449         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62450         (decode_double): New function, copied from decode_long_double.
62451         (scale10_round_decimal_decoded): New function, extracted from
62452         scale10_round_decimal_long_double.
62453         (scale10_round_decimal_long_double): Use it.
62454         (scale10_round_decimal_double): New function.
62455         (floorlog10): New function.
62456         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62458         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62460         gl_PRINTF_ENOMEM and test its result. Invoke
62461         gl_PREREQ_VASNPRINTF_ENOMEM.
62462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62469         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62470         * modules/snprintf-posix (Depends-on): Likewise.
62471         * modules/sprintf-posix (Depends-on): Likewise.
62472         * modules/vasnprintf-posix (Depends-on): Likewise.
62473         * modules/vasprintf-posix (Depends-on): Likewise.
62474         * modules/vfprintf-posix (Depends-on): Likewise.
62475         * modules/vsnprintf-posix (Depends-on): Likewise.
62476         * modules/vsprintf-posix (Depends-on): Likewise.
62477         * doc/functions/fprintf.texi: Update.
62478         * doc/functions/printf.texi: Update.
62479         * doc/functions/snprintf.texi: Update.
62480         * doc/functions/sprintf.texi: Update.
62481         * doc/functions/vfprintf.texi: Update.
62482         * doc/functions/vprintf.texi: Update.
62483         * doc/functions/vsnprintf.texi: Update.
62484         * doc/functions/vsprintf.texi: Update.
62485
62486 2007-11-03  Bruno Haible  <bruno@clisp.org>
62487
62488         * modules/frexp-nolibm-tests: New file.
62489
62490         * modules/frexp-nolibm: New file.
62491         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62492
62493 2007-11-03  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62496         value is C99 compliant.
62497         Needed for OSF/1 5.1.
62498
62499 2007-11-03  Bruno Haible  <bruno@clisp.org>
62500
62501         Fix out-of-memory handling of vasnprintf.
62502         * lib/printf-parse.c: Include <errno.h>.
62503         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62504         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62505         is already set.
62506
62507 2007-11-02  Eric Blake  <ebb9@byu.net>
62508
62509         Fix tests on cygwin.
62510         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62511
62512 2007-11-01  Bruno Haible  <bruno@clisp.org>
62513
62514         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62515         warning.
62516         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62517         needed for POSIX compatibility.
62518
62519 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62520
62521         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62522         for compatibility with GNU.
62523
62524 2007-11-01  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62527         (putenv): Renamed from rpl_putenv. Change argument type from
62528         'const char *' to 'char *'.
62529         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62530         of defining putenv in config.h, just set REPLACE_PUTENV.
62531         * modules/putenv (Depends-on): Add stdlib.
62532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62533         (Include): Use <stdlib.h>.
62534         * lib/stdlib.in.h (putenv): New declaration.
62535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62536         REPLACE_PUTENV.
62537         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62538         REPLACE_PUTENV.
62539         Needed for MacOS X 10.5.0.
62540         Reported by Peter O'Gorman <peter@pogma.com>.
62541
62542 2007-11-01  Jim Meyering  <meyering@redhat.com>
62543
62544         Treat an empty date string exactly like "0".
62545         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62546         if the remaining date string (to be parsed) is empty, use "0".
62547         Reported by Mischa Molhoek and discussed in this thread:
62548         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62549
62550 2007-10-31  Bruno Haible  <bruno@clisp.org>
62551
62552         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62553         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62554         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62555         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62556         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62557         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62558
62559 2007-10-31  Bruno Haible  <bruno@clisp.org>
62560
62561         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62562         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62563         (AC_TYPE_LONG_LONG_INT): Use it.
62564         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62565         it as well.
62566         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62567         to m4/longlong.m4.
62568         * modules/stdint (Files): Remove m4/ulonglong.m4.
62569         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62570         m4/ulonglong.m4.
62571         * modules/strtoumax (Files): Likewise.
62572
62573 2007-10-30  Bruno Haible  <bruno@clisp.org>
62574
62575         * modules/xvasprintf-posix: New file.
62576         Suggested by Eric Blake.
62577
62578 2007-10-30  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/xprintf-posix-tests: New file.
62581         * tests/test-xprintf-posix.sh: New file.
62582         * tests/test-xprintf-posix.c: New file.
62583         * tests/test-xfprintf-posix.c: New file.
62584
62585         * modules/xprintf-posix: New file.
62586
62587 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62588
62589         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62590         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62591         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62592
62593 2007-10-29  Bruno Haible  <bruno@clisp.org>
62594
62595         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62596         contain the special marker '_cv_'.
62597         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62598         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62599         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62600         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62601         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62602         Reported by Ralf Wildenhues.
62603
62604 2007-10-29  Bruno Haible  <bruno@clisp.org>
62605
62606         * gnulib-tool (func_import): When --lgpl is not specified, set
62607         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62608         GPLv3.
62609         Reported by Simon Josefsson.
62610
62611 2007-10-28  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62614         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62615         HAVE_DECL_ISFINITE.
62616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62617         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62618         HAVE_DECL_ISFINITE.
62619
62620 2007-10-28  Bruno Haible  <bruno@clisp.org>
62621
62622         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62623         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62624
62625 2007-10-28  Bruno Haible  <bruno@clisp.org>
62626
62627         Fix link errors with Sun C 5.0 on Solaris 10.
62628         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62629         function is declared but not present in the compiler's libm.
62630         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62631         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62632         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62633         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62634         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62635         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62636         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62638         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62639         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62640         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62641         HAVE_DECL_FLOORL.
62642
62643 2007-10-28  Bruno Haible  <bruno@clisp.org>
62644
62645         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62646         gl_FUNC_FLOORL. Cache the result.
62647         (gl_FUNC_FLOORL): Use it.
62648         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62649         gl_FUNC_CEILL. Cache the result.
62650         (gl_FUNC_CEILL): Use it.
62651
62652         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62653         gl_FUNC_FLOOR. Cache the result.
62654         (gl_FUNC_FLOOR): Use it.
62655         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62656         gl_FUNC_CEIL. Cache the result.
62657         (gl_FUNC_CEIL): Use it.
62658
62659         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62660         gl_FUNC_FLOORF. Cache the result.
62661         (gl_FUNC_FLOORF): Use it.
62662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62663         gl_FUNC_CEILF. Cache the result.
62664         (gl_FUNC_CEILF): Use it.
62665
62666 2007-10-28  Bruno Haible  <bruno@clisp.org>
62667
62668         * gnulib-tool: Allow specifying the LGPL version number through
62669         --lgpl=2 or --lgpl=3.
62670         (func_usage): Document --lgpl with argument.
62671         Handle --lgpl=... arguments.
62672         (func_import): Recognize also gl_LGPL calls with an argument. When
62673         --lgpl=2 is used and the module's license is just LGPL, report an
62674         error. Set sed_transform_lib_file according to the lgpl variable. In
62675         the generated files, use --lgpl or gl_LGPL invocations with argument,
62676         if necessary.
62677         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62678         an LGPv2+ license.
62679         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62680         gl_LGPL macro.
62681
62682 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62683             Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62686         (u16_uctomb_aux): Likewise.
62687         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62688         !HAVE_INLINE.
62689         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62690
62691 2007-10-28  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62694         Invoke AM_GETTEXT_OPTION if it exists.
62695         * modules/vasprintf: Likewise.
62696         * modules/verror: Likewise.
62697         * modules/xprintf: Likewise.
62698         * modules/xvasprintf: Likewise.
62699
62700 2007-10-27  Ben Pfaff  <blp@gnu.org>
62701
62702         * lib/math.in.h: Define isfinite macro and prototypes for
62703         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62704         implementations.
62705         * m4/math_h.m4: New substitutions for isfinite module.
62706         * lib/isfinite.c: New file.
62707         * m4/isfinite.m4: New file.
62708         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62709         * modules/isfinite: New file.
62710         * modules/isfinite-tests: New file.
62711         * tests/tests-isfinite.c: New file.
62712         * doc/functions/isfinite.texi: Mention isfinite module.
62713         * MODULES.html.sh: Mention new module.
62714
62715 2007-10-27  Ben Pfaff  <blp@gnu.org>
62716
62717         Ralf Wildenhues reported that Tru64 4.0D declares the round
62718         functions but does not have definitions.
62719         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62720         cannot be found in any library, set the output variable to
62721         "missing" instead of "".
62722         * m4/round.m4: Also use our substitute if we cannot find round in
62723         any library, even if it is declared.
62724         * m4/roundf.m4: Likewise for roundf.
62725         * m4/roundl.m4: Likewise for roundl.
62726         * lib/math.in.h: Undefine roundf, round, roundl before defining
62727         their replacements, to allow for hypothetical systems where these
62728         may be defined as macros but not available in libraries.
62729
62730 2007-10-27  Bruno Haible  <bruno@clisp.org>
62731
62732         * doc/gnulib.texi: Invoke @firstparagraphindent.
62733         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62734         changes in gnulib.
62735         (Source changes): New section.
62736
62737 2007-10-26  Bruno Haible  <bruno@clisp.org>
62738
62739         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62740         borrowed from autoconf.
62741
62742 2007-10-26  Bruno Haible  <bruno@clisp.org>
62743
62744         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62745         strerror returned the empty string. Needed on HP-UX 11.00.
62746
62747 2007-10-24  Micah Cowan  <micah@cowan.name>
62748
62749         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62750         * build-aux/bootstrap: Remove support for now-unnecessary option,
62751         --cvs-user, and envvars CVS_USER, CVS_RSH.
62752
62753 2007-10-24  Jim Meyering  <meyering@redhat.com>
62754
62755         Avoid diagnostics from sha1sum when there is no cached checksum.
62756         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62757         if the po.s1 file hasn't been created yet.
62758
62759         * build-aux/bootstrap: Sync from coreutils:
62760         2007-10-24  Jim Meyering  <meyering@redhat.com>
62761         Get gnulib from the git repository, not from an obsolete cvs one.
62762         * build-aux/bootstrap: Suggestion from Micah Cowan.
62763         2007-10-04  Jim Meyering  <jim@meyering.net>
62764         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62765         (update_po_files): Work also when there are no .po files in po/.
62766
62767 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62768
62769         * README: Append ".git" to git and cg examples.
62770         Problem reported by Benoit Sigoure.
62771
62772 2007-10-23  Micah Cowan  <micah@cowan.name>
62773
62774         * users.txt: Add wget.
62775
62776 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62777
62778         Fix linking of some unistdio tests on FreeBSD.
62779         * modules/unistdio/u16-vsnprintf-tests
62780         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62781         * modules/unistdio/u16-vsprintf-tests
62782         (test_u16_vsnprintf1_LDADD): Likewise.
62783         * modules/unistdio/u32-vsnprintf-tests
62784         (test_u32_vsnprintf1_LDADD): Likewise.
62785         * modules/unistdio/u32-vsprintf-tests
62786         (test_u32_vsprintf1_LDADD): Likewise.
62787         * modules/unistdio/u8-vsnprintf-tests
62788         (test_u8_vsnprintf1_LDADD): Likewise.
62789         * modules/unistdio/u8-vsprintf-tests
62790         (test_u8_vsprintf1_LDADD): Likewise.
62791         * modules/unistdio/ulc-vsnprintf-tests
62792         (test_ulc_vsnprintf1_LDADD): Likewise.
62793         * modules/unistdio/ulc-vsprintf-tests
62794         (test_ulc_vsprintf1_LDADD): Likewise.
62795
62796         Fix linking of some uniconv tests on FreeBSD.
62797         * modules/uniconv/u16-conv-from-enc-tests
62798         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62799         * modules/uniconv/u16-conv-to-enc-tests
62800         (test_u16_conv_to_enc_LDADD): Likewise.
62801         * modules/uniconv/u16-strconv-from-enc-tests
62802         (test_u16_strconv_from_enc_LDADD): Likewise.
62803         * modules/uniconv/u16-strconv-to-enc-tests
62804         (test_u16_strconv_to_enc_LDADD): Likewise.
62805         * modules/uniconv/u32-conv-from-enc-tests
62806         (test_u32_conv_from_enc_LDADD): Likewise.
62807         * modules/uniconv/u32-conv-to-enc-tests
62808         (test_u32_conv_to_enc_LDADD): Likewise.
62809         * modules/uniconv/u32-strconv-from-enc-tests
62810         (test_u32_strconv_from_enc_LDADD): Likewise.
62811         * modules/uniconv/u32-strconv-to-enc-tests
62812         (test_u32_strconv_to_enc_LDADD): Likewise.
62813         * modules/uniconv/u8-conv-from-enc-tests
62814         (test_u8_conv_from_enc_LDADD): Likewise.
62815         * modules/uniconv/u8-conv-to-enc-tests
62816         (test_u8_conv_to_enc_LDADD): Likewise.
62817         * modules/uniconv/u8-strconv-from-enc-tests
62818         (test_u8_strconv_from_enc_LDADD): Likewise.
62819         * modules/uniconv/u8-strconv-to-enc-tests
62820         (test_u8_strconv_to_enc_LDADD): Likewise.
62821
62822 2007-10-22  Bruno Haible  <bruno@clisp.org>
62823
62824         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62825         size.
62826
62827 2007-10-22  Eric Blake  <ebb9@byu.net>
62828
62829         Tweak x*printf documentation.
62830         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62831         variable name and comments.
62832         Suggested by Bruno Haible.
62833
62834 2007-10-22  Bruno Haible  <bruno@clisp.org>
62835
62836         * lib/acl.c (copy_acl): Fix file name in comment.
62837
62838 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Fix Tru64 problem with stdbool.h.
62841         * lib/stdbool.in.h (false, true):
62842         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62843         Don't declare as an enum in this situation; it runs afoul of Tru64.
62844         Problem reported by Steven M. Schweda in
62845         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62846
62847 2007-10-22  Eric Blake  <ebb9@byu.net>
62848
62849         Also wrap vf?printf.
62850         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62851         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62852         (xvprintf, xvfprintf): New functions.
62853
62854 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62855
62856         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62857         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62858
62859         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62860         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62861
62862 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62865         by Bruno Haible.
62866
62867 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62868
62869         * lib/getloadavg.c
62870         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62871         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62872
62873         * tests/test-i-ring.c: Work for C89.
62874
62875 2007-10-22  Bruno Haible  <bruno@clisp.org>
62876
62877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62878         -1u, in preprocessor expression, so that we don't test for the bug
62879         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62881
62882 2007-10-22  Eric Blake  <ebb9@byu.net>
62883
62884         * tests/test-yesno.sh: Silence stderr during test.
62885
62886 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62887
62888         * modules/crypto/gc-camellia: New file.
62889
62890         * m4/gc-camellia.m4: New file.
62891
62892         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62893
62894         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62895
62896 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62897
62898         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62899         --help to stdout.  Reported by sms@antinode.org (Steven
62900         M. Schweda).
62901
62902 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62903
62904         * users.txt: Fix link to libksba.
62905
62906 2007-10-21  Ben Pfaff  <blp@gnu.org>
62907
62908         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62909         round.c roundf implementation that depends on floorf and ceilf to
62910         be tested unconditionally.
62911
62912 2007-10-21  Ben Pfaff  <blp@gnu.org>
62913
62914         * m4/check-libm-func.m4: Removed.
62915         * m4/check-math-lib.m4: New file.
62916         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62917         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62918         definition and lack of AC_LIBOBJ([roundf]).
62919         * m4/roundl.m4: Ditto, and similarly for roundl.
62920         * modules/round: Reference new m4 file.
62921         * modules/roundf: Ditto.
62922         * modules/roundl: Ditto.
62923         * tests/test-round2.c (main): Use ROUND instead of round.
62924         Bug report from Bruno Haible.
62925
62926 2007-10-21  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62929         context.
62930
62931 2007-10-21  Bruno Haible  <bruno@clisp.org>
62932
62933         * tests/test-wcwidth.c (main): Allow negative result for some control
62934         characters.
62935
62936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62937         Needed on OSF/1 5.1.
62938
62939 2007-10-21  Bruno Haible  <bruno@clisp.org>
62940
62941         * tests/test-floorf1.c: Include isnanf.h.
62942         (main): Use isnanf() instead of isnan().
62943         * tests/test-ceilf1.c: Include isnanf.h.
62944         (main): Use isnanf() instead of isnan().
62945         * tests/test-truncf1.c: Include isnanf.h.
62946         (main): Use isnanf() instead of isnan().
62947         * tests/test-roundf1.c: Include isnanf.h.
62948         (main): Use isnanf() instead of isnan().
62949
62950 2007-10-21  Eric Blake  <ebb9@byu.net>
62951
62952         * users.txt: Update URL for m4.
62953
62954 2007-10-21  Bruno Haible  <bruno@clisp.org>
62955
62956         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62957
62958 2007-10-21  Bruno Haible  <bruno@clisp.org>
62959
62960         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62961         Git's management files if the CVS files are not present.
62962
62963 2007-10-20  Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62966         gcc-3.4.x.
62967
62968 2007-10-20  Ben Pfaff  <blp@gnu.org>
62969
62970         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62971         implementations.
62972         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62973         * lib/round.c: New file.
62974         * lib/roundf.c: New file.
62975         * lib/roundl.c: New file.
62976         * m4/round.m4: New file.
62977         * m4/roundf.m4: New file.
62978         * m4/roundl.m4: New file.
62979         * m4/check-libm-func-m4: New file.
62980         * modules/math: Replace round, roundf, roundl related @VARS@ in
62981         math.in.h.
62982         * modules/round: New file.
62983         * modules/round-tests: New file.
62984         * modules/roundf: New file.
62985         * modules/roundf-tests: New file.
62986         * modules/roundl: New file.
62987         * modules/roundl-tests: New file.
62988         * tests/test-round1.c: New file.
62989         * tests/test-round2.c: New file.
62990         * tests/test-roundf1.c: New file.
62991         * tests/test-roundf2.c: New file.
62992         * tests/test-roundl.c: New file.
62993         * doc/functions/round.texi: Mention round module.
62994         * doc/functions/roundf.texi: Mention roundf module.
62995         * doc/functions/roundl.texi: Mention roundl module.
62996         * MODULES.html.sh: Mention new modules.
62997         Thanks to Bruno Haible for suggestions.
62998
62999 2007-10-20  Jim Meyering  <meyering@redhat.com>
63000
63001         * lib/xprintf.c: Include <config.h> unconditionally.
63002
63003         Change xprintf's license to GPL.
63004         * modules/xprintf (License): s/LGPL/GPL/, since this module
63005         depends on modules (exit and exitfail) which are GPL.
63006         Suggestion from Bruno Haible.
63007
63008         xprintf fixes.
63009         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63010         Use a clearer diagnostic.
63011         Patch from Bruno Haible.
63012
63013 2007-10-20  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63016         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63017         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63018
63019 2007-10-20  Bruno Haible  <bruno@clisp.org>
63020
63021         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63022         precision in the comparison result > x - 1 or similar.
63023         * tests/test-ceilf2.c (correct_result_p): Likewise.
63024         * tests/test-truncf2.c (correct_result_p): Likewise.
63025         * tests/test-trunc2.c (correct_result_p): Likewise.
63026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63027
63028 2007-10-20  Bruno Haible  <bruno@clisp.org>
63029
63030         * modules/ceil: New file.
63031         * m4/ceil.m4: New file.
63032         * doc/functions/ceil.texi: Mention the 'ceil' module.
63033
63034 2007-10-20  Bruno Haible  <bruno@clisp.org>
63035
63036         * modules/floor: New file.
63037         * m4/floor.m4: New file.
63038         * doc/functions/floor.texi: Mention the 'floor' module.
63039
63040 2007-10-20  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63043         of %a.
63044         * modules/floorf-tests (Depends-on): Likewise.
63045         * modules/truncf-tests (Depends-on): Likewise.
63046         * modules/trunc-tests (Depends-on): Likewise.
63047         Reported by Ben Pfaff.
63048
63049 2007-10-19  Jim Meyering  <meyering@redhat.com>
63050
63051         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63052         Don't bother testing specific errno values.  Just test ferror.
63053
63054         New module: xprintf
63055         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63056
63057 2007-10-19  Bruno Haible  <bruno@clisp.org>
63058
63059         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63060         syntax.
63061         * modules/javaexec (Makefile.am): Likewise.
63062         * modules/relocatable-prog (Makefile.am): Likewise.
63063         Suggested by Jim Meyering.
63064
63065 2007-10-18  Bruno Haible  <bruno@clisp.org>
63066
63067         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63068         Reported by Jim Meyering.
63069
63070 2007-10-18  Eric Blake  <ebb9@byu.net>
63071
63072         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63073
63074 2007-10-18  Bruno Haible  <bruno@clisp.org>
63075
63076         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63077         the format string into writable memory. Needed in Fortify conditions.
63078
63079 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63080             Bruno Haible  <bruno@clisp.org>
63081
63082         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63083         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63084         * modules/trim (Depends-on): Add mbchar.
63085         (configure.ac): Add gl_FUNC_MBRTOWC.
63086         (Makefile.am): Augment lib_SOURCES.
63087
63088 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63089
63090         Modify glob.c to use fstatat and dirfd, to simplify it.
63091         Suggested by Eric Blake.
63092         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63093         Don't include <stdbool.h>; not used.
63094         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63095         (link_exists_p): Simplify implementation, since we can now assume
63096         dirfd and fstatat.
63097         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63098
63099 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63100
63101         * gnulib-tool (func_get_dependencies): Fix sed script to
63102         match only tests.
63103
63104 2007-10-17  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63107         allow locale names without encoding suffix.
63108         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63110
63111 2007-10-16  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63114         * lib/getgroups.c (getgroups): Likewise.
63115         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63116
63117 2007-10-16  Bruno Haible  <bruno@clisp.org>
63118
63119         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63120         * modules/malloc-posix (License): Likewise.
63121         * modules/realloc-posix (License): Likewise.
63122         * modules/calloc-posix (License): Likewise.
63123         * modules/intprops (License): Change from GPL to LGPL, with
63124         Paul Eggert's approval.
63125
63126 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         Merge glibc changes into lib/glob.c.
63129
63130         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63131         2007-10-15 04:59:03 UTC.  Here are the changes:
63132
63133         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63134
63135         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63136
63137         * lib/glob.c: Add some branch prediction throughout.
63138
63139         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63140
63141         [BZ #5103]
63142         * lib/glob.c (glob): Recognize patterns starting \/.
63143
63144         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63145
63146         [BZ #3996]
63147         * lib/glob.c (attribute_hidden): Define if not defined.
63148         (glob): Unescape dirname, filename or username when needed and not
63149         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63150         is NULL.  Handle unescaped [ in pattern without closing ].
63151         Don't pass GLOB_CHECK down to recursive glob for directories.
63152         (__glob_pattern_type): New function.
63153         (__glob_pattern_p): Implement using __glob_pattern_type.
63154         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63155         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63156         Remove unreachable code.
63157
63158         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63159
63160         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63161         explain why there are no leaks.
63162
63163         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63164
63165         [BZ #3253]
63166         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63167         time, rather allocate increasingly bigger arrays of pointers, if
63168         possible with alloca, if too large with malloc.
63169
63170 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63171
63172         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63173         Problem reported by H.Merijn Brand in
63174         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63175         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63176         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63177
63178 2007-10-15  Bruno Haible  <bruno@clisp.org>
63179
63180         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63181         with explicit rpl_ prefix.
63182         * lib/fopen.c (fopen): Likewise.
63183         * lib/freopen.c (freopen): Likewise.
63184         * lib/iconv.c (iconv): Likewise.
63185         * lib/iconv_close.c (iconv_close): Likewise.
63186
63187 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63188
63189         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63190
63191 2007-10-15  Bruno Haible  <bruno@clisp.org>
63192
63193         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63194         <stddef.h> instead of <stdlib.h> since we only need NULL.
63195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63196
63197 2007-10-15  Bruno Haible  <bruno@clisp.org>
63198
63199         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63200         Replace paragraph talking about LIBOBJS.
63201         Reported by Colin Watson <cjwatson@debian.org>.
63202
63203 2007-10-15  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63206         <stdlib.h> before using NULL.
63207
63208 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63209
63210         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63211         Reported by Albert Chin <china@thewrittenword.com>.
63212
63213 2007-10-14  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/iconv_open-utf-tests: New file.
63216         * tests/test-iconv-utf.c: New file.
63217
63218         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63219         * modules/iconv_open-utf: New file.
63220         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63221         (iconv, iconv_close): New declarations.
63222         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63223         be defined.
63224         (iconv_open): Add special handling of conversion between UTF-8 and
63225         UTF-{16,32}{BE,LE}.
63226         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63227         * lib/iconv_close.c: New file.
63228         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63229         gl_FUNC_ICONV_OPEN.
63230         (gl_FUNC_ICONV_OPEN): Use it.
63231         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63232         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63233         and REPLACE_ICONV_UTF.
63234         * modules/iconv_open (Depends-on): Add c-strcase.
63235         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63236         ICONV_CONST.
63237         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63238
63239 2007-10-13  Albert Chin  <china@thewrittenword.com>
63240             Bruno Haible  <bruno@clisp.org>
63241
63242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63243         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63244
63245 2007-10-13  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63248         defined, use the ISO C99 inline semantics.
63249         * lib/argp.h (ARGP_EI): Likewise.
63250
63251 2007-10-13  Bruno Haible  <bruno@clisp.org>
63252
63253         Handle 'inline' change in gcc 4.3.0.
63254         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63255         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63256         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63257         argp_fmtstream_point): Disable 'extern' declaration if the function
63258         definition is going to be provided inline.
63259         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63260         semantics, not the ISO C99 inline semantics.
63261         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63262         'extern' declaration if the function definition is going to be provided
63263         inline.
63264         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63265         the GNU C inline semantics, not the ISO C99 inline semantics. With
63266         GCC 4.2, avoid a warning.
63267
63268 2007-10-13  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/freading.h (freading): Enable the use of __freading for
63271         glibc >= 2.7.
63272         * lib/freading.c (freading): Likewise.
63273
63274 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63277         "warning: C99 inline functions are not supported; using GNU89".
63278
63279 2007-10-12  Bruno Haible  <bruno@clisp.org>
63280
63281         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63282         of 2.
63283         * tests/test-ceilf2.c: New file.
63284         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63285
63286         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63287         * modules/ceilf-tests: Update.
63288
63289 2007-10-12  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63292         of 2.
63293         * tests/test-floorf2.c: New file.
63294         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63295
63296         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63297         * modules/floorf-tests: Update.
63298
63299 2007-10-12  Bruno Haible  <bruno@clisp.org>
63300
63301         * tests/test-trunc2.c: New file.
63302         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63303
63304         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63305         * modules/trunc-tests: Update.
63306
63307 2007-10-12  Bruno Haible  <bruno@clisp.org>
63308
63309         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63310         of 2.
63311         * tests/test-truncf2.c: New file.
63312         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63313
63314         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63315         * modules/truncf-tests: Update.
63316
63317 2007-10-11  Eric Blake  <ebb9@byu.net>
63318
63319         Don't claim strerror is broken on Interix.
63320         * doc/functions/strerror.texi (strerror): Known broken systems are
63321         now Solaris 8, and not Interix.
63322         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63323         Interix on cross-compile.
63324         Reported by Martin Koeppe in
63325         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63326
63327 2007-10-11  Bruno Haible  <bruno@clisp.org>
63328
63329         * modules/i-ring-tests: New file.
63330         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63331         instead of assert.
63332
63333 2007-10-11  Bruno Haible  <bruno@clisp.org>
63334
63335         * modules/filenamecat-tests: New file.
63336         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63337         * lib/filenamecat.c: Remove test code.
63338
63339 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63340
63341         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63342
63343         * lib/strerror.c: Include <string.h> always, to test interface,
63344         and to remove the need for the dummy.
63345         Include intprops.h to compute width instead of doing it ourselves
63346         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63347         (strerror): Define it to return NULL if there's no system strerror.
63348         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63349         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63350         ancient pre-strerror Unix systems well any more.  Saying "unknown
63351         system error" is enough.
63352         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63353         simpler strerror.c implementation.
63354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63355         Simplify the tests to reflect the simpler strerror implementation.
63356         * modules/strerror (Depends-on): Add intprops.
63357
63358 2007-10-09  Eric Blake  <ebb9@byu.net>
63359
63360         Silence test-fpending.
63361         * modules/fpending-tests (Files): Add wrapper script.
63362         * tests/test-fpending.sh: New file.
63363
63364 2007-10-09  Bruno Haible  <bruno@clisp.org>
63365
63366         * MODULES.html.sh (func_module): Don't create a hyperlink for
63367         function names like 'printf_frexp'.
63368         (Misc): Add crc, memxor.
63369         (Characteristics of floating types): New section.
63370         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63371         isnanf-nolibm, signbit, trunc, truncf, truncl.
63372         (Enhancements for ISO C 99 functions): New subsection Input/output.
63373         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63374         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63375         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63376         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63377         (Enhancements for POSIX:2001 functions): Add chdir-long.
63378         (File system functions): Add areadlink, chdir-safer, read-file.
63379         Remove cycle-check.
63380         (File system as inode set): New section.
63381         (Date and time): Add gethrxtime.
63382         (Multithreading): Add openmp.
63383         (Internationalization functions): Add localename.
63384         (Unicode string functions): Add unistr/u*-mbsnlen.
63385         (Support for maintaining and releasing projects): Add git-version-gen.
63386         (Lone files): Remove directories.
63387
63388 2007-10-08  Ben Pfaff  <blp@gnu.org>
63389
63390         * lib/xmalloca.h: Fix typo in comment.
63391
63392 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63395         when avoiding problems with integer overflow.  Use a portable test
63396         instead.
63397
63398 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63399
63400         * modules/dummy (License): Change to LGPLv2+.
63401         * modules/float (License): Likewise
63402         * modules/realloc (License): Likewise
63403         * modules/stdlib (License): Likewise
63404
63405 2007-10-07  Bruno Haible  <bruno@clisp.org>
63406
63407         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63408         * floor.c (TWO_MANT_DIG): Likewise.
63409         * ceil.c (TWO_MANT_DIG): Likewise.
63410         Reported by Ben Pfaff.
63411
63412 2007-10-07  Bruno Haible  <bruno@clisp.org>
63413
63414         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63415         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63416         * lib/frexp.c (FUNC): Likewise.
63417         * lib/printf-frexp.h (printf_frexp): Likewise.
63418         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63419         * lib/printf-frexp.c (FUNC): Likewise.
63420         Suggested by Jim Meyering.
63421
63422 2007-10-07  Jim Meyering  <meyering@redhat.com>
63423
63424         Make xnanosleep's integer overflow test more robust.
63425         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63426         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63427
63428 2007-10-07  Bruno Haible  <bruno@clisp.org>
63429
63430         * NEWS: Mention the license change.
63431
63432         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63433         abbreviations in the modules files.
63434
63435         Change copyright notice from GPLv2+ to GPLv3+.
63436         * README: Change copyright notice.
63437         * MODULES.html.sh: Likewise.
63438         * build-aux/bootstrap.conf: Likewise.
63439         * build-aux/config.libpath: Likewise.
63440         * build-aux/csharpcomp.sh.in: Likewise.
63441         * build-aux/csharpexec.sh.in: Likewise.
63442         * build-aux/install-reloc: Likewise.
63443         * build-aux/javacomp.sh.in: Likewise.
63444         * build-aux/javaexec.sh.in: Likewise.
63445         * build-aux/ldd.sh.in: Likewise.
63446         * build-aux/reloc-ldflags: Likewise.
63447         * build-aux/relocatable.sh.in: Likewise.
63448         * build-aux/x-to-1.in: Likewise.
63449         * check-module: Likewise.
63450         * config/srclistvars.sh: Likewise.
63451         * gnulib-tool: Likewise.
63452         * lib/acl-internal.h: Likewise.
63453         * lib/acl.c: Likewise.
63454         * lib/acl.h: Likewise.
63455         * lib/acl_entries.c: Likewise.
63456         * lib/areadlink-with-size.c: Likewise.
63457         * lib/areadlink.c: Likewise.
63458         * lib/areadlink.h: Likewise.
63459         * lib/argmatch.c: Likewise.
63460         * lib/argmatch.h: Likewise.
63461         * lib/argp-ba.c: Likewise.
63462         * lib/argp-eexst.c: Likewise.
63463         * lib/argp-fmtstream.c: Likewise.
63464         * lib/argp-fmtstream.h: Likewise.
63465         * lib/argp-fs-xinl.c: Likewise.
63466         * lib/argp-help.c: Likewise.
63467         * lib/argp-namefrob.h: Likewise.
63468         * lib/argp-parse.c: Likewise.
63469         * lib/argp-pin.c: Likewise.
63470         * lib/argp-pv.c: Likewise.
63471         * lib/argp-pvh.c: Likewise.
63472         * lib/argp-xinl.c: Likewise.
63473         * lib/argp.h: Likewise.
63474         * lib/at-func.c: Likewise.
63475         * lib/atanl.c: Likewise.
63476         * lib/backupfile.c: Likewise.
63477         * lib/backupfile.h: Likewise.
63478         * lib/basename.c: Likewise.
63479         * lib/binary-io.h: Likewise.
63480         * lib/byteswap.in.h: Likewise.
63481         * lib/c-stack.c: Likewise.
63482         * lib/c-stack.h: Likewise.
63483         * lib/c-strcasestr.c: Likewise.
63484         * lib/c-strcasestr.h: Likewise.
63485         * lib/c-strstr.c: Likewise.
63486         * lib/c-strstr.h: Likewise.
63487         * lib/c-strtod.c: Likewise.
63488         * lib/calloc.c: Likewise.
63489         * lib/canon-host.c: Likewise.
63490         * lib/canon-host.h: Likewise.
63491         * lib/canonicalize-lgpl.c: Likewise.
63492         * lib/canonicalize.c: Likewise.
63493         * lib/canonicalize.h: Likewise.
63494         * lib/ceil.c: Likewise.
63495         * lib/ceilf.c: Likewise.
63496         * lib/ceill.c: Likewise.
63497         * lib/chdir-long.c: Likewise.
63498         * lib/chdir-long.h: Likewise.
63499         * lib/chdir-safer.c: Likewise.
63500         * lib/chdir-safer.h: Likewise.
63501         * lib/chown.c: Likewise.
63502         * lib/classpath.c: Likewise.
63503         * lib/classpath.h: Likewise.
63504         * lib/clean-temp.c: Likewise.
63505         * lib/clean-temp.h: Likewise.
63506         * lib/cloexec.c: Likewise.
63507         * lib/close-stream.c: Likewise.
63508         * lib/closein.c: Likewise.
63509         * lib/closein.h: Likewise.
63510         * lib/closeout.c: Likewise.
63511         * lib/closeout.h: Likewise.
63512         * lib/concat-filename.c: Likewise.
63513         * lib/copy-file.c: Likewise.
63514         * lib/copy-file.h: Likewise.
63515         * lib/count-one-bits.h: Likewise.
63516         * lib/crc.c: Likewise.
63517         * lib/crc.h: Likewise.
63518         * lib/creat-safer.c: Likewise.
63519         * lib/csharpcomp.c: Likewise.
63520         * lib/csharpcomp.h: Likewise.
63521         * lib/csharpexec.c: Likewise.
63522         * lib/csharpexec.h: Likewise.
63523         * lib/cycle-check.c: Likewise.
63524         * lib/cycle-check.h: Likewise.
63525         * lib/diacrit.c: Likewise.
63526         * lib/diacrit.h: Likewise.
63527         * lib/diffseq.h: Likewise.
63528         * lib/dirchownmod.c: Likewise.
63529         * lib/dirent.in.h: Likewise.
63530         * lib/dirfd.c: Likewise.
63531         * lib/dirfd.h: Likewise.
63532         * lib/dirname.c: Likewise.
63533         * lib/dirname.h: Likewise.
63534         * lib/dummy.c: Likewise.
63535         * lib/dup-safer.c: Likewise.
63536         * lib/dup2.c: Likewise.
63537         * lib/eealloc.h: Likewise.
63538         * lib/error.c: Likewise.
63539         * lib/error.h: Likewise.
63540         * lib/euidaccess.c: Likewise.
63541         * lib/exclude.c: Likewise.
63542         * lib/exclude.h: Likewise.
63543         * lib/execute.c: Likewise.
63544         * lib/execute.h: Likewise.
63545         * lib/exitfail.c: Likewise.
63546         * lib/exitfail.h: Likewise.
63547         * lib/expl.c: Likewise.
63548         * lib/fatal-signal.c: Likewise.
63549         * lib/fatal-signal.h: Likewise.
63550         * lib/fbufmode.c: Likewise.
63551         * lib/fbufmode.h: Likewise.
63552         * lib/fchdir.c: Likewise.
63553         * lib/fchmodat.c: Likewise.
63554         * lib/fchownat.c: Likewise.
63555         * lib/fcntl--.h: Likewise.
63556         * lib/fcntl-safer.h: Likewise.
63557         * lib/fcntl.in.h: Likewise.
63558         * lib/fd-safer.c: Likewise.
63559         * lib/fflush.c: Likewise.
63560         * lib/file-has-acl.c: Likewise.
63561         * lib/file-set.c: Likewise.
63562         * lib/file-type.c: Likewise.
63563         * lib/file-type.h: Likewise.
63564         * lib/fileblocks.c: Likewise.
63565         * lib/filemode.c: Likewise.
63566         * lib/filemode.h: Likewise.
63567         * lib/filename.h: Likewise.
63568         * lib/filenamecat.c: Likewise.
63569         * lib/filenamecat.h: Likewise.
63570         * lib/findprog.c: Likewise.
63571         * lib/findprog.h: Likewise.
63572         * lib/float.in.h: Likewise.
63573         * lib/floor.c: Likewise.
63574         * lib/floorf.c: Likewise.
63575         * lib/floorl.c: Likewise.
63576         * lib/fopen-safer.c: Likewise.
63577         * lib/fopen.c: Likewise.
63578         * lib/fpending.c: Likewise.
63579         * lib/fpending.h: Likewise.
63580         * lib/fprintf.c: Likewise.
63581         * lib/fprintftime.h: Likewise.
63582         * lib/fpucw.h: Likewise.
63583         * lib/fpurge.c: Likewise.
63584         * lib/fpurge.h: Likewise.
63585         * lib/freadable.c: Likewise.
63586         * lib/freadable.h: Likewise.
63587         * lib/freadahead.c: Likewise.
63588         * lib/freadahead.h: Likewise.
63589         * lib/freading.c: Likewise.
63590         * lib/freading.h: Likewise.
63591         * lib/free.c: Likewise.
63592         * lib/freopen.c: Likewise.
63593         * lib/frexp.c: Likewise.
63594         * lib/frexpl.c: Likewise.
63595         * lib/fseek.c: Likewise.
63596         * lib/fseterr.c: Likewise.
63597         * lib/fseterr.h: Likewise.
63598         * lib/fstatat.c: Likewise.
63599         * lib/fstrcmp.c: Likewise.
63600         * lib/fstrcmp.h: Likewise.
63601         * lib/fsusage.c: Likewise.
63602         * lib/fsusage.h: Likewise.
63603         * lib/ftell.c: Likewise.
63604         * lib/ftello.c: Likewise.
63605         * lib/fts-cycle.c: Likewise.
63606         * lib/fts.c: Likewise.
63607         * lib/fts_.h: Likewise.
63608         * lib/full-read.c: Likewise.
63609         * lib/full-read.h: Likewise.
63610         * lib/full-write.c: Likewise.
63611         * lib/full-write.h: Likewise.
63612         * lib/fwritable.c: Likewise.
63613         * lib/fwritable.h: Likewise.
63614         * lib/fwriteerror.c: Likewise.
63615         * lib/fwriteerror.h: Likewise.
63616         * lib/fwriting.c: Likewise.
63617         * lib/fwriting.h: Likewise.
63618         * lib/gcd.c: Likewise.
63619         * lib/gcd.h: Likewise.
63620         * lib/getcwd.c: Likewise.
63621         * lib/getdate.h: Likewise.
63622         * lib/getdate.y: Likewise.
63623         * lib/getdomainname.c: Likewise.
63624         * lib/getdomainname.h: Likewise.
63625         * lib/getgroups.c: Likewise.
63626         * lib/gethostname.c: Likewise.
63627         * lib/gethrxtime.c: Likewise.
63628         * lib/gethrxtime.h: Likewise.
63629         * lib/getloadavg.c: Likewise.
63630         * lib/getndelim2.c: Likewise.
63631         * lib/getndelim2.h: Likewise.
63632         * lib/getnline.c: Likewise.
63633         * lib/getnline.h: Likewise.
63634         * lib/getopt.c: Likewise.
63635         * lib/getopt.in.h: Likewise.
63636         * lib/getopt1.c: Likewise.
63637         * lib/getopt_int.h: Likewise.
63638         * lib/getpagesize.h: Likewise.
63639         * lib/getsubopt.c: Likewise.
63640         * lib/gettime.c: Likewise.
63641         * lib/getugroups.c: Likewise.
63642         * lib/getugroups.h: Likewise.
63643         * lib/getusershell.c: Likewise.
63644         * lib/gl_anyavltree_list1.h: Likewise.
63645         * lib/gl_anyavltree_list2.h: Likewise.
63646         * lib/gl_anyhash_list1.h: Likewise.
63647         * lib/gl_anyhash_list2.h: Likewise.
63648         * lib/gl_anylinked_list1.h: Likewise.
63649         * lib/gl_anylinked_list2.h: Likewise.
63650         * lib/gl_anyrbtree_list1.h: Likewise.
63651         * lib/gl_anyrbtree_list2.h: Likewise.
63652         * lib/gl_anytree_list1.h: Likewise.
63653         * lib/gl_anytree_list2.h: Likewise.
63654         * lib/gl_anytree_oset.h: Likewise.
63655         * lib/gl_anytreehash_list1.h: Likewise.
63656         * lib/gl_anytreehash_list2.h: Likewise.
63657         * lib/gl_array_list.c: Likewise.
63658         * lib/gl_array_list.h: Likewise.
63659         * lib/gl_array_oset.c: Likewise.
63660         * lib/gl_array_oset.h: Likewise.
63661         * lib/gl_avltree_list.c: Likewise.
63662         * lib/gl_avltree_list.h: Likewise.
63663         * lib/gl_avltree_oset.c: Likewise.
63664         * lib/gl_avltree_oset.h: Likewise.
63665         * lib/gl_avltreehash_list.c: Likewise.
63666         * lib/gl_avltreehash_list.h: Likewise.
63667         * lib/gl_carray_list.c: Likewise.
63668         * lib/gl_carray_list.h: Likewise.
63669         * lib/gl_linked_list.c: Likewise.
63670         * lib/gl_linked_list.h: Likewise.
63671         * lib/gl_linkedhash_list.c: Likewise.
63672         * lib/gl_linkedhash_list.h: Likewise.
63673         * lib/gl_list.c: Likewise.
63674         * lib/gl_list.h: Likewise.
63675         * lib/gl_oset.c: Likewise.
63676         * lib/gl_oset.h: Likewise.
63677         * lib/gl_rbtree_list.c: Likewise.
63678         * lib/gl_rbtree_list.h: Likewise.
63679         * lib/gl_rbtree_oset.c: Likewise.
63680         * lib/gl_rbtree_oset.h: Likewise.
63681         * lib/gl_rbtreehash_list.c: Likewise.
63682         * lib/gl_rbtreehash_list.h: Likewise.
63683         * lib/gl_sublist.c: Likewise.
63684         * lib/gl_sublist.h: Likewise.
63685         * lib/group-member.c: Likewise.
63686         * lib/group-member.h: Likewise.
63687         * lib/hard-locale.c: Likewise.
63688         * lib/hard-locale.h: Likewise.
63689         * lib/hash-pjw.c: Likewise.
63690         * lib/hash-pjw.h: Likewise.
63691         * lib/hash-triple.c: Likewise.
63692         * lib/hash.c: Likewise.
63693         * lib/hash.h: Likewise.
63694         * lib/human.c: Likewise.
63695         * lib/human.h: Likewise.
63696         * lib/i-ring.c: Likewise.
63697         * lib/i-ring.h: Likewise.
63698         * lib/idcache.c: Likewise.
63699         * lib/imaxabs.c: Likewise.
63700         * lib/imaxdiv.c: Likewise.
63701         * lib/inet_pton.c: Likewise.
63702         * lib/inet_pton.h: Likewise.
63703         * lib/intprops.h: Likewise.
63704         * lib/inttostr.c: Likewise.
63705         * lib/inttostr.h: Likewise.
63706         * lib/inttypes.in.h: Likewise.
63707         * lib/isapipe.c: Likewise.
63708         * lib/isdir.c: Likewise.
63709         * lib/isnan.c: Likewise.
63710         * lib/isnan.h: Likewise.
63711         * lib/isnanf.c: Likewise.
63712         * lib/isnanf.h: Likewise.
63713         * lib/isnanl-nolibm.h: Likewise.
63714         * lib/isnanl.c: Likewise.
63715         * lib/isnanl.h: Likewise.
63716         * lib/javacomp.c: Likewise.
63717         * lib/javacomp.h: Likewise.
63718         * lib/javaexec.c: Likewise.
63719         * lib/javaexec.h: Likewise.
63720         * lib/javaversion.c: Likewise.
63721         * lib/javaversion.h: Likewise.
63722         * lib/javaversion.java: Likewise.
63723         * lib/lbrkprop.h: Likewise.
63724         * lib/lchmod.h: Likewise.
63725         * lib/lchown.c: Likewise.
63726         * lib/ldexpl.c: Likewise.
63727         * lib/linebreak.c: Likewise.
63728         * lib/linebreak.h: Likewise.
63729         * lib/linebuffer.c: Likewise.
63730         * lib/linebuffer.h: Likewise.
63731         * lib/locale.in.h: Likewise.
63732         * lib/logl.c: Likewise.
63733         * lib/long-options.c: Likewise.
63734         * lib/long-options.h: Likewise.
63735         * lib/lstat.c: Likewise.
63736         * lib/lstat.h: Likewise.
63737         * lib/math.in.h: Likewise.
63738         * lib/mbchar.c: Likewise.
63739         * lib/mbchar.h: Likewise.
63740         * lib/mbfile.h: Likewise.
63741         * lib/mbiter.h: Likewise.
63742         * lib/mbscasecmp.c: Likewise.
63743         * lib/mbscasestr.c: Likewise.
63744         * lib/mbschr.c: Likewise.
63745         * lib/mbscspn.c: Likewise.
63746         * lib/mbslen.c: Likewise.
63747         * lib/mbsncasecmp.c: Likewise.
63748         * lib/mbsnlen.c: Likewise.
63749         * lib/mbspbrk.c: Likewise.
63750         * lib/mbspcasecmp.c: Likewise.
63751         * lib/mbsrchr.c: Likewise.
63752         * lib/mbssep.c: Likewise.
63753         * lib/mbsspn.c: Likewise.
63754         * lib/mbsstr.c: Likewise.
63755         * lib/mbstok_r.c: Likewise.
63756         * lib/mbswidth.c: Likewise.
63757         * lib/mbswidth.h: Likewise.
63758         * lib/mbuiter.h: Likewise.
63759         * lib/memcasecmp.c: Likewise.
63760         * lib/memcasecmp.h: Likewise.
63761         * lib/memchr.c: Likewise.
63762         * lib/memcmp.c: Likewise.
63763         * lib/memcoll.c: Likewise.
63764         * lib/memcoll.h: Likewise.
63765         * lib/memcpy.c: Likewise.
63766         * lib/memrchr.c: Likewise.
63767         * lib/mkancesdirs.c: Likewise.
63768         * lib/mkdir-p.c: Likewise.
63769         * lib/mkdir-p.h: Likewise.
63770         * lib/mkdir.c: Likewise.
63771         * lib/mkdirat.c: Likewise.
63772         * lib/mkdtemp.c: Likewise.
63773         * lib/mkstemp-safer.c: Likewise.
63774         * lib/mkstemp.c: Likewise.
63775         * lib/modechange.c: Likewise.
63776         * lib/modechange.h: Likewise.
63777         * lib/mountlist.c: Likewise.
63778         * lib/mountlist.h: Likewise.
63779         * lib/mpsort.c: Likewise.
63780         * lib/nanosleep.c: Likewise.
63781         * lib/obstack.c: Likewise.
63782         * lib/obstack.h: Likewise.
63783         * lib/open-safer.c: Likewise.
63784         * lib/open.c: Likewise.
63785         * lib/openat-die.c: Likewise.
63786         * lib/openat-priv.h: Likewise.
63787         * lib/openat-proc.c: Likewise.
63788         * lib/openat.c: Likewise.
63789         * lib/openat.h: Likewise.
63790         * lib/pagealign_alloc.c: Likewise.
63791         * lib/pagealign_alloc.h: Likewise.
63792         * lib/physmem.c: Likewise.
63793         * lib/physmem.h: Likewise.
63794         * lib/pipe-safer.c: Likewise.
63795         * lib/pipe.c: Likewise.
63796         * lib/pipe.h: Likewise.
63797         * lib/posixtm.c: Likewise.
63798         * lib/posixtm.h: Likewise.
63799         * lib/posixver.c: Likewise.
63800         * lib/printf-frexp.c: Likewise.
63801         * lib/printf-frexp.h: Likewise.
63802         * lib/printf-frexpl.c: Likewise.
63803         * lib/printf-frexpl.h: Likewise.
63804         * lib/printf.c: Likewise.
63805         * lib/progname.c: Likewise.
63806         * lib/progname.h: Likewise.
63807         * lib/progreloc.c: Likewise.
63808         * lib/putenv.c: Likewise.
63809         * lib/quote.c: Likewise.
63810         * lib/quote.h: Likewise.
63811         * lib/quotearg.c: Likewise.
63812         * lib/quotearg.h: Likewise.
63813         * lib/raise.c: Likewise.
63814         * lib/readline.c: Likewise.
63815         * lib/readline.h: Likewise.
63816         * lib/readlink.c: Likewise.
63817         * lib/readtokens.c: Likewise.
63818         * lib/readtokens.h: Likewise.
63819         * lib/readtokens0.c: Likewise.
63820         * lib/readtokens0.h: Likewise.
63821         * lib/readutmp.c: Likewise.
63822         * lib/readutmp.h: Likewise.
63823         * lib/realloc.c: Likewise.
63824         * lib/relocwrapper.c: Likewise.
63825         * lib/rename-dest-slash.c: Likewise.
63826         * lib/rename.c: Likewise.
63827         * lib/rmdir.c: Likewise.
63828         * lib/rpmatch.c: Likewise.
63829         * lib/safe-read.c: Likewise.
63830         * lib/safe-read.h: Likewise.
63831         * lib/safe-write.c: Likewise.
63832         * lib/safe-write.h: Likewise.
63833         * lib/same-inode.h: Likewise.
63834         * lib/same.c: Likewise.
63835         * lib/same.h: Likewise.
63836         * lib/save-cwd.c: Likewise.
63837         * lib/save-cwd.h: Likewise.
63838         * lib/savedir.c: Likewise.
63839         * lib/savedir.h: Likewise.
63840         * lib/savewd.c: Likewise.
63841         * lib/savewd.h: Likewise.
63842         * lib/search.in.h: Likewise.
63843         * lib/setenv.c: Likewise.
63844         * lib/setenv.h: Likewise.
63845         * lib/settime.c: Likewise.
63846         * lib/sh-quote.c: Likewise.
63847         * lib/sh-quote.h: Likewise.
63848         * lib/sig2str.c: Likewise.
63849         * lib/sig2str.h: Likewise.
63850         * lib/signal.in.h: Likewise.
63851         * lib/signbitd.c: Likewise.
63852         * lib/signbitf.c: Likewise.
63853         * lib/signbitl.c: Likewise.
63854         * lib/sigprocmask.c: Likewise.
63855         * lib/sincosl.c: Likewise.
63856         * lib/sleep.c: Likewise.
63857         * lib/sprintf.c: Likewise.
63858         * lib/sqrtl.c: Likewise.
63859         * lib/stat-time.h: Likewise.
63860         * lib/stdio--.h: Likewise.
63861         * lib/stdio-safer.h: Likewise.
63862         * lib/stdlib--.h: Likewise.
63863         * lib/stdlib-safer.h: Likewise.
63864         * lib/stdlib.in.h: Likewise.
63865         * lib/stpcpy.c: Likewise.
63866         * lib/stpncpy.c: Likewise.
63867         * lib/strchrnul.c: Likewise.
63868         * lib/strcspn.c: Likewise.
63869         * lib/strerror.c: Likewise.
63870         * lib/strftime.c: Likewise.
63871         * lib/strftime.h: Likewise.
63872         * lib/striconveh.c: Likewise.
63873         * lib/striconveh.h: Likewise.
63874         * lib/striconveha.c: Likewise.
63875         * lib/striconveha.h: Likewise.
63876         * lib/stripslash.c: Likewise.
63877         * lib/strnlen1.c: Likewise.
63878         * lib/strnlen1.h: Likewise.
63879         * lib/strtod.c: Likewise.
63880         * lib/strtoimax.c: Likewise.
63881         * lib/strtok_r.c: Likewise.
63882         * lib/strtol.c: Likewise.
63883         * lib/strtoll.c: Likewise.
63884         * lib/strtoul.c: Likewise.
63885         * lib/strtoull.c: Likewise.
63886         * lib/sysexits.in.h: Likewise.
63887         * lib/tempname.c: Likewise.
63888         * lib/tempname.h: Likewise.
63889         * lib/timespec.h: Likewise.
63890         * lib/tls.c: Likewise.
63891         * lib/tls.h: Likewise.
63892         * lib/tmpdir.c: Likewise.
63893         * lib/tmpdir.h: Likewise.
63894         * lib/tmpfile-safer.c: Likewise.
63895         * lib/tmpfile.c: Likewise.
63896         * lib/trigl.c: Likewise.
63897         * lib/trigl.h: Likewise.
63898         * lib/trim.c: Likewise.
63899         * lib/trim.h: Likewise.
63900         * lib/trunc.c: Likewise.
63901         * lib/truncf.c: Likewise.
63902         * lib/truncl.c: Likewise.
63903         * lib/tsearch.c: Likewise.
63904         * lib/unicodeio.c: Likewise.
63905         * lib/unicodeio.h: Likewise.
63906         * lib/unistd--.h: Likewise.
63907         * lib/unistd-safer.h: Likewise.
63908         * lib/unistdio/ulc-fprintf.c: Likewise.
63909         * lib/unistdio/ulc-vfprintf.c: Likewise.
63910         * lib/unlinkdir.c: Likewise.
63911         * lib/unlinkdir.h: Likewise.
63912         * lib/unlocked-io.h: Likewise.
63913         * lib/unsetenv.c: Likewise.
63914         * lib/userspec.c: Likewise.
63915         * lib/utime.c: Likewise.
63916         * lib/utimecmp.c: Likewise.
63917         * lib/utimecmp.h: Likewise.
63918         * lib/utimens.c: Likewise.
63919         * lib/verify.h: Likewise.
63920         * lib/verror.c: Likewise.
63921         * lib/verror.h: Likewise.
63922         * lib/version-etc-fsf.c: Likewise.
63923         * lib/version-etc.c: Likewise.
63924         * lib/version-etc.h: Likewise.
63925         * lib/vfprintf.c: Likewise.
63926         * lib/vprintf.c: Likewise.
63927         * lib/vsprintf.c: Likewise.
63928         * lib/w32spawn.h: Likewise.
63929         * lib/wait-process.c: Likewise.
63930         * lib/wait-process.h: Likewise.
63931         * lib/wcwidth.c: Likewise.
63932         * lib/write-any-file.c: Likewise.
63933         * lib/xalloc-die.c: Likewise.
63934         * lib/xalloc.h: Likewise.
63935         * lib/xasprintf.c: Likewise.
63936         * lib/xgetcwd.c: Likewise.
63937         * lib/xgetcwd.h: Likewise.
63938         * lib/xgetdomainname.c: Likewise.
63939         * lib/xgetdomainname.h: Likewise.
63940         * lib/xgethostname.c: Likewise.
63941         * lib/xmalloc.c: Likewise.
63942         * lib/xmalloca.c: Likewise.
63943         * lib/xmalloca.h: Likewise.
63944         * lib/xmemcoll.c: Likewise.
63945         * lib/xnanosleep.c: Likewise.
63946         * lib/xreadlink.c: Likewise.
63947         * lib/xreadlink.h: Likewise.
63948         * lib/xsetenv.c: Likewise.
63949         * lib/xsetenv.h: Likewise.
63950         * lib/xstriconv.c: Likewise.
63951         * lib/xstriconv.h: Likewise.
63952         * lib/xstrndup.c: Likewise.
63953         * lib/xstrndup.h: Likewise.
63954         * lib/xstrtod.c: Likewise.
63955         * lib/xstrtod.h: Likewise.
63956         * lib/xstrtol-error.c: Likewise.
63957         * lib/xstrtol.c: Likewise.
63958         * lib/xstrtol.h: Likewise.
63959         * lib/xtime.h: Likewise.
63960         * lib/xvasprintf.c: Likewise.
63961         * lib/xvasprintf.h: Likewise.
63962         * lib/yesno.c: Likewise.
63963         * lib/yesno.h: Likewise.
63964         * posix-modules: Likewise.
63965         * tests/test-alloca-opt.c: Likewise.
63966         * tests/test-arcfour.c: Likewise.
63967         * tests/test-arctwo.c: Likewise.
63968         * tests/test-argmatch.c: Likewise.
63969         * tests/test-argp-2.sh: Likewise.
63970         * tests/test-argp.c: Likewise.
63971         * tests/test-arpa_inet.c: Likewise.
63972         * tests/test-array_list.c: Likewise.
63973         * tests/test-array_oset.c: Likewise.
63974         * tests/test-atexit.c: Likewise.
63975         * tests/test-avltree_list.c: Likewise.
63976         * tests/test-avltree_oset.c: Likewise.
63977         * tests/test-avltreehash_list.c: Likewise.
63978         * tests/test-base64.c: Likewise.
63979         * tests/test-binary-io.c: Likewise.
63980         * tests/test-byteswap.c: Likewise.
63981         * tests/test-c-ctype.c: Likewise.
63982         * tests/test-c-strcasecmp.c: Likewise.
63983         * tests/test-c-strcasestr.c: Likewise.
63984         * tests/test-c-strncasecmp.c: Likewise.
63985         * tests/test-c-strstr.c: Likewise.
63986         * tests/test-canonicalize-lgpl.c: Likewise.
63987         * tests/test-canonicalize.c: Likewise.
63988         * tests/test-carray_list.c: Likewise.
63989         * tests/test-ceilf.c: Likewise.
63990         * tests/test-ceill.c: Likewise.
63991         * tests/test-count-one-bits.c: Likewise.
63992         * tests/test-crc.c: Likewise.
63993         * tests/test-dirname.c: Likewise.
63994         * tests/test-fbufmode.c: Likewise.
63995         * tests/test-fcntl.c: Likewise.
63996         * tests/test-fflush.c: Likewise.
63997         * tests/test-floorf.c: Likewise.
63998         * tests/test-floorl.c: Likewise.
63999         * tests/test-fopen.c: Likewise.
64000         * tests/test-fprintf-posix.c: Likewise.
64001         * tests/test-fprintf-posix.h: Likewise.
64002         * tests/test-fpurge.c: Likewise.
64003         * tests/test-freadable.c: Likewise.
64004         * tests/test-freadahead.c: Likewise.
64005         * tests/test-freading.c: Likewise.
64006         * tests/test-freopen.c: Likewise.
64007         * tests/test-frexp.c: Likewise.
64008         * tests/test-frexpl.c: Likewise.
64009         * tests/test-fseek.c: Likewise.
64010         * tests/test-fseeko.c: Likewise.
64011         * tests/test-fseterr.c: Likewise.
64012         * tests/test-fstrcmp.c: Likewise.
64013         * tests/test-ftell.c: Likewise.
64014         * tests/test-ftello.c: Likewise.
64015         * tests/test-fwritable.c: Likewise.
64016         * tests/test-fwriting.c: Likewise.
64017         * tests/test-getaddrinfo.c: Likewise.
64018         * tests/test-getpass.c: Likewise.
64019         * tests/test-gettimeofday.c: Likewise.
64020         * tests/test-hmac-md5.c: Likewise.
64021         * tests/test-hmac-sha1.c: Likewise.
64022         * tests/test-iconv.c: Likewise.
64023         * tests/test-iconvme.c: Likewise.
64024         * tests/test-inttypes.c: Likewise.
64025         * tests/test-isnan.c: Likewise.
64026         * tests/test-isnanf.c: Likewise.
64027         * tests/test-isnanl-nolibm.c: Likewise.
64028         * tests/test-isnanl.c: Likewise.
64029         * tests/test-isnanl.h: Likewise.
64030         * tests/test-ldexpl.c: Likewise.
64031         * tests/test-linked_list.c: Likewise.
64032         * tests/test-linkedhash_list.c: Likewise.
64033         * tests/test-locale.c: Likewise.
64034         * tests/test-localename.c: Likewise.
64035         * tests/test-lock.c: Likewise.
64036         * tests/test-lseek.c: Likewise.
64037         * tests/test-malloca.c: Likewise.
64038         * tests/test-math.c: Likewise.
64039         * tests/test-mbscasecmp.c: Likewise.
64040         * tests/test-mbscasestr1.c: Likewise.
64041         * tests/test-mbscasestr2.c: Likewise.
64042         * tests/test-mbscasestr3.c: Likewise.
64043         * tests/test-mbscasestr4.c: Likewise.
64044         * tests/test-mbschr.c: Likewise.
64045         * tests/test-mbscspn.c: Likewise.
64046         * tests/test-mbsncasecmp.c: Likewise.
64047         * tests/test-mbspbrk.c: Likewise.
64048         * tests/test-mbspcasecmp.c: Likewise.
64049         * tests/test-mbsrchr.c: Likewise.
64050         * tests/test-mbsspn.c: Likewise.
64051         * tests/test-mbsstr1.c: Likewise.
64052         * tests/test-mbsstr2.c: Likewise.
64053         * tests/test-mbsstr3.c: Likewise.
64054         * tests/test-md5.c: Likewise.
64055         * tests/test-memmem.c: Likewise.
64056         * tests/test-netinet_in.c: Likewise.
64057         * tests/test-open.c: Likewise.
64058         * tests/test-printf-frexp.c: Likewise.
64059         * tests/test-printf-frexpl.c: Likewise.
64060         * tests/test-printf-posix.c: Likewise.
64061         * tests/test-printf-posix.h: Likewise.
64062         * tests/test-rbtree_list.c: Likewise.
64063         * tests/test-rbtree_oset.c: Likewise.
64064         * tests/test-rbtreehash_list.c: Likewise.
64065         * tests/test-read-file.c: Likewise.
64066         * tests/test-rijndael.c: Likewise.
64067         * tests/test-search.c: Likewise.
64068         * tests/test-signbit.c: Likewise.
64069         * tests/test-sleep.c: Likewise.
64070         * tests/test-snprintf-posix.c: Likewise.
64071         * tests/test-snprintf-posix.h: Likewise.
64072         * tests/test-snprintf.c: Likewise.
64073         * tests/test-sprintf-posix.c: Likewise.
64074         * tests/test-sprintf-posix.h: Likewise.
64075         * tests/test-stat-time.c: Likewise.
64076         * tests/test-stdbool.c: Likewise.
64077         * tests/test-stdint.c: Likewise.
64078         * tests/test-stdio.c: Likewise.
64079         * tests/test-stdlib.c: Likewise.
64080         * tests/test-stpncpy.c: Likewise.
64081         * tests/test-strcasestr.c: Likewise.
64082         * tests/test-striconv.c: Likewise.
64083         * tests/test-striconveh.c: Likewise.
64084         * tests/test-striconveha.c: Likewise.
64085         * tests/test-string.c: Likewise.
64086         * tests/test-sys_select.c: Likewise.
64087         * tests/test-sys_socket.c: Likewise.
64088         * tests/test-sys_stat.c: Likewise.
64089         * tests/test-sys_time.c: Likewise.
64090         * tests/test-sysexits.c: Likewise.
64091         * tests/test-time.c: Likewise.
64092         * tests/test-tls.c: Likewise.
64093         * tests/test-trunc.c: Likewise.
64094         * tests/test-truncf.c: Likewise.
64095         * tests/test-truncl.c: Likewise.
64096         * tests/test-unistd.c: Likewise.
64097         * tests/test-vasnprintf-posix.c: Likewise.
64098         * tests/test-vasnprintf-posix2.c: Likewise.
64099         * tests/test-vasnprintf.c: Likewise.
64100         * tests/test-vasprintf-posix.c: Likewise.
64101         * tests/test-vasprintf.c: Likewise.
64102         * tests/test-verify.c: Likewise.
64103         * tests/test-vfprintf-posix.c: Likewise.
64104         * tests/test-vprintf-posix.c: Likewise.
64105         * tests/test-vsnprintf-posix.c: Likewise.
64106         * tests/test-vsnprintf.c: Likewise.
64107         * tests/test-vsprintf-posix.c: Likewise.
64108         * tests/test-wchar.c: Likewise.
64109         * tests/test-wctype.c: Likewise.
64110         * tests/test-wcwidth.c: Likewise.
64111         * tests/test-xstrtol.c: Likewise.
64112         * tests/test-xvasprintf.c: Likewise.
64113         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64114         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64115         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64116         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64117         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64118         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64119         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64120         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64121         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64122         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64123         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64124         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64125         * tests/uniname/test-uninames.c: Likewise.
64126         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64127         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64128         * tests/unistdio/test-u16-printf1.h: Likewise.
64129         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64130         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64131         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64132         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64133         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64134         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64135         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64136         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64137         * tests/unistdio/test-u32-printf1.h: Likewise.
64138         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64139         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64140         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64141         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64142         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64143         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64144         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64145         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64146         * tests/unistdio/test-u8-printf1.h: Likewise.
64147         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64148         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64149         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64150         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64151         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64152         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64153         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64154         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64155         * tests/unistdio/test-ulc-printf1.h: Likewise.
64156         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64157         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64158         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64159         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64160         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64161         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64162         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64163         * tests/uniwidth/test-u16-width.c: Likewise.
64164         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64165         * tests/uniwidth/test-u32-width.c: Likewise.
64166         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64167         * tests/uniwidth/test-u8-width.c: Likewise.
64168         * tests/uniwidth/test-uc_width.c: Likewise.
64169         * config/srclist-update: Likewise.
64170         (fixlicense): Update to GPLv3+.
64171
64172         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64173         * tests/test-tsearch.c: Change copyright notice.
64174
64175         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64176         * lib/c-strcaseeq.h: Change copyright notice.
64177         * lib/streq.h: Likewise.
64178         * lib/uniconv.h: Likewise.
64179         * lib/uniconv/u-conv-from-enc.h: Likewise.
64180         * lib/uniconv/u-conv-to-enc.h: Likewise.
64181         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64182         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64183         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64184         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64185         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64186         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64187         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64188         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64189         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64190         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64191         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64192         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64193         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64194         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64195         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64196         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64197         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64198         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64199         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64200         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64201         * lib/uniname.h: Likewise.
64202         * lib/uniname/uniname.c: Likewise.
64203         * lib/unistdio.h: Likewise.
64204         * lib/unistdio/u-asnprintf.h: Likewise.
64205         * lib/unistdio/u-asprintf.h: Likewise.
64206         * lib/unistdio/u-printf-args.c: Likewise.
64207         * lib/unistdio/u-printf-args.h: Likewise.
64208         * lib/unistdio/u-printf-parse.h: Likewise.
64209         * lib/unistdio/u-snprintf.h: Likewise.
64210         * lib/unistdio/u-sprintf.h: Likewise.
64211         * lib/unistdio/u-vasprintf.h: Likewise.
64212         * lib/unistdio/u-vsnprintf.h: Likewise.
64213         * lib/unistdio/u-vsprintf.h: Likewise.
64214         * lib/unistdio/u16-asnprintf.c: Likewise.
64215         * lib/unistdio/u16-asprintf.c: Likewise.
64216         * lib/unistdio/u16-printf-parse.c: Likewise.
64217         * lib/unistdio/u16-snprintf.c: Likewise.
64218         * lib/unistdio/u16-sprintf.c: Likewise.
64219         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64220         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64221         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64222         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64223         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64224         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64225         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64226         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64227         * lib/unistdio/u16-vasnprintf.c: Likewise.
64228         * lib/unistdio/u16-vasprintf.c: Likewise.
64229         * lib/unistdio/u16-vsnprintf.c: Likewise.
64230         * lib/unistdio/u16-vsprintf.c: Likewise.
64231         * lib/unistdio/u32-asnprintf.c: Likewise.
64232         * lib/unistdio/u32-asprintf.c: Likewise.
64233         * lib/unistdio/u32-printf-parse.c: Likewise.
64234         * lib/unistdio/u32-snprintf.c: Likewise.
64235         * lib/unistdio/u32-sprintf.c: Likewise.
64236         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64237         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64238         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64239         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64240         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64241         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64242         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64243         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64244         * lib/unistdio/u32-vasnprintf.c: Likewise.
64245         * lib/unistdio/u32-vasprintf.c: Likewise.
64246         * lib/unistdio/u32-vsnprintf.c: Likewise.
64247         * lib/unistdio/u32-vsprintf.c: Likewise.
64248         * lib/unistdio/u8-asnprintf.c: Likewise.
64249         * lib/unistdio/u8-asprintf.c: Likewise.
64250         * lib/unistdio/u8-printf-parse.c: Likewise.
64251         * lib/unistdio/u8-snprintf.c: Likewise.
64252         * lib/unistdio/u8-sprintf.c: Likewise.
64253         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64254         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64255         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64256         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64257         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64258         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64259         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64260         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64261         * lib/unistdio/u8-vasnprintf.c: Likewise.
64262         * lib/unistdio/u8-vasprintf.c: Likewise.
64263         * lib/unistdio/u8-vsnprintf.c: Likewise.
64264         * lib/unistdio/u8-vsprintf.c: Likewise.
64265         * lib/unistdio/ulc-asnprintf.c: Likewise.
64266         * lib/unistdio/ulc-asprintf.c: Likewise.
64267         * lib/unistdio/ulc-printf-parse.c: Likewise.
64268         * lib/unistdio/ulc-snprintf.c: Likewise.
64269         * lib/unistdio/ulc-sprintf.c: Likewise.
64270         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64271         * lib/unistdio/ulc-vasprintf.c: Likewise.
64272         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64273         * lib/unistdio/ulc-vsprintf.c: Likewise.
64274         * lib/unistr.h: Likewise.
64275         * lib/unistr/u-cpy-alloc.h: Likewise.
64276         * lib/unistr/u-cpy.h: Likewise.
64277         * lib/unistr/u-endswith.h: Likewise.
64278         * lib/unistr/u-move.h: Likewise.
64279         * lib/unistr/u-set.h: Likewise.
64280         * lib/unistr/u-startswith.h: Likewise.
64281         * lib/unistr/u-stpcpy.h: Likewise.
64282         * lib/unistr/u-stpncpy.h: Likewise.
64283         * lib/unistr/u-strcat.h: Likewise.
64284         * lib/unistr/u-strcpy.h: Likewise.
64285         * lib/unistr/u-strcspn.h: Likewise.
64286         * lib/unistr/u-strdup.h: Likewise.
64287         * lib/unistr/u-strlen.h: Likewise.
64288         * lib/unistr/u-strncat.h: Likewise.
64289         * lib/unistr/u-strncpy.h: Likewise.
64290         * lib/unistr/u-strnlen.h: Likewise.
64291         * lib/unistr/u-strpbrk.h: Likewise.
64292         * lib/unistr/u-strspn.h: Likewise.
64293         * lib/unistr/u-strstr.h: Likewise.
64294         * lib/unistr/u-strtok.h: Likewise.
64295         * lib/unistr/u16-check.c: Likewise.
64296         * lib/unistr/u16-chr.c: Likewise.
64297         * lib/unistr/u16-cmp.c: Likewise.
64298         * lib/unistr/u16-cpy-alloc.c: Likewise.
64299         * lib/unistr/u16-cpy.c: Likewise.
64300         * lib/unistr/u16-endswith.c: Likewise.
64301         * lib/unistr/u16-mblen.c: Likewise.
64302         * lib/unistr/u16-mbsnlen.c: Likewise.
64303         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64304         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64305         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64306         * lib/unistr/u16-mbtouc.c: Likewise.
64307         * lib/unistr/u16-mbtoucr.c: Likewise.
64308         * lib/unistr/u16-move.c: Likewise.
64309         * lib/unistr/u16-next.c: Likewise.
64310         * lib/unistr/u16-prev.c: Likewise.
64311         * lib/unistr/u16-set.c: Likewise.
64312         * lib/unistr/u16-startswith.c: Likewise.
64313         * lib/unistr/u16-stpcpy.c: Likewise.
64314         * lib/unistr/u16-stpncpy.c: Likewise.
64315         * lib/unistr/u16-strcat.c: Likewise.
64316         * lib/unistr/u16-strchr.c: Likewise.
64317         * lib/unistr/u16-strcmp.c: Likewise.
64318         * lib/unistr/u16-strcpy.c: Likewise.
64319         * lib/unistr/u16-strcspn.c: Likewise.
64320         * lib/unistr/u16-strdup.c: Likewise.
64321         * lib/unistr/u16-strlen.c: Likewise.
64322         * lib/unistr/u16-strmblen.c: Likewise.
64323         * lib/unistr/u16-strmbtouc.c: Likewise.
64324         * lib/unistr/u16-strncat.c: Likewise.
64325         * lib/unistr/u16-strncmp.c: Likewise.
64326         * lib/unistr/u16-strncpy.c: Likewise.
64327         * lib/unistr/u16-strnlen.c: Likewise.
64328         * lib/unistr/u16-strpbrk.c: Likewise.
64329         * lib/unistr/u16-strrchr.c: Likewise.
64330         * lib/unistr/u16-strspn.c: Likewise.
64331         * lib/unistr/u16-strstr.c: Likewise.
64332         * lib/unistr/u16-strtok.c: Likewise.
64333         * lib/unistr/u16-to-u32.c: Likewise.
64334         * lib/unistr/u16-to-u8.c: Likewise.
64335         * lib/unistr/u16-uctomb-aux.c: Likewise.
64336         * lib/unistr/u16-uctomb.c: Likewise.
64337         * lib/unistr/u32-check.c: Likewise.
64338         * lib/unistr/u32-chr.c: Likewise.
64339         * lib/unistr/u32-cmp.c: Likewise.
64340         * lib/unistr/u32-cpy-alloc.c: Likewise.
64341         * lib/unistr/u32-cpy.c: Likewise.
64342         * lib/unistr/u32-endswith.c: Likewise.
64343         * lib/unistr/u32-mblen.c: Likewise.
64344         * lib/unistr/u32-mbsnlen.c: Likewise.
64345         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64346         * lib/unistr/u32-mbtouc.c: Likewise.
64347         * lib/unistr/u32-mbtoucr.c: Likewise.
64348         * lib/unistr/u32-move.c: Likewise.
64349         * lib/unistr/u32-next.c: Likewise.
64350         * lib/unistr/u32-prev.c: Likewise.
64351         * lib/unistr/u32-set.c: Likewise.
64352         * lib/unistr/u32-startswith.c: Likewise.
64353         * lib/unistr/u32-stpcpy.c: Likewise.
64354         * lib/unistr/u32-stpncpy.c: Likewise.
64355         * lib/unistr/u32-strcat.c: Likewise.
64356         * lib/unistr/u32-strchr.c: Likewise.
64357         * lib/unistr/u32-strcmp.c: Likewise.
64358         * lib/unistr/u32-strcpy.c: Likewise.
64359         * lib/unistr/u32-strcspn.c: Likewise.
64360         * lib/unistr/u32-strdup.c: Likewise.
64361         * lib/unistr/u32-strlen.c: Likewise.
64362         * lib/unistr/u32-strmblen.c: Likewise.
64363         * lib/unistr/u32-strmbtouc.c: Likewise.
64364         * lib/unistr/u32-strncat.c: Likewise.
64365         * lib/unistr/u32-strncmp.c: Likewise.
64366         * lib/unistr/u32-strncpy.c: Likewise.
64367         * lib/unistr/u32-strnlen.c: Likewise.
64368         * lib/unistr/u32-strpbrk.c: Likewise.
64369         * lib/unistr/u32-strrchr.c: Likewise.
64370         * lib/unistr/u32-strspn.c: Likewise.
64371         * lib/unistr/u32-strstr.c: Likewise.
64372         * lib/unistr/u32-strtok.c: Likewise.
64373         * lib/unistr/u32-to-u16.c: Likewise.
64374         * lib/unistr/u32-to-u8.c: Likewise.
64375         * lib/unistr/u32-uctomb.c: Likewise.
64376         * lib/unistr/u8-check.c: Likewise.
64377         * lib/unistr/u8-chr.c: Likewise.
64378         * lib/unistr/u8-cmp.c: Likewise.
64379         * lib/unistr/u8-cpy-alloc.c: Likewise.
64380         * lib/unistr/u8-cpy.c: Likewise.
64381         * lib/unistr/u8-endswith.c: Likewise.
64382         * lib/unistr/u8-mblen.c: Likewise.
64383         * lib/unistr/u8-mbsnlen.c: Likewise.
64384         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64386         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64387         * lib/unistr/u8-mbtouc.c: Likewise.
64388         * lib/unistr/u8-mbtoucr.c: Likewise.
64389         * lib/unistr/u8-move.c: Likewise.
64390         * lib/unistr/u8-next.c: Likewise.
64391         * lib/unistr/u8-prev.c: Likewise.
64392         * lib/unistr/u8-set.c: Likewise.
64393         * lib/unistr/u8-startswith.c: Likewise.
64394         * lib/unistr/u8-stpcpy.c: Likewise.
64395         * lib/unistr/u8-stpncpy.c: Likewise.
64396         * lib/unistr/u8-strcat.c: Likewise.
64397         * lib/unistr/u8-strchr.c: Likewise.
64398         * lib/unistr/u8-strcmp.c: Likewise.
64399         * lib/unistr/u8-strcpy.c: Likewise.
64400         * lib/unistr/u8-strcspn.c: Likewise.
64401         * lib/unistr/u8-strdup.c: Likewise.
64402         * lib/unistr/u8-strlen.c: Likewise.
64403         * lib/unistr/u8-strmblen.c: Likewise.
64404         * lib/unistr/u8-strmbtouc.c: Likewise.
64405         * lib/unistr/u8-strncat.c: Likewise.
64406         * lib/unistr/u8-strncmp.c: Likewise.
64407         * lib/unistr/u8-strncpy.c: Likewise.
64408         * lib/unistr/u8-strnlen.c: Likewise.
64409         * lib/unistr/u8-strpbrk.c: Likewise.
64410         * lib/unistr/u8-strrchr.c: Likewise.
64411         * lib/unistr/u8-strspn.c: Likewise.
64412         * lib/unistr/u8-strstr.c: Likewise.
64413         * lib/unistr/u8-strtok.c: Likewise.
64414         * lib/unistr/u8-to-u16.c: Likewise.
64415         * lib/unistr/u8-to-u32.c: Likewise.
64416         * lib/unistr/u8-uctomb-aux.c: Likewise.
64417         * lib/unistr/u8-uctomb.c: Likewise.
64418         * lib/unitypes.h: Likewise.
64419         * lib/uniwidth.h: Likewise.
64420         * lib/uniwidth/cjk.h: Likewise.
64421         * lib/uniwidth/u16-strwidth.c: Likewise.
64422         * lib/uniwidth/u16-width.c: Likewise.
64423         * lib/uniwidth/u32-strwidth.c: Likewise.
64424         * lib/uniwidth/u32-width.c: Likewise.
64425         * lib/uniwidth/u8-strwidth.c: Likewise.
64426         * lib/uniwidth/u8-width.c: Likewise.
64427         * lib/uniwidth/width.c: Likewise.
64428
64429 2007-10-07  Bruno Haible  <bruno@clisp.org>
64430
64431         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64432         The file is still under LGPL (see modules/inttypes).
64433
64434 2007-10-06  Bruno Haible  <bruno@clisp.org>
64435
64436         * modules/trunc (Dependencies): Add 'extensions'.
64437         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64438         Reported by Ben Pfaff <blp@gnu.org>.
64439
64440 2007-10-06  Bruno Haible  <bruno@clisp.org>
64441
64442         * modules/freopen-tests: New file.
64443         * tests/test-freopen.c: New file.
64444
64445         * modules/fopen-tests: New file.
64446         * tests/test-fopen.c: New file.
64447
64448         * modules/fopen: New file.
64449         * lib/fopen.c: New file.
64450         * m4/fopen.m4: New file.
64451         * modules/freopen: New file.
64452         * lib/freopen.c: New file.
64453         * m4/freopen.m4: New file.
64454         * lib/stdio.in.h (fopen, freopen): New declarations.
64455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64456         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64457         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64458         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64459         * doc/functions/fopen.texi: Mention the 'fopen' module.
64460         * doc/functions/freopen.texi: Mention the 'freopen' module.
64461
64462 2007-10-06  Bruno Haible  <bruno@clisp.org>
64463
64464         * modules/open-tests: New file.
64465         * tests/test-open.c: New file.
64466
64467         * modules/open: New file.
64468         * lib/open.c: New file.
64469         * m4/open.m4: New file.
64470         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64471         lib/open.c does.
64472         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64473         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64474         macros.
64475         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64476         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64477         REPLACE_OPEN.
64478         * doc/functions/open.texi: Mention the 'open' module.
64479
64480 2007-10-04  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/ceill-tests: New file.
64483         * tests/test-ceill.c: New file.
64484
64485         * modules/ceill: New file.
64486         * lib/ceill.c: Replace entire file.
64487         * m4/ceill.m4: New file.
64488         * lib/math.in.h (ceill): Replace declaration.
64489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64490         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64491         * doc/functions/ceill.texi: Mention the 'ceill' module.
64492         * modules/mathl (Files): Remove lib/ceill.c.
64493         (Depends-on): Add ceill.
64494
64495 2007-10-04  Bruno Haible  <bruno@clisp.org>
64496
64497         * modules/ceilf-tests: New file.
64498         * tests/test-ceilf.c: New file.
64499
64500         * modules/ceilf: New file.
64501         * lib/ceil.c: New file.
64502         * lib/ceilf.c: New file.
64503         * m4/ceilf.m4: New file.
64504         * lib/math.in.h (ceilf): New declaration.
64505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64506         HAVE_DECL_CEILF.
64507         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64508         HAVE_DECL_CEILF.
64509         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64510
64511 2007-10-04  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/floorl-tests: New file.
64514         * tests/test-floorl.c: New file.
64515
64516         * modules/floorl: New file.
64517         * lib/floorl.c: Replace entire file.
64518         * m4/floorl.m4: New file.
64519         * lib/math.in.h (floorl): Replace declaration.
64520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64521         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64522         * doc/functions/floorl.texi: Mention the 'floorl' module.
64523         * modules/mathl (Files): Remove lib/floorl.c.
64524         (Depends-on): Add floorl.
64525
64526 2007-10-04  Bruno Haible  <bruno@clisp.org>
64527
64528         * modules/floorf-tests: New file.
64529         * tests/test-floorf.c: New file.
64530
64531         * modules/floorf: New file.
64532         * lib/floor.c: New file.
64533         * lib/floorf.c: New file.
64534         * m4/floorf.m4: New file.
64535         * lib/math.in.h (floorf): New declaration.
64536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64537         HAVE_DECL_FLOORF.
64538         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64539         HAVE_DECL_FLOORF.
64540         * doc/functions/floorf.texi: Mention the 'floorf' module.
64541
64542 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64543             Bruno Haible  <bruno@clisp.org>
64544
64545         Advertise for the Git server instead of the CVS server.
64546         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64547         repository instead of the CVS one.
64548         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64549         about all VCS systems generically.
64550         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64551
64552 2007-10-04  Bruno Haible  <bruno@clisp.org>
64553
64554         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64555         means.
64556         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64557
64558 2007-10-04  Bruno Haible  <bruno@clisp.org>
64559
64560         * modules/truncl-tests: New file.
64561         * tests/test-truncl.c: New file.
64562
64563         * modules/truncl: New file.
64564         * lib/truncl.c: New file.
64565         * m4/truncl.m4: New file.
64566         * lib/math.in.h (truncl): New declaration.
64567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64568         HAVE_DECL_TRUNCL.
64569         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64570         HAVE_DECL_TRUNCL.
64571         * doc/functions/truncl.texi: Mention the 'truncl' module.
64572
64573 2007-10-04  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/truncf-tests: New file.
64576         * tests/test-truncf.c: New file.
64577
64578         * modules/truncf: New file.
64579         * lib/trunc.c: Make paramerizable through USE_* macros.
64580         * lib/truncf.c: New file.
64581         * m4/truncf.m4: New file.
64582         * lib/math.in.h (truncf): New declaration.
64583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64584         HAVE_DECL_TRUNCF.
64585         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64586         HAVE_DECL_TRUNCF.
64587         * doc/functions/truncf.texi: Mention the 'truncf' module.
64588
64589 2007-10-03  Bruno Haible  <bruno@clisp.org>
64590
64591         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64592         augmentation also for tests modules.
64593         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64594         * modules/atexit-tests (Makefile.am): Likewise.
64595         * modules/binary-io-tests (Makefile.am): Likewise.
64596         * modules/c-strcase-tests (Makefile.am): Likewise.
64597         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64598         * modules/canonicalize-tests (Makefile.am): Likewise.
64599         * modules/closein-tests (Makefile.am): Likewise.
64600         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64601         * modules/freadahead-tests (Makefile.am): Likewise.
64602         * modules/fseek-tests (Makefile.am): Likewise.
64603         * modules/fseeko-tests (Makefile.am): Likewise.
64604         * modules/ftell-tests (Makefile.am): Likewise.
64605         * modules/ftello-tests (Makefile.am): Likewise.
64606         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64607         * modules/isnanl-tests (Makefile.am): Likewise.
64608         * modules/lseek-tests (Makefile.am): Likewise.
64609         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64610         * modules/mbscasestr-tests (Makefile.am): Likewise.
64611         * modules/mbschr-tests (Makefile.am): Likewise.
64612         * modules/mbscspn-tests (Makefile.am): Likewise.
64613         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64614         * modules/mbspbrk-tests (Makefile.am): Likewise.
64615         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64616         * modules/mbsrchr-tests (Makefile.am): Likewise.
64617         * modules/mbsspn-tests (Makefile.am): Likewise.
64618         * modules/mbsstr-tests (Makefile.am): Likewise.
64619         * modules/printf-posix-tests (Makefile.am): Likewise.
64620         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64621         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64622         * modules/tsearch-tests (Makefile.am): Likewise.
64623         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64624         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64625         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64626         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64627         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64628         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64629         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64630         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64631         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64632         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64633         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64634         * modules/xstrtol-tests (Makefile.am): Likewise.
64635         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64636         * modules/yesno-tests (Makefile.am): Likewise.
64637
64638 2007-10-03  Bruno Haible  <bruno@clisp.org>
64639
64640         * modules/trunc-tests: New file.
64641         * tests/test-trunc.c: New file.
64642
64643         * modules/trunc: New file.
64644         * lib/trunc.c: New file.
64645         * m4/trunc.m4: New file.
64646         * lib/math.in.h (trunc): New declaration.
64647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64648         HAVE_DECL_TRUNC.
64649         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64650         HAVE_DECL_TRUNC.
64651         * doc/functions/trunc.texi: Mention the 'trunc' module.
64652
64653 2007-10-03  Bruno Haible  <bruno@clisp.org>
64654
64655         * tests/test-fpending.c: New file, mostly copied
64656         from coreutils/lib/t-fpending.c.
64657         * modules/fpending-tests: New file.
64658
64659 2007-10-03  Bruno Haible  <bruno@clisp.org>
64660
64661         Port the stdio extensions to QNX (untested).
64662         * lib/fseterr.c (fseterr): Add support for QNX.
64663         * lib/fbufmode.c (fbufmode): Likewise.
64664         * lib/freadable.c (freadable): Likewise.
64665         * lib/fwritable.c (fwritable): Likewise.
64666         * lib/freading.c (freading): Likewise.
64667         * lib/fwriting.c (fwriting): Likewise.
64668         * lib/freadahead.c (freadahed): Likewise.
64669         * lib/fpurge.c (fpurge): Likewise.
64670         * lib/fseeko.c (rpl_fseeko): Likewise.
64671
64672 2007-10-03  Bruno Haible  <bruno@clisp.org>
64673             Jim Meyering  <jim@meyering.net>
64674             Eric Blake  <ebb9@byu.net>
64675
64676         * doc/relocatable.texi: Use @command instead of @program.
64677
64678 2007-10-02  Jim Meyering  <jim@meyering.net>
64679
64680         Perform one more "_.h" -> ".in.h" substitution.
64681         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64682         instead of unistd_.h here, too.
64683
64684 2007-10-01  Bruno Haible  <bruno@clisp.org>
64685
64686         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64687         Needed for the alloca-opt module.
64688
64689 2007-09-30  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64692         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64693         alloca_.h.
64694         * lib/argz.in.h: Renamed from lib/argz_.h.
64695         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64696         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64697         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64698         byteswap_.h.
64699         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64700         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64701         dirent_.h.
64702         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64703         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64704         fcntl_.h.
64705         * lib/float.in.h: Renamed from lib/float_.h.
64706         * modules/float (Files, Makefile.am): Use float.in.h instead of
64707         float_.h.
64708         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64709         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64710         fnmatch_.h.
64711         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64712         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64713         getopt_.h.
64714         * lib/glob.in.h: Renamed from lib/glob_.h.
64715         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64716         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64717         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64718         iconv_.h.
64719         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64720         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64721         inttypes_.h.
64722         * lib/locale.in.h: Renamed from lib/locale_.h.
64723         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64724         locale_.h.
64725         * lib/math.in.h: Renamed from lib/math_.h.
64726         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64727         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64728         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64729         of netinet_in_.h. Add dependency.
64730         * lib/poll.in.h: Renamed from lib/poll_.h.
64731         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64732         * lib/search.in.h: Renamed from lib/search_.h.
64733         * modules/search (Files, Makefile.am): Use search.in.h instead of
64734         search_.h.
64735         * lib/signal.in.h: Renamed from lib/signal_.h.
64736         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64737         _signal.h.
64738         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64739         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64740         stdbool_.h.
64741         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64742         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64743         stdint_.h.
64744         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64745         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64746         stdio_.h.
64747         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64748         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64749         stdlib_.h.
64750         * lib/string.in.h: Renamed from lib/string_.h.
64751         * modules/string (Files, Makefile.am): Use string.in.h instead of
64752         string_.h.
64753         * doc/gnulib-tool.texi (Initial import): Update.
64754         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64755         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64756         of sys_select_.h. Add dependency.
64757         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64758         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64759         of sys_socket_.h.
64760         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64761         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64762         sys_stat_.h.
64763         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64764         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64765         sys_time_.h.
64766         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64767         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64768         sysexits_.h.
64769         * lib/time.in.h: Renamed from lib/time_.h.
64770         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64771         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64772         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64773         unistd_.h.
64774         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64775         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64776         wchar_.h.
64777         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64778         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64779         wctype_.h.
64780         * build-aux/bootstrap (slurp): Update.
64781         * lib/.cppi-disable: Update.
64782
64783 2007-09-30  Bruno Haible  <bruno@clisp.org>
64784
64785         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64786         Needed on BeOS.
64787
64788 2007-09-30  Bruno Haible  <bruno@clisp.org>
64789
64790         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64791
64792 2007-09-29  Bruno Haible  <bruno@clisp.org>
64793
64794         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64795
64796 2007-09-29  Bruno Haible  <bruno@clisp.org>
64797
64798         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64799         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64800         * build-aux/install-reloc: Compile also areadlink.c.
64801         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64802
64803 2007-09-29  Bruno Haible  <bruno@clisp.org>
64804
64805         * gnulib-tool (func_emit_initmacro_done): Indentation.
64806
64807 2007-09-29  Bruno Haible  <bruno@clisp.org>
64808
64809         * README: Add CVS checkout update instructions.
64810         Info from Bob Proulx <bob@proulx.com>.
64811
64812 2007-09-28  Eric Blake  <ebb9@byu.net>
64813
64814         Provide move-if-change.
64815         * build-aux/move-if-change: New file, based on best practice
64816         rather than any canonical upstream location.
64817
64818 2007-09-28  Jim Meyering  <jim@meyering.net>
64819
64820         Fix canonicalize loop-detection corner case.
64821         Do not attempt to stat the symlink values stored via seen_triple.
64822         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64823         on linux-2.6.18, (but not 2.6.22).
64824         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64825         triple_compare.  The former compares dev,ino,filename, while the latter
64826         would actually stat dirname(filename) when dev and ino were equal.
64827         * lib/hash-triple.c: Install <string.h>.
64828         (STREQ): Define.
64829         (triple_compare_ino_str): New function.
64830         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64831
64832 2007-09-28  Eric Blake  <ebb9@byu.net>
64833
64834         Enforce that AC_REPLACE_FUNCS files exist.
64835         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64836         override check for typos.
64837
64838         Fix test-closein on Solaris 10.
64839         * tests/test-closein.c (main): Don't assume stdin can be inherited
64840         closed on all systems.
64841         * tests/test-closein.sh: Likewise.
64842         Reported by Piotr Tarnowski.
64843
64844 2007-09-28  Jim Meyering  <jim@meyering.net>
64845
64846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64847
64848 2007-09-27  Jim Meyering  <jim@meyering.net>
64849
64850         canonicalize: Avoid a false-positive cycle failure.
64851         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64852         Sort.  Remove cycle-check.
64853         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64854         not cycle-check.h.
64855         (seen_triple): New function.
64856         (canonicalize_filename_mode): Use it instead of cycle-check.
64857         * tests/test-canonicalize.c: Add a test for this bug.
64858         * tests/test-canonicalize.sh: Set up and run the test.
64859
64860         New module, file-set, from coreutils.
64861         * modules/file-set: Define it.
64862         * lib/file-set.c, lib/file-set.h: Implement.
64863
64864         New module, hash-triple, from coreutils.
64865         * modules/hash-triple: Define it.
64866         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64867
64868 2007-09-25  Eric Blake  <ebb9@byu.net>
64869
64870         Fix strerror on Interix.
64871         * lib/string_.h (strerror): Declare replacement.
64872         * doc/functions/strerror.texi (strerror): Document the Interix
64873         shortcoming.
64874         * modules/string (Makefile.am): Support new hooks.
64875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64876         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64877         gl_FUNC_STRERROR_SEPARATE.
64878         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64879         * lib/strerror.c (rpl_strerror): Provide replacement.
64880         * modules/strerror (Depends-on): Add string.
64881         (configure.ac): Detect use of module.
64882         * tests/test-strerror.c: New file.
64883         * modules/strerror-tests: New test module.
64884         * modules/argp (Depends-on): Add strerror.
64885         * modules/error (Depends-on): Likewise.
64886         Reported by Martin Koeppe.
64887
64888 2007-09-24  Bruno Haible  <bruno@clisp.org>
64889
64890         * README: Update git instructions.
64891
64892 2007-09-24  Eric Blake  <ebb9@byu.net>
64893
64894         Revert fpending breakage from 2007-09-08.
64895         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64896         __fpending.c.
64897
64898 2007-09-24  Jim Meyering  <jim@meyering.net>
64899
64900         filenamecat.c: Add a test.
64901         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64902         showing how the function works when DIR is the empty string.
64903
64904 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64905
64906         * tests/test-canonicalize.sh: Turn on executable bit.
64907
64908 2007-09-19  Eric Blake  <ebb9@byu.net>
64909
64910         * README: Update CVS instructions.
64911
64912 2007-09-18  Bruno Haible  <bruno@clisp.org>
64913
64914         * modules/areadlink: New file.
64915         * lib/areadlink.h (areadlink): New declaration.
64916         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64917
64918 2007-09-17  Jim Meyering  <jim@meyering.net>
64919
64920         * lib/savewd.c (ESTALE) [!defined]: Define.
64921         Reported to be required on Interix by Martin Koeppe.
64922
64923 2007-09-17  Bruno Haible  <bruno@clisp.org>
64924
64925         * gnulib-tool (func_version): Use $version.
64926
64927 2007-09-16  Bruno Haible  <bruno@clisp.org>
64928
64929         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64930         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64931         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64932         Reported by Greg Schafer <gschafer@zip.com.au>.
64933
64934 2007-09-15  Bruno Haible  <bruno@clisp.org>
64935
64936         * gnulib-tool (sed): Try a little harder to make bash understand the
64937         alias.
64938         Reported by Bruce Korb <bruce.korb@gmail.com>.
64939
64940 2007-09-13  Eric Blake  <ebb9@byu.net>
64941
64942         * ChangeLog: Remove conflict markers.
64943
64944 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64945
64946         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64947         Reported by Bruno Haible <bruno@clisp.org>.
64948
64949 2007-09-12  Bruno Haible  <bruno@clisp.org>
64950
64951         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64952         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64953         is not defined.
64954
64955 2007-09-12  Eric Blake  <ebb9@byu.net>
64956
64957         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64959         Autoconf definition.
64960         * modules/euidaccess (Depends-on): Add extensions, for
64961         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64962         * modules/fnmatch (Depends-on): Likewise.
64963         * modules/getaddrinfo (Depends-on): Likewise.
64964         * modules/getdelim (Depends-on): Likewise.
64965         * modules/getline (Depends-on): Likewise.
64966         * modules/getsubopt (Depends-on): Likewise.
64967         * modules/gettext (Depends-on): Likewise.
64968         * modules/group-member (Depends-on): Likewise.
64969         * modules/mbchar (Depends-on): Likewise.
64970         * modules/memmem (Depends-on): Likewise.
64971         * modules/mempcpy (Depends-on): Likewise.
64972         * modules/memrchr (Depends-on): Likewise.
64973         * modules/pagealign_alloc (Depends-on): Likewise.
64974         * modules/readutmp (Depends-on): Likewise.
64975         * modules/stpcpy (Depends-on): Likewise.
64976         * modules/stpncpy (Depends-on): Likewise.
64977         * modules/strchrnul (Depends-on): Likewise.
64978         * modules/strndup (Depends-on): Likewise.
64979         * modules/strsep (Depends-on): Likewise.
64980         * modules/strverscmp (Depends-on): Likewise.
64981         * modules/vasprintf (Depends-on): Likewise.
64982         * modules/wcwidth (Depends-on): Likewise.
64983         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64984         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64985         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64987         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64988         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64989         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64990         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64991         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64992         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64994         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64996         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64997         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64998         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64999         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65002         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65005         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65006         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65007         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65009         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65010         so that lock.m4 can be used in gettext without extensions module.
65011
65012 2007-09-11  Bruno Haible  <bruno@clisp.org>
65013
65014         * m4/isc-posix.m4: Remove file.
65015         Suggested by Eric Blake.
65016
65017 2007-09-11  Eric Blake  <ebb9@byu.net>
65018
65019         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65020
65021 2007-09-10  Bruno Haible  <bruno@clisp.org>
65022
65023         * posix-modules: Fix typo in error message.
65024         Reported by Matt <mkraai@beckman.com>.
65025
65026 2007-09-09  Bruno Haible  <bruno@clisp.org>
65027
65028         * doc/functions/getdelim.texi: Update list of platforms lacking the
65029         function.
65030         * doc/functions/getline.texi: Likewise.
65031
65032 2007-09-09  Jim Meyering  <jim@meyering.net>
65033
65034         * lib/hash.c (hash_initialize): Detect calloc failure.
65035         Reported by Bruno Haible.
65036
65037 2007-09-09  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65040         malloc or realloc fails.
65041
65042 2007-09-09  Bruno Haible  <bruno@clisp.org>
65043
65044         * modules/getcwd (Depends-on): Add malloc-posix.
65045         * modules/glob (Depends-on): Likewise.
65046         * modules/putenv (Depends-on): Likewise.
65047         * modules/strdup (Depends-on): Likewise.
65048         * modules/getdelim (Depends-on): Add realloc-posix.
65049         * modules/read-file (Depends-on): Likewise.
65050
65051 2007-09-09  Bruno Haible  <bruno@clisp.org>
65052
65053         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65054         (gl_FUNC_MALLOC_POSIX): Require it.
65055         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65056         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65057         * modules/realloc (Files): Add m4/malloc.m4.
65058         * modules/calloc (Files): Likewise.
65059
65060 2007-09-09  Bruno Haible  <bruno@clisp.org>
65061
65062         * modules/malloc-posix: New file.
65063         * modules/malloc (Depends-on): Add malloc-posix.
65064         * lib/malloc.c: Include errno.h.
65065         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65066         and a POSIX-compatible malloc into a single function. Set ENOMEM
65067         when returning NULL.
65068         * m4/malloc.m4: New file.
65069         * doc/functions/malloc.texi: Mention the malloc-posix module.
65070         * lib/stdlib_.h (malloc): New declaration.
65071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65072         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65073         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65074         and HAVE_MALLOC_POSIX.
65075
65076 2007-09-09  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/realloc-posix: New file.
65079         * modules/realloc (Depends-on): Add realloc-posix.
65080         * lib/realloc.c: Include errno.h.
65081         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65082         and a POSIX-compatible realloc into a single function. Set ENOMEM
65083         when returning NULL.
65084         * m4/realloc.m4: New file.
65085         * doc/functions/realloc.texi: Mention the realloc-posix module.
65086         * lib/stdlib_.h (realloc): New declaration.
65087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65088         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65089         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65090         and HAVE_REALLOC_POSIX.
65091
65092 2007-09-09  Bruno Haible  <bruno@clisp.org>
65093
65094         * modules/calloc-posix: New file.
65095         * modules/calloc (Depends-on): Add calloc-posix.
65096         * lib/calloc.c: Include errno.h.
65097         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65098         and a POSIX-compatible calloc into a single function. Set ENOMEM
65099         when returning NULL.
65100         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65101         * doc/functions/calloc.texi: Mention the calloc-posix module.
65102         * lib/stdlib_.h (calloc): New declaration.
65103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65104         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65105         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65106         and HAVE_CALLOC_POSIX.
65107
65108 2007-09-09  Bruno Haible  <bruno@clisp.org>
65109
65110         Allow for modules to show an arbitrary notice.
65111         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65112         * gnulib-tool: New option --extract-notice.
65113         (func_usage): Document it.
65114         (sed_extract_prog): Update.
65115         (func_get_notice): New function.
65116         (func_modules_notice): New function.
65117         (func_import, func_create_testdir): Invoke it.
65118         Suggested by Jim Meyering.
65119
65120 2007-09-09  Bruno Haible  <bruno@clisp.org>
65121
65122         * gnulib-tool: New options --verbose, --quiet.
65123         (func_usage): Document them.
65124         (verbose): New variable.
65125         (func_execute_command): New function.
65126         (func_import): Don't show the module list and the file list if
65127         $verbose < 0.
65128         (func_create_testdir): Likewise. Use func_execute_command.
65129         (func_create_megatestdir): Use func_execute_command.
65130
65131 2007-09-08  Bruno Haible  <bruno@clisp.org>
65132
65133         * gnulib-tool (func_import): Prefer rsync over wget when available,
65134         for fetching the PO files.
65135
65136 2007-09-08  Bruno Haible  <bruno@clisp.org>
65137
65138         * posix-modules: New file. Portions copied from gnulib-tool.
65139         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65140
65141 2007-09-08  Jim Meyering  <jim@meyering.net>
65142
65143         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65144         * lib/fpending.h: Rename from __fpending.h.
65145         * lib/fpending.c: Rename from __fpending.c.
65146         Include "fpending.h", not "__fpending.h".
65147         * lib/__fpending.h, lib/__fpending.c: Remove files.
65148         * modules/fpending (Files): Reflect new file names.
65149         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65150
65151 2007-09-08  Bruno Haible  <bruno@clisp.org>
65152
65153         * m4/inttypes-h.m4: Remove stub file.
65154
65155 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65156
65157         * doc/headers/stdint.texi: Discuss #include_next issue.
65158
65159 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65162
65163 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65164
65165         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65166         in variable name.
65167
65168 2007-09-03  Jim Meyering  <jim@meyering.net>
65169
65170         New module: git-version-gen.
65171         * modules/git-version-gen: New file.
65172
65173         Import changes from coreutils for bootstrap script.
65174
65175         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65176
65177         bootstrap: uses rsync to download the .po files
65178         * build-aux/bootstrap (po_download_command_format): New global.
65179         (download_po_files): Use rsync.
65180         (update_po_files): Don't remove .po files after download,
65181         so future rsync runs can take advantage of the copies.
65182
65183         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65184
65185         Solve the unnecessary-.po-file-regeneration problem once and for all.
65186         * build-aux/bootstrap (download_po_files): New function, renamed from
65187         get_translations.  Now, downloads, but doesn't update LINGUAS.
65188         (update_po_files): New function.
65189
65190         bootstrap: Ignore more.
65191         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65192         uniwidth to e.g., lib/.gitignore.
65193         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65194
65195         * build-aux/bootstrap: New setting: vc_ignore.
65196         (insert_sorted_if_absent): Create $file if absent.
65197         Adapt to new, possibly empty, list: $vc_ignore.
65198
65199         bootstrap: generate more ignorable names
65200         * build-aux/bootstrap (slurp): When generating ignorable names,
65201         also map .sin to .sed, .gperf to .c, and .y to .c.
65202
65203 2007-09-03  Jim Meyering  <jim@meyering.net>
65204
65205         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65206         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65207
65208 2007-09-02  Bruno Haible  <bruno@clisp.org>
65209
65210         Fix mis-recognition of 'mcs' on QNX 6.
65211         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65212         output contains the string "Mono".
65213         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65214         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65215
65216 2007-09-01  Bruno Haible  <bruno@clisp.org>
65217
65218         Fix collision between uniwidth/* and linebreak modules.
65219         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65220         u32_width): Remove declarations.
65221         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65222         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65223         streq3, streq2, streq1, streq0): Remove functions.
65224         (STREQ): Remove macro.
65225         (is_cjk_encoding): Remove function.
65226         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65227         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65228         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65229         * NEWS: Document the change.
65230
65231 2007-09-01  Bruno Haible  <bruno@clisp.org>
65232
65233         * lib/streq.h: Add double-inclusion guard.
65234
65235 2007-09-01  Karl Berry  <karl@gnu.org>
65236
65237         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65238
65239 2007-08-28  Jim Meyering  <jim@meyering.net>
65240
65241         Rename mreadlink_with_size to areadlink_with_size.
65242         * NEWS: Document the change.
65243         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65244         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65245         * lib/mreadlink.h: Rename this to...
65246         * lib/areadlink.h: ...this.
65247         * modules/mreadlink-with-size: Rename this to...
65248         * modules/areadlink-with-size: ...this.
65249         * lib/canonicalize.c: Reflect the renaming.
65250         * modules/canonicalize: Likewise.
65251
65252 2007-08-26  Bruno Haible  <bruno@clisp.org>
65253
65254         * gnulib-tool (func_import): When deciding which files to remove,
65255         consider also dangling symbolic links.
65256         Reported by Eric Blake.
65257
65258 2007-08-26  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65261
65262 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65263
65264         * lib/readline.c: Don't include getline.h, the prototype is now
65265         found in stdio.h.
65266
65267 2007-08-23  Jim Meyering  <jim@meyering.net>
65268
65269         Getdelim touchup.
65270         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65271         around the funlockfile call, since funlockfile never sets errno.
65272         Don't set errno upon failed realloc.
65273
65274 2007-08-22  Eric Blake  <ebb9@byu.net>
65275
65276         Getline touchups.
65277         * lib/getdelim.c (getdelim): Revert regression that required *n to
65278         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65280         getdelim, rather than whether implementation is missing.
65281         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65282         * lib/stdio_.h (getline): Also declare if replacement is
65283         required.
65284         * doc/functions/getdelim.texi: New file.
65285         * doc/functions/getline.texi: Likewise.
65286         * doc/gnulib.texi (Function Substitutes): Add new files.
65287         Reported by Bruno Haible.
65288
65289 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65290
65291         * users.txt: Add Guile.
65292
65293 2007-08-22  Eric Blake  <ebb9@byu.net>
65294
65295         * tests/test-getdelim.c (main): Use remove, not unlink.
65296         * tests/test-getline.c (main): Likewise.
65297
65298         Move getline and getdelim into stdio.h, per POSIX 200x.
65299         * modules/getline (Files): Remove getline.h.
65300         (Depends-on): Add stdio.
65301         (configure.ac): Add module indicator.
65302         * modules/getdelim (Files): Remove getdelim.h.
65303         (Depends-on): Add stdio.
65304         (configure.ac): Add module indicator.
65305         * modules/stdio (Makefile.am): Work with new indicators.
65306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65309         * lib/getdelim.h: Delete.
65310         * lib/getline.h: Delete.
65311         * lib/stdio_.h (getdelim, getline): Declare.
65312         * modules/getdelim-tests: New module.
65313         * modules/getline-tests: Likewise.
65314         * tests/test-getdelim.c: New file.
65315         * tests/test-getline.c: Likewise.
65316         * NEWS: Document the change.
65317         * lib/getline.c: Update choice of header.
65318         * lib/csharpcomp.c: Likewise.
65319         * lib/getpass.c: Likewise.
65320         * lib/javacomp.c: Likewise.
65321         * lib/javaversion.c: Likewise.
65322         * lib/yesno.c: Likewise.
65323         * lib/getdelim.c: Likewise.
65324         (getdelim): Set errno on failure, and avoid memory leak.
65325
65326 2007-08-19  Bruno Haible  <bruno@clisp.org>
65327
65328         * modules/closein (Depends-on): Add freadahead.
65329         * lib/closein.c: Include freadahead.h.
65330         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65331         is zero.
65332
65333 2007-08-19  Bruno Haible  <bruno@clisp.org>
65334
65335         * modules/freadahead-tests: New file.
65336         * tests/test-freadahead.sh: New file.
65337         * tests/test-freadahead.c: New file.
65338
65339         * modules/freadahead: New file.
65340         * lib/freadahead.h: New file.
65341         * lib/freadahead.c: New file.
65342         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65343         fbufmode, fpurge, freadable, fwritable.
65344
65345 2007-08-19  Eric Blake  <ebb9@byu.net>
65346
65347         Test yesno in combination with closein.
65348         * lib/yesno.c (yesno): Document use of stdin.
65349         * modules/yesno-tests (Files): New module.
65350         * tests/test-yesno.c (main): New file.
65351         * tests/test-yesno.sh: Likewise.
65352
65353 2007-08-19  Bruno Haible  <bruno@clisp.org>
65354
65355         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65356         * lib/fseeko.c (rpl_fseeko): Likewise.
65357         * lib/fseterr.c (fseterr): Likewise.
65358
65359 2007-08-19  Bruno Haible  <bruno@clisp.org>
65360
65361         * tests/test-lseek.c (main): Disable a test for BeOS.
65362         * doc/functions/lseek.texi: Document the BeOS bug.
65363
65364 2007-08-19  Bruno Haible  <bruno@clisp.org>
65365             Eric Blake  <ebb9@byu.net>
65366
65367         * lib/lseek.c: Include <sys/stat.h>.
65368         (rpl_lseek): Add workaround code also for Unix platforms.
65369         Needed for BeOS.
65370         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65371         * doc/functions/lseek.texi: Document BeOS definiency.
65372
65373 2007-08-18  Bruno Haible  <bruno@clisp.org>
65374
65375         * modules/fstrcmp-tests: New file.
65376         * tests/test-fstrcmp.c: New file.
65377
65378 2007-08-18  Bruno Haible  <bruno@clisp.org>
65379
65380         * modules/fstrcmp: New file, from GNU gettext with modifications.
65381         * lib/fstrcmp.h: New file, from GNU gettext.
65382         * lib/fstrcmp.c: New file, from GNU gettext.
65383         * MODULES.html.sh (String handling): Add fstrcmp.
65384
65385 2007-08-18  Bruno Haible  <bruno@clisp.org>
65386
65387         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65388         'bool'.
65389         (diag, compareseq): Remove const from the ctxt argument.
65390         (USE_HEURISTIC): Undefine at the end.
65391
65392 2007-08-18  Jim Meyering  <jim@meyering.net>
65393
65394         New file: lib/idcache.h
65395         * NEWS: Mention the addition.
65396         * modules/idcache (Files): Add lib/idcache.h
65397         * lib/idcache.c: Include "idcache.h".
65398         Don't include <sys/types.h>.
65399         Add a FIXME comment.
65400         Move file-scoped "static" declarations to the top.
65401         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65402
65403 2007-08-17  Bruno Haible  <bruno@clisp.org>
65404         and Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * MODULES.html.sh: Add diffseq.
65407         * modules/diffseq: New file.
65408         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65409         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65410
65411 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65412
65413         Import changes from coreutils for bootstrap script.
65414
65415         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         * build-aux/bootstrap (slurp): Work even in environments where
65418         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65419         current code does not slurp files whose names start with ".", and
65420         this looks like it might be a troublesome area.
65421
65422         2007-07-11  Jim Meyering  <jim@meyering.net>
65423
65424         If there's a GPL vN copyright comment, require that N == 3.
65425
65426         2007-07-08  Jim Meyering  <jim@meyering.net>
65427
65428         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65429         * build-aux/bootstrap (mam_template): Move definition out of loop.
65430
65431         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65432
65433         * build-aux/bootstrap (symlink_to_dir): Rename function from
65434         symlink_to_gnulib.  Add a directory parameter.  Update all
65435         callers.
65436         (cp_mark_as_generated): Also check for -- and link to -- files in
65437         gl/.
65438
65439         2007-07-08  Jim Meyering  <jim@meyering.net>
65440
65441         Adapt to deeper hierarchy in gnulib.
65442         * build-aux/bootstrap (symlink_to_dir): If the destination
65443         directory doesn't exist, create it. This is required at least for
65444         "lib/uniwidth/cjk.h".
65445
65446         2007-05-15  Jim Meyering  <jim@meyering.net>
65447
65448         * build-aux/bootstrap: Now that generated Makefile.am files
65449         are no longer under version control, they must be created at
65450         bootstrap time.
65451
65452 2007-08-14  Ben Pfaff  <blp@gnu.org>
65453
65454         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65455
65456 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65457
65458         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65459         given the changes below.
65460         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65461         even on hosts that have padding bits beyond the supported 64.
65462
65463 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65466         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65467         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65468         depends on it.
65469         (xstrtol_error): Remove.
65470         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65471         but with a different signature.
65472         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65473         * lib/xstrtol-error.c: Include exitfail.h.
65474         (xstrtol_fatal): New function, with a different signature from the
65475         old xstrtol_error, so that the caller need not worry about passing
65476         in an exit status, or about storage management of the option argument.
65477         (xstrtol_error): Now a static function.  Redo signature to
65478         implement xstrtol_fatal.  Output the correct number of hyphens in
65479         front of the option so that the caller need not worry about
65480         storage management.
65481         (N_): New macro.
65482         (_): Remove; not used now.
65483         * modules/xstrtol: Depend on getopt.
65484         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65485         of old STRTOL_FATAL_ERROR macro.
65486         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65487         of test program.
65488         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65489         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65490
65491 2007-08-08  Eric Blake  <ebb9@byu.net>
65492
65493         * lib/xstrtol-error.c: Add missing include.
65494
65495         Move xstrtol messages into gnulib domain, when --pobase is used.
65496         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65497         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65498         * modules/xstrtol (Files): Distribute new file.
65499         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65500         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65501         * tests/test-xstrtol.c: ...into new file.
65502         * tests/test-xstrtoul.c: Also test xstrtoul.
65503         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65504         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65505         * tests/test-xstrtol.sh: Drive the tests.
65506         * tests/test-xstrtoimax.sh: Likewise.
65507         * tests/test-xstrtoumax.sh: Likewise.
65508         * modules/xstrtol-tests: New module.
65509         * modules/xstrtoimax-tests: Likewise.
65510         * modules/xstrtoumax-tests: Likewise.
65511
65512 2007-08-08  Jim Meyering  <jim@meyering.net>
65513
65514         New function: mfile_name_concat.
65515         * lib/filenamecat.c (mfile_name_concat): New function, just like
65516         file_name_concat, but return NULL upon failure rather than exiting
65517         with a diagnostic.
65518         * lib/filenamecat.h: Declare it.
65519
65520 2007-08-07  Bruno Haible  <bruno@clisp.org>
65521
65522         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65523         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65524         warning from gcc.
65525         Reported by Eric Blake.
65526
65527 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65528
65529         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65530         * modules/crypto/arcfour (License): Likewise.
65531         * modules/crypto/des-tests (License): Likewise.
65532         * modules/crypto/gc-arctwo-tests (License): Likewise.
65533         * modules/crypto/gc-des-tests (License): Likewise.
65534         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65535         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65536         * modules/crypto/gc-md2-tests (License): Likewise.
65537         * modules/crypto/gc-md4-tests (License): Likewise.
65538         * modules/crypto/gc-md5-tests (License): Likewise.
65539         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65540         * modules/crypto/gc-rijndael-tests (License): Likewise.
65541         * modules/crypto/gc-sha1-tests (License): Likewise.
65542         * modules/crypto/gc-tests (License): Likewise.
65543         * modules/crypto/hmac-md5 (License): Likewise.
65544         * modules/crypto/hmac-sha1 (License): Likewise.
65545         * modules/crypto/md2-tests (License): Likewise.
65546         * modules/crypto/md4-tests (License): Likewise.
65547         * modules/crypto/md5 (License): Likewise.
65548         * modules/crypto/rijndael (License): Likewise.
65549         * modules/crypto/sha1 (License): Likewise.
65550         * modules/memxor (License): Likewise.
65551
65552 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65553         and Bruno Haible  <bruno@clisp.org>
65554
65555         * NEWS: Describe interface changes to human, xstrtol.
65556         * lib/human.h: Include <xstrtol.h>.
65557         (human_options): Return enum strtol_error, not int.  Remove
65558         bool arg; take int * instead.
65559         * lib/human.c: Don't include "gettext.h".
65560         (_): Remove; no longer used.
65561         Don't include <xstrtol.h>, since human.h does it.
65562         (human_options): Adjust to abovementioned interface changes.
65563         Do not report error to stderr; that's now the caller's
65564         responsibility.
65565         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65566         interface change.
65567         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65568         Str, Argument_type_string.  All uses changed.  Put " argument"
65569         in diagnostics to make them clearer.  Change wording of suffix
65570         message for clarity.
65571         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65572         Argument_type_string.
65573         (STRTOL_FATAL_WARN): Remove; no longer used.
65574         * modules/human (Depends-on): Remove gettext-h.
65575
65576 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65577
65578         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65579
65580 2007-07-31  Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65583         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65584         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65585
65586 2007-07-31  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65589         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65590
65591 2007-07-30  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65594         * modules/c-ctype (License): Likewise.
65595         * modules/c-strcase (License): Likewise.
65596         * modules/check-version (License): Likewise.
65597         * modules/iconv (License): Likewise.
65598         * modules/iconv_open (License): Likewise.
65599         * modules/read-file (License): Likewise.
65600         * modules/striconv (License): Likewise.
65601         * modules/strverscmp (License): Likewise.
65602         * modules/vasprintf (License): Likewise.
65603         * modules/crypto/des (License): Likewise.
65604         * modules/crypto/gc (License): Likewise.
65605         * modules/crypto/gc-arcfour (License): Likewise.
65606         * modules/crypto/gc-arctwo (License): Likewise.
65607         * modules/crypto/gc-des (License): Likewise.
65608         * modules/crypto/gc-hmac-md5 (License): Likewise.
65609         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65610         * modules/crypto/gc-md2 (License): Likewise.
65611         * modules/crypto/gc-md4 (License): Likewise.
65612         * modules/crypto/gc-md5 (License): Likewise.
65613         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65614         * modules/crypto/gc-random (License): Likewise.
65615         * modules/crypto/gc-rijndael (License): Likewise.
65616         * modules/crypto/gc-sha1 (License): Likewise.
65617         * modules/crypto/md2 (License): Likewise.
65618         * modules/crypto/md4 (License): Likewise.
65619
65620 2007-07-30  Jim Meyering  <jim@meyering.net>
65621
65622         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65623         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65624         it has valid stat data.  This bug would cause du not to count the
65625         sizes of inaccessible directories.
65626         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65627         in <http://bugzilla.redhat.com/250077>.
65628
65629 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65630             Bruno Haible  <bruno@clisp.org>
65631
65632         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65633         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65634         #include_next, gives a diagnostic about it, but reports no error in
65635         the exit code.
65636         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65637
65638 2007-07-24  Ben Pfaff  <blp@gnu.org>
65639
65640         Improve name: "count-one-bits" is better than "popcount".
65641         * MODULES.html.sh: Update name.
65642         * lib/popcount.h: Renamed lib/count-one-bits.h.
65643         (popcount): Renamed count_one_bits.
65644         (popcountl): Renamed count_one_bits_l.
65645         (popcountll): Renamed count_one_bits_ll.
65646         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65647         * modules/popcount: Renamed module/count-one-bits.
65648         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65649         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65650
65651 2007-07-23  Ben Pfaff  <blp@gnu.org>
65652
65653         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65654         better code generation, and add U to large constants to avoid
65655         warnings, in non-GCC case.
65656         Suggested by Bruno Haible.
65657
65658 2007-07-23  Ben Pfaff  <blp@gnu.org>
65659
65660         * lib/popcount.h: Use verify_true instead of if...abort.
65661         * modules/popcount: Depend on verify module.
65662         Suggested by Jim Meyering.
65663
65664 2007-07-23  Bruno Haible  <bruno@clisp.org>
65665
65666         * gnulib-tool (func_import): Create a .cvsignore file also when the
65667         directory is not yet in CVS but the toplevel directory is. When
65668         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65669         Reported by Karl Berry.
65670
65671 2007-07-22  Ben Pfaff  <blp@gnu.org>
65672
65673         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65674         case.
65675         Suggested by Eric Blake.
65676
65677 2007-07-22  Ben Pfaff  <blp@gnu.org>
65678
65679         New module: popcount.
65680         * MODULES.html.sh: Add popcount.
65681         * modules/popcount: New file.
65682         * modules/popcount-tests: New file.
65683         * tests/test-popcount.c: New file.
65684         * lib/popcount.h: New file.
65685         * m4/popcount.m4: New file.
65686
65687 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * build-aux/announce-gen: Update to GPLv3.
65690
65691         * build-aux/config.guess: Update from config.
65692
65693 2007-07-21  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65696         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65697
65698 2007-07-20  Jim Meyering  <jim@meyering.net>
65699
65700         * check-module: Diagnose a self-dependency.
65701
65702 2007-07-19  Bruno Haible  <bruno@clisp.org>
65703
65704         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65705         empty.
65706         Reported by Eric Blake.
65707
65708 2007-07-18  Bruno Haible  <bruno@clisp.org>
65709
65710         * gnulib-tool: New options --po-base, --po-domain.
65711         (func_usage): Document them.
65712         (pobase, po_domain): New variables.
65713         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65714         DEFAULT_TEXT_DOMAIN.
65715         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65716         (func_import): Consider pobase and po_domain. Create a po/ directory.
65717         (func_create_testdir): Set pobase and po_domain to empty.
65718         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65719         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65720
65721 2007-07-18  Bruno Haible  <bruno@clisp.org>
65722
65723         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65724         EXTRA_DIST augmentation for files in build-aux/.
65725
65726 2007-07-16  Bruno Haible  <bruno@clisp.org>
65727
65728         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65729         * modules/getdelim (License): Likewise.
65730
65731 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65732
65733         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65734         * modules/d-type (License): Likewise.
65735         * modules/extensions (License): Likewise.
65736         * modules/fnmatch (License): Likewise.
65737         * modules/fseeko (License): Likewise.
65738         * modules/getaddrinfo (License): Likewise.
65739         * modules/getline (License): Likewise.
65740         * modules/getlogin_r (License): Likewise.
65741         * modules/getpass (License): Likewise.
65742         * modules/gettimeofday (License): Likewise.
65743         * modules/glob (License): Likewise.
65744         * modules/inet_ntop (License): Likewise.
65745         * modules/malloc (License): Likewise.
65746         * modules/malloca (License): Likewise.
65747         * modules/memmem (License): Likewise.
65748         * modules/mempcpy (License): Likewise.
65749         * modules/memset (License): Likewise.
65750         * modules/minmax (License): Likewise.
65751         * modules/mktime (License): Likewise.
65752         * modules/netinet_in (License): Likewise.
65753         * modules/pathmax (License): Likewise.
65754         * modules/poll (License): Likewise.
65755         * modules/regex (License): Likewise.
65756         * modules/snprintf (License): Likewise.
65757         * modules/stdbool (License): Likewise.
65758         * modules/stdint (License): Likewise.
65759         * modules/stdio (License): Likewise.
65760         * modules/strcase (License): Likewise.
65761         * modules/strcasestr (License): Likewise.
65762         * modules/strdup (License): Likewise.
65763         * modules/string (License): Likewise.
65764         * modules/strndup (License): Likewise.
65765         * modules/strnlen (License): Likewise.
65766         * modules/strpbrk (License): Likewise.
65767         * modules/strptime (License): Likewise.
65768         * modules/strsep (License): Likewise.
65769         * modules/sys_select (License): Likewise.
65770         * modules/sys_socket (License): Likewise.
65771         * modules/sys_stat (License): Likewise.
65772         * modules/sys_time (License): Likewise.
65773         * modules/time (License): Likewise.
65774         * modules/time_r (License): Likewise.
65775         * modules/timegm (License): Likewise.
65776         * modules/unistd (License): Likewise.
65777         * modules/vsnprintf (License): Likewise.
65778         * modules/wctype (License): Likewise.
65779
65780 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65781
65782         * modules/argz (License): LGPLv2+.
65783
65784 2007-07-15  Karl Berry  <karl@gnu.org>
65785
65786         * doc/gnulib.texi: revise node structure per new fdl.texi.
65787
65788 2007-07-14  Bruno Haible  <bruno@clisp.org>
65789
65790         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65791         the output file.
65792         * lib/uniname/uninames.h: Regenerated.
65793
65794 2007-07-14  Karl Berry  <karl@gnu.org>
65795
65796         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65797         omitting sectioning and index commands.
65798
65799 2007-07-13  Bruno Haible  <bruno@clisp.org>
65800
65801         New gnulib-tool option --more-symlinks.
65802         * gnulib-tool (func_usage): Document --more-symlinks.
65803         (do_copyrights): New variable.
65804         Recognize option --more-symlinks.
65805         (func_import): Don't add a copyright notice transform to
65806         sed_transform_lib_file if do_copyrights is empty.
65807
65808 2007-07-13  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/vasnprintf.c (decimal_point_char): Define also if
65811         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65812         && !NEED_PRINTF_DIRECTIVE_A.
65813         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65814         Gary V. Vaughan <gary@gnu.org>.
65815
65816 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * lib/inttypes_.h: Undo previous change, since it was fixed
65819         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65820
65821 2007-07-13  Bruno Haible  <bruno@clisp.org>
65822
65823         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65824         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65825
65826 2007-07-13  Jim Meyering  <jim@meyering.net>
65827
65828         df: Don't fail for Tru64's "file-on-file mount".
65829         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65830         so we fall through and use statfs instead.  Details here:
65831         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65832         Reported by Albert Chin.
65833
65834 2007-07-13  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65837         * modules/configmake (License): Likewise.
65838         * modules/gettext (License): Likewise.
65839         * modules/gettext-h (License): Likewise.
65840         * modules/include_next (License): Likewise.
65841         * modules/link-warning (License): Likewise.
65842         * modules/localcharset (License): Likewise.
65843         * modules/localename (License): Likewise.
65844         * modules/lock (License): Likewise.
65845         * modules/relocatable-lib-lgpl (License): Likewise.
65846         * modules/size_max (License): Likewise.
65847         * modules/vasnprintf (License): Likewise.
65848         * modules/wchar (License): Likewise.
65849         * modules/xsize (License): Likewise.
65850
65851 2007-07-13  Bruno Haible  <bruno@clisp.org>
65852
65853         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65854         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65855
65856 2007-07-12  Bruno Haible  <bruno@clisp.org>
65857
65858         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65859         in the modules files.
65860
65861 2007-07-11  Karl Berry  <karl@gnu.org>
65862
65863         * MODULES.html.sh (func_module): use
65864          sed -e '\|^'"${includefile}"'$|d'
65865          instead of /.../d, to avoid errors on $includefile's containing /.
65866
65867 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65868
65869         * gnulib-tool (func_import): Avoid duplication of --avoid
65870         statements
65871         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65872         names to `_' in variable names.
65873
65874 2007-07-10  Eric Blake  <ebb9@byu.net>
65875
65876         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65877         * NEWS: Document this change.
65878
65879 2007-07-08  Bruno Haible  <bruno@clisp.org>
65880
65881         Update to Unicode 5.0.
65882         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65883         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65884         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65885         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65886         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65887         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65888         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65889         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65890         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65891         U+10A3F, U+1D242..U+1D244.
65892         (nonspacing_table_ind): Update.
65893         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65894         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65895
65896 2007-07-08  Bruno Haible  <bruno@clisp.org>
65897
65898         Update to Unicode 5.0.
65899         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65900         code transform. Extend the name index field of unicode_name_to_code and
65901         unicode_code_to_name from 16 to 24 bits.
65902         * lib/uniname/uniname.c (unicode_character_name,
65903         unicode_name_character): Add the range 0x12xxx to the code transform.
65904         * lib/uniname/uninames.h: Regenerated.
65905         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65906
65907 2007-07-07  Bruno Haible  <bruno@clisp.org>
65908
65909         * modules/wcwidth-tests: New file.
65910         * tests/test-wcwidth.c: New file.
65911
65912         Work around MacOS X wcwidth() bug.
65913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65914         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65915         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65916         original wcwidth in non-UTF-8 locales.
65917         * modules/wcwidth (Depends-on): Add localcharset, streq,
65918         uniwidth/width.
65919         * doc/functions/wcwidth.texi: Update.
65920
65921 2007-07-07  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65924         (wcwidth): New declaration.
65925         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65926         macros.
65927         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65928         here. Prepare for creating <wchar.h> unconditionally.
65929         * modules/wchar (Depends-on): Add link-warning.
65930         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65931         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65932         * lib/wcwidth.h: Remove file.
65933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65934         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65935         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65936         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65937         (Include): Replace wcwidth.h with <wchar.h>.
65938         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65939         * lib/mbchar.h: Don't include wcwidth.h.
65940         * lib/mbswidth.c: Likewise.
65941         * NEWS: Mention the change.
65942
65943 2007-07-07  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65946         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65947         definition with an external declaration.
65948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65949         defined as a function. Remove AC_C_INLINE requirement.
65950         * modules/wcwidth (Files): Add lib/wcwidth.c.
65951         (Makefile.am): Remove redundant statement.
65952
65953 2007-07-07  Bruno Haible  <bruno@clisp.org>
65954
65955         * MODULES.html.sh (Unicode string functions): Add the new modules.
65956
65957         * tests/uniwidth/test-u32-strwidth.c: New file.
65958         * modules/uniwidth/u32-strwidth-tests: New file.
65959
65960         * lib/uniwidth/u32-strwidth.c: New file.
65961         * modules/uniwidth/u32-strwidth: New file.
65962
65963         * tests/uniwidth/test-u16-strwidth.c: New file.
65964         * modules/uniwidth/u16-strwidth-tests: New file.
65965
65966         * lib/uniwidth/u16-strwidth.c: New file.
65967         * modules/uniwidth/u16-strwidth: New file.
65968
65969         * tests/uniwidth/test-u8-strwidth.c: New file.
65970         * modules/uniwidth/u8-strwidth-tests: New file.
65971
65972         * lib/uniwidth/u8-strwidth.c: New file.
65973         * modules/uniwidth/u8-strwidth: New file.
65974
65975         * tests/uniwidth/test-u32-width.c: New file.
65976         * modules/uniwidth/u32-width-tests: New file.
65977
65978         * lib/uniwidth/u32-width.c: New file.
65979         * modules/uniwidth/u32-width: New file.
65980
65981         * tests/uniwidth/test-u16-width.c: New file.
65982         * modules/uniwidth/u16-width-tests: New file.
65983
65984         * lib/uniwidth/u16-width.c: New file.
65985         * modules/uniwidth/u16-width: New file.
65986
65987         * tests/uniwidth/test-u8-width.c: New file.
65988         * modules/uniwidth/u8-width-tests: New file.
65989
65990         * lib/uniwidth/u8-width.c: New file.
65991         * modules/uniwidth/u8-width: New file.
65992
65993         * tests/uniwidth/test-uc_width.c: New file.
65994         * modules/uniwidth/width-tests: New file.
65995
65996         * lib/uniwidth/width.c: New file, from GNU libiconv.
65997         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65998         * modules/uniwidth/width: New file.
65999
66000         * lib/uniwidth.h: New file, from GNU libiconv.
66001         * modules/uniwidth/base: New file.
66002
66003 2007-07-07  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/uniname.h: New file, from GNU gettext.
66006         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66007         * lib/uniname/uninames.h: New file, from GNU gettext.
66008         * lib/uniname/uniname.c: New file, from GNU gettext.
66009         * tests/uniname/test-uninames.sh: New file.
66010         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66011         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66012         * modules/uniname/base: New file.
66013         * modules/uniname/uniname: New file.
66014         * modules/uniname/uniname-tests: New file.
66015         * MODULES.html.sh (Unicode string functions): Add the new modules.
66016
66017 2007-07-06  Bruno Haible  <bruno@clisp.org>
66018
66019         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66020
66021 2007-07-06  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66024         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66025         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66026         include <sys/time.h>.
66027         Reported by Eric Blake.
66028
66029 2007-07-06  Eric Blake  <ebb9@byu.net>
66030
66031         Fix testing canonicalize on cygwin.
66032         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66033         Revert patch from 2007-06-19.
66034         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66035         canonicalize module is also in use.
66036         * tests/test-canonicalize.c: New file.
66037         * tests/test-canonicalize.sh: Likewise.
66038         * modules/canonicalize-tests: Likewise.
66039
66040 2007-07-06  Jim Meyering  <jim@meyering.net>
66041
66042         * lib/getugroups.c (getugroups): Detect getgrent failure.
66043         Adjust comment to reflect reality: this function may return -1.
66044
66045 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66046
66047         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66048         the new TP address.
66049         (usage): Fix typo
66050         (gnulib_mk): New variable.
66051
66052 2007-07-05  Jim Meyering  <jim@meyering.net>
66053
66054         Don't let endgrent clobber errno, no matter how improbable.
66055         * lib/getugroups.c (getugroups): Save and restore errno around
66056         endgrent call.
66057
66058         Close the group DB even when failing with 2^31 or more members.
66059         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66060
66061 2007-07-04  Jim Meyering  <jim@meyering.net>
66062
66063         * lib/getugroups.h: New file.
66064         * lib/getugroups.c: Include "getugroups.h".
66065         Remove uses of "register" keyword.
66066         Move local variable, "cp", down into scope where used.
66067         Give "username" parameter the "const" attribute.
66068         * modules/getugroups (Files): Add lib/getugroups.h
66069
66070 2007-07-04  Karl Berry  <karl@gnu.org>
66071
66072         * MODULES.html.sh (func_all_modules): Complete rename of
66073         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66074
66075 2007-07-02  Bruno Haible  <bruno@clisp.org>
66076
66077         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66078         mode, when inttypes.h comes from gnulib.
66079         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66080
66081 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66082
66083         * NEWS: Mention lgpl module name change.
66084
66085         * modules/lgpl-2.1: Renamed from lgpl.
66086
66087         * NEWS: Mention gpl module name change.
66088
66089         * modules/gpl-3.0: New file, based on gpl-2.0.
66090
66091         * modules/gpl-2.0: Renamed from gpl.
66092
66093         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66094         doc/gpl-2.0.texi.
66095
66096 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66099         #define __STDC_LIMIT_MACROS temporarily while including
66100         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66101         Problem reported by Joel E. Denny in
66102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66103
66104 2007-07-01  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/unistdio.h: New file.
66107         * lib/unistdio/u-asnprintf.h: New file.
66108         * lib/unistdio/u-asprintf.h: New file.
66109         * lib/unistdio/u-printf-args.c: New file.
66110         * lib/unistdio/u-printf-args.h: New file.
66111         * lib/unistdio/u-printf-parse.h: New file.
66112         * lib/unistdio/u-snprintf.h: New file.
66113         * lib/unistdio/u-sprintf.h: New file.
66114         * lib/unistdio/u-vasprintf.h: New file.
66115         * lib/unistdio/u-vsnprintf.h: New file.
66116         * lib/unistdio/u-vsprintf.h: New file.
66117         * lib/unistdio/ulc-asnprintf.c: New file.
66118         * lib/unistdio/ulc-asprintf.c: New file.
66119         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66120         * lib/unistdio/ulc-printf-parse.c: New file.
66121         * lib/unistdio/ulc-snprintf.c: New file.
66122         * lib/unistdio/ulc-sprintf.c: New file.
66123         * lib/unistdio/ulc-vasnprintf.c: New file.
66124         * lib/unistdio/ulc-vasprintf.c: New file.
66125         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66126         * lib/unistdio/ulc-vsnprintf.c: New file.
66127         * lib/unistdio/ulc-vsprintf.c: New file.
66128         * lib/unistdio/u8-asnprintf.c: New file.
66129         * lib/unistdio/u8-asprintf.c: New file.
66130         * lib/unistdio/u8-printf-parse.c: New file.
66131         * lib/unistdio/u8-snprintf.c: New file.
66132         * lib/unistdio/u8-sprintf.c: New file.
66133         * lib/unistdio/u8-vasnprintf.c: New file.
66134         * lib/unistdio/u8-vasprintf.c: New file.
66135         * lib/unistdio/u8-vsnprintf.c: New file.
66136         * lib/unistdio/u8-vsprintf.c: New file.
66137         * lib/unistdio/u8-u8-asnprintf.c: New file.
66138         * lib/unistdio/u8-u8-asprintf.c: New file.
66139         * lib/unistdio/u8-u8-snprintf.c: New file.
66140         * lib/unistdio/u8-u8-sprintf.c: New file.
66141         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66142         * lib/unistdio/u8-u8-vasprintf.c: New file.
66143         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66144         * lib/unistdio/u8-u8-vsprintf.c: New file.
66145         * lib/unistdio/u16-asnprintf.c: New file.
66146         * lib/unistdio/u16-asprintf.c: New file.
66147         * lib/unistdio/u16-printf-parse.c: New file.
66148         * lib/unistdio/u16-snprintf.c: New file.
66149         * lib/unistdio/u16-sprintf.c: New file.
66150         * lib/unistdio/u16-vasnprintf.c: New file.
66151         * lib/unistdio/u16-vasprintf.c: New file.
66152         * lib/unistdio/u16-vsnprintf.c: New file.
66153         * lib/unistdio/u16-vsprintf.c: New file.
66154         * lib/unistdio/u16-u16-asnprintf.c: New file.
66155         * lib/unistdio/u16-u16-asprintf.c: New file.
66156         * lib/unistdio/u16-u16-snprintf.c: New file.
66157         * lib/unistdio/u16-u16-sprintf.c: New file.
66158         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66159         * lib/unistdio/u16-u16-vasprintf.c: New file.
66160         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66161         * lib/unistdio/u16-u16-vsprintf.c: New file.
66162         * lib/unistdio/u32-asnprintf.c: New file.
66163         * lib/unistdio/u32-asprintf.c: New file.
66164         * lib/unistdio/u32-printf-parse.c: New file.
66165         * lib/unistdio/u32-snprintf.c: New file.
66166         * lib/unistdio/u32-sprintf.c: New file.
66167         * lib/unistdio/u32-vasnprintf.c: New file.
66168         * lib/unistdio/u32-vasprintf.c: New file.
66169         * lib/unistdio/u32-vsnprintf.c: New file.
66170         * lib/unistdio/u32-vsprintf.c: New file.
66171         * lib/unistdio/u32-u32-asnprintf.c: New file.
66172         * lib/unistdio/u32-u32-asprintf.c: New file.
66173         * lib/unistdio/u32-u32-snprintf.c: New file.
66174         * lib/unistdio/u32-u32-sprintf.c: New file.
66175         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66176         * lib/unistdio/u32-u32-vasprintf.c: New file.
66177         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66178         * lib/unistdio/u32-u32-vsprintf.c: New file.
66179         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66180         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66181         * tests/unistdio/test-ulc-printf1.h: New file.
66182         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66183         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66184         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66185         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66186         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66187         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66188         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66189         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66190         * tests/unistdio/test-u8-asnprintf1.c: New file.
66191         * tests/unistdio/test-u8-asnprintf1.h: New file.
66192         * tests/unistdio/test-u8-printf1.h: New file.
66193         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66194         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66195         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66196         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66197         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66198         * tests/unistdio/test-u8-vasprintf1.c: New file.
66199         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66200         * tests/unistdio/test-u8-vsprintf1.c: New file.
66201         * tests/unistdio/test-u16-asnprintf1.c: New file.
66202         * tests/unistdio/test-u16-asnprintf1.h: New file.
66203         * tests/unistdio/test-u16-printf1.h: New file.
66204         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66205         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66206         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66207         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66208         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66209         * tests/unistdio/test-u16-vasprintf1.c: New file.
66210         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66211         * tests/unistdio/test-u16-vsprintf1.c: New file.
66212         * tests/unistdio/test-u32-asnprintf1.c: New file.
66213         * tests/unistdio/test-u32-asnprintf1.h: New file.
66214         * tests/unistdio/test-u32-printf1.h: New file.
66215         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66216         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66217         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66218         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66219         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66220         * tests/unistdio/test-u32-vasprintf1.c: New file.
66221         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66222         * tests/unistdio/test-u32-vsprintf1.c: New file.
66223         * modules/unistdio/base: New file.
66224         * modules/unistdio/u-printf-args: New file.
66225         * modules/unistdio/ulc-asnprintf: New file.
66226         * modules/unistdio/ulc-asprintf: New file.
66227         * modules/unistdio/ulc-fprintf: New file.
66228         * modules/unistdio/ulc-printf-parse: New file.
66229         * modules/unistdio/ulc-snprintf: New file.
66230         * modules/unistdio/ulc-sprintf: New file.
66231         * modules/unistdio/ulc-vasnprintf: New file.
66232         * modules/unistdio/ulc-vasprintf: New file.
66233         * modules/unistdio/ulc-vfprintf: New file.
66234         * modules/unistdio/ulc-vsnprintf: New file.
66235         * modules/unistdio/ulc-vsprintf: New file.
66236         * modules/unistdio/u8-asnprintf: New file.
66237         * modules/unistdio/u8-asprintf: New file.
66238         * modules/unistdio/u8-printf-parse: New file.
66239         * modules/unistdio/u8-snprintf: New file.
66240         * modules/unistdio/u8-sprintf: New file.
66241         * modules/unistdio/u8-vasnprintf: New file.
66242         * modules/unistdio/u8-vasprintf: New file.
66243         * modules/unistdio/u8-vsnprintf: New file.
66244         * modules/unistdio/u8-vsprintf: New file.
66245         * modules/unistdio/u8-u8-asnprintf: New file.
66246         * modules/unistdio/u8-u8-asprintf: New file.
66247         * modules/unistdio/u8-u8-snprintf: New file.
66248         * modules/unistdio/u8-u8-sprintf: New file.
66249         * modules/unistdio/u8-u8-vasnprintf: New file.
66250         * modules/unistdio/u8-u8-vasprintf: New file.
66251         * modules/unistdio/u8-u8-vsnprintf: New file.
66252         * modules/unistdio/u8-u8-vsprintf: New file.
66253         * modules/unistdio/u16-asnprintf: New file.
66254         * modules/unistdio/u16-asprintf: New file.
66255         * modules/unistdio/u16-printf-parse: New file.
66256         * modules/unistdio/u16-snprintf: New file.
66257         * modules/unistdio/u16-sprintf: New file.
66258         * modules/unistdio/u16-vasnprintf: New file.
66259         * modules/unistdio/u16-vasprintf: New file.
66260         * modules/unistdio/u16-vsnprintf: New file.
66261         * modules/unistdio/u16-vsprintf: New file.
66262         * modules/unistdio/u16-u16-asnprintf: New file.
66263         * modules/unistdio/u16-u16-asprintf: New file.
66264         * modules/unistdio/u16-u16-snprintf: New file.
66265         * modules/unistdio/u16-u16-sprintf: New file.
66266         * modules/unistdio/u16-u16-vasnprintf: New file.
66267         * modules/unistdio/u16-u16-vasprintf: New file.
66268         * modules/unistdio/u16-u16-vsnprintf: New file.
66269         * modules/unistdio/u16-u16-vsprintf: New file.
66270         * modules/unistdio/u32-asnprintf: New file.
66271         * modules/unistdio/u32-asprintf: New file.
66272         * modules/unistdio/u32-printf-parse: New file.
66273         * modules/unistdio/u32-snprintf: New file.
66274         * modules/unistdio/u32-sprintf: New file.
66275         * modules/unistdio/u32-vasnprintf: New file.
66276         * modules/unistdio/u32-vasprintf: New file.
66277         * modules/unistdio/u32-vsnprintf: New file.
66278         * modules/unistdio/u32-vsprintf: New file.
66279         * modules/unistdio/u32-u32-asnprintf: New file.
66280         * modules/unistdio/u32-u32-asprintf: New file.
66281         * modules/unistdio/u32-u32-snprintf: New file.
66282         * modules/unistdio/u32-u32-sprintf: New file.
66283         * modules/unistdio/u32-u32-vasnprintf: New file.
66284         * modules/unistdio/u32-u32-vasprintf: New file.
66285         * modules/unistdio/u32-u32-vsnprintf: New file.
66286         * modules/unistdio/u32-u32-vsprintf: New file.
66287         * modules/unistdio/ulc-asnprintf-tests: New file.
66288         * modules/unistdio/ulc-vasnprintf-tests: New file.
66289         * modules/unistdio/ulc-vasprintf-tests: New file.
66290         * modules/unistdio/ulc-vsnprintf-tests: New file.
66291         * modules/unistdio/ulc-vsprintf-tests: New file.
66292         * modules/unistdio/u8-asnprintf-tests: New file.
66293         * modules/unistdio/u8-vasnprintf-tests: New file.
66294         * modules/unistdio/u8-vasprintf-tests: New file.
66295         * modules/unistdio/u8-vsnprintf-tests: New file.
66296         * modules/unistdio/u8-vsprintf-tests: New file.
66297         * modules/unistdio/u16-asnprintf-tests: New file.
66298         * modules/unistdio/u16-vasnprintf-tests: New file.
66299         * modules/unistdio/u16-vasprintf-tests: New file.
66300         * modules/unistdio/u16-vsnprintf-tests: New file.
66301         * modules/unistdio/u16-vsprintf-tests: New file.
66302         * modules/unistdio/u32-asnprintf-tests: New file.
66303         * modules/unistdio/u32-vasnprintf-tests: New file.
66304         * modules/unistdio/u32-vasprintf-tests: New file.
66305         * modules/unistdio/u32-vsnprintf-tests: New file.
66306         * modules/unistdio/u32-vsprintf-tests: New file.
66307         * MODULES.html.sh (Unicode string functions): Add the new modules.
66308
66309 2007-07-01  Bruno Haible  <bruno@clisp.org>
66310
66311         * lib/sprintf.c (sprintf): Limit the available length estimation,
66312         to avoid address wraparound.
66313         * lib/vsprintf.c (vsprintf): Likewise.
66314         * modules/sprintf-posix (Dependencies): Add stdint.
66315         * modules/vsprintf-posix (Dependencies): Likewise.
66316
66317 2007-07-01  Bruno Haible  <bruno@clisp.org>
66318
66319         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66320         Windows PATH as well. Conservative double-quoting. Comments.
66321
66322 2007-07-01  Bruno Haible  <bruno@clisp.org>
66323             Eric Blake  <ebb9@byu.net>
66324             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66325
66326         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66327         empty components in $PATH, denoting '.'.
66328
66329 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66330
66331         * gnulib-tool: Fix indentation.
66332         (func_create_megatestdir): Likewise.
66333         Report by Bruno Haible.
66334
66335 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66336
66337         Sync from Automake.
66338         * build-aux/gnupload: Fix shell portability issues with for loops.
66339         Report by Karl Berry.
66340
66341 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66342
66343         * build-aux/maint.mk (POURL): Use translationproject.org.
66344
66345 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66346             Bruno Haible  <bruno@clisp.org>
66347
66348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66349         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66350         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66351         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66352         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66353
66354 2007-06-27  Bruno Haible  <bruno@clisp.org>
66355
66356         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66357         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66358
66359 2007-06-26  Karl Berry  <karl@gnu.org>
66360
66361         * MODULES.html.sh: remove xreadlink-with-size.
66362
66363 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66364
66365         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66366         method that I hope also handles the double-include problem noted
66367         by Bruno Haible in
66368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66369
66370 2007-06-23  Bruno Haible  <bruno@clisp.org>
66371
66372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66373         Don't let the 'mostlyclean' target fail if the last subdirectory could
66374         not be removed.
66375         Reported by Karl Berry.
66376
66377 2007-06-23  Bruno Haible  <bruno@clisp.org>
66378
66379         * gnulib-tool (echo): Add a speedier workaround for ksh.
66380         * tests/test-echo.sh: Likewise.
66381
66382 2007-06-23  Bruno Haible  <bruno@clisp.org>
66383
66384         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66385         * tests/test-echo.sh: Likewise.
66386
66387 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66388
66389         * gnulib-tool (IFS): Initialize early, so we don't set it to
66390         empty later.
66391         (self_abspathname): Rewrite algorithm to set it, reindent.
66392         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66393         (func_create_megatestdir): Merge some sed scripts.
66394
66395 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66398         exposed by Sun Studio 11 cc on Solaris 8.
66399
66400 2007-06-22  Bruno Haible  <bruno@clisp.org>
66401
66402         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66403         backslashes.
66404         * tests/test-echo.sh: New file.
66405
66406 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66407
66408         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66409         simplify `sed_replace_build_aux' scripts, they are portable but
66410         echoing them with `echo' is not.
66411         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66412
66413 2007-06-21  Karl Berry  <karl@gnu.org>
66414
66415         * config/srclist.txt: guess we can't handle the licenses via
66416         srclist at the moment.
66417
66418 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * MODULES.html.sh: Add include_next.
66421         * modules/include_next: New file.
66422
66423 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66426         INCLUDE_NEXT.
66427         (gl_CHECK_NEXT_HEADERS): New macro.
66428         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66429         the obsolescent gl_ABSOLUTE_HEADER.
66430         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66431         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66432         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66433         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66434         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66435         * m4/math_h.m4 (gl_MATH_H): Likewise.
66436         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66437         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66438         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66439         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66440         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66441         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66442         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66445         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66447         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66448         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66449         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66450         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66451         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66452         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66453         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66454         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66455         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66456         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66457         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66458         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66459         * lib/float_.h: Likewise.
66460         * lib/inttypes_.h: Likewise.
66461         * lib/math_.h: Likewise.
66462         * lib/search_.h: Likewise.
66463         * lib/signal_.h: Likewise.
66464         * lib/stdint_.h: Likewise.
66465         * lib/stdio_.h: Likewise.
66466         * lib/stdlib_.h: Likewise.
66467         * lib/string_.h: Likewise.
66468         * lib/sys_stat_.h: Likewise.
66469         * lib/sys_time_.h: Likewise.
66470         * lib/time_.h: Likewise.
66471         * lib/unistd_.h: Likewise.
66472         * lib/wchar_.h: Likewise.
66473         * lib/wctype_.h: Likewise.
66474         * lib/dirent_.h: Likewise.
66475         * lib/iconv_.h: Likewise.
66476         * lib/locale_.h: Likewise.
66477         * lib/netinet_in_.h: Likewise.
66478         * lib/sys_select_.h: Likewise.
66479         * lib/sys_socket_.h: Likewise.
66480         * lib/sysexits_.h: Likewise.
66481         * modules/fcntl (Depends-on): Depend on include_next, not
66482         absolute_header.
66483         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66484         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66485         * modules/fchdir: Likewise.
66486         * modules/float: Likewise.
66487         * modules/iconv_open: Likewise.
66488         * modules/inttypes: Likewise.
66489         * modules/locale: Likewise.
66490         * modules/math: Likewise.
66491         * modules/netinet_in: Likewise.
66492         * modules/search: Likewise.
66493         * modules/signal: Likewise.
66494         * modules/stdint: Likewise.
66495         * modules/stdio: Likewise.
66496         * modules/stdlib: Likewise.
66497         * modules/string: Likewise.
66498         * modules/sys_select: Likewise.
66499         * modules/sys_socket: Likewise.
66500         * modules/sys_stat: Likewise.
66501         * modules/sys_time: Likewise.
66502         * modules/sysexits: Likewise.
66503         * modules/time: Likewise.
66504         * modules/unistd: Likewise.
66505         * modules/wchar: Likewise.
66506         * modules/wctype: Likewise.
66507         * modules/sys_stat: Change maintainer to "all".
66508         * modules/unistd: Likewise.
66509
66510 2007-06-20  Karl Berry  <karl@gnu.org>
66511
66512         * config/srclist.txt: track www changes in license files.
66513
66514 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66515
66516         * build-aux/bootstrap: Remove stray dot.
66517         Make sure build_aux settings are honored when linking
66518         gnulib_extra_files.
66519
66520 2007-06-19  Eric Blake  <ebb9@byu.net>
66521
66522         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66523         Allow compilation on cygwin.
66524
66525 2007-06-19  Jim Meyering  <jim@meyering.net>
66526
66527         xreadlink-with-size: Remove module.  No longer used.
66528         Ex-callers now use xreadlink or mreadlink-with-size.
66529         * modules/xreadlink-with-size: Remove module.
66530         * lib/xreadlink-with-size.c: Remove file.
66531         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66532         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66533         just before the function definition *is* accurate.
66534
66535         Eliminate one way canonicalize_filename_mode could exit.
66536         * lib/canonicalize.c (canonicalize_filename_mode):
66537         Use mreadlink_with_size, not xreadlink_with_size.
66538
66539 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         Detect porting problems to FreeBSD/arm, which has time_t wider than
66542         long int.  Original problem reported for GNU diff by Xin Li in
66543         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66544         * modules/getdate (Depends-on): Add intprops, verify.
66545         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66546         is an integer type no wider than long int.
66547
66548 2007-06-18  Jim Meyering  <jim@meyering.net>
66549
66550         New module: mreadlink-with-size.
66551         * MODULES.html.sh: Add mreadlink-with-size.
66552         * modules/mreadlink-with-size: New module
66553         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66554         not xreadlink-with-size.
66555         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66556
66557 2007-06-16  Bruno Haible  <bruno@clisp.org>
66558
66559         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66560         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66561         Reported by Gary V. Vaughan <gary@gnu.org>.
66562
66563 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         Revamp lchown so that it lives in unistd.h where it belongs.
66566         * lib/lchown.h: Remove.
66567         * lib/dirchownmod.c: Don't include lib/lchown.h.
66568         * lib/fchownat.c: Likewise.
66569         * lib/openat.c: Likewise.
66570         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66571         does not follow symlinks.
66572         (EOPNOTSUPP): Define if not defined.
66573         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66574         is defined to 0.
66575         (lchown): New decl.
66576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66577         Do not check for lchown decl.
66578         Set REPLACE_LCHOWN.
66579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66580         REPLACE_LCHOWN.
66581         * modules/chown: Make it clear it follows symlinks.
66582         * modules/lchown: Make it clear it doesn't follow symlinks.
66583         (Files): Remove lib/lchown.h
66584         (Depends-on): Add unistd.
66585         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66586         (Include): Include <unistd.h>, not "lchown.h".
66587         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66588         REPLACE_LCHOWN.
66589
66590 2007-06-15  Jim Meyering  <jim@meyering.net>
66591
66592         Change license (GPL to LGPL) of fsusage and dependents.
66593         * modules/fsusage (License): Change to LGPL.
66594         * modules/full-read (License): Likewise.
66595         * modules/full-write (License): Likewise.
66596         * modules/safe-read (License): Likewise.
66597         * modules/safe-write (License): Likewise.
66598
66599 2007-06-14  Ben Pfaff  <blp@gnu.org>
66600
66601         Missing part of allocsa -> malloca transition.
66602         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66603         gl_MALLOCA.
66604
66605 2007-06-12  Bruno Haible  <bruno@clisp.org>
66606
66607         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66608         to ia64, x86_64, i386.
66609         Reported by Eric Blake.
66610
66611 2007-06-12  Bruno Haible  <bruno@clisp.org>
66612
66613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66614         cross-compiling to x86_64.
66615
66616 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66619         glitch reported by Ralf Wildenhues in
66620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66621
66622         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66623         Vin Shelton.
66624
66625 2007-06-11  Bruno Haible  <bruno@clisp.org>
66626
66627         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66628         replacement string.
66629         Reported by Eric Blake.
66630
66631 2007-06-10  Bruno Haible  <bruno@clisp.org>
66632
66633         Prepare vasnprintf code for use with Unicode strings.
66634         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66635         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66636         TYPE_U32_STRING.
66637         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66638         a_u32_string variants.
66639         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66640         * lib/printf-args.c: Don't include config.h and the specification
66641         header if PRINTF_FETCHARGS is already defined.
66642         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66643         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66644         TYPE_U16_STRING, TYPE_U32_STRING.
66645         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66646         u16_directive, u16_directives, u32_directive, u32_directives): New
66647         types.
66648         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66649         New declarations.
66650         * lib/printf-parse.c: Don't include config.h and the specification
66651         header if PRINTF_PARSE is already defined. Eliminate the set of
66652         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66653         them now. Include c-ctype.h.
66654         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66655         directive and CHAR_T_ONLY_ASCII.
66656         * lib/vasnprintf.c: Don't include config.h and the specification header
66657         if VASNPRINTF is already defined.
66658         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66659         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66660         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66661         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66662         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66663         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66664         code accordingly.
66665         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66666         pad_ourselves also in this case, with the 'c' and 's' directives, and
66667         with a different notion of "width".
66668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66669
66670 2007-06-10  Bruno Haible  <bruno@clisp.org>
66671
66672         * modules/unistr/u32-mbsnlen: New file.
66673         * lib/unistr/u32-mbsnlen.c: New file.
66674
66675         * modules/unistr/u16-mbsnlen: New file.
66676         * lib/unistr/u16-mbsnlen.c: New file.
66677
66678         * modules/unistr/u8-mbsnlen: New file.
66679         * lib/unistr/u8-mbsnlen.c: New file.
66680
66681         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66682         declarations.
66683
66684 2007-06-10  Bruno Haible  <bruno@clisp.org>
66685
66686         * lib/string_.h (mbsnlen): New declaration.
66687         * lib/mbsnlen.c: New file.
66688         * m4/mbsnlen.m4: New file.
66689         * modules/mbsnlen: New file.
66690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66691         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66692         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66693
66694 2007-06-10  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66697
66698 2007-06-10  Bruno Haible  <bruno@clisp.org>
66699
66700         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66701         * lib/mbuiter.h: Likewise.
66702
66703 2007-06-10  Bruno Haible  <bruno@clisp.org>
66704
66705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66706         declaration.
66707
66708 2007-06-10  Karl Berry  <karl@gnu.org>
66709
66710         * config/srclist.txt: remove gettext entries, Bruno prefers
66711         to update individually.
66712
66713 2007-06-10  Bruno Haible  <bruno@clisp.org>
66714
66715         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66716         'maxlen'. Ensure only length + width bytes are allocated, not
66717         length + 1 + width.
66718
66719 2007-06-09  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66722         (CHAR_T): Remove macro.
66723         (VASNPRINTF): Update.
66724
66725 2007-06-09  Bruno Haible  <bruno@clisp.org>
66726
66727         * MODULES.html.sh (Unicode string functions): Add the new modules.
66728
66729         * modules/uniconv/u32-conv-to-enc: New file.
66730         * lib/uniconv/u32-conv-to-enc.c: New file.
66731         * modules/uniconv/u32-conv-to-enc-tests: New file.
66732         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66733
66734         * modules/uniconv/u16-conv-to-enc: New file.
66735         * lib/uniconv/u16-conv-to-enc.c: New file.
66736         * lib/uniconv/u-conv-to-enc.h: New file.
66737         * modules/uniconv/u16-conv-to-enc-tests: New file.
66738         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66739
66740         * modules/uniconv/u8-conv-to-enc: New file.
66741         * lib/uniconv/u8-conv-to-enc.c: New file.
66742         * modules/uniconv/u8-conv-to-enc-tests: New file.
66743         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66744
66745         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66746         u32_conv_to_encoding): New declarations.
66747
66748 2007-06-09  Bruno Haible  <bruno@clisp.org>
66749
66750         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66751
66752 2007-06-09  Bruno Haible  <bruno@clisp.org>
66753
66754         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66755         * modules/malloca: Renamed from modules/allocsa, updated.
66756         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66757         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66758         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66759         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66760         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66761         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66762         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66763         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66764         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66765         * modules/c-strcasestr (Depends-on): Update.
66766         * lib/c-strcasestr.c: Update.
66767         * modules/c-strstr (Depends-on): Update.
66768         * lib/c-strstr.c: Update.
66769         * modules/canonicalize-lgpl (Depends-on): Update.
66770         * lib/canonicalize-lgpl.c: Update.
66771         * modules/clean-temp (Depends-on): Update.
66772         * lib/clean-temp.c: Update.
66773         * modules/csharpcomp (Depends-on): Update.
66774         * lib/csharpcomp.c: Update.
66775         * modules/csharpexec (Depends-on): Update.
66776         * lib/csharpexec.c: Update.
66777         * modules/javacomp (Depends-on): Update.
66778         * lib/javacomp.c: Update.
66779         * modules/javaexec (Depends-on): Update.
66780         * lib/javaexec.c: Update.
66781         * modules/mbscasestr (Depends-on): Update.
66782         * lib/mbscasestr.c: Update.
66783         * modules/mbsstr (Depends-on): Update.
66784         * lib/mbsstr.c: Update.
66785         * modules/setenv (Depends-on): Update.
66786         * lib/setenv.c: Update.
66787         * modules/strcasestr (Depends-on): Update.
66788         * lib/strcasestr.c: Update.
66789         * modules/striconveha (Depends-on): Update.
66790         * lib/striconveha.c: Update.
66791         * modules/relocatable-prog-wrapper (Files): Update.
66792         * lib/relocwrapper.c: Update.
66793         * build-aux/install-reloc: Update.
66794         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66795
66796 2007-06-08  Bruno Haible  <bruno@clisp.org>
66797
66798         Port to uClibc.
66799         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66800         * lib/fpurge.c (fpurge): Likewise.
66801         * lib/freading.c (freading): Likewise.
66802         * lib/fseeko.c (rpl_fseeko): Likewise.
66803         * lib/fseterr.c (fseterr): Likewise.
66804         * lib/fwriting.c (fwriting): Likewise.
66805         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66806
66807 2007-06-08  Bruno Haible  <bruno@clisp.org>
66808
66809         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66810         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66811         * modules/gettext (Files): Add m4/intlmacosx.m4.
66812
66813 2007-06-07  Bruno Haible  <bruno@clisp.org>
66814
66815         * modules/localename-tests: New file.
66816         * tests/test-localename.c: New file.
66817
66818         New module 'localename'.
66819         * lib/localename.h: New file.
66820         * lib/localename.c: New file, from GNU gettext.
66821         * m4/localename.m4: New file.
66822         * modules/localename: New file.
66823
66824 2007-06-07  Bruno Haible  <bruno@clisp.org>
66825
66826         Work around the lack of <wchar.h> on some builds of uClibc.
66827         * doc/headers/wchar.texi: Update.
66828         * lib/wchar_.h: Include <wchar.h> only if it exists.
66829         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66830         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66831         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66832         doesn't exist.
66833         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66834         * modules/mbfile (Depends-on): Add wchar.
66835         * modules/mbiter (Depends-on): Likewise.
66836         * modules/mbuiter (Depends-on): Likewise.
66837         Reported by Simon Josefsson.
66838
66839 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66840
66841         Work around problem reported by Steven M. Schweda in
66842         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66843         Tru64 5.1B with the Compaq compiler environment installed declares
66844         an 'isblank' function but does not define it in the C library.
66845         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66846         * lib/regex_internal.h (isblank): Likewise.
66847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66848         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66849
66850 2007-06-05  Bruno Haible  <bruno@clisp.org>
66851
66852         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66853         ia64.
66854         * modules/printf-safe: New file.
66855         * modules/fprintf-posix (Depends-on): Add printf-safe.
66856         * modules/printf-posix (Depends-on): Likewise.
66857         * modules/snprintf-posix (Depends-on): Likewise.
66858         * modules/sprintf-posix (Depends-on): Likewise.
66859         * modules/vasnprintf-posix (Depends-on): Likewise.
66860         * modules/vasprintf-posix (Depends-on): Likewise.
66861         * modules/vfprintf-posix (Depends-on): Likewise.
66862         * modules/vprintf-posix (Depends-on): Likewise.
66863         * modules/vsnprintf-posix (Depends-on): Likewise.
66864         * modules/vsprintf-posix (Depends-on): Likewise.
66865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66866         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66867         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66868         "no" on i386, x86_64, ia64.
66869         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66870         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66871         on i386, x86_64, ia64.
66872         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66873         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66874         on i386, x86_64, ia64.
66875         * tests/test-vasnprintf-posix.c: Include float.h.
66876         (LDBL80_WORDS): New macro.
66877         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66878         on i386, x86_64, ia64.
66879         * tests/test-vasprintf-posix.c: Include float.h.
66880         (LDBL80_WORDS): New macro.
66881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66882         on i386, x86_64, ia64.
66883         * tests/test-snprintf-posix.c: Include float.h.
66884         * tests/test-sprintf-posix.c: Likewise.
66885         * tests/test-vsnprintf-posix.c: Likewise.
66886         * tests/test-vsprintf-posix.c: Likewise.
66887
66888 2007-06-05  Bruno Haible  <bruno@clisp.org>
66889
66890         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66892         non-IEEE numbers on i386, x86_64, ia64.
66893         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66894         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66895         * tests/test-isnanl.h: Include float.h.
66896         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66897
66898 2007-06-05  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66901         also the %a / %A. Handle the %a / %A code before this extra handling.
66902
66903 2007-06-05  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66906         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66907
66908 2007-06-05  Bruno Haible  <bruno@clisp.org>
66909
66910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66911         typo in variable name.
66912
66913 2007-06-05  Eric Blake  <ebb9@byu.net>
66914
66915         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66916         Reported by Simon Josefsson.
66917
66918 2007-06-04  Bruno Haible  <bruno@clisp.org>
66919
66920         Avoid test failures on some PowerPC platforms.
66921         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66922         Define differently for PowerPC.
66923         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66924         Reported by Gary V. Vaughan <gary@gnu.org>.
66925
66926 2007-06-02  Bruno Haible  <bruno@clisp.org>
66927
66928         Fix test-stdint failure on FreeBSD/ia64.
66929         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66930         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66931         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66932         * doc/headers/stdint.texi: Update.
66933
66934 2007-06-01  Bruno Haible  <bruno@clisp.org>
66935
66936         * tests/test-binary-io.c (main): Pass a third argument to open().
66937         Reported by Gary V. Vaughan <gary@gnu.org>.
66938
66939 2007-06-01  Bruno Haible  <bruno@clisp.org>
66940
66941         * doc/functions/frexpl.texi: Update for mingw.
66942
66943 2007-06-01  Bruno Haible  <bruno@clisp.org>
66944
66945         * tests/test-lseek.c (main): Disable test of errno for invalid third
66946         argument.
66947         * doc/functions/lseek.texi: Update.
66948         Reported by Gary V. Vaughan <gary@gnu.org>.
66949
66950 2007-05-28  Bruno Haible  <bruno@clisp.org>
66951
66952         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66953
66954 2007-05-31  Eric Blake  <ebb9@byu.net>
66955
66956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66957         cross compiling.
66958
66959 2007-05-30  Eric Blake  <ebb9@byu.net>
66960         and Bruno Haible  <bruno@clisp.org>
66961
66962         Work around mingw test failures exposed by m4-1.4.9b.
66963         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66964         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66965         moment.
66966
66967 2007-05-30  Bruno Haible  <bruno@clisp.org>
66968
66969         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66970         assuming that they are closed. Needed on HP-UX 11.
66971
66972 2007-05-29  Bruno Haible  <bruno@clisp.org>
66973
66974         Fix a problem with #include_next.
66975         * lib/dirent_.h: Split the double-inclusion guard.
66976         * lib/fcntl_.h: Likewise.
66977         * lib/float_.h: Likewise.
66978         * lib/iconv_.h: Likewise.
66979         * lib/inttypes_.h: Likewise.
66980         * lib/locale_.h: Likewise.
66981         * lib/math_.h: Likewise.
66982         * lib/netinet_in_.h: Likewise.
66983         * lib/search_.h: Likewise.
66984         * lib/signal_.h: Likewise.
66985         * lib/stdint_.h: Likewise.
66986         * lib/stdio_.h: Likewise.
66987         * lib/stdlib_.h: Likewise.
66988         * lib/string_.h: Likewise.
66989         * lib/sys_select_.h: Likewise.
66990         * lib/sys_socket_.h: Likewise.
66991         * lib/sys_stat_.h: Likewise.
66992         * lib/sys_time_.h: Likewise.
66993         * lib/sysexits_.h: Likewise.
66994         * lib/time_.h: Likewise.
66995         * lib/unistd_.h: Likewise.
66996         * lib/wchar_.h: Likewise.
66997         * lib/wctype_.h: Likewise.
66998
66999 2007-05-29  Bruno Haible  <bruno@clisp.org>
67000
67001         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67002         for the moment.
67003
67004 2007-05-29  Bruno Haible  <bruno@clisp.org>
67005
67006         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67007         invocation.
67008         Reported by Eric Blake.
67009
67010 2007-05-29  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67013         compiling case.
67014
67015 2007-05-29  Eric Blake  <ebb9@byu.net>
67016             Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67019         cross compiles.
67020
67021 2007-05-28  Eric Blake  <ebb9@byu.net>
67022
67023         * modules/closein-tests (test_closein_LDADD): Support test on
67024         cygwin with libtool.
67025
67026 2007-05-28  Bruno Haible  <bruno@clisp.org>
67027
67028         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67029         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67030         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67031         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67034         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67035         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67036         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67037
67038 2007-05-28  Eric Blake  <ebb9@byu.net>
67039
67040         Unconditionally include <config.h> in unit tests.
67041         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67042         * tests/test-allocsa.c, tests/test-arcfour.c,
67043         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67044         tests/test-array_list.c, tests/test-array_oset.c,
67045         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67046         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67047         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67048         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67049         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67050         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67051         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67052         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67053         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67054         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67055         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67056         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67057         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67058         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67059         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67060         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67061         test-md5.c, test-memmem.c, test-printf-posix.c,
67062         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67063         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67064         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67065         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67066         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67067         test-vasnprintf-posix2.c, test-vasnprintf.c,
67068         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67069         test-vfprintf-posix.c, test-vprintf-posix.c,
67070         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67071         test-xvasprintf.c: Likewise.
67072
67073 2007-05-28  Bruno Haible  <bruno@clisp.org>
67074
67075         * gnulib-tool (func_import): Remember the --with-tests command-line
67076         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67077         Reported by Eric Blake.
67078
67079 2007-05-28  Bruno Haible  <bruno@clisp.org>
67080
67081         * modules/ftell-tests: New file.
67082         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67083         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67084
67085         * lib/ftell.c: New file.
67086         * modules/ftell: New file.
67087         * m4/ftell.m4: New file.
67088         * doc/functions/ftell.texi: Update.
67089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67090         REPLACE_FTELL.
67091         * lib/stdio_.h (rpl_ftell): New declaration.
67092         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67093         REPLACE_FTELL.
67094
67095 2007-05-28  Eric Blake  <ebb9@byu.net>
67096
67097         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67098
67099 2007-05-28  Bruno Haible  <bruno@clisp.org>
67100
67101         * modules/fseek-tests: New file.
67102         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67103         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67104
67105         * lib/fseek.c: New file.
67106         * modules/fseek: New file.
67107         * m4/fseek.m4: New file.
67108         * doc/functions/fseek.texi: Update.
67109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67110         REPLACE_FSEEK.
67111         * lib/stdio_.h (rpl_fseek): New declaration.
67112         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67113         REPLACE_FSEEK.
67114
67115 2007-05-28  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/stdio_.h (fflush): More comments.
67118
67119 2007-05-28  Bruno Haible  <bruno@clisp.org>
67120
67121         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67122         runtime test.
67123
67124 2007-05-28  Eric Blake  <ebb9@byu.net>
67125
67126         Improve lseek module.
67127         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67128         * lib/unistd_.h (lseek): Scale back link warning message.
67129         * tests/test-lseek.c: Beef up test.
67130         * tests/test-lseek.sh: Exercise more facets of lseek.
67131         Reported by Bruno Haible.
67132
67133 2007-05-28  Bruno Haible  <bruno@clisp.org>
67134
67135         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67136         to define.
67137
67138 2007-05-27  Bruno Haible  <bruno@clisp.org>
67139
67140         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67141
67142 2007-05-27  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/openmp: New file.
67145         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67146         Noah Misch.
67147
67148 2007-05-26  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/chdir-long (Depends-on): Add fchdir.
67151         * modules/chdir-safer (Depends-on): Likewise.
67152         * modules/fts (Depends-on): Likewise.
67153         * modules/fts-lgpl (Depends-on): Likewise.
67154         * modules/openat (Depends-on): Likewise.
67155         * modules/savewd (Depends-on): Likewise.
67156
67157 2007-05-24  Eric Blake  <ebb9@byu.net>
67158
67159         Fix lseek on mingw.
67160         * modules/lseek: New module.
67161         * m4/lseek.m4: New file.
67162         * lib/lseek.c: New file.
67163         * modules/lseek-tests: New file.
67164         * tests/test-lseek.c: New file.
67165         * tests/test-lseek.sh: New file.
67166         * MODULES.html.sh: Document lseek module.
67167         * modules/fflush (Depends-on): Add lseek, fseeko.
67168         * modules/fseeko (Depends-on): Likewise.
67169         * modules/ftello (Depends-on): Likewise.
67170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67171         broken.
67172         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67173         broken.
67174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67175         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67176         * lib/ftello.c (rpl_ftello): Likewise.
67177         * tests/test-fseeko.c (main): Test this.
67178         * tests/test-fseeko.sh: Likewise.
67179         * tests/test-ftello.c (main): Likewise.
67180         * tests/test-ftello.sh: Likewise.
67181         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67182         implies replacing fseek.
67183         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67184         HAVE_FTELLO.
67185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67186         * modules/unistd (Makefile.am): Likewise.
67187         * lib/unistd_.h (lseek): Declare a replacement.
67188         * doc/functions/lseek.texi (lseek): Document this fix.
67189         * doc/functions/fseek.texi (fseek): Likewise.
67190         * doc/functions/ftell.texi (ftell): Likewise.
67191
67192 2007-05-24  Bruno Haible  <bruno@clisp.org>
67193
67194         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67195         in the printed representation of a NaN.
67196         * tests/test-vasprintf-posix.c (test_function): Likewise.
67197         * tests/test-snprintf-posix.h (test_function): Likewise.
67198         * tests/test-sprintf-posix.h (test_function): Likewise.
67199         Reported by Eric Blake.
67200
67201 2007-05-23  Eric Blake  <ebb9@byu.net>
67202
67203         Fix fseeko/ftello on cygwin 1.5.24.
67204         * doc/functions/fseeko.texi (fseeko): Document the fix.
67205         * doc/functions/ftello.texi (ftello): Document the fix.
67206         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67207         * doc/functions/stdout.text (stdout): New file.
67208         * doc/functions/stderr.text (stderr): New file.
67209         * doc/gnulib.texi (Function Substitutes): Use new files.
67210         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67211         prior to 1.7.0.
67212         * tests/test-ftello.c (main): Likewise for ftello.
67213         * tests/test-fseeko.sh: New file.
67214         * tests/test-ftello.sh: New file.
67215         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67216         with seekable stdin.
67217         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67219         (gl_REPLACE_FSEEKO): New macro.
67220         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67221         * modules/fseeko (Files): Distribute fseeko.c.
67222         * modules/ftello (Files): Distribute ftello.c.
67223         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67224         mode.
67225         * lib/ftello.c (rpl_ftello): New file.
67226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67227         fseeko, ftello.
67228         (gl_STDIN_LARGE_OFFSET): New macro.
67229         * modules/stdio (Makefile.am): Perform the replacement.
67230         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67231
67232 2007-05-23  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67235         GNULIB_POSIXCHECK is defined.
67236
67237 2007-05-21  Bruno Haible  <bruno@clisp.org>
67238
67239         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67240         Check also the output for NaN arguments. When cross-compiling, guess
67241         no on IRIX.
67242         * lib/vasnprintf.c: Update comments.
67243         * tests/test-vasnprintf-posix.c (strisnan): New function.
67244         (test_function): Use it.
67245         * tests/test-vasprintf-posix.c (strisnan): New function.
67246         (test_function): Use it.
67247         * tests/test-snprintf-posix.h (strisnan): New function.
67248         (test_function): Use it.
67249         * tests/test-sprintf-posix.h (strisnan): New function.
67250         (test_function): Use it.
67251         Reported by Eric Blake.
67252
67253 2007-05-20  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67256         numbers that fails on BeOS.
67257         * doc/functions/frexpl.texi: Update.
67258
67259 2007-05-20  Jim Meyering  <jim@meyering.net>
67260
67261         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67262         forced upon us by glibc-2.6.
67263
67264 2007-05-20  Bruno Haible  <bruno@clisp.org>
67265
67266         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67267         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67268         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67269         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67270         NEED_PRINTF_INFINITE.
67271         (is_infinitel): New function.
67272         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67274         gl_PREREQ_VASNPRINTF_INFINITE.
67275         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67277         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67278         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67279         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67280         gl_PREREQ_VASNPRINTF_INFINITE.
67281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67288         * doc/functions/fprintf.texi: Update.
67289         * doc/functions/printf.texi: Update.
67290         * doc/functions/snprintf.texi: Update.
67291         * doc/functions/sprintf.texi: Update.
67292         * doc/functions/vfprintf.texi: Update.
67293         * doc/functions/vprintf.texi: Update.
67294         * doc/functions/vsnprintf.texi: Update.
67295         * doc/functions/vsprintf.texi: Update.
67296
67297 2007-05-20  Bruno Haible  <bruno@clisp.org>
67298
67299         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67300         was not found in libc.
67301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67302
67303 2007-05-20  Bruno Haible  <bruno@clisp.org>
67304
67305         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67306         printed as "-nan" instead of "nan".
67307         * tests/test-vasprintf-posix.c (test_function): Likewise.
67308         * tests/test-snprintf-posix.h (test_function): Likewise.
67309         * tests/test-sprintf-posix.h (test_function): Likewise.
67310         Needed for HP-UX 11.
67311
67312 2007-05-20  Jim Meyering  <jim@meyering.net>
67313
67314         Fix buggy test for the fchownat-deref bug.
67315         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67316         symlink required for the run-test.  Without it, this test would
67317         always declare that fchownat doesn't work, and client code would
67318         unnecessarily use the replacement function with fixed libc.
67319         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67320         Reported by Greg Schafer.
67321
67322 2007-05-19  Bruno Haible  <bruno@clisp.org>
67323
67324         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67325         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67326         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67327         Needed for IRIX 6.5 and Solaris 2.5.1.
67328
67329 2007-05-19  Bruno Haible  <bruno@clisp.org>
67330
67331         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67332         (test_function): Skip tests involving -0.0 on platforms where
67333         -0.0 = 0.0.
67334         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67335         (test_function): Skip tests involving -0.0 on platforms where
67336         -0.0 = 0.0.
67337         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67338         (test_function): Skip tests involving -0.0 on platforms where
67339         -0.0 = 0.0.
67340         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67341         (test_function): Skip tests involving -0.0 on platforms where
67342         -0.0 = 0.0.
67343         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67344         tests.
67345         * tests/test-printf-posix.h (test_function): Likewise.
67346         * tests/test-printf-posix.output: Remove all -0.0 related results.
67347         Needed for IRIX 6.5.
67348
67349 2007-05-19  Bruno Haible  <bruno@clisp.org>
67350
67351         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67352         printed as "nan0x7fffffff" instead of "nan".
67353         * tests/test-vasprintf-posix.c (test_function): Likewise.
67354         * tests/test-snprintf-posix.h (test_function): Likewise.
67355         * tests/test-sprintf-posix.h (test_function): Likewise.
67356         * tests/test-fprintf-posix.h (NaN): Remove macro.
67357         (test_function): Remove all NaN related tests.
67358         * tests/test-printf-posix.h (NaN): Remove macro.
67359         (test_function): Remove all NaN related tests.
67360         * tests/test-printf-posix.output: Remove all NaN related results.
67361         Needed for IRIX 6.5.
67362
67363 2007-05-19  Bruno Haible  <bruno@clisp.org>
67364
67365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67367
67368 2007-05-19  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/float_.h: New file.
67371         * m4/float_h.m4: New file.
67372         * modules/float: New file.
67373         * modules/isnanl (Dependencies): Add float.
67374         * modules/isnanl-nolibm (Dependencies): Likewise.
67375         * modules/mathl (Dependencies): Likewise.
67376         * modules/printf-frexpl (Dependencies): Likewise.
67377         * modules/signbit (Dependencies): Likewise.
67378         * modules/vasnprintf (Dependencies): Likewise.
67379         * doc/headers/float.texi: Update.
67380
67381 2007-05-19  Jim Meyering  <jim@meyering.net>
67382
67383         * lib/utimens.c (gl_futimens): Rename from futimens,
67384         now that glibc-2.6 declares futimens.
67385         * lib/utimens.h: Likewise.
67386
67387 2007-05-19  Bruno Haible  <bruno@clisp.org>
67388
67389         Avoid test failures on mingw.
67390         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67391         * tests/test-printf-posix.sh: Likewise.
67392         * tests/test-vfprintf-posix.sh: Likewise.
67393         * tests/test-vprintf-posix.sh: Likewise.
67394
67395 2007-05-19  Bruno Haible  <bruno@clisp.org>
67396
67397         Fix *printf result for NaN, Inf, -0.0 on mingw.
67398         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67399         * lib/vasnprintf.c: Include math.h and isnan.h.
67400         (is_infinite_or_zero): New function.
67401         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67402         values in the %f, %F, %e, %E, %g, %G directives.
67403         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67404         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67405         gl_PRINTF_INFINITE and test its result. Invoke
67406         gl_PREREQ_VASNPRINTF_INFINITE.
67407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67408         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67411         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67414         * doc/functions/fprintf.texi: Update.
67415         * doc/functions/printf.texi: Update.
67416         * doc/functions/snprintf.texi: Update.
67417         * doc/functions/sprintf.texi: Update.
67418         * doc/functions/vfprintf.texi: Update.
67419         * doc/functions/vprintf.texi: Update.
67420         * doc/functions/vsnprintf.texi: Update.
67421         * doc/functions/vsprintf.texi: Update.
67422
67423 2007-05-19  Bruno Haible  <bruno@clisp.org>
67424
67425         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67426         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67427         Instead of multiplying with 10^k, set extra_zeroes to k.
67428         (scale10_round_long_double): Remove function.
67429
67430 2007-05-18  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67433         introduced on 2007-05-06.
67434
67435 2007-05-18  Bruno Haible  <bruno@clisp.org>
67436
67437         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67438         %g directives.
67439         * tests/test-vasprintf-posix.c (test_function): Likewise.
67440         * tests/test-snprintf-posix.h (test_function): Likewise.
67441         * tests/test-sprintf-posix.h (test_function): Likewise.
67442
67443 2007-05-18  Bruno Haible  <bruno@clisp.org>
67444
67445         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67446         (strmatch): New function.
67447         (test_function): Test the %f directive on numbers of various exponents.
67448         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67449         (strmatch): New function.
67450         (test_function): Test the %f directive on numbers of various exponents.
67451         * tests/test-snprintf-posix.h (strmatch): New function.
67452         (test_function): Test the %f directive on numbers of various exponents.
67453         * tests/test-sprintf-posix.h (strmatch): New function.
67454         (test_function): Test the %f directive on numbers of various exponents.
67455         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67456         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67457         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67458         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67459
67460 2007-05-18  Bruno Haible  <bruno@clisp.org>
67461
67462         Add support for 'long double' number output.
67463         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67464         * lib/vasnprintf.c: Include math.h and float+.h.
67465         (mp_limb_t): New type.
67466         (GMP_LIMB_BITS): New macro.
67467         (mp_twolimb_t): New type.
67468         (GMP_TWOLIMB_BITS): New macro.
67469         (mpn_t): New type.
67470         (multiply, divide, convert_to_decimal, decode_long_double,
67471         scale10_round_long_double, scale10_round_decimal_long_double,
67472         floorlog10l): New functions.
67473         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67474         for the %f, %F, %e, %E, %g, %G directives.
67475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67477         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67478         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67486         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67487         * modules/snprintf-posix (Depends-on): Likewise.
67488         * modules/sprintf-posix (Depends-on): Likewise.
67489         * modules/vasnprintf-posix (Depends-on): Likewise.
67490         * modules/vasprintf-posix (Depends-on): Likewise.
67491         * modules/vfprintf-posix (Depends-on): Likewise.
67492         * modules/vsnprintf-posix (Depends-on): Likewise.
67493         * modules/vsprintf-posix (Depends-on): Likewise.
67494         * modules/vasnprintf (Files): Add lib/float+.h.
67495         * doc/functions/fprintf.texi: Update.
67496         * doc/functions/printf.texi: Update.
67497         * doc/functions/snprintf.texi: Update.
67498         * doc/functions/sprintf.texi: Update.
67499         * doc/functions/vfprintf.texi: Update.
67500         * doc/functions/vprintf.texi: Update.
67501         * doc/functions/vsnprintf.texi: Update.
67502         * doc/functions/vsprintf.texi: Update.
67503
67504 2007-05-18  Bruno Haible  <bruno@clisp.org>
67505
67506         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67507
67508 2007-05-18  Bruno Haible  <bruno@clisp.org>
67509
67510         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67511         for printing 64-bit integers. Needed for mingw.
67512
67513 2007-05-18  Bruno Haible  <bruno@clisp.org>
67514
67515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67516         gl_FUNC_FREXPL_WORKS.
67517         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67518
67519 2007-05-18  Bruno Haible  <bruno@clisp.org>
67520
67521         * modules/frexpl-nolibm-tests: New file.
67522
67523         * modules/frexpl-nolibm: New file.
67524         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67525
67526 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67529         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67530         GCC 4.2, which otherwise issues a lot of warnings.
67531         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67532         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67533         Likewise.
67534         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67535         * modules/iconv_open (iconv.h): Likewise.
67536         * modules/locale (locale.h): Likewise.
67537         * modules/netinet_in (netinet/in.h): Likewise.
67538         * modules/sys_select (sys_select.h): Likewise.
67539         * modules/sys_socket (sys/socket.h): Likewise.
67540         * modules/sys_stat (sys/stat.h): Likewise.
67541         * modules/sysexits (sysexits.h): Likewise.
67542         * modules/unistd (unistd.h): Likewise.
67543
67544 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67545
67546         * modules/closein-tests (Makefile.am): Distribute
67547         `test-closein.sh'.
67548
67549 2007-05-17  Bruno Haible  <bruno@clisp.org>
67550
67551         * tests/test-printf-posix.output: Renamed from
67552         tests/test-fprintf-posix.out.
67553         * modules/fprintf-posix-tests: Update.
67554         * modules/printf-posix-tests: Update.
67555         * modules/vfprintf-posix-tests: Update.
67556         * modules/vprintf-posix-tests: Update.
67557         * tests/test-fprintf-posix.sh: Update.
67558         * tests/test-printf-posix.sh: Update.
67559         * tests/test-vfprintf-posix.sh: Update.
67560         * tests/test-vprintf-posix.sh: Update.
67561         Reported by Ralf Wildenhues.
67562
67563 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67566         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67567         GCC 4.2, which otherwise issues a lot of warnings.
67568         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67569         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67570         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67571         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67572         it should no longer be needed.
67573         * lib/string_.h: Likewise.
67574         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67575         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67576         * modules/inttypes (inttypes.h): Likewise.
67577         * modules/math (math.h): Likewise.
67578         * modules/search (search.h): Likewise.
67579         * modules/signal (signal.h): Likewise.
67580         * modules/stdint (stdint.h): Likewise.
67581         * modules/stdio (stdio.h): Likewise.
67582         * modules/stdlib (stdlib.h): Likewise.
67583         * modules/string (string.h): Likewise.
67584         * modules/sys_time (sys/time.h): Likewise.
67585         * modules/time (time.h): Likewise.
67586         * modules/wchar (wchar.h): Likewise.
67587         * modules/wctype (wtype.h): Likewise.
67588
67589 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67590
67591         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67592
67593 2007-05-13  Bruno Haible  <bruno@clisp.org>
67594
67595         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67596         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67597         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67598         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67599         (gl_PREREQ_STRTOK_R): Don't require it here.
67600
67601 2007-05-13  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67604         when used in C++ mode.
67605
67606 2007-05-12  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/linebuffer.h: Tweak doc.
67609         * lib/linebuffer.c: Likewise.
67610
67611 2007-05-12  James Youngman  <jay@gnu.org>
67612
67613         * lib/linebuffer.c (readlinebuffer_delim): New function,
67614         like readlinebuffer, but use a caller-specified delimiter.
67615         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67616         as the delimiter.
67617         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67618
67619 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67620
67621         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67622         * modules/openat (Files): Remove openat-die.c.
67623         (Depends-on): Add openat-die.
67624         * modules/openat-die: New module.
67625
67626 2007-05-06  Bruno Haible  <bruno@clisp.org>
67627
67628         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67629         Update with info about Cygwin.
67630         * doc/functions/fprintf.texi: Update.
67631         * doc/functions/printf.texi: Update.
67632         * doc/functions/snprintf.texi: Update.
67633         * doc/functions/sprintf.texi: Update.
67634         * doc/functions/vfprintf.texi: Update.
67635         * doc/functions/vprintf.texi: Update.
67636         * doc/functions/vsnprintf.texi: Update.
67637         * doc/functions/vsprintf.texi: Update.
67638         Reported by Eric Blake.
67639
67640 2007-05-06  Bruno Haible  <bruno@clisp.org>
67641
67642         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67643         padding ourselves for the floating-point directives.
67644         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67647         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67648         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67656         * tests/test-snprintf-posix.h (test_function): Also check the width
67657         and some flags in the %f directive.
67658         * tests/test-sprintf-posix.h (test_function): Likewise.
67659         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67660         * tests/test-vasprintf-posix.c (test_function): Likewise.
67661         * doc/functions/fprintf.texi: Update.
67662         * doc/functions/printf.texi: Update.
67663         * doc/functions/snprintf.texi: Update.
67664         * doc/functions/sprintf.texi: Update.
67665         * doc/functions/vfprintf.texi: Update.
67666         * doc/functions/vprintf.texi: Update.
67667         * doc/functions/vsnprintf.texi: Update.
67668         * doc/functions/vsprintf.texi: Update.
67669
67670 2007-05-06  Bruno Haible  <bruno@clisp.org>
67671
67672         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67673         pass the ' flag character to sprintf or snprintf.
67674         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67677         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67678         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67679         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67681         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67682         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67683         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67685         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67686         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67687         flag.
67688         * tests/test-sprintf-posix.h (test_function): Likewise.
67689         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67690         * tests/test-vasprintf-posix.c (test_function): Likewise.
67691         * doc/functions/fprintf.texi: Update.
67692         * doc/functions/printf.texi: Update.
67693         * doc/functions/snprintf.texi: Update.
67694         * doc/functions/sprintf.texi: Update.
67695         * doc/functions/vfprintf.texi: Update.
67696         * doc/functions/vprintf.texi: Update.
67697         * doc/functions/vsnprintf.texi: Update.
67698         * doc/functions/vsprintf.texi: Update.
67699
67700 2007-05-01  Bruno Haible  <bruno@clisp.org>
67701
67702         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67703
67704 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67707         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67708
67709 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67712         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67714
67715 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67716
67717         * lib/argp-help.c (struct hol_entry): New member `ord'.
67718         (HOL_ENTRY_PTRCMP): Use ord for comparison
67719         (hol_sort): Initialize ord.
67720
67721 2007-05-01  Bruno Haible  <bruno@clisp.org>
67722
67723         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67724         Reported by Eric Blake.
67725         * doc/gnulib.texi (Function Substitutes): Update.
67726
67727 2007-05-01  Bruno Haible  <bruno@clisp.org>
67728
67729         * doc/functions.texi: Remove file, now redundant through
67730         doc/functions/*.texi.
67731
67732 2007-05-01  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/argp (Depends-on): Add sleep.
67735
67736 2007-05-01  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/sleep-tests: New file.
67739         * tests/test-sleep.c: New file.
67740
67741         * modules/sleep: New file.
67742         * lib/sleep.c: New file.
67743         * m4/sleep.m4: New file.
67744         * lib/unistd_.h (sleep): New declaration.
67745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67746         HAVE_SLEEP.
67747         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67748         * doc/functions/sleep.texi: Document the sleep module.
67749
67750 2007-05-01  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/sigprocmask.h: Remove file.
67753         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67754         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67755         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67756         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67757         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67758         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67759         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67760         HAVE_SIGSET_T as a shell variable.
67761         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67762         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67763         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67764         (Depends-on): Add signal. Remove verify.
67765         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67766         (Include): Mention <signal.h> instead of sigprocmask.h.
67767         * NEWS: Mention the change.
67768         * lib/fatal-signal.c: Don't include sigprocmask.h.
67769
67770 2007-05-01  Bruno Haible  <bruno@clisp.org>
67771
67772         * modules/signal: New file.
67773         * lib/signal_.h: New file.
67774         * m4/signal_h.m4: New file.
67775
67776 2007-05-01  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67779         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67780         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67781         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67782
67783 2007-05-01  Bruno Haible  <bruno@clisp.org>
67784
67785         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67786         configure time.
67787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67788         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67789         * modules/sys_stat (Makefile.am): Substitute their values into
67790         sys/stat.h.
67791
67792 2007-05-01  Bruno Haible  <bruno@clisp.org>
67793
67794         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67795         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67796         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67797
67798 2007-05-01  Bruno Haible  <bruno@clisp.org>
67799
67800         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67801         'assert' module here.
67802
67803 2007-05-01  Bruno Haible  <bruno@clisp.org>
67804
67805         * doc/functions/*.texi: New files.
67806         * doc/functions/google-ranking.txt: New file.
67807         * doc/gnulib.texi (Function Substitutes): New chapter.
67808         (ctime, inet_ntoa): Remove sections.
67809         * doc/ctime.texi: Remove file.
67810         * doc/inet_ntoa.texi: Remove file.
67811         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67812         dependencies.
67813         (%.info): New rule, specifying a --reference-limit.
67814
67815 2007-05-01  Bruno Haible  <bruno@clisp.org>
67816
67817         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67818
67819 2007-05-01  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67822         the portability of 'mkdir' to mingw systems.
67823
67824 2007-05-01  Bruno Haible  <bruno@clisp.org>
67825
67826         * doc/headers/google-ranking.txt: New file.
67827
67828 2007-04-30  Eric Blake  <ebb9@byu.net>
67829
67830         Prefer fseeko to fseek.
67831         * modules/getpass (Depends-on): Add fseeko.
67832         * lib/getpass.c (getpass): Use fseeko, not fseek.
67833
67834 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67835
67836         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67837         assumes the sorting is stable, while most qsort implementations
67838         are not.  Use argument addresses to ensure they never compare as
67839         equal.
67840
67841         * tests/test-argp-2.sh (usage-indent test): Fix output
67842         (func_compare): Restore diff options
67843         * tests/test-argp.c: Restore #include "progname.h"
67844
67845 2007-04-29  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67849         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67851         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67852         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67853         (TESTS, check_PROGRAMS): Add test-snprintf.
67854         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67855         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67856         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67857         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67858         assertions that fail on HP-UX, OSF/1, or IRIX.
67859         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67860
67861 2007-04-29  Bruno Haible  <bruno@clisp.org>
67862
67863         * MODULES.html.sh (posix_functions): Remove 'contents'.
67864
67865 2007-04-29  Karl Berry  <karl@gnu.org>
67866
67867         * config/srclist.txt (gendocs_template_min): new entry.
67868
67869 2007-04-29  Bruno Haible  <bruno@clisp.org>
67870
67871         Work around fpurge bug on BSD systems.
67872         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67873         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67874         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67875         fpurge to rpl_fpurge if the system already has this function.
67876         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67877         the case where the system already has this function. Correct invariants
67878         on BSD systems.
67879         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67880         BSD systems.
67881
67882 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67883
67884         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67885         proposed by Sven Verdoolaege.
67886
67887         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67888         options.
67889         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67890         (usage and help tests): Update
67891
67892 2007-04-29  Bruno Haible  <bruno@clisp.org>
67893
67894         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67895         Print more information in case of failure. Disable a test on BeOS.
67896
67897 2007-04-29  Bruno Haible  <bruno@clisp.org>
67898
67899         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67900         This helps debugging on systems on which no gdb is available.
67901
67902 2007-04-29  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/freading.h: Improve comments.
67905         * lib/fwriting.h: Likewise.
67906         * tests/test-freading.c (main): Don't check freading immediately after
67907         repositioning. Needed for glibc.
67908
67909 2007-04-29  Bruno Haible  <bruno@clisp.org>
67910
67911         * lib/freading.c (freading): Trivial simplification.
67912
67913 2007-04-28  Bruno Haible  <bruno@clisp.org>
67914
67915         * tests/test-fwriting.c (main): Also test the interaction between
67916         fflush and fwriting.
67917         * modules/fwriting-tests (Depends-on): Add fflush.
67918
67919         * tests/test-freading.c (main): Also test the interaction between
67920         fflush and freading.
67921         * modules/freading-tests (Depends-on): Add fflush.
67922
67923 2007-04-28  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67926         fseeko and ftello.
67927         Suggested by Eric Blake.
67928
67929 2007-04-28  Jim Meyering  <jim@meyering.net>
67930
67931         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67932         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67933         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67934
67935 2007-04-27  Eric Blake  <ebb9@byu.net>
67936
67937         * doc/headers/assert.texi (assert.h): Document assert module use.
67938
67939 2007-04-27  Bruno Haible  <bruno@clisp.org>
67940
67941         * doc/headers/*.texi: New files.
67942         * doc/gnulib.texi (Header File Substitutes): New chapter.
67943         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67944         dependencies.
67945         (standards.info ,standards.html, standards.dvi): Update dependencies.
67946         (mostlyclean, clean): New targets.
67947
67948 2007-04-27  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67951         * modules/sysexits (Files, Makefile.am): Update.
67952
67953         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67954         * modules/sys_socket (Files, Makefile.am): Update.
67955
67956         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67957         * modules/sys_stat (Files, Makefile.am): Update.
67958
67959 2007-04-27  Eric Blake  <ebb9@byu.net>
67960
67961         * lib/freading.h: Improve comments.
67962         * lib/fwriting.h: Likewise.
67963         * lib/fflush.c: Likewise.
67964
67965         Fix closein for mingw.
67966         * modules/closein-tests: Add tests for closein.
67967         * tests/test-closein.c: New file.
67968         * tests/test-closein.sh: Likewise.
67969         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67970         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67971
67972 2007-04-27  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67975         version is < 6.
67976         * lib/math_.h [__DECC]: Likewise.
67977         * lib/stdio_.h [__DECC]: Likewise.
67978         * lib/stdlib_.h [__DECC]: Likewise.
67979         * lib/string_.h [__DECC]: Likewise.
67980         * lib/time_.h [__DECC]: Likewise.
67981         * lib/wchar_.h [__DECC]: Likewise.
67982         * lib/wctype_.h [__DECC]: Likewise.
67983
67984 2007-04-27  Bruno Haible  <bruno@clisp.org>
67985
67986         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67987
67988 2007-04-27  Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/fflush.c: Add comments.
67991         * modules/fpurge-tests (Depends-on): Add fflush.
67992         * modules/freadable-tests (Depends-on): Likewise.
67993         * modules/fwritable-tests (Depends-on): Likewise.
67994
67995 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67996
67997         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67998         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67999         Report by Bruno Haible <bruno@clisp.org>.
68000
68001 2007-04-26  Eric Blake  <ebb9@byu.net>
68002
68003         Fix fflush on mingw.
68004         * modules/fflush (Depends-on): Add freading.
68005         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68006         but unread data.
68007
68008 2007-04-26  Eric Blake  <ebb9@byu.net>
68009         and Bruno Haible  <bruno@clisp.org>
68010
68011         Implement freading and fwriting.
68012         * lib/freading.c: New file.
68013         * lib/freading.h: Likewise.
68014         * m4/freading.m4: Likewise.
68015         * modules/freading: Likewise.
68016         * modules/freading-tests: Likewise.
68017         * tests/test-freading.c: Likewise.
68018         * lib/fwriting.c: New file.
68019         * lib/fwriting.h: Likewise.
68020         * m4/fwriting.m4: Likewise.
68021         * modules/fwriting: Likewise.
68022         * modules/fwriting-tests: Likewise.
68023         * tests/test-fwriting.c: Likewise.
68024         * MODULES.html.sh (File stream based Input/Output): Mention them.
68025
68026 2007-04-26  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68029         'long' when we assume it.
68030         Suggested by Eric Blake.
68031
68032 2007-04-26  Bruno Haible  <bruno@clisp.org>
68033
68034         Ensure fseeko, ftello are declared on glibc systems.
68035         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68036         * modules/fseeko (configure.ac-early): Likewise.
68037         * modules/ftello (configure.ac-early): Likewise.
68038         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68039         AC_FUNC_FSEEKO for this.
68040         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68041         (gl_CHECK_FSEEKO): Remove macro.
68042
68043 2007-04-26  Bruno Haible  <bruno@clisp.org>
68044
68045         * tests/test-fflush.c (main): Also check the ftell result after
68046         fflush and fseek/fseeko.
68047         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68048         file descriptor position cache in the stream.
68049         * lib/fseeko.c (rpl_fseeko): Likewise.
68050
68051 2007-04-26  Bruno Haible  <bruno@clisp.org>
68052
68053         * modules/fflush-tests (Depends-on): Add fseeko.
68054
68055 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68056             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68057
68058         * lib/argz_.h: ensure error_t definition is obtained in same
68059         mechanism system argz.h would have.
68060         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68061         argz facilities are known bad.  Err on the side of caution if
68062         cross-compiling.
68063
68064 2007-04-25  Eric Blake  <ebb9@byu.net>
68065
68066         * lib/fpurge.c (includes): Use stdlib.h for free.
68067         * tests/test-fflush.c (main): Also test fflush-fseeko.
68068
68069 2007-04-25  Bruno Haible  <bruno@clisp.org>
68070
68071         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68072         * lib/fseeko.c: New file.
68073         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68074         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68075         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68076         gl_FUNC_FSEEKO.
68077         (gl_FUNC_FSEEKO): Invoke it.
68078         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68079         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68080         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68081
68082 2007-04-25  Bruno Haible  <bruno@clisp.org>
68083
68084         * modules/fflush (Depends-on): Add ftello.
68085
68086 2007-04-25  Bruno Haible  <bruno@clisp.org>
68087
68088         * modules/ftello-tests: New file.
68089         * tests/test-ftello.c: New file.
68090
68091         * modules/ftello: New file.
68092         * m4/ftello.m4: New file.
68093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68094         HAVE_FTELLO.
68095         * lib/stdio_.h (ftello): New declaration.
68096         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68097         HAVE_FTELLO.
68098
68099 2007-04-25  Bruno Haible  <bruno@clisp.org>
68100
68101         * modules/fseeko-tests: New file.
68102         * tests/test-fseeko.c: New file.
68103
68104         * modules/fseeko: New file.
68105         * m4/fseeko.m4: New file.
68106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68107         HAVE_FSEEKO.
68108         * lib/stdio_.h (fseeko): New declaration.
68109         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68110         HAVE_FSEEKO.
68111
68112 2007-04-25  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68115
68116 2007-04-25  Bruno Haible  <bruno@clisp.org>
68117
68118         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68119         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68120         * tests/test-unistd.c: Likewise.
68121         * tests/test-fcntl.c: Likewise.
68122
68123 2007-04-23  Eric Blake  <ebb9@byu.net>
68124
68125         * lib/fflush.c: Fix missing include.
68126         Reported by Bruno Haible.
68127
68128 2007-04-23  Bruno Haible  <bruno@clisp.org>
68129
68130         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68131         Reported by Eric Blake.
68132
68133 2007-04-23  Bruno Haible  <bruno@clisp.org>
68134
68135         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68136
68137 2007-04-23  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68140
68141 2007-04-23  Bruno Haible  <bruno@clisp.org>
68142
68143         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68144         Needed on HP-UX 11.
68145
68146 2007-04-16  Eric Blake  <ebb9@byu.net>
68147
68148         Make fflush rely on fpurge.
68149         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68150         open coding all variants.
68151         * modules/fflush (Depends-on): Add fpurge and unistd.
68152         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68153         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68154
68155         Fix --with-tests compilation on cygwin.
68156         * modules/argmatch-tests (Makefile.am): List gnulib library first
68157         in LDADD.
68158         * modules/argp-tests (Makefile.am): Likewise.
68159         * modules/array-list-tests (Makefile.am): Likewise.
68160         * modules/array-oset-tests (Makefile.am): Likewise.
68161         * modules/avltree-list-tests (Makefile.am): Likewise.
68162         * modules/avltree-oset-tests (Makefile.am): Likewise.
68163         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68164         * modules/carray-list-tests (Makefile.am): Likewise.
68165         * modules/dirname-tests (Makefile.am): Likewise.
68166         * modules/frexp-tests (Makefile.am): Likewise.
68167         * modules/isnanl-tests (Makefile.am): Likewise.
68168         * modules/linked-list-tests (Makefile.am): Likewise.
68169         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68170         * modules/lock-tests (Makefile.am): Likewise.
68171         * modules/rbtree-list-tests (Makefile.am): Likewise.
68172         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68173         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68174         * modules/tls-tests (Makefile.am): Likewise.
68175         * modules/tsearch-tests (Makefile.am): Likewise.
68176         * modules/xvasprintf-tests (Makefile.am): Likewise.
68177
68178         Fix fpurge for cygwin.
68179         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68180         value.
68181         * modules/fpurge-tests (Depends-on): Clean up trash.
68182
68183 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68184
68185         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68186
68187         * m4/autobuild.m4: Re-indent.
68188
68189 2007-04-13  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/fpurge-tests: New file.
68192         * tests/test-fpurge.c: New file.
68193
68194         * modules/fpurge: New file.
68195         * lib/fpurge.h: New file.
68196         * lib/fpurge.c: New file.
68197         * m4/fpurge.m4: New file.
68198
68199 2007-04-13  Bruno Haible  <bruno@clisp.org>
68200
68201         * modules/fbufmode-tests: New file.
68202         * tests/test-fbufmode.c: New file.
68203
68204         * modules/fbufmode: New file.
68205         * lib/fbufmode.h: New file.
68206         * lib/fbufmode.c: New file.
68207         * m4/fbufmode.m4: New file.
68208
68209 2007-04-13  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/fwritable-tests: New file.
68212         * tests/test-fwritable.c: New file.
68213
68214         * modules/fwritable: New file.
68215         * lib/fwritable.h: New file.
68216         * lib/fwritable.c: New file.
68217         * m4/fwritable.m4: New file.
68218
68219 2007-04-13  Bruno Haible  <bruno@clisp.org>
68220
68221         * modules/freadable-tests: New file.
68222         * tests/test-freadable.c: New file.
68223
68224         * modules/freadable: New file.
68225         * lib/freadable.h: New file.
68226         * lib/freadable.c: New file.
68227         * m4/freadable.m4: New file.
68228
68229 2007-04-13  Bruno Haible  <bruno@clisp.org>
68230
68231         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68232         MOSTLYCLEANFILES.
68233
68234 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68235
68236         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68237         gzip bootstrap.conf to avoid dragging in i18n machinery.
68238         (gnulib_tool_option): Use it.
68239
68240 2007-04-13  Bruno Haible  <bruno@clisp.org>
68241
68242         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68243         %F directives.
68244         * tests/test-vasprintf-posix.c (test_function): Likewise.
68245         * tests/test-snprintf-posix.h (test_function): Likewise.
68246         * tests/test-sprintf-posix.h (test_function): Likewise.
68247         * tests/test-fprintf-posix.h (test_function): Likewise.
68248         * tests/test-printf-posix.h (test_function): Likewise.
68249         * tests/test-fprintf-posix.out: Likewise.
68250
68251 2007-04-13  Bruno Haible  <bruno@clisp.org>
68252
68253         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68254         * modules/tls-tests (configure.ac): Likewise.
68255         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68256
68257 2007-04-13  Bruno Haible  <bruno@clisp.org>
68258
68259         * lib/tls.c (glthread_tls_get): Fix return type.
68260         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68261
68262 2007-04-12  Eric Blake  <ebb9@byu.net>
68263
68264         * modules/gettime (Depends-on): Remove gettime.
68265         Reported by Dmitry V. Levin.
68266
68267 2007-04-12  Bruno Haible  <bruno@clisp.org>
68268
68269         * modules/fflush (Include): Mention <stdio.h>.
68270         * modules/strtoimax (Include): Mention <inttypes.h>.
68271         * modules/strtoumax (Include): Likewise.
68272
68273 2007-04-12  Eric Blake  <ebb9@byu.net>
68274
68275         * .cvsignore: New file.
68276         * .gitignore: Likewise.
68277
68278 2007-04-12  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68281         not before, since $(LDADD) often contains libgnu.a.
68282         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68283         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68284         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68285         Needed on Cygwin.
68286
68287 2007-04-12  Eric Blake  <ebb9@byu.net>
68288
68289         Work around glibc's failure to flush stdin on fclose.
68290         * lib/closein.c (close_stdin): Flush stdin before closing.
68291
68292         Work around glibc's failure to reset seekable stdin on exit.
68293         * modules/closein: New module.
68294         * lib/closein.c: New file.
68295         * lib/closein.h: Likewise.
68296         * m4/closein.m4: Likewise.
68297         * MODULES.html.sh (File stream based Input/Output): Document it.
68298
68299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68300
68301         * gnulib-tool: Rename generated 'autobuild' script to
68302         'do-autobuild' in --create-megatestdir output.
68303
68304         * doc/gnulib.texi (Build robot for gnulib): Fix.
68305
68306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68307
68308         * modules/sysexits (Depends-on): Add absolute-header.
68309
68310 2007-04-12  Eric Blake  <ebb9@byu.net>
68311
68312         No need to preserve errno on success.
68313         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68314         Reported by Bruno Haible.
68315
68316 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68317
68318         * MODULES.html.sh (Support for maintaining and releasing
68319         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68320
68321 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68322
68323         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68324
68325 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68326
68327         * modules/autobuild: New module.
68328
68329         * m4/autobuild.m4: New file.
68330
68331 2007-04-11  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68334         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68344         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68345         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68347         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68348         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68350         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68351         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68353         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68354         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68361         Reported by Eric Blake.
68362
68363 2007-04-11  Bruno Haible  <bruno@clisp.org>
68364
68365         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68366
68367 2007-04-10  Bruno Haible  <bruno@clisp.org>
68368
68369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68370         for NaN and Infinity. Needed on FreeBSD 6.1.
68371         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68372         regarding results for "%010a" of Infinity and NaN.
68373         * tests/test-vasprintf-posix.c (test_function): Likewise.
68374         * tests/test-snprintf-posix.h (test_function): Likewise.
68375         * tests/test-sprintf-posix.h (test_function): Likewise.
68376         * tests/test-fprintf-posix.h (test_function): Likewise.
68377         * tests/test-printf-posix.h (test_function): Likewise.
68378         * tests/test-fprintf-posix.out: Likewise.
68379
68380 2007-04-10  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/locale-tests: New file.
68383         * tests/test-locale.c: New file.
68384
68385         * modules/locale: New file.
68386         * lib/locale_.h: New file.
68387         * m4/locale_h.m4: New file.
68388
68389 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68390             Bruno Haible  <bruno@clisp.org>
68391
68392         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68393         be determined, test for availability of the copysignf, copysign,
68394         copysignl functions.
68395         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68396         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68397         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68398
68399 2007-04-09  Eric Blake  <ebb9@byu.net>
68400
68401         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68402         * modules/stdio (Makefile.am): Support fflush.
68403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68404         * modules/fflush: New file.
68405         * lib/fflush.c: Likewise.
68406         * m4/fflush.m4: Likewise.
68407         * modules/fflush-tests: New test.
68408         * tests/test-fflush.c: Likewise.
68409         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68410
68411 2007-04-06  Bruno Haible  <bruno@clisp.org>
68412
68413         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68414         (VASNPRINTF): Use signbit for faster determination whether to print a
68415         minus sign.
68416         * modules/vasnprintf (Files): Remove lib/float+.h.
68417         * modules/fprintf-posix (Depends-on): Add signbit.
68418         * modules/snprintf-posix (Depends-on): Likewise.
68419         * modules/sprintf-posix (Depends-on): Likewise.
68420         * modules/vasnprintf-posix (Depends-on): Likewise.
68421         * modules/vasprintf-posix (Depends-on): Likewise.
68422         * modules/vfprintf-posix (Depends-on): Likewise.
68423         * modules/vsnprintf-posix (Depends-on): Likewise.
68424         * modules/vsprintf-posix (Depends-on): Likewise.
68425
68426 2007-04-06  Bruno Haible  <bruno@clisp.org>
68427
68428         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68429         * tests/test-frexpl.c (main): Likewise.
68430         * tests/test-ldexpl.c (main): Likewise.
68431         * modules/frexp-tests (Depends-on): Add signbit.
68432         * modules/frexpl-tests (Depdends-on): Likewise.
68433         * modules/ldexpl-tests (Depdends-on): Likewise.
68434
68435 2007-04-06  Bruno Haible  <bruno@clisp.org>
68436
68437         * modules/signbit-tests: New file.
68438         * tests/test-signbit.c: New file.
68439
68440         * modules/signbit: New file.
68441         * lib/signbitf.c: New file.
68442         * lib/signbitd.c: New file.
68443         * lib/signbitl.c: New file.
68444         * m4/signbit.m4: New file.
68445         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68446         (signbit): New macro.
68447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68448         REPLACE_SIGNBIT.
68449         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68450         REPLACE_FREXPL into math.h.
68451
68452 2007-04-06  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/isnanf-nolibm-tests: New file.
68455         * tests/test-isnanf.c: New file.
68456
68457         * modules/isnanf-nolibm: New file.
68458         * lib/isnanf.h: New file.
68459         * lib/isnanf.c: New file.
68460         * lib/isnan.c: Consider the USE_FLOAT macro.
68461         * m4/isnanf.m4: New file.
68462
68463 2007-04-06  Bruno Haible  <bruno@clisp.org>
68464
68465         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68466         (Link): New section.
68467
68468         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68469
68470 2007-04-06  Bruno Haible  <bruno@clisp.org>
68471
68472         Assume the 'long double' type.
68473         * m4/longdouble.m4: Remove file.
68474         * config/srclist.txt: Don't mention longdouble.m4.
68475         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68476         * lib/float+.h: Likewise.
68477         * lib/frexp.c: Likewise.
68478         * lib/printf-args.h: Likewise.
68479         * lib/printf-args.c: Likewise.
68480         * lib/printf-frexp.c: Likewise.
68481         * lib/printf-parse.c: Likewise.
68482         * lib/vasnprintf.c: Likewise.
68483         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68484         * m4/intl.m4: Likewise.
68485         * m4/isnanl.m4: Likewise.
68486         * m4/printf.m4: Likewise.
68487         * m4/printf-frexpl.m4: Likewise.
68488         * m4/vasnprintf.m4: Likewise.
68489         * modules/allocsa (Files): Remove m4/longdouble.m4.
68490         * modules/gettext (Files): Likewise.
68491         * modules/relocatable-prog-wrapper (Files): Likewise.
68492         * modules/vasnprintf (Files): Likewise.
68493         * modules/isnanl (Files): Likewise.
68494         (Include): Simplify.
68495         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68496         (Include): Simplify.
68497         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68498         (Include): Simplify.
68499         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68500         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68501         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68502         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68503         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68504         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68505         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68506         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68507         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68509         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68510         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68511         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68512         * tests/test-isnanl.c: Likewise.
68513         * tests/test-snprintf-posix.h: Likewise.
68514         * tests/test-sprintf-posix.h: Likewise.
68515         * tests/test-vasnprintf-posix.c: Likewise.
68516         * tests/test-vasnprintf-posix2.c: Likewise.
68517         * tests/test-vasprintf-posix.c: Likewise.
68518
68519 2007-04-06  Bruno Haible  <bruno@clisp.org>
68520
68521         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68522         * lib/math_.h [__DECC]: Include the overridden include file through
68523         #include_next, outside the double-inclusion guard.
68524         * lib/stdio_.h [__DECC]: Likewise.
68525         * lib/stdlib_.h [__DECC]: Likewise.
68526         * lib/string_.h [__DECC]: Likewise.
68527         * lib/time_.h [__DECC]: Likewise.
68528         * lib/wchar_.h [__DECC]: Likewise.
68529         * lib/wctype_.h [__DECC]: Likewise.
68530         * lib/inttypes_.h [__DECC]: Likewise.
68531         Reported by Albert Chin <china@thewrittenword.com> in
68532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68533
68534 2007-04-04  Eric Blake  <ebb9@byu.net>
68535
68536         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68537         1.5.x.
68538
68539 2007-04-04  Bruno Haible  <bruno@clisp.org>
68540
68541         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68542         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68543
68544 2007-04-04  Bruno Haible  <bruno@clisp.org>
68545
68546         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68547         results for "%010a" of Infinity and NaN.
68548         * tests/test-vasprintf-posix.c (test_function): Likewise.
68549         * tests/test-snprintf-posix.h (test_function): Likewise.
68550         * tests/test-sprintf-posix.h (test_function): Likewise.
68551         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68552         * tests/test-printf-posix.h (test_function): Likewise.
68553         * tests/test-fprintf-posix.out: Update.
68554         Needed for FreeBSD 6.1.
68555
68556 2007-04-04  Bruno Haible  <bruno@clisp.org>
68557
68558         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68559         directly used by the gnulib modules nor by gnulib-tool.
68560
68561 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68562
68563         * DEPENDENCIES: Give overall description of version dependency
68564         desirability.  Use more-typical names for apps.
68565         Add shell, coreutils, diffutils, grep, tar, gzip.
68566
68567 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68568
68569         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68570
68571 2007-04-04  Karl Berry  <karl@gnu.org>
68572
68573         * MODULES.html.sh (func_module): missing '.
68574
68575 2007-04-03  Bruno Haible  <bruno@clisp.org>
68576
68577         * modules/argmatch-tests (Makefile.am): New variable
68578         test_argmatch_LDADD.
68579         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68580         * modules/array-list-tests (Makefile.am): New variable
68581         test_array_list_LDADD.
68582         * modules/array-oset-tests (Makefile.am): New variable
68583         test_array_oset_LDADD.
68584         * modules/avltree-list-tests (Makefile.am): New variable
68585         test_avltree_list_LDADD.
68586         * modules/avltree-oset-tests (Makefile.am): New variable
68587         test_avltree_oset_LDADD.
68588         * modules/avltreehash-list-tests (Makefile.am): New variable
68589         test_avltreehash_list_LDADD.
68590         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68591         test_canonicalize_lgpl_LDADD.
68592         * modules/carray-list-tests (Makefile.am): New variable
68593         test_carray_list_LDADD.
68594         * modules/dirname-tests (Makefile.am): New variable
68595         test_dirname_LDADD.
68596         * modules/linked-list-tests (Makefile.am): New variable
68597         test_linked_list_LDADD.
68598         * modules/linkedhash-list-tests (Makefile.am): New variable
68599         test_linkedhash_list_LDADD.
68600         * modules/rbtree-list-tests (Makefile.am): New variable
68601         test_rbtree_list_LDADD.
68602         * modules/rbtree-oset-tests (Makefile.am): New variable
68603         test_rbtree_oset_LDADD.
68604         * modules/rbtreehash-list-tests (Makefile.am): New variable
68605         test_rbtreehash_list_LDADD.
68606         * modules/xvasprintf-tests (Makefile.am): New variable
68607         test_xvasprintf_LDADD.
68608         Reported by Eric Blake.
68609
68610 2007-04-03  Eric Blake  <ebb9@byu.net>
68611
68612         * DEPENDENCIES: Weaken m4 requirements.
68613
68614 2007-04-03  Bruno Haible  <bruno@clisp.org>
68615
68616         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68617         * modules/isnanl-tests (configure.ac): Likewise.
68618
68619 2007-04-03  Ben Pfaff  <blp@gnu.org>
68620
68621         * modules/iconv_open: Add $(srcdir)/ to source directory
68622         references in Makefile fragments that call gperf, to fix VPATH
68623         builds.
68624
68625 2007-04-03  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68628         * lib/ldexpl.c: Undo last change.
68629
68630 2007-04-03  Bruno Haible  <bruno@clisp.org>
68631
68632         * modules/printf-frexpl (Depends-on): Undo last change.
68633         (Files): Add m4/ldexpl.m4.
68634
68635 2007-04-03  Bruno Haible  <bruno@clisp.org>
68636
68637         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68638         * modules/isnanl (Link): New section.
68639
68640         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68641         * modules/frexp (Link): New section.
68642
68643         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68644         * modules/frexpl (Link): New section.
68645
68646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68647         * modules/ldexpl (Link): New section.
68648
68649 2007-04-03  Bruno Haible  <bruno@clisp.org>
68650
68651         * modules/TEMPLATE-EXTENDED: New file.
68652         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68653
68654 2007-04-03  Bruno Haible  <bruno@clisp.org>
68655
68656         * DEPENDENCIES: New file.
68657         Suggested by Simon Josefsson.
68658
68659 2007-04-03  Bruno Haible  <bruno@clisp.org>
68660
68661         * doc/gnulib.texi: Escape @.
68662
68663 2007-04-03  James Youngman  <jay@gnu.org>
68664         and Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68667         birthtime on all systems that have birthtime, not just those which
68668         use st_birthtimensec rather than st_birthtim.  Putting zero in
68669         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68670         that the birth time is not available for files on an NFS mount.
68671
68672 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68673
68674         * modules/memxor: Move back from crypto/, suggested by Bruno.
68675         * modules/crypto/hmac-sha1: Fix memxor dependency.
68676
68677         * modules/crypto/gc: Moved from ../.
68678
68679 2007-04-02  Eric Blake  <ebb9@byu.net>
68680
68681         * lib/ldexpl.c (includes): Avoid libm.
68682
68683         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68684
68685 2007-04-02  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68688         on IRIX.
68689
68690 2007-04-02  Bruno Haible  <bruno@clisp.org>
68691
68692         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68693         x86 or x86_64 platforms running MacOS X.
68694         Reported by Ryan Schmidt <@ryandesign.com>.
68695
68696 2007-04-02  Bruno Haible  <bruno@clisp.org>
68697
68698         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68699         i386.
68700
68701 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68702
68703         * modules/crypto/arcfour: Moved from ../.
68704         * modules/crypto/arcfour-tests: Moved from ../.
68705         * modules/crypto/arctwo: Moved from ../.
68706         * modules/crypto/arctwo-tests: Moved from ../.
68707         * modules/crypto/des: Moved from ../.
68708         * modules/crypto/des-tests: Moved from ../.
68709         * modules/crypto/gc-arcfour: Moved from ../.
68710         * modules/crypto/gc-arcfour-tests: Moved from ../.
68711         * modules/crypto/gc-arctwo: Moved from ../.
68712         * modules/crypto/gc-arctwo-tests: Moved from ../.
68713         * modules/crypto/gc-des: Moved from ../.
68714         * modules/crypto/gc-des-tests: Moved from ../.
68715         * modules/crypto/gc-hmac-md5: Moved from ../.
68716         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68717         * modules/crypto/gc-hmac-sha1: Moved from ../.
68718         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68719         * modules/crypto/gc-md2: Moved from ../.
68720         * modules/crypto/gc-md2-tests: Moved from ../.
68721         * modules/crypto/gc-md4: Moved from ../.
68722         * modules/crypto/gc-md4-tests: Moved from ../.
68723         * modules/crypto/gc-md5: Moved from ../.
68724         * modules/crypto/gc-md5-tests: Moved from ../.
68725         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68726         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68727         * modules/crypto/gc-random: Moved from ../.
68728         * modules/crypto/gc-rijndael: Moved from ../.
68729         * modules/crypto/gc-rijndael-tests: Moved from ../.
68730         * modules/crypto/gc-sha1: Moved from ../.
68731         * modules/crypto/gc-sha1-tests: Moved from ../.
68732         * modules/crypto/gc-tests: Moved from ../.
68733         * modules/crypto/hmac-md5: Moved from ../.
68734         * modules/crypto/hmac-md5-tests: Moved from ../.
68735         * modules/crypto/hmac-sha1: Moved from ../.
68736         * modules/crypto/hmac-sha1-tests: Moved from ../.
68737         * modules/crypto/md2: Moved from ../.
68738         * modules/crypto/md2-tests: Moved from ../.
68739         * modules/crypto/md4: Moved from ../.
68740         * modules/crypto/md4-tests: Moved from ../.
68741         * modules/crypto/md5: Moved from ../.
68742         * modules/crypto/md5-tests: Moved from ../.
68743         * modules/crypto/memxor: Moved from ../.
68744         * modules/crypto/rijndael: Moved from ../.
68745         * modules/crypto/rijndael-tests: Moved from ../.
68746         * modules/crypto/sha1: Moved from ../.
68747
68748 2007-03-30  James Youngman  <jay@gnu.org>
68749
68750         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68751         rename() to change the ctime of a file (because ctime is unaffected
68752         by rename on jfs2 on AIX 5.1).
68753         (main): Start by doing cleanup, in case a previous run failed leaving
68754         test files behind.
68755
68756 2007-03-31  Bruno Haible  <bruno@clisp.org>
68757
68758         Support old proprietary implementations of iconv.
68759         * modules/iconv_open: New file.
68760         * lib/iconv_.h: New file.
68761         * m4/iconv_h.m4: New file.
68762         * lib/iconv_open.c: New file.
68763         * lib/iconv_open-aix.gperf: New file.
68764         * lib/iconv_open-hpux.gperf: New file.
68765         * lib/iconv_open-irix.gperf: New file.
68766         * lib/iconv_open-osf.gperf: New file.
68767         * m4/iconv_open.m4: New file.
68768         * modules/linebreak (Depends-on): Add iconv_open.
68769         * modules/striconv (Depends-on): Likewise.
68770         * modules/striconveh (Depends-on): Likewise.
68771         * modules/unicodeio (Depends-on): Likewise.
68772         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68773         (iconv_t)(-1).
68774         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68775         conversion if cd is (iconv_t)(-1).
68776         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68777         is not possible.
68778
68779 2007-03-31  Bruno Haible  <bruno@clisp.org>
68780
68781         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68782         work on Solaris either. Protect also second use of "autodetect_jp".
68783
68784 2007-03-31  Bruno Haible  <bruno@clisp.org>
68785
68786         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68787         the function is not present.
68788
68789 2007-03-31  Bruno Haible  <bruno@clisp.org>
68790
68791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68792         the function is not present.
68793
68794 2007-03-31  Bruno Haible  <bruno@clisp.org>
68795
68796         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68797         a bug in HP-UX iconv_open().
68798
68799 2007-03-31  Bruno Haible  <bruno@clisp.org>
68800
68801         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68802         (Mathematics <math.h>): New section, add fpieee.
68803         (Input/output <stdio.h>): Add fseterr.
68804         (Mathematics <math.h>): New section, add printf-frexp.
68805         (Container data structures): Add sublist.
68806         (Core language properties): Add fpucw, inline.
68807         (Functions for greatest-width integer types <inttypes.h>): Add
68808         imaxabs, imaxdiv, inttypes.
68809         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68810         isnanl-nolibm, ldexp.
68811         (Mathematics <math.h>): New section, add printf-frexpl.
68812         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68813         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68814         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68815         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68816         (Unicode string functions): Add unistr/u*-mbtoucr.
68817         (Java): Add javacomp-script, javaexec-script.
68818         (C#): Add csharpcomp-script, csharpexec-script.
68819         (Support for building libraries and executables): Add havelib,
68820         relocatable-*.
68821         (Support for maintaining and releasing projects): Renamed from
68822         'Support for maintaining and release projects'. Add announce-gen.
68823
68824 2007-03-31  Bruno Haible  <bruno@clisp.org>
68825
68826         * README: Talk primarily about git.
68827         (git and CVS): Renamed from CVS.
68828         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68829         gnulib is available through git.
68830         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68831
68832 2007-03-30  Bruno Haible  <bruno@clisp.org>
68833
68834         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68835         * lib/poll_.h: Likewise.
68836         * lib/stat_.h: Likewise.
68837         * lib/sys_time_.h: Likewise.
68838         * lib/sysexit_.h: Likewise.
68839         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68840         * lib/stdbool_.h: Likewise.
68841         * lib/byteswap_.h: Add double-inclusion guard.
68842
68843 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68844
68845         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68846
68847 2007-03-30  Karl Berry  <karl@gnu.org>
68848
68849         * config/srclist-update: double space after USA in the license
68850         substitution, since that's how it's usually (?) written.
68851
68852 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68855         reported by Bruno Haible.
68856
68857 2007-03-29  Bruno Haible  <bruno@clisp.org>
68858
68859         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68860         a bug in AIX iconv().
68861
68862 2007-03-29  Bruno Haible  <bruno@clisp.org>
68863
68864         * modules/ldexpl-tests: New file.
68865         * tests/test-ldexpl.c: New file.
68866
68867 2007-03-29  Bruno Haible  <bruno@clisp.org>
68868
68869         * lib/ldexpl.c: Include fpucw.h.
68870         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68871         multiplication.
68872         * modules/ldexpl (Depends-on): Add fpucw.
68873
68874 2007-03-29  Bruno Haible  <bruno@clisp.org>
68875
68876         * modules/ldexpl: New file.
68877         * m4/ldexpl.m4: New file.
68878         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68879         set.
68880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68881         REPLACE_LDEXPL.
68882         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68883         REPLACE_LDEXPL.
68884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68885         gl_FUNC_LDEXPL_WORKS.
68886         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68887         * modules/mathl (Files): Remove lib/ldexpl.c.
68888         (Depends-on): Add ldexpl.
68889
68890 2007-03-29  Bruno Haible  <bruno@clisp.org>
68891
68892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68893
68894 2007-03-29  Bruno Haible  <bruno@clisp.org>
68895
68896         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68897         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68898         and possibly also HP-UX.
68899         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68900         work on AIX, IRIX, HP-UX, OSF/1.
68901         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68902         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68903         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68904         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68905         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68906         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68907
68908 2007-03-29  Bruno Haible  <bruno@clisp.org>
68909
68910         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68911
68912 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68915         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68916
68917 2007-03-29  Eric Blake  <ebb9@byu.net>
68918
68919         * lib/acl-internal.h: Remove redundant include.
68920         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68921         Cygwin when a file is locked.
68922
68923 2007-03-29  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68926         file.
68927         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68928
68929 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68932         try to remove a parent directory if the child couldn't be removed
68933         (except for the first rmdir, which could fail because the child
68934         doesn't exist).  Problem reported by Jeff Blaine in
68935         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68936
68937 2007-03-28  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/striconveh.c (utf8conv_carefully): New function.
68940         (mem_cd_iconveh_internal): Invoke it.
68941
68942 2007-03-28  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68945         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68946         input.
68947         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68948         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68949         unistr/u8-uctomb.
68950
68951 2007-03-28  Bruno Haible  <bruno@clisp.org>
68952
68953         * modules/unistr/u8-mbtoucr: New file.
68954         * lib/unistr/u8-mbtoucr.c: New file.
68955         * modules/unistr/u16-mbtoucr: New file.
68956         * lib/unistr/u16-mbtoucr.c: New file.
68957         * modules/unistr/u16-mbtoucr: New file.
68958         * lib/unistr/u16-mbtoucr.c: New file.
68959         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68960
68961 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68962             Bruno Haible  <bruno@clisp.org>
68963
68964         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68965         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68966         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68967
68968         * m4/stdio_h.m4: Add stubs for vasprintf too.
68969
68970         * modules/stdio: Support vasprintf in sed command.
68971
68972         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68973         vasprintf.h.  Add stdio module indicator.
68974
68975         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68976         vasprintf.h.
68977
68978         * lib/vasprintf.h: File removed.
68979
68980         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68981         * lib/vasprintf.c: Ditto.
68982         * lib/xvasprintf.c: Ditto.
68983         * tests/test-vasprintf-posix.c: Ditto.
68984         * tests/test-vasprintf.c: Ditto.
68985
68986 2007-03-27  Bruno Haible  <bruno@clisp.org>
68987
68988         Make vasnprintf multithread-safe.
68989         * lib/vasnprintf.c (decimal_point_char): New function.
68990         (VASNPRINTF): Use it.
68991         Suggested by Simon Josefsson.
68992
68993 2007-03-27  Eric Blake  <ebb9@byu.net>
68994
68995         Support sub-second birthtime on cygwin.
68996         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68997         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68998         (get_stat_birthtime): Also work with st_birthtim.
68999
69000 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69003         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69004         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69005         (get_stat_birthtime_ns): Simplify compile-time tests.
69006         (get_stat_birthtime): Change the API to look like
69007         get_stat_mtime etc., except return a negative tv_nsec on error.
69008         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69009         Don't check for "spare" fields.
69010         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69011         or for struct stat.st_birthtime, as these tests aren't used.
69012         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69013
69014 2007-03-27  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/stat-time.h: Include <sys/stat.h>.
69017
69018 2007-03-27  James Youngman  <jay@gnu.org>
69019
69020         * lib/stat-time.h (get_stat_birthtime): New function for
69021           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69022         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69023           and its variants.
69024         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69025         * modules/stat-time-test: New file.
69026         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69027
69028 2007-03-26  Bruno Haible  <bruno@clisp.org>
69029
69030         Better support of signalling NaNs.
69031         * lib/atanl.c: Include isnanl.h.
69032         (atanl): Perform test for NaN at the beginning of the function and
69033         through a call to isnanl.
69034         * lib/cosl.c: Include isnanl.h.
69035         (cosl): Perform test for NaN at the beginning of the function and
69036         through a call to isnanl.
69037         * lib/ldexpl.c: Include isnanl.h.
69038         (ldexpl): Perform test for NaN through a call to isnanl.
69039         * lib/logl.c: Include isnanl.h.
69040         (logl): Perform test for NaN at the beginning of the function and
69041         through a call to isnanl.
69042         * lib/sinl.c: Include isnanl.h.
69043         (sinl): Perform test for NaN at the beginning of the function and
69044         through a call to isnanl.
69045         * lib/sqrtl.c: Include isnanl.h.
69046         (sqrtl): Perform test for NaN at the beginning of the function and
69047         through a call to isnanl.
69048         * lib/tanl.c: Include isnanl.h.
69049         (tanl): Perform test for NaN at the beginning of the function and
69050         through a call to isnanl.
69051         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69052         * modules/mathl (Depends-on): Add isnanl.
69053
69054 2007-03-26  Eric Blake  <ebb9@byu.net>
69055
69056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69057         regression in logic sense of previous patch.
69058
69059 2007-03-26  Bruno Haible  <bruno@clisp.org>
69060
69061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69062         unportable shell command "if ! ...".
69063         Reported by Ralf Wildenhues.
69064
69065 2007-03-25  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69068         <sysexits.h> file, and only add EX_CONFIG.
69069         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69070         absolute file name and whether it is sufficient. Substitute also
69071         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69072         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69073         ABSOLUTE_SYSEXITS_H into sysexits.h.
69074
69075 2007-03-25  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69078         hints is NULL.
69079
69080 2007-03-25  Bruno Haible  <bruno@clisp.org>
69081
69082         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69083         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69084
69085 2007-03-25  Bruno Haible  <bruno@clisp.org>
69086
69087         * lib/vasnprintf.c: Include langinfo.h.
69088         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69089         multithread-safe.
69090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69099         Reported by Simon Josefsson.
69100
69101 2007-03-25  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69104         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69105         * modules/vasnprintf (Depends-on): Add stdint.
69106
69107 2007-03-25  Bruno Haible  <bruno@clisp.org>
69108
69109         * modules/fpieee: New file.
69110         * m4/fpieee.m4: New file.
69111         * modules/isnan-nolibm (Depends-on): Add fpieee.
69112         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69113         * modules/isnanl (Depends-on): Add fpieee.
69114
69115 2007-03-25  Bruno Haible  <bruno@clisp.org>
69116
69117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69118
69119 2007-03-25  Bruno Haible  <bruno@clisp.org>
69120
69121         Avoid test failures on IRIX 6.5.
69122         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69123         (main): Use it.
69124         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69125         macros.
69126         (main): Use them.
69127
69128 2007-03-25  Bruno Haible  <bruno@clisp.org>
69129
69130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69131         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69132         exists but doesn't work.
69133         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69134         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69136         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69137         math.h.
69138
69139 2007-03-25  Bruno Haible  <bruno@clisp.org>
69140
69141         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69142         returns inf. Needed on IRIX 6.5.
69143
69144 2007-03-25  Bruno Haible  <bruno@clisp.org>
69145
69146         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69147         (main): Use isnanl instead of x != x idiom.
69148         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69149
69150         * tests/test-frexp.c: Include isnan.h.
69151         (main): Use isnan instead of x != x idiom.
69152         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69153
69154 2007-03-25  Bruno Haible  <bruno@clisp.org>
69155
69156         * tests/test-frexp.c (NaN): New function/macro.
69157         (main): Use it instead of 0.0 / 0.0.
69158         * tests/test-isnan.c (NaN): New function/macro.
69159         (main): Use it instead of 0.0 / 0.0.
69160         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69161         (test_function): Use it instead of 0.0 / 0.0.
69162         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69163         (test_function): Use it instead of 0.0 / 0.0.
69164         * tests/test-snprintf-posix.h (NaN): New function/macro.
69165         (test_function): Use it instead of 0.0 / 0.0.
69166         * tests/test-sprintf-posix.h (NaN): New function/macro.
69167         (test_function): Use it instead of 0.0 / 0.0.
69168         * tests/test-fprintf-posix.h (NaN): New function/macro.
69169         (test_function): Use it instead of 0.0 / 0.0.
69170         * tests/test-printf-posix.h (NaN): New function/macro.
69171         (test_function): Use it instead of 0.0 / 0.0.
69172
69173         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69174
69175 2007-03-25  Bruno Haible  <bruno@clisp.org>
69176
69177         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69178
69179 2007-03-25  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/regexec.c (merge_state_with_log): Make static.
69182
69183 2007-03-25  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/trigl.c (kernel_rem_pio2): Make static.
69186
69187 2007-03-25  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/sincosl.c (sincosl_table): Make static.
69190
69191 2007-03-25  Bruno Haible  <bruno@clisp.org>
69192
69193         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69194         if the compiler does not support C99.
69195
69196 2007-03-25  Bruno Haible  <bruno@clisp.org>
69197
69198         * modules/time (Makefile.am): Ensure all rule action lines start with a
69199         tab.
69200
69201 2007-03-24  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/tsearch-tests: New file.
69204         * tests/test-tsearch.sh: New file.
69205         * tests/test-tsearch.c: New file, mostly copied from glibc.
69206
69207         * modules/search-tests: New file.
69208         * tests/test-search.c: New file.
69209
69210         * modules/search: New file.
69211         * lib/search_.h: New file, incorporating lib/tsearch.h.
69212         * m4/search_h.m4: New file.
69213         * lib/tsearch.h: Remove file.
69214         * lib/tsearch.c: Include search.h instead of tsearch.h.
69215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69216         HAVE_TSEARCH.
69217         * modules/tsearch (Files): Remove lib/tsearch.h.
69218         (Depends-on): Add search.
69219         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69220         (Include): Change tsearch.h into search.h.
69221
69222 2007-03-24  Bruno Haible  <bruno@clisp.org>
69223
69224         * modules/fpucw: New file.
69225         * lib/fpucw.h: New file.
69226         * lib/frexp.c: Include fpucw.h.
69227         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69228         (FUNC): Use them.
69229         * lib/printf-frexp.c: Include fpucw.h.
69230         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69231         (FUNC): Use them.
69232         * lib/vasnprintf.c: Include fpucw.h.
69233         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69234         'long double' calculations.
69235         * tests/test-frexpl.c: Include fpucw.h.
69236         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69237         * tests/test-printf-frexpl.c: Include fpucw.h.
69238         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69239         * modules/frexpl (Depends-on): Add fpucw.
69240         * modules/printf-frexpl (Depends-on): Likewise.
69241         * modules/fprintf-posix (Depends-on): Likewise.
69242         * modules/snprintf-posix (Depends-on): Likewise.
69243         * modules/sprintf-posix (Depends-on): Likewise.
69244         * modules/vasnprintf-posix (Depends-on): Likewise.
69245         * modules/vasprintf-posix (Depends-on): Likewise.
69246         * modules/vfprintf-posix (Depends-on): Likewise.
69247         * modules/vsnprintf-posix (Depends-on): Likewise.
69248         * modules/vsprintf-posix (Depends-on): Likewise.
69249         * modules/frexpl-tests (Depends-on): Likewise.
69250         * modules/printf-frexpl-tests (Depends-on): Likewise.
69251
69252 2007-03-24  Bruno Haible  <bruno@clisp.org>
69253
69254         * lib/float+.h: New file.
69255         * lib/isnan.c: Include float+.h.
69256         (SIZE): New macro.
69257         (FUNC): Compare only SIZE bytes of the value.
69258         * lib/vasnprintf.c: Include float+.h.
69259         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69260         SIZEOF_LDBL or SIZEOF_DBL bytes.
69261         * modules/isnan-nolibm (Files): Add lib/float+.h.
69262         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69263         * modules/isnanl (Files): Add lib/float+.h.
69264         * modules/vasnprintf (Files): Add lib/float+.h.
69265
69266 2007-03-24  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69269         include isnanl-nolibm.h.
69270
69271 2007-03-24  Bruno Haible  <bruno@clisp.org>
69272
69273         * tests/test-read-file.c (main): Don't produce spurious output for
69274         expected situations. Make the test fail if it encountered unexpected
69275         results.
69276
69277 2007-03-24  Bruno Haible  <bruno@clisp.org>
69278
69279         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69280         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69281
69282 2007-03-24  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69285
69286 2007-03-24  Bruno Haible  <bruno@clisp.org>
69287
69288         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69289         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69290
69291         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69292         * modules/utf8-ucs4: Turn into a symbolic link to module
69293         unistr/u8-mbtouc.
69294
69295         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69296         utf8-ucs4-unsafe.
69297         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69298         unistr/u8-mbtouc-unsafe.
69299
69300         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69301         * modules/utf16-ucs4: Turn into a symbolic link to module
69302         unistr/u16-mbtouc.
69303
69304         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69305         utf16-ucs4-unsafe.
69306         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69307         unistr/u16-mbtouc-unsafe.
69308
69309         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69310         * modules/ucs4-utf8: Turn into a symbolic link to module
69311         unistr/u8-ubtomb.
69312
69313         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69314         * modules/ucs4-utf16: Turn into a symbolic link to module
69315         unistr/u16-ubtomb.
69316
69317 2007-03-24  Bruno Haible  <bruno@clisp.org>
69318
69319         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69320         Enable the function only if HAVE_INLINE.
69321         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69322         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69323         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69324         Enable the function only if HAVE_INLINE.
69325         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69326         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69327         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69328         Enable the function only if HAVE_INLINE.
69329         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69330         Enable the function only if HAVE_INLINE.
69331         * modules/utf8-ucs4: Update.
69332         * modules/utf8-ucs4-unsafe: Update.
69333         * modules/utf16-ucs4: Update.
69334         * modules/utf16-ucs4-unsafe: Update.
69335         * modules/ucs4-utf8: Update.
69336         * modules/ucs4-utf16: Update.
69337
69338 2007-03-24  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/utf8-ucs4.h: Remove file.
69341         * lib/utf8-ucs4-unsafe.h: Remove file.
69342         * lib/utf16-ucs4.h: Remove file.
69343         * lib/utf16-ucs4-unsafe.h: Remove file.
69344         * lib/ucs4-utf8.h: Remove file.
69345         * lib/ucs4-utf16.h: Remove file.
69346         * lib/unistr.h: Include their previous contents.
69347         * m4/utf-ucs4.m4: Remove file.
69348         * m4/ucs4-utf.m4: Remove file.
69349         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69350         (Depends-on): Add unistr/base.
69351         (configure.ac): Remove gl_UTF_UCS4.
69352         (Makefile.am): Update.
69353         (Include): Change to unistr.h.
69354         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69355         (Depends-on): Add unistr/base.
69356         (configure.ac): Remove gl_UTF_UCS4.
69357         (Makefile.am): Update.
69358         (Include): Change to unistr.h.
69359         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69360         (Depends-on): Add unistr/base.
69361         (configure.ac): Remove gl_UTF_UCS4.
69362         (Makefile.am): Update.
69363         (Include): Change to unistr.h.
69364         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69365         (Depends-on): Add unistr/base.
69366         (configure.ac): Remove gl_UTF_UCS4.
69367         (Makefile.am): Update.
69368         (Include): Change to unistr.h.
69369         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69370         (Depends-on): Add unistr/base.
69371         (configure.ac): Remove gl_UCS4_UTF.
69372         (Makefile.am): Update.
69373         (Include): Change to unistr.h.
69374         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69375         (Depends-on): Add unistr/base.
69376         (configure.ac): Remove gl_UCS4_UTF.
69377         (Makefile.am): Update.
69378         (Include): Change to unistr.h.
69379         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69380         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69381         utf8-ucs4-unsafe.h.
69382         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69383         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69384         utf16-ucs4-unsafe.h.
69385         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69386         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69387         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69388         * lib/unistr/u8-strchr.c: Likewise.
69389         * lib/unistr/u8-strrchr.c: Likewise.
69390         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69391         * lib/unistr/u16-strchr.c: Likewise.
69392         * lib/unistr/u16-strrchr.c: Likewise.
69393         * lib/striconveh.c: Update.
69394         * lib/linebreak.c: Update.
69395
69396 2007-03-24  Bruno Haible  <bruno@clisp.org>
69397
69398         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69399         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69400
69401 2007-03-22  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69404
69405 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * MODULES.html.sh (File system functions): New module write-any-file.
69408         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69409         * m4/write-any-file.m4: New files.
69410
69411 2007-03-23  Eric Blake  <ebb9@byu.net>
69412
69413         * gnulib-tool: Rearrange space-tab sequences, since some editors
69414         like to eat them.
69415
69416 2007-03-23  Eric Blake  <ebb9@byu.net>
69417
69418         * lib/version-etc.c (version_etc_va): Update license wording to
69419         be more concise.  Recommended by Richard Stallman.
69420
69421 2007-03-22  Bruno Haible  <bruno@clisp.org>
69422
69423         * lib/poll.c (MSG_PEEK): New fallback definition.
69424
69425 2007-03-22  Bruno Haible  <bruno@clisp.org>
69426
69427         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69428         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69429         (main): Update.
69430         Fixes a compilation error on BeOS.
69431
69432 2007-03-22  Bruno Haible  <bruno@clisp.org>
69433
69434         * modules/frexpl-tests: New file.
69435         * tests/test-frexpl.c: New file.
69436
69437         * modules/frexpl: New file.
69438         * m4/frexpl.m4: New file.
69439         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69440         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69442         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69443         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69444         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69445
69446 2007-03-22  Bruno Haible  <bruno@clisp.org>
69447
69448         * lib/frexpl.c: Share code with lib/frexp.c.
69449         * modules/mathl (Files): Add lib/frexp.c.
69450         (Depends-on): Add isnanl-nolibm.
69451
69452 2007-03-22  Bruno Haible  <bruno@clisp.org>
69453
69454         * modules/printf-frexp (Files): Add m4/frexp.m4.
69455         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69456         only if the found frexp function actually works.
69457
69458 2007-03-22  Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/frexp.c: Remove older implementation that uses divisions.
69461
69462 2007-03-21  Bruno Haible  <bruno@clisp.org>
69463
69464         * modules/frexp-tests: New file.
69465         * tests/test-frexp.c: New file.
69466
69467         * modules/frexp: New file.
69468         * lib/frexp.c: New file.
69469         * m4/frexp.m4: New file.
69470         * lib/math_.h (frexp): New declaration.
69471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69472         REPLACE_FREXP.
69473         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69474
69475 2007-03-21  Bruno Haible  <bruno@clisp.org>
69476
69477         * modules/isnanl-tests: New file.
69478         * tests/test-isnanl.c: New file.
69479
69480         * modules/isnanl: New file.
69481         * lib/isnanl.h: New file.
69482         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69483         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69484         gl_FUNC_ISNANL_WORKS.
69485         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69486         New macros.
69487
69488 2007-03-21  Bruno Haible  <bruno@clisp.org>
69489
69490         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69491         lib/isnanl.h.
69492         (Include): Update.
69493         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69494         * lib/vasnprintf.c: Update.
69495         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69496         tests/test-isnanl.h, remove tests/test-isnanl.c.
69497         (Makefile.am): Update.
69498         * tests/test-isnanl-nolibm.c: New file.
69499         * tests/test-isnanl.h: New file.
69500         * tests/test-isnanl.c: Remove file.
69501
69502 2007-03-21  Jim Meyering  <jim@meyering.net>
69503
69504         When trying to open ".", treat ESTALE like EACCES.
69505         * lib/savewd.c (savewd_save): Resort to forking not just upon
69506         failure with EACCES, but also when errno is ESTALE.
69507
69508 2007-03-20  Bruno Haible  <bruno@clisp.org>
69509
69510         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69511         Needed on AIX 5.1. Reported by Matthew Woehlke.
69512
69513 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Suggestions by Bruno Haible:
69516         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69517         our own.
69518         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69519         * modules/acl (Depends-on): Add gettext.
69520
69521 2007-03-19  Bruno Haible  <bruno@clisp.org>
69522
69523         * modules/iconvme: Remove file.
69524         * lib/iconvme.h: Remove file.
69525         * lib/iconvme.c: Remove file.
69526         * m4/iconvme.m4: Remove file.
69527
69528 2007-03-19  Bruno Haible  <bruno@clisp.org>
69529
69530         * doc/relocatable-maint.texi: Break long shell script line.
69531         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69532
69533 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69536         handle file_has_acl.
69537         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69538         * lib/acl.c: Move header inclusions and related macro defns into
69539         lib/acl-internal.h.
69540         (S_ISLNK): Remove defn, since that's now done for us.
69541         (file_has_acl): Move to lib/file-has-acl.c.
69542         Call acl_trivial if available.  This is the crucial part of the fix.
69543         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69544         shared within the library.  Rewrite a bit, partly to make it compatible
69545         with the GNU coding style.
69546         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69547         Remove unnecessary double-quotes.
69548         Don't test for acl_to_text; the build will catch that.
69549         Replace acl_entries if it doesn't exist and it is needed.
69550         Check for -lsec and acl_trivial (as used on Solaris 10).
69551         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69552         lib/file-has-acl.c.
69553         (Depends-on): Add sys_stat, for S_ISLNK.
69554
69555 2007-03-19  Ben Pfaff  <blp@gnu.org>
69556
69557         * doc/gnulib.texi: Fix typos.
69558         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69559
69560 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69563         If size is zero here, buf must be zero.
69564
69565 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69566
69567         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69568         <bruno@clisp.org>.
69569
69570 2007-03-18  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69573         Suggested by Eric Blake.
69574
69575 2007-03-18  Ben Pfaff  <blp@gnu.org>
69576
69577         * doc/relocatable.texi: Recommend using as prefix a directory
69578         that does not exist and will never be created.  Based on
69579         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69580         and others.
69581
69582 2007-03-17  Bruno Haible  <bruno@clisp.org>
69583
69584         * lib/fchownat.c: Include lchown.h.
69585
69586 2007-03-17  Bruno Haible  <bruno@clisp.org>
69587
69588         Fix endless loop when the given allocated size was > INT_MAX.
69589         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69590         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69591         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69592         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69593         * lib/sprintf.c (sprintf): Likewise.
69594
69595 2007-03-17  Bruno Haible  <bruno@clisp.org>
69596
69597         * tests/test-argp-2.sh (func_compare): Output a context diff.
69598
69599 2007-03-17  Bruno Haible  <bruno@clisp.org>
69600
69601         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69602         locale's decimal-point character.
69603
69604 2007-03-17  Bruno Haible  <bruno@clisp.org>
69605
69606         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69607         before comparing it. Needed because on some platforms (e.g. x86) a
69608         'long double' occupies less bytes than sizeof (long double).
69609
69610 2007-03-17  Bruno Haible  <bruno@clisp.org>
69611
69612         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69613         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69614         * tests/test-getaddrinfo.c (simple): Likewise.
69615         * tests/test-read-file.c (main): Likewise.
69616
69617 2007-03-17  Bruno Haible  <bruno@clisp.org>
69618
69619         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69620
69621 2007-03-17  Bruno Haible  <bruno@clisp.org>
69622
69623         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69624         unused variable.
69625
69626 2007-03-17  Bruno Haible  <bruno@clisp.org>
69627
69628         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69629         * tests/test-c-strncasecmp.c: Likewise.
69630
69631 2007-03-17  Bruno Haible  <bruno@clisp.org>
69632
69633         * modules/stdlib (Depends-on): Add unistd.
69634         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69635         Needed for MacOS X 10.3.
69636
69637 2007-03-17  Bruno Haible  <bruno@clisp.org>
69638
69639         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69640
69641 2007-03-17  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69644
69645 2007-03-17  Bruno Haible  <bruno@clisp.org>
69646
69647         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69648         to reflect files copied from gnulib (with or without modifications).
69649         Suggested by Jim Meyering.
69650
69651 2007-03-17  Eric Blake  <ebb9@byu.net>
69652
69653         * NEWS: Document stdlib change from 2007-02-18.
69654
69655 2007-03-17  Jim Meyering  <jim@meyering.net>
69656
69657         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69658         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69659         someone uses a name containing shell meta-characters.
69660         Reported by Alfred M. Szmidt.
69661
69662         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69663
69664 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69665
69666         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69667         and copy gettext configuration files only if configure.ac contains
69668         a use of AM_GNU_GETTEXT_VERSION.
69669
69670 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69671
69672         * build-aux/bootstrap (gnulib_name): New variable.
69673         (gnulib_tool_options): Use it.
69674
69675 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69676
69677         * tests/test-des.c: Use new namespace.
69678
69679 2007-03-15  Bruno Haible  <bruno@clisp.org>
69680
69681         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69682         Reported by James Youngman <jay@gnu.org>.
69683
69684 2007-03-15  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69687         declared prototype. Needed with cc on OSF/1 5.1.
69688
69689 2007-03-15  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69692         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69693         (struct gl_list_implementation): Add dispose_fn argument to the
69694         'create_empty', 'create' methods.
69695         (struct gl_list_impl_base): Add field 'dispose_fn'.
69696         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69697         argument.
69698         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69699         dispose_fn argument.
69700         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69701         dispose_fn on the dropped values.
69702         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69703         dispose_fn argument.
69704         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69705         dropped values.
69706         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69707         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69708         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69709         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69710         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69711         argument.
69712         (gl_tree_list_free): Call dispose_fn on the dropped values.
69713         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69714         the dropped values.
69715         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69716         Add dispose_fn argument.
69717         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69718         Call dispose_fn on the dropped values.
69719         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69720         Add dispose_fn argument.
69721         (gl_sublist_create): Initialize the 'dispose_fn' field.
69722         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69723         * tests/test-array_list.c (main): Update.
69724         * tests/test-carray_list.c (main): Update.
69725         * tests/test-avltree_list.c (main): Update.
69726         * tests/test-rbtree_list.c (main): Update.
69727         * tests/test-avltreehash_list.c (main): Update.
69728         * tests/test-rbtreehash_list.c (main): Update.
69729         * tests/test-linked_list.c (main): Update.
69730         * tests/test-linkedhash_list.c (main): Update.
69731         * tests/test-array_oset.c (main): Update.
69732
69733 2007-03-15  Bruno Haible  <bruno@clisp.org>
69734
69735         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69736         (gl_oset_create_empty): Add dispose_fn argument.
69737         (struct gl_oset_implementation): Add dispose_fn argument to
69738         'create_empty' method.
69739         (struct gl_oset_impl_base): Add dispose_fn field.
69740         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69741         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69742         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69743         values.
69744         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69745         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69746         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69747         dropped value.
69748         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69749         dropped value.
69750         * tests/test-array_oset.c (main): Update.
69751         * tests/test-avltree_oset.c (main): Update.
69752         * tests/test-rbtree_oset.c (main): Update.
69753         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69754
69755 2007-03-13  Bruno Haible  <bruno@clisp.org>
69756
69757         * tests/test-stdbool.c (i): Update after last patch.
69758
69759 2007-03-12  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69762         the iswprint macro. Needed on Solaris 2.5.1.
69763
69764 2007-03-12  Bruno Haible  <bruno@clisp.org>
69765
69766         * tests/test-printf-frexp.c (main): Declare x as volatile.
69767
69768 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69769
69770         * doc/gnulib.texi (Build robot for gnulib): New section.
69771
69772 2007-03-12  Jim Meyering  <jim@meyering.net>
69773
69774         * build-aux/bootstrap: New file.
69775         * build-aux/bootstrap.conf: New file, from coreutils.
69776
69777 2007-03-11  Bruno Haible  <bruno@clisp.org>
69778
69779         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69780
69781 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69782
69783         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69784         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69785         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69786
69787 2007-03-11  Bruno Haible  <bruno@clisp.org>
69788
69789         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69790         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69791
69792 2007-03-11  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69795         formula. Needed for SunPRO C 5.0.
69796
69797 2007-03-11  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/long-options (Depends-on): Add getopt.
69800
69801 2007-03-11  Bruno Haible  <bruno@clisp.org>
69802
69803         * modules/modechange (Depends-on): Add stdbool.
69804
69805 2007-03-11  Bruno Haible  <bruno@clisp.org>
69806
69807         * modules/i-ring (Depends-on): Add stdbool.
69808
69809 2007-03-11  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/gc-des (Depends-on): Add stdbool.
69812
69813 2007-03-11  Bruno Haible  <bruno@clisp.org>
69814
69815         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69816
69817 2007-03-11  Bruno Haible  <bruno@clisp.org>
69818
69819         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69820
69821 2007-03-11  Bruno Haible  <bruno@clisp.org>
69822
69823         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69824
69825 2007-03-11  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/vasnprintf.c (sprintf): Undefine.
69828
69829 2007-03-11  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69832         initializers in SunPRO C and Compaq C compilers.
69833
69834 2007-03-11  Bruno Haible  <bruno@clisp.org>
69835
69836         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69837         decrementing code ANSI C compliant.
69838
69839 2007-03-11  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69842         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69843
69844 2007-03-11  Bruno Haible  <bruno@clisp.org>
69845
69846         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69847         <stdbool.h> substitute doesn't pass.
69848
69849 2007-03-11  Bruno Haible  <bruno@clisp.org>
69850
69851         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69852
69853 2007-03-11  Bruno Haible  <bruno@clisp.org>
69854
69855         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69856         script, for submission to autobuild.josefsson.org.
69857
69858 2007-03-10  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/canonicalize-lgpl-tests: New file.
69861         * tests/test-canonicalize-lgpl.sh: New file.
69862         * tests/test-canonicalize-lgpl.c: New file.
69863
69864         * modules/c-strcase-tests: New file.
69865         * tests/test-c-strcase.sh: New file.
69866         * tests/test-c-strcasecmp.c: New file.
69867         * tests/test-c-strncasecmp.c: New file.
69868
69869         * modules/atexit-tests: New file.
69870         * tests/test-atexit.sh: New file.
69871         * tests/test-atexit.c: New file.
69872
69873 2007-03-10  Bruno Haible  <bruno@clisp.org>
69874
69875         * tests/test-binary-io.sh: Use temporary filenames that are not so
69876         likely to clash with those of other tests (in a parallel make).
69877         * tests/test-binary-io.c: Likewise.
69878
69879 2007-03-10  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69882         fallback; use #error instead.
69883         Suggested by Simon Josefsson.
69884
69885 2007-03-10  Bruno Haible  <bruno@clisp.org>
69886
69887         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69888         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69889         first and the last.
69890
69891 2007-03-10  Bruno Haible  <bruno@clisp.org>
69892
69893         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69894
69895 2007-03-10  Bruno Haible  <bruno@clisp.org>
69896
69897         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69898         "make distcheck".
69899         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69900         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69901         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69902
69903 2007-03-10  Bruno Haible  <bruno@clisp.org>
69904
69905         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69906         variable.
69907         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69908         variable.
69909
69910 2007-03-09  Eric Blake  <ebb9@byu.net>
69911         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69912
69913         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69914         types are not being provided by gnulib.
69915         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69916         types are supported.
69917
69918 2007-03-10  Bruno Haible  <bruno@clisp.org>
69919
69920         * lib/stdio_.h (__attribute__): New macro.
69921         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69922         vsprintf): Specify __attribute__ __format__ for GCC.
69923         Suggested by Eric Blake.
69924
69925 2007-03-09  Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/printf-posix-tests: New file.
69928         * tests/test-printf-posix.sh: New file.
69929         * tests/test-printf-posix.c: New file.
69930
69931         * modules/printf-posix: New file.
69932         * lib/printf.c: New file.
69933         * m4/printf-posix-rpl.m4: New file.
69934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69935         REPLACE_PRINTF.
69936         * lib/stdio_.h (printf): New declaration.
69937         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69938         ____strfmon____): New macros.
69939         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69940         REPLACE_PRINTF.
69941
69942 2007-03-09  Bruno Haible  <bruno@clisp.org>
69943
69944         * tests/test-vasnprintf-posix2.sh: New file.
69945         * tests/test-vasnprintf-posix2.c: New file.
69946         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69947         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69948         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69949
69950         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69951         a locale dependent decimal point, rather than always '.'.
69952
69953 2007-03-09  Eric Blake  <ebb9@byu.net>
69954
69955         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69956         spite of platforms like Tandem/NSK that define it to -1.
69957
69958 2007-03-08  Bruno Haible  <bruno@clisp.org>
69959
69960         * modules/vprintf-posix-tests: New file.
69961         * tests/test-vprintf-posix.sh: New file.
69962         * tests/test-vprintf-posix.c: New file.
69963         * tests/test-printf-posix.h: New file.
69964
69965         * modules/vprintf-posix: New file.
69966         * lib/vprintf.c: New file.
69967         * m4/vprintf-posix.m4: New file.
69968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69969         REPLACE_VPRINTF.
69970         * lib/stdio_.h (vprintf): New declaration.
69971         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69972         REPLACE_VPRINTF.
69973
69974 2007-03-08  Bruno Haible  <bruno@clisp.org>
69975
69976         * modules/fprintf-posix-tests: New file.
69977         * tests/test-fprintf-posix.sh: New file.
69978         * tests/test-fprintf-posix.c: New file.
69979
69980         * modules/fprintf-posix: New file.
69981         * lib/fprintf.c: New file.
69982         * m4/fprintf-posix.m4: New file.
69983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69984         REPLACE_FPRINTF.
69985         * lib/stdio_.h (fprintf): New declaration.
69986         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69987         REPLACE_FPRINTF.
69988
69989 2007-03-08  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/vfprintf-posix-tests: New file.
69992         * tests/test-vfprintf-posix.sh: New file.
69993         * tests/test-vfprintf-posix.c: New file.
69994         * tests/test-fprintf-posix.h: New file.
69995         * tests/test-fprintf-posix.out: New file.
69996
69997         * modules/vfprintf-posix: New file.
69998         * lib/vfprintf.c: New file.
69999         * m4/vfprintf-posix.m4: New file.
70000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70001         REPLACE_VFPRINTF.
70002         * lib/stdio_.h (vfprintf): New declaration.
70003         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70004         REPLACE_VFPRINTF.
70005
70006 2007-03-08  Bruno Haible  <bruno@clisp.org>
70007
70008         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70009
70010 2007-03-08  Bruno Haible  <bruno@clisp.org>
70011
70012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70013         instead of 'expr' invocations.
70014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70019         Suggested by Paul Eggert.
70020
70021 2007-03-08  Bruno Haible  <bruno@clisp.org>
70022
70023         * modules/fseterr-tests: New file.
70024         * tests/test-fseterr.c: New file.
70025
70026         * modules/fseterr: New file.
70027         * lib/fseterr.h: New file.
70028         * lib/fseterr.c: New file.
70029
70030 2007-03-08  Bruno Haible  <bruno@clisp.org>
70031
70032         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70033         * lib/getopt_.h: Likewise.
70034         * lib/mbswidth.h: Likewise.
70035         * lib/setenv.h: Likewise.
70036         * lib/vasnprintf.h: Likewise.
70037         * lib/vasprintf.h: Likewise.
70038         * lib/verror.h: Likewise.
70039         * lib/xsetenv.h: Likewise.
70040         * lib/xvasprintf.h: Likewise.
70041
70042 2007-03-08  Jim Meyering  <jim@meyering.net>
70043
70044         * users.txt: Add parted.
70045
70046         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70047
70048 2007-03-07  Bruno Haible  <bruno@clisp.org>
70049
70050         * m4/printf.m4: Make the shell script snippets copy&pastable.
70051
70052 2007-03-02  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/netinet_in_.h: New file.
70055         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70056         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70057         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70058         (Depends-on): Add absolute-header.
70059         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70060         into netinet/in.h.
70061
70062 2007-03-03  Bruno Haible  <bruno@clisp.org>
70063
70064         * lib/sys_select_.h: New file.
70065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70066         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70067         * modules/sys_select (Files): Add lib/sys_select_.h.
70068         (Depends-on): Add absolute-header.
70069         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70070         into sys/select.h.
70071
70072 2007-03-02  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70075         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70076         values.
70077         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70078         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70079         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70080         * modules/sys_socket (Depends-on): Add absolute-header.
70081         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70082         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70083         (Include): Remove requirement of inclusion of <sys/types.h>.
70084
70085 2007-03-02  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/byteswap_.h (bswap_32): Fix formula.
70088
70089 2007-03-06  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/sprintf-posix-tests: New file.
70092         * tests/test-sprintf-posix.c: New file.
70093
70094         * modules/sprintf-posix: New file.
70095         * lib/sprintf.c: New file.
70096         * m4/sprintf-posix.m4: New file.
70097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70098         REPLACE_SPRINTF.
70099         * lib/stdio_.h (sprintf): New declaration.
70100         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70101         REPLACE_SPRINTF.
70102
70103 2007-03-06  Bruno Haible  <bruno@clisp.org>
70104
70105         * modules/vsprintf-posix-tests: New file.
70106         * tests/test-vsprintf-posix.c: New file.
70107         * tests/test-sprintf-posix.h: New file.
70108
70109         * modules/vsprintf-posix: New file.
70110         * lib/vsprintf.c: New file.
70111         * m4/vsprintf-posix.m4: New file.
70112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70113         REPLACE_VSPRINTF.
70114         * lib/stdio_.h (vsprintf): New declaration.
70115         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70116         REPLACE_VSPRINTF.
70117
70118 2007-03-06  Bruno Haible  <bruno@clisp.org>
70119
70120         * modules/vsnprintf (Depend-on): Remove minmax.
70121
70122 2007-03-06  Bruno Haible  <bruno@clisp.org>
70123
70124         * modules/snprintf-posix-tests: New file.
70125         * tests/test-snprintf-posix.c: New file.
70126
70127         * modules/snprintf-posix: New file.
70128         * m4/snprintf-posix.m4: New file.
70129         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70130         gl_FUNC_SNPRINTF.
70131         (gl_FUNC_SNPRINTF): Invoke it.
70132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70133         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70134         is set.
70135         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70136
70137 2007-03-06  Bruno Haible  <bruno@clisp.org>
70138
70139         * modules/vsnprintf-posix-tests: New file.
70140         * tests/test-vsnprintf-posix.c: New file.
70141         * tests/test-snprintf-posix.h: New file.
70142
70143         * modules/vsnprintf-posix: New file.
70144         * m4/vsnprintf-posix.m4: New file.
70145         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70146         gl_FUNC_VSNPRINTF.
70147         (gl_FUNC_VSNPRINTF): Invoke it.
70148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70149         * lib/stdio_.h (vsnprintf): Define as a replacement if
70150         REPLACE_VSNPRINTF is set.
70151         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70152
70153 2007-03-06  Bruno Haible  <bruno@clisp.org>
70154
70155         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70157
70158 2007-03-06  Bruno Haible  <bruno@clisp.org>
70159
70160         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70161         (asinl): Declare also if HAVE_DECL_ASINL is set.
70162         (atanl): Declare also if HAVE_DECL_ATANL is set.
70163         (ceill): Declare also if HAVE_DECL_CEILL is set.
70164         (cosl): Declare also if HAVE_DECL_COSL is set.
70165         (expl): Declare also if HAVE_DECL_EXPL is set.
70166         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70167         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70168         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70169         (logl): Declare also if HAVE_DECL_LOGL is set.
70170         (sinl): Declare also if HAVE_DECL_SINL is set.
70171         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70172         (tanl): Declare also if HAVE_DECL_TANL is set.
70173         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70176         declaration of frexpl, ldexpl.
70177         * modules/printf-frexpl (Depends-on): Add math.
70178         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70179
70180 2007-03-05  Bruno Haible  <bruno@clisp.org>
70181
70182         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70183         frexpl and ldexpl are declared.
70184         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70185
70186 2007-03-05  Bruno Haible  <bruno@clisp.org>
70187
70188         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70189         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70190
70191 2007-03-05  Bruno Haible  <bruno@clisp.org>
70192
70193         * lib/stdio_.h: Include <stddef.h>.
70194
70195 2007-03-05  Bruno Haible  <bruno@clisp.org>
70196
70197         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70198
70199 2007-03-05  Bruno Haible  <bruno@clisp.org>
70200
70201         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70202         NetBSD 4, from Ralf Wildenhues.
70203
70204 2007-03-04  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/vasprintf.h: Update #if logic for the case when the functions
70207         exist but are overridden.
70208
70209 2007-03-04  Bruno Haible  <bruno@clisp.org>
70210
70211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70212         implementations: glibc-2.4 and MacOS X 10.3.
70213         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70214         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70215         * tests/test-vasprintf-posix.c (test_function): Likewise.
70216
70217 2007-03-04  Bruno Haible  <bruno@clisp.org>
70218
70219         * modules/vasprintf-posix-tests: New file.
70220         * tests/test-vasprintf-posix.c: New file.
70221
70222         * modules/vasprintf-posix: New file.
70223         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70224         defined.
70225         * m4/vasprintf-posix.m4: New file.
70226         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70227         gl_FUNC_VASPRINTF.
70228         (gl_FUNC_VASPRINTF): Invoke it.
70229         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70230         here.
70231         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70232
70233 2007-03-04  Bruno Haible  <bruno@clisp.org>
70234
70235         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70236         REPLACE_GETTIMEOFDAY.
70237         * modules/sys_time (Makefile.am): Likewise.
70238         * m4/sys_time_h.m4: Likewise.
70239         * m4/gettimeofday.m4: Likewise.
70240
70241 2007-03-04  Bruno Haible  <bruno@clisp.org>
70242
70243         * modules/vasnprintf-posix-tests: New file.
70244         * tests/test-vasnprintf-posix.c: New file.
70245
70246         * modules/vasnprintf-posix: New file.
70247         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70248         printf-frexpl.h.
70249         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70250         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70251         REPLACE_VASNPRINTF is defined.
70252         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70253         gl_FUNC_VASNPRINTF.
70254         (gl_FUNC_VASNPRINTF): Invoke it.
70255         * m4/vasnprintf-posix.m4: New file.
70256         * m4/printf.m4: New file.
70257
70258 2007-03-04  Bruno Haible  <bruno@clisp.org>
70259
70260         Compile progreloc.c only if --enable-relocatable is specified.
70261         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70262         if --enable-relocatable was specified.
70263         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70264         lib_SOURCES.
70265
70266 2007-03-04  Jim Meyering  <jim@meyering.net>
70267
70268         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70269         Use it consistently, rather than enumerating errno constants.
70270
70271 2007-03-04  Bruno Haible  <bruno@clisp.org>
70272
70273         * modules/xvasprintf-tests: New file.
70274         * tests/test-xvasprintf.c: New file.
70275
70276         * modules/vasprintf-tests: New file.
70277         * tests/test-vasprintf.c: New file.
70278
70279         * modules/vasnprintf-tests: New file.
70280         * tests/test-vasnprintf.c: New file.
70281
70282         * modules/vsnprintf-tests: New file.
70283         * tests/test-vsnprintf.c: New file.
70284
70285         * modules/snprintf-tests: New file.
70286         * tests/test-snprintf.c: New file.
70287
70288 2007-03-04  Bruno Haible  <bruno@clisp.org>
70289
70290         Compile relocatable.c only if --enable-relocatable is specified.
70291         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70292         gl_RELOCATABLE_LIBRARY.
70293         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70294         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70295         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70296         gl_RELOCATABLE_LIBRARY.
70297         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70298         (Makefile.am): Remove lib_SOURCES.
70299         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70300         gl_RELOCATABLE_LIBRARY.
70301         (Makefile.am): Remove lib_SOURCES.
70302         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70303         always.
70304         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70305         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70306
70307 2007-03-04  Bruno Haible  <bruno@clisp.org>
70308
70309         * modules/argmatch-tests: New file.
70310         * tests/test-argmatch.c: New file.
70311
70312         * tests/test-allocsa.c (main): Halve the number of loop runs.
70313
70314         * modules/alloca-opt-tests: New file.
70315         * tests/test-alloca-opt.c: New file.
70316
70317 2007-03-04  Jim Meyering  <jim@meyering.net>
70318
70319         Work around difference between Linux ACLs and Solaris 10 ZFS.
70320         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70321         for EINVAL.
70322
70323 2007-03-03  Bruno Haible  <bruno@clisp.org>
70324
70325         * modules/relocatable-prog (Depends-on): Add back progreloc's
70326         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70327
70328 2007-03-03  Bruno Haible  <bruno@clisp.org>
70329
70330         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70331         * modules/relocatable-lib: New file.
70332
70333 2007-03-03  Bruno Haible  <bruno@clisp.org>
70334
70335         * modules/relocatable-prog: Renamed from modules/relocatable.
70336         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70337
70338 2007-03-03  Bruno Haible  <bruno@clisp.org>
70339
70340         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70341         m4/relocatable-lib.m4.
70342         (Depends-on): Remove 'relocatable'.
70343         (configure.ac): Add gl_RELOCATABLE_NOP.
70344
70345 2007-03-03  Bruno Haible  <bruno@clisp.org>
70346
70347         * modules/relocatable-prog-wrapper: New file.
70348         * modules/relocatable (Depends-on): Add it. Remove all other
70349         dependencies except progname.
70350         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70351
70352         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70353         (gl_FUNC_STRERROR): Nop.
70354         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70355
70356         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70357         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70358
70359         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70360         (gl_FUNC_READLINK): Update.
70361
70362         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70363
70364 2007-03-03  Bruno Haible  <bruno@clisp.org>
70365
70366         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70367         * modules/xreadlink (Depends-on): Add unistd.
70368         * modules/xreadlink-with-size (Depends-on): Likewise.
70369
70370 2007-03-03  Bruno Haible  <bruno@clisp.org>
70371
70372         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70373         extracted from gt_FUNC_SETENV.
70374         (gt_FUNC_SETENV): Remove macro.
70375         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70376         remove gt_FUNC_SETENV.
70377
70378 2007-03-03  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70381         ENABLE_RELOCATABLE here.
70382         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70383
70384 2007-03-03  Bruno Haible  <bruno@clisp.org>
70385
70386         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70387         * tests/test-rbtreehash_list.c: Include progname.h.
70388         (main): Call set_program_name.
70389
70390         * modules/rbtree-oset-tests (Depends-on): Add progname.
70391         * tests/test-rbtree_oset.c: Include progname.h.
70392         (main): Call set_program_name.
70393
70394         * modules/rbtree-list-tests (Depends-on): Add progname.
70395         * tests/test-rbtree_list.c: Include progname.h.
70396         (main): Call set_program_name.
70397
70398         * modules/linked-list-tests (Depends-on): Add progname.
70399         * tests/test-linked_list.c: Include progname.h.
70400         (main): Call set_program_name.
70401
70402 2007-03-03  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70405         All uses of __restrict changed to _Restrict_.
70406         * lib/glob_.h (__restrict): Remove macro.
70407
70408 2007-03-02  Bruno Haible  <bruno@clisp.org>
70409
70410         * modules/gettext (configure.ac): Require gettext infrastructure
70411         from version 0.16.1.
70412
70413 2007-03-02  Bruno Haible  <bruno@clisp.org>
70414
70415         * modules/linkedhash-list-tests (Depends-on): Add progname.
70416         * tests/test-linkedhash_list.c: Include progname.h.
70417         (main): Call set_program_name.
70418
70419         * modules/carray-list-tests (Depends-on): Add progname.
70420         * tests/test-carray_list.c: Include progname.h.
70421         (main): Call set_program_name.
70422
70423         * modules/avltreehash-list-tests (Depends-on): Add progname.
70424         * tests/test-avltreehash_list.c: Include progname.h.
70425         (main): Call set_program_name.
70426
70427         * modules/avltree-oset-tests (Depends-on): Add progname.
70428         * tests/test-avltree_oset.c: Include progname.h.
70429         (main): Call set_program_name.
70430
70431         * modules/avltree-list-tests (Depends-on): Add progname.
70432         * tests/test-avltree_list.c: Include progname.h.
70433         (main): Call set_program_name.
70434
70435         * modules/array-oset-tests (Depends-on): Add progname.
70436         * tests/test-array_oset.c: Include progname.h.
70437         (main): Call set_program_name.
70438
70439         * modules/array-list-tests (Depends-on): Add progname.
70440         * tests/test-array_list.c: Include progname.h.
70441         (main): Call set_program_name.
70442
70443         * modules/argp-tests (Depends-on): Add progname.
70444         * tests/test-argp.c: Include argp.h first. Include progname.h.
70445         (main): Call set_program_name.
70446
70447 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * doc/gnulib-tool.texi (Initial import): Reword description of
70450         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70451         limited effect even if defined after the first system include.
70452
70453 2007-03-01  Bruno Haible  <bruno@clisp.org>
70454
70455         * build-aux/config.libpath: Update to libtool-1.5.22.
70456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70457
70458 2007-03-01  Bruno Haible  <bruno@clisp.org>
70459
70460         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70461         foo_CFLAGS.
70462         Reported by Ralf Wildenhues.
70463
70464 2007-03-01  Bruno Haible  <bruno@clisp.org>
70465
70466         * build-aux/install-reloc: Remove object files left over by some
70467         compilers.
70468         Reported by Ralf Wildenhues.
70469
70470 2007-03-01  Bruno Haible  <bruno@clisp.org>
70471
70472         * build-aux/install-reloc: Break long lines.
70473
70474 2007-03-01  Bruno Haible  <bruno@clisp.org>
70475
70476         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70477         Reported by Ralf Wildenhues.
70478
70479 2007-03-01  Bruno Haible  <bruno@clisp.org>
70480
70481         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70482         include ordering constraints.
70483
70484 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70488         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70489         as another example.
70490         * lib/time_.h: Fix misspelling.
70491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70492         Require gl_HEADER_TIME_H_DEFAULTS.
70493         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70494         * m4/time_r.m4 (gl_TIME_R): Likewise.
70495         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70496
70497 2007-03-01  Bruno Haible  <bruno@clisp.org>
70498
70499         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70500         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70501
70502 2007-03-01  Jim Meyering  <jim@meyering.net>
70503
70504         * modules/xreadlink (Maintainer): Add my name.
70505         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70506
70507 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70508             Bruno Haible  <bruno@clisp.org>
70509
70510         * build-aux/install-reloc: Compile also c-ctype.c.
70511         * build-aux/relocatable.sh.in: New file.
70512         * doc/relocatable.texi: New file.
70513         * doc/relocatable-maint.texi: New file.
70514         * doc/gnulib.texi: Include relocatable-maint.texi.
70515         * lib/progreloc.c: Include unistd.h unconditionally.
70516         * lib/relocwrapper.c: Include unistd.h unconditionally.
70517         Include c-ctype.h.
70518         (add_dotbin): Use c_tolower.
70519         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70520         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70521         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70522         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70523         to m4/relocatable-lib.m4.
70524         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70525         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70526         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70527         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70528         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70529         * modules/relocatable: New file.
70530         * modules/relocatable-lib: New file.
70531         * modules/relocatable-script: New file.
70532
70533 2007-02-28  Bruno Haible  <bruno@clisp.org>
70534
70535         Import --enable-relocatable infrastructure.
70536         * build-aux/config.libpath: New file, from GNU gettext.
70537         * build-aux/install-reloc: New file, from GNU gettext.
70538         * build-aux/reloc-ldflags: New file, from GNU gettext.
70539         * lib/relocatable.h: New file, from GNU gettext.
70540         * lib/relocatable.c: New file, from GNU gettext.
70541         * lib/relocwrapper.c: New file, from GNU gettext.
70542         * m4/relocatable.m4: New file, from GNU gettext.
70543
70544 2007-02-28  Bruno Haible  <bruno@clisp.org>
70545
70546         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70547
70548         * modules/xreadlink: New file, from GNU gettext with modifications.
70549         * lib/xreadlink.c: New file, from GNU gettext.
70550         * lib/xreadlink.h: Add comments.
70551         (xreadlink): New declaration.
70552
70553         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70554         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70555         lib/xreadlink-with-size.c.
70556         (configure.ac): Remove gl_XREADLINK invocation.
70557         (Makefile.am): Augment lib_SOURCES.
70558         * m4/xreadlink.m4: Remove file.
70559         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70560         (xreadlink_with_size): Renamed from xreadink.
70561         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70562         * modules/canonicalize (Depends-on): Replace xreadlink with
70563         xreadlink-with-size.
70564         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70565
70566 2007-02-25  Jim Meyering  <jim@meyering.net>
70567
70568         * build-aux/announce-gen: When complaining about excess arguments,
70569         list them.
70570
70571 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * README: Document signed integer overflow situation more
70574         accurately.
70575
70576 2007-02-25  Bruno Haible  <bruno@clisp.org>
70577
70578         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70579         'a' or 'A' conversion.
70580
70581 2007-02-25  Bruno Haible  <bruno@clisp.org>
70582
70583         * modules/filename: Renamed from modules/pathname.
70584         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70585         lib/concatpath.c with lib/concat-filename.c.
70586         (Makefile.am): Update.
70587         (Include): Replace pathname.h with filename.h.
70588         * lib/filename.h: Renamed from lib/pathname.h.
70589         (concatenated_filename): Renamed from concatenated_pathname.
70590         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70591         (concatenated_filename): Renamed from concatenated_pathname.
70592         * lib/findprog.c: Include filename.h instead of pathname.h.
70593         (find_in_path): Update.
70594         * lib/javacomp.c: Include filename.h instead of pathname.h.
70595         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70596         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70597         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70598         is_oldgcj_14_13_usable, is_javac_usable): Update.
70599         * lib/javaexec.c: Include filename.h instead of pathname.h.
70600         (execute_java_class): Update.
70601         * modules/findprog: Update.
70602         * modules/javacomp: Update.
70603         * modules/javaexec: Update.
70604         * MODULES.html.sh (File system functions): Add 'filename', remove
70605         'pathname'.
70606
70607 2007-02-25  Bruno Haible  <bruno@clisp.org>
70608
70609         * modules/printf-frexpl-tests: New file.
70610         * tests/test-printf-frexpl.c: New file.
70611
70612         * modules/printf-frexpl: New file.
70613         * lib/printf-frexpl.h: New file.
70614         * lib/printf-frexpl.c: New file.
70615         * m4/printf-frexpl.m4: New file.
70616
70617 2007-02-25  Bruno Haible  <bruno@clisp.org>
70618
70619         * modules/printf-frexp-tests: New file.
70620         * tests/test-printf-frexp.c: New file.
70621
70622         * modules/printf-frexp: New file.
70623         * lib/printf-frexp.h: New file.
70624         * lib/printf-frexp.c: New file.
70625         * m4/printf-frexp.m4: New file.
70626
70627 2007-02-25  Bruno Haible  <bruno@clisp.org>
70628
70629         Assume automake >= 1.10 for the tests.
70630         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70631         * modules/arctwo-tests: Likewise.
70632         * modules/argp-tests: Likewise.
70633         * modules/avltree-list-tests: Likewise.
70634         * modules/avltree-oset-tests: Likewise.
70635         * modules/avltreehash-list-tests: Likewise.
70636         * modules/carray-list-tests: Likewise.
70637         * modules/crc-tests: Likewise.
70638         * modules/des-tests: Likewise.
70639         * modules/gc-arcfour-tests: Likewise.
70640         * modules/gc-arctwo-tests: Likewise.
70641         * modules/gc-des-tests: Likewise.
70642         * modules/gc-hmac-md5-tests: Likewise.
70643         * modules/gc-hmac-sha1-tests: Likewise.
70644         * modules/gc-md2-tests: Likewise.
70645         * modules/gc-md4-tests: Likewise.
70646         * modules/gc-md5-tests: Likewise.
70647         * modules/gc-pbkdf2-sha1-tests: Likewise.
70648         * modules/gc-rijndael-tests: Likewise.
70649         * modules/gc-sha1-tests: Likewise.
70650         * modules/gc-tests: Likewise.
70651         * modules/getaddrinfo-tests: Likewise.
70652         * modules/hmac-md5-tests: Likewise.
70653         * modules/hmac-sha1-tests: Likewise.
70654         * modules/linked-list-tests: Likewise.
70655         * modules/linkedhash-list-tests: Likewise.
70656         * modules/lock-tests: Likewise.
70657         * modules/md2-tests: Likewise.
70658         * modules/md4-tests: Likewise.
70659         * modules/md5-tests: Likewise.
70660         * modules/rbtree-list-tests: Likewise.
70661         * modules/rbtree-oset-tests: Likewise.
70662         * modules/rbtreehash-list-tests: Likewise.
70663         * modules/read-file-tests: Likewise.
70664         * modules/rijndael-tests: Likewise.
70665         * modules/stdint-tests: Likewise.
70666         * modules/tls-tests: Likewise.
70667
70668 2007-02-24  Bruno Haible  <bruno@clisp.org>
70669
70670         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70671         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70672         function; instead check whether isnan with a double argument links.
70673         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70674         function; instead check whether isnan with a 'long double' argument
70675         links.
70676         Reported by Eric Blake <ebb9@byu.net>.
70677
70678 2007-02-24  Bruno Haible  <bruno@clisp.org>
70679
70680         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70681         defined.
70682         * lib/isnanl.c: Remove all code. Just include isnan.c.
70683         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70684
70685 2007-02-25  Jim Meyering  <jim@meyering.net>
70686
70687         Avoid conflicting types for 'unsetenv' on FreeBSD.
70688         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70689         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70690         in stdlib.h.
70691
70692 2007-02-24  Bruno Haible  <bruno@clisp.org>
70693
70694         * modules/isnanl-nolibm-tests: New file.
70695         * tests/test-isnanl.c: New file.
70696
70697         * modules/isnanl-nolibm: New file.
70698         * lib/isnanl.h: New file.
70699         * lib/isnanl.c: New file.
70700         * m4/isnanl.m4: New file.
70701
70702 2007-02-24  Bruno Haible  <bruno@clisp.org>
70703
70704         * modules/isnan-nolibm-tests: New file.
70705         * tests/test-isnan.c: New file.
70706
70707         * modules/isnan-nolibm: New file.
70708         * lib/isnan.h: New file.
70709         * lib/isnan.c: New file.
70710         * m4/isnan.m4: New file.
70711
70712 2007-02-24  Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70715         assume that an exponent fits in 20 bits.
70716
70717 2007-02-24  Jim Meyering  <jim@meyering.net>
70718
70719         * m4/regex.m4: Update the description of the configure-time option,
70720         --without-included-regex, to state accurately what the defaults are,
70721         and perhaps to give people an idea why using this option is risky.
70722
70723 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70726         loops on small arguments.  This attempts to avoid the problem
70727         Bruno Haible reported for AIX 4.3.2 in
70728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70729
70730 2007-02-23  Bruno Haible  <bruno@clisp.org>
70731
70732         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70733         Needed for help2man.
70734
70735 2007-02-23  Karl Berry  <karl@gnu.org>
70736
70737         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70738         exists, foo.h should be cvs-ignored, not committed.
70739
70740 2007-02-23  Eric Blake  <ebb9@byu.net>
70741
70742         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70743         * lib/stat-time.h (includes): Likewise.
70744         * lib/utimecmp.c (includes): Likewise.
70745         * lib/utimens.h (includes): Likewise.
70746         * lib/getdate.y (includes): Also include "timespec.h" for use
70747         internal to the module.
70748         * modules/utimens (Depends-on): Revert yesterday's patch.
70749         * modules/nanosleep (Depends-on): Add missing dependency.
70750
70751 2007-02-22  Bruno Haible  <bruno@clisp.org>
70752
70753         * lib/glob.c: Don't include getlogin_r.h.
70754
70755 2007-02-22  Jim Meyering  <jim@meyering.net>
70756
70757         * modules/utimens (Depends-on): Add timespec, required for
70758         utimens.h's inclusion of timespec.h.
70759
70760 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70763         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70764         Schwab in
70765         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70766         I'll try to think of a better way to fix the Solaris problem.
70767
70768         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70769         like glibc; on Solaris 10, it fails with errno == EINVAL.
70770         POSIX says the behavior is unspecified if the first argument is NULL,
70771         so play it safe and never pass NULL to the system getcwd.
70772
70773 2007-02-21  Jim Meyering  <jim@meyering.net>
70774
70775         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70776         of gettimeofday.  It would conflict with the one now always
70777         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70778         an IRIX 6.5 build failure.
70779
70780 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         Minor fixups to port to Solaris 10 with Sun C 5.8.
70783         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70784         * modules/getcwd (Depends-on): Add dirfd.
70785         * lib/putenv.c (putenv): #undef it.
70786         (rpl_putenv): New decl.
70787         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70788
70789 2007-02-20  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/stdio-tests: New file.
70792         * tests/test-stdio.c: New file.
70793
70794         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70795         (Depends-on): Add stdio.
70796         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70797         (Include): Use <stdio.h> instead of vsnprintf.h.
70798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70799         HAVE_DECL_VSNPRINTF.
70800         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70801
70802         * modules/snprintf (Files): Remove lib/snprintf.h.
70803         (Depends-on): Add stdio.
70804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70805         (Include): Use <stdio.h> instead of snprintf.h.
70806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70807         HAVE_DECL_SNPRINTF.
70808         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70809         * lib/getaddrinfo.c: Likewise.
70810
70811         * modules/stdio: New file.
70812         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70813         * lib/snprintf.h: Remove file.
70814         * lib/vsnprintf.h: Remove file.
70815         * lib/.cppi-disable: Remove snprintf.h.
70816         * m4/stdio_h.m4: New file.
70817         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70818
70819 2007-02-20  Jim Meyering  <jim@meyering.net>
70820
70821         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70822         used by e.g., mingw.  From Bruno Haible.
70823
70824 2007-02-19  Bruno Haible  <bruno@clisp.org>
70825
70826         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70827         warnings.
70828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70829
70830 2007-02-19  Bruno Haible  <bruno@clisp.org>
70831
70832         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70833         from mingw users.
70834
70835 2007-02-19  Bruno Haible  <bruno@clisp.org>
70836
70837         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70838         warnings.
70839         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70840
70841 2007-02-19  Jim Meyering  <jim@meyering.net>
70842
70843         Don't use FD after a successful "fdopendir (fd)".
70844         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70845         Reset it by calling dirfd on the just-obtained DIR*.
70846
70847         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70848         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70849
70850 2007-02-18  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/readlink.c: Include <unistd.h>.
70853         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70854         HAVE_READLINK.
70855         * modules/readlink (Depends-on): Add unistd.
70856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70857         (Include): Add <unistd.h>.
70858
70859         * lib/getlogin_r.h: Remove file.
70860         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70861         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70862         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70863         HAVE_DECL_GETLOGIN_R.
70864         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70866         (Include): Use <unistd.h> instead of getlogin_r.h.
70867
70868         * lib/getcwd.h: Remove file.
70869         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70870         * lib/xgetcwd.c: Likewise.
70871         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70872         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70873         * modules/getcwd (Files): Remove lib/getcwd.h.
70874         (Depends-on): Add unistd.
70875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70876         (Include): Use <unistd.h> instad of getcwd.h.
70877
70878         * lib/ftruncate.c: Include <unistd.h> first.
70879         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70880         Set HAVE_FTRUNCATE.
70881         * modules/ftruncate (Depends-on): Add unistd.
70882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70883
70884         * lib/fchdir.c: Include <unistd.h> first.
70885         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70887         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70888         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70889         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70890
70891         * lib/dup2.c: Include <unistd.h> first.
70892         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70893         HAVE_DUP2.
70894         * modules/dup2 (Depends-on): Add unistd.
70895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70896
70897         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70898         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70899         REPLACE_CHOWN. Don't define chown as a macro here.
70900         * modules/chown (Depends-on): Add unistd.
70901         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70902
70903         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70904         Add definition for GL_LINK_WARNING.
70905         (chown, dup2): New declarations.
70906         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70907         link warning.
70908         (ftruncate): New declaration.
70909         (getcwd): New declaration, taken from old getcwd.h.
70910         (getlogin_r): New declaration, taken from old getlogin_r.h.
70911         (readlink): New declaration.
70912         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70913         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70914         (gl_PREREQ_UNISTD): Remove macro.
70915         (gl_UNISTD_MODULE_INDICATOR): New macro.
70916         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70917         many new variables. Don't set UNISTD_H.
70918         * modules/unistd (Description): Change.
70919         (Depends-on): Add link-warning.
70920         (configure.ac): Update.
70921         (Makefile.am): Create unistd.h always. Substitute many new variables
70922         into it.
70923
70924 2007-02-18  Bruno Haible  <bruno@clisp.org>
70925
70926         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70927         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70928         HAVE_GETSUBOPT.
70929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70930         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70931         * lib/getsubopt.h: Remove file.
70932         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70933         (Depends-on): Add stdlib.
70934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70935         (Includes): Use <stdlib.h> instead of getsubopt.h.
70936         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70937         Set HAVE_GETSUBOPT.
70938         * lib/getsubopt.c: Don't include getsubopt.h.
70939
70940 2007-02-18  Bruno Haible  <bruno@clisp.org>
70941
70942         * modules/fchdir (Depends-on): Add dup2.
70943
70944 2007-02-18  Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/stdlib_.h: Handle glibc's special invocation convention
70947         specially.
70948
70949 2007-02-18  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/stdlib-tests: New file.
70952         * tests/test-stdlib.c: New file.
70953
70954         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70955         (Depends-on): Add stdlib.
70956         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70957         (Includes): Use <stdlib.h> instead of mkstemp.h.
70958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70959         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70960         * lib/mkstemp.c: Don't include mkstemp.h.
70961         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70962         * lib/stdlib--.h: Don't include mkstemp.h.
70963
70964         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70965         (Depends-on): Add stdlib.
70966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70967         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70968         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70969         HAVE_MKDTEMP.
70970         * lib/mkdtemp.c: Don't include mkdtemp.h.
70971         * lib/clean-temp.c: Don't include mkdtemp.h.
70972
70973         * modules/exit (Files): Remove lib/exit.h.
70974         (Depends-on): Add stdlib.
70975         (Makefile.am): Remove lib_SOURCES.
70976         (Include): Use <stdlib.h> instead of exit.h.
70977         * lib/argmatch.c: Don't include exit.h.
70978         * lib/execute.c: Likewise.
70979         * lib/pagealign_alloc.c: Likewise.
70980         * lib/pipe.c: Likewise.
70981         * lib/wait-process.c: Likewise.
70982         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70983         * lib/exitfail.c: Likewise.
70984         * lib/savewd.c: Likewise.
70985         * lib/xsetenv.c: Likewise.
70986
70987         * modules/stdlib: New file.
70988         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70989         and extra comments about mkstemp().
70990         * lib/exit.h: Remove file.
70991         * lib/mkdtemp.h: Remove file.
70992         * lib/mkstemp.h: Remove file.
70993         * m4/stdlib_h.m4: New file.
70994         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70995
70996 2007-02-18  Bruno Haible  <bruno@clisp.org>
70997
70998         * modules/math-tests: New file.
70999         * tests/test-math.c: New file.
71000
71001         * modules/math: New file.
71002         * modules/mathl (Files): Remove lib/mathl.h.
71003         (Depends-on): Add math.
71004         (Makefile.am): Don't mention mathl.h.
71005         (Include): Use <math.h> instead of mathl.h.
71006         * lib/math_.h: New file.
71007         * lib/mathl.h: Remove file.
71008         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71009         mathl.h.
71010         * lib/asinl.c: Likewise.
71011         * lib/atanl.c: Likewise.
71012         * lib/ceill.c: Likewise.
71013         * lib/cosl.c: Likewise.
71014         * lib/expl.c: Likewise.
71015         * lib/floorl.c: Likewise.
71016         * lib/frexpl.c: Likewise.
71017         * lib/ldexpl.c: Likewise.
71018         * lib/logl.c: Likewise.
71019         * lib/sincosl.c: Likewise.
71020         * lib/sinl.c: Likewise.
71021         * lib/sqrtl.c: Likewise.
71022         * lib/tanl.c: Likewise.
71023         * lib/trigl.c: Likewise.
71024         * m4/math_h.m4: New file.
71025         * MODULES.html.sh (Mathematics): Add math.
71026
71027 2007-02-17  Bruno Haible  <bruno@clisp.org>
71028
71029         * modules/wctype-tests: New file.
71030         * tests/test-wctype.c: New file.
71031
71032         * modules/wchar-tests: New file.
71033         * tests/test-wchar.c: New file.
71034
71035         * modules/unistd-tests: New file.
71036         * tests/test-unistd.c: New file.
71037
71038         * modules/time-tests: New file.
71039         * tests/test-time.c: New file.
71040
71041         * modules/sysexits-tests: New file.
71042         * tests/test-sysexits.c: New file.
71043
71044         * modules/sys_time-tests: New file.
71045         * tests/test-sys_time.c: New file.
71046
71047         * modules/sys_stat-tests: New file.
71048         * tests/test-sys_stat.c: New file.
71049
71050         * modules/sys_socket-tests: New file.
71051         * tests/test-sys_socket.c: New file.
71052
71053         * modules/sys_select-tests: New file.
71054         * tests/test-sys_select.c: New file.
71055
71056         * modules/string-tests: New file.
71057         * tests/test-string.c: New file.
71058
71059         * modules/stdbool-tests: New file.
71060         * tests/test-stdbool.c: New file.
71061
71062         * modules/netinet_in-tests: New file.
71063         * tests/test-netinet_in.c: New file.
71064
71065         * modules/inttypes-tests: New file.
71066         * tests/test-inttypes.c: New file.
71067
71068         * modules/fcntl-tests: New file.
71069         * tests/test-fcntl.c: New file.
71070
71071         * modules/byteswap-tests: New file.
71072         * tests/test-byteswap.c: New file.
71073
71074         * modules/arpa_inet-tests: New file.
71075         * tests/test-arpa_inet.c: New file.
71076
71077 2007-02-17  Bruno Haible  <bruno@clisp.org>
71078
71079         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71080         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71081         if the corresponding module is not enabled. Emit link warnings if
71082         the function is used nevertheless.
71083         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71084         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71085         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71086         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71087         * modules/inttypes (Depends-on): Add link-warning.
71088         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71089         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71090         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71091         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71092         * modules/imaxdiv (configure.ac): Likewise.
71093         * modules/strtoimax (configure.ac): Likewise.
71094         * modules/strtoumax (configure.ac): Likewise.
71095
71096 2007-02-17  Bruno Haible  <bruno@clisp.org>
71097
71098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71099         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71100         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71101         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71102
71103 2007-02-17  Bruno Haible  <bruno@clisp.org>
71104
71105         * modules/link-warning: New file.
71106         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71107         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71108         * modules/string (Depends-on): Add link-warning.
71109         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71110         string.h.
71111         * MODULES.html.sh (Support for building libraries and executables): Add
71112         link-warning.
71113
71114 2007-02-17  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71117         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71118         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71119         long lines.
71120
71121 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71122             Bruno Haible  <bruno@clisp.org>
71123
71124         * modules/tmpfile: New file.
71125         * lib/tmpfile.c: New file.
71126         * m4/tmpfile.m4: New file.
71127         * MODULES.html.sh (func_all_modules): New section "Input/output".
71128
71129 2007-02-15  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71132         (supports_delete_on_close): New function.
71133         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71134
71135 2007-02-14  Bruno Haible  <bruno@clisp.org>
71136
71137         * modules/mbspcasecmp-tests: New file.
71138         * tests/test-mbspcasecmp.sh: New file.
71139         * tests/test-mbspcasecmp.c: New file.
71140
71141         New module mbspcasecmp.
71142         * modules/mbspcasecmp: New file.
71143         * lib/mbspcasecmp.c: New file.
71144         * lib/string_.h (strncasecmp): Change warning message.
71145         (mbspcasecmp): New declaration.
71146         * m4/mbspcasecmp.m4: New file.
71147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71148         GNULIB_MBSPCASECMP.
71149         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71150         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71151
71152 2007-02-14  Bruno Haible  <bruno@clisp.org>
71153
71154         * modules/mbsncasecmp-tests: New file.
71155         * tests/test-mbsncasecmp.sh: New file.
71156         * tests/test-mbsncasecmp.c: New file.
71157
71158         New module mbsncasecmp.
71159         * modules/mbsncasecmp: New file.
71160         * lib/mbsncasecmp.c: New file.
71161         * lib/string_.h (mbsncasecmp): New declaration.
71162         * m4/mbsncasecmp.m4: New file.
71163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71164         GNULIB_MBSNCASECMP.
71165         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71166         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71167
71168 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71171         Verify that it doesn't overlap with our flags.
71172         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71173         do not have the desired effect in multibyte locales; instead, use
71174         mbscasecmp.
71175         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71176         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71177         we don't require GNU fnmatch ourselves (if our users require it, they
71178         should do so explicitly).
71179
71180         Fix regex code so it doesn't rely on strcasecmp.
71181         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71182         Otherwise, include gnulib's langinfo.h.
71183         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71184         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71185         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71186         * modules/regex (FILES): Remove m4/codeset.m4.
71187         (Depends-on): Add localcharset.  Remove strcase.
71188
71189 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71190
71191         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71192         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71193
71194 2007-02-13  Bruno Haible  <bruno@clisp.org>
71195
71196         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71198
71199 2007-02-12  Bruno Haible  <bruno@clisp.org>
71200
71201         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71202         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71203         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71204         time warning rather than a link error.
71205
71206 2007-02-12  Bruno Haible  <bruno@clisp.org>
71207
71208         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71209         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71211
71212 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71215         args, not 2.
71216
71217 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         New module 'time', so that apps can include <time.h> as per
71220         POSIX and GNU instead of separate include files like time_r.h
71221         and timegm.h.  This implementation tries out a simpler approach
71222         for replacing decls in standard include files (as compared to
71223         the string module), somewhat as an experiment.
71224
71225         * config/srclist.txt: Comment out mktime.c for now.
71226         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71227         since it doesn't apply any more.  Use generic wording instead.
71228         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71229         'time'.
71230         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71231         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71232         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71233         Don't include <sys/types.h>; no longer needed since we assume C89.
71234         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71235         * lib/strftime.c: Likewise.
71236         * lib/time_r.c: Likewise.
71237         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71238         * lib/nanosleep.c: Include <time.h> first, to check interface.
71239         * lib/strptime.c: Likewise.
71240         * lib/time_r.c: Likewise.
71241         * lib/timegm.c: Likewise.
71242         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71243         needed.
71244         * lib/timegm.c: Don't include timegm.h; no longer needed.
71245         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71246         time.h now handles any problems in that area.
71247         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71248         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71249         that time.h defines struct timespec.
71250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71251         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71252         handles that.
71253         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71254         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71255         needed.  Set REPLACE_LOCALTIME.
71256         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71257         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71258         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71259         nanosleep; time_h.m4 now does that.  Don't require
71260         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71261         module handles this now.
71262         * modules/getdate (Depends-on): Remove timespec.  Add time.
71263         * modules/nanosleep (Depends-on): Likewise.
71264         * modules/stat-time (Depends-on): Likewise.
71265         * modules/nanosleep (Include): Include time.h, not timespec.h.
71266         * modules/strptime (Files): Remove lib/strptime.h.
71267         (Depends-on): Add extensions, time.
71268         (Include): Include time.h, not strptime.h.
71269         * modules/time_r (Files): Remove lib/time_r.h.
71270         (Depends-on): Add time.
71271         (Include): Include time.h, not time_r.h.
71272         * modules/timegm: Likewise.
71273         * modules/timespec (Description): Now does timespec-related decls
71274         of our own, instead of struct timespec itself.
71275         (Depends-on): Add time; remove extensions.
71276         (Maintainer): Add self.
71277         * modules/utimecmp (Depends-on): Add time; remove timespec.
71278         * modules/utimens (Depends-on): Likewise.
71279         * modules/xnanosleep (Depends-on): Likewise.
71280
71281 2007-02-11  Bruno Haible  <bruno@clisp.org>
71282
71283         * lib/c-strstr.c: Include allocsa.h.
71284         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71285         * lib/c-strcasestr.c: Include allocsa.h.
71286         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71287         * lib/strcasestr.c: Include allocsa.h.
71288         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71289         * lib/mbsstr.c: Include allocsa.h.
71290         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71291         allocsa/freesa instead of malloc/free.
71292         * lib/mbscasestr.c: Include allocsa.h.
71293         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71294         allocsa/freesa instead of malloc/free.
71295         * modules/c-strstr (Depends-on): Add allocsa.
71296         * modules/c-strcasestr (Depends-on): Likewise.
71297         * modules/strcasestr (Depends-on): Likewise.
71298         * modules/mbsstr (Depends-on): Likewise.
71299         * modules/mbscasestr (Depends-on): Likewise.
71300
71301 2007-02-11  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71304
71305         * modules/mbsspn-tests: New file.
71306         * tests/test-mbsspn.sh: New file.
71307         * tests/test-mbsspn.c: New file.
71308
71309 2007-02-11  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71312
71313         * modules/mbspbrk-tests: New file.
71314         * tests/test-mbspbrk.sh: New file.
71315         * tests/test-mbspbrk.c: New file.
71316
71317 2007-02-11  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71320         unneeded cast.
71321
71322         * modules/mbscspn-tests: New file.
71323         * tests/test-mbscspn.sh: New file.
71324         * tests/test-mbscspn.c: New file.
71325
71326 2007-02-11  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/mbscasecmp-tests: New file.
71329         * tests/test-mbscasecmp.sh: New file.
71330         * tests/test-mbscasecmp.c: New file.
71331
71332 2007-02-11  Bruno Haible  <bruno@clisp.org>
71333
71334         Ensure O(n) worst-case complexity of mbscasestr.
71335         * lib/mbscasestr.c: Include stdbool.h.
71336         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71337         functions.
71338         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71339         the bookkeeping indicates that it's worth it.
71340         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71341
71342         * modules/mbscasestr-tests: New file.
71343         * tests/test-mbscasestr1.c: New file.
71344         * tests/test-mbscasestr2.sh: New file.
71345         * tests/test-mbscasestr2.c: New file.
71346         * tests/test-mbscasestr3.sh: New file.
71347         * tests/test-mbscasestr3.c: New file.
71348         * tests/test-mbscasestr4.sh: New file.
71349         * tests/test-mbscasestr4.c: New file.
71350         * m4/locale-tr.m4: New file.
71351
71352 2007-02-11  Bruno Haible  <bruno@clisp.org>
71353
71354         Ensure O(n) worst-case complexity of mbsstr.
71355         * lib/mbsstr.c: Include stdbool.h.
71356         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71357         functions.
71358         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71359         bookkeeping indicates that it's worth it.
71360         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71361
71362         * modules/mbsstr-tests: New file.
71363         * tests/test-mbsstr1.c: New file.
71364         * tests/test-mbsstr2.sh: New file.
71365         * tests/test-mbsstr2.c: New file.
71366         * tests/test-mbsstr3.sh: New file.
71367         * tests/test-mbsstr3.c: New file.
71368         * m4/locale-fr.m4: New file.
71369
71370 2007-02-11  Bruno Haible  <bruno@clisp.org>
71371
71372         * lib/mbsrchr.c (mbsrchr): Fix bug.
71373
71374         * modules/mbsrchr-tests: New file.
71375         * tests/test-mbsrchr.sh: New file.
71376         * tests/test-mbsrchr.c: New file.
71377
71378 2007-02-11  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/mbschr.c (mbschr): Fix bug.
71381
71382         * modules/mbschr-tests: New file.
71383         * tests/test-mbschr.sh: New file.
71384         * tests/test-mbschr.c: New file.
71385         * m4/locale-zh.m4: New file.
71386
71387 2007-02-11  Bruno Haible  <bruno@clisp.org>
71388
71389         Support for copying multibyte string iterators.
71390         * lib/mbiter.h: Include <string.h>.
71391         (mbiter_multi_copy): New function.
71392         (mbi_copy): New macro.
71393         * lib/mbuiter.h: Include <string.h>.
71394         (mbuiter_multi_copy): New function.
71395         (mbui_copy): New macro.
71396
71397 2007-02-11  Bruno Haible  <bruno@clisp.org>
71398
71399         New module mbslen.
71400         * modules/mbslen: New file.
71401         * lib/mbslen.c: New file.
71402         * lib/string_.h (mbslen): New declaration.
71403         * m4/mbslen.m4: New file.
71404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71405         GNULIB_MBSLEN.
71406         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71407         * MODULES.html.sh (Internationalization functions): Add mbslen.
71408
71409 2007-02-11  Bruno Haible  <bruno@clisp.org>
71410
71411         Ensure O(n) worst-case complexity of strcasestr substitute.
71412         * lib/strcasestr.c: Include stdbool.h.
71413         (knuth_morris_pratt): New function.
71414         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71415         bookkeeping indicates that it's worth it.
71416         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71417
71418         * modules/strcasestr-tests: New file.
71419         * tests/test-strcasestr.c: New file.
71420
71421 2007-02-11  Bruno Haible  <bruno@clisp.org>
71422
71423         Ensure O(n) worst-case complexity of c_strcasestr.
71424         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71425         (knuth_morris_pratt): New function.
71426         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71427         the bookkeeping indicates that it's worth it.
71428         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71429
71430         * modules/c-strcasestr-tests: New file.
71431         * tests/test-c-strcasestr.c: New file.
71432
71433 2007-02-11  Bruno Haible  <bruno@clisp.org>
71434
71435         Ensure O(n) worst-case complexity of c_strstr.
71436         * lib/c-strstr.c: Include stdbool.h, string.h.
71437         (knuth_morris_pratt): New function.
71438         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71439         bookkeeping indicates that it's worth it.
71440         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71441
71442         * lib/c-strstr.c: Complete rewrite for maintainability.
71443
71444         * modules/c-strstr-tests: New file.
71445         * tests/test-c-strstr.c: New file.
71446
71447 2007-02-11  Bruno Haible  <bruno@clisp.org>
71448
71449         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71450         5.2.1 and earlier, whereby \055 was treated just like the range
71451         delimiter '-'.
71452         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71453
71454 2007-02-08  Bruno Haible  <bruno@clisp.org>
71455
71456         * modules/regex (Depends-on): Add stdbool.
71457         Reported by Dalibor Topic <robilad@kaffe.org>.
71458
71459 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71462         Prefer returning from main to exiting from it.
71463         Remove unnecessary parens after sizeof.
71464
71465 2007-02-05  Bruno Haible  <bruno@clisp.org>
71466
71467         New module mbssep.
71468         * modules/mbssep: New file.
71469         * lib/mbssep.c: New file.
71470         * lib/string_.h (strsep): Add a conditional link warning.
71471         (mbssep): New declaration.
71472         * m4/mbssep.m4: New file.
71473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71474         GNULIB_MBSSEP.
71475         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71476         * MODULES.html.sh (Internationalization functions): Add mbssep.
71477
71478 2007-02-05  Bruno Haible  <bruno@clisp.org>
71479
71480         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71481         Optimize search in case of 1 delimiter.
71482
71483 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71484
71485         * lib/acl.h: Include sys/types.h before sys/acl.h.
71486
71487 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71488
71489         Merge upstream fix for glibc bugzilla #3957:
71490
71491         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71492
71493         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71494         bit for RE_HAT_LISTS_NOT_NEWLINE.
71495         (build_charclass_op): Remove bogus comment.
71496
71497 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71498
71499         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71500
71501 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71504         * lib/memmem.c [!defined _LIBC]: Include config.h.
71505
71506 2007-02-04  Bruno Haible  <bruno@clisp.org>
71507
71508         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71509         warning message.
71510
71511 2007-02-04  Bruno Haible  <bruno@clisp.org>
71512
71513         New module mbstok_r.
71514         * modules/mbstok_r: New file.
71515         * lib/mbstok_r.c: New file.
71516         * lib/string_.h (strtok_r): Change argument names to match the
71517         comments. Add a conditional link warning.
71518         (mbstok_r): New declaration.
71519         * m4/mbstok_r.m4: New file.
71520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71521         GNULIB_MBSTOK_R.
71522         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71523         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71524
71525 2007-02-04  Bruno Haible  <bruno@clisp.org>
71526
71527         New module mbsspn.
71528         * modules/mbsspn: New file.
71529         * lib/mbsspn.c: New file.
71530         * lib/string_.h (strspn): Add a conditional link warning.
71531         (mbsspn): New declaration.
71532         * m4/mbsspn.m4: New file.
71533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71534         GNULIB_MBSSPN.
71535         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71536         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71537
71538 2007-02-04  Bruno Haible  <bruno@clisp.org>
71539
71540         New module mbspbrk.
71541         * modules/mbspbrk: New file.
71542         * lib/mbspbrk.c: New file.
71543         * lib/string_.h (strpbrk): Add a conditional link warning.
71544         (mbspbrk): New declaration.
71545         * m4/mbspbrk.m4: New file.
71546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71547         GNULIB_MBSPBRK.
71548         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71549         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71550
71551 2007-02-04  Bruno Haible  <bruno@clisp.org>
71552
71553         New module mbscspn.
71554         * modules/mbscspn: New file.
71555         * lib/mbscspn.c: New file.
71556         * lib/string_.h (strcspn): Add a conditional link warning.
71557         (mbscspn): New declaration.
71558         * m4/mbscspn.m4: New file.
71559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71560         GNULIB_MBSCSPN.
71561         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71562         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71563
71564 2007-02-04  Bruno Haible  <bruno@clisp.org>
71565
71566         New module mbscasestr, reduced goal of strcasestr.
71567         * modules/mbscasestr: New file.
71568         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71569         (mbscasestr): Renamed from strcasestr.
71570         * lib/strcasestr.c: Don't include mbuiter.h.
71571         (strcasestr): Remove support for multibyte locales.
71572         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71573         Change the conditional link warning.
71574         (mbscasestr): New declaration.
71575         * m4/mbscasestr.m4: New file.
71576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71577         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71578         REPLACE_STRCASESTR.
71579         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71581         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71582         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71583         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71584         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71585         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71586         (Depends-on): Remove mbuiter.
71587         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71588
71589 2007-02-04  Bruno Haible  <bruno@clisp.org>
71590
71591         Simplify handling of strncasecmp.
71592         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71593         the conditional link warning.
71594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71595         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71596         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71597         * modules/strcase (configure.ac): Don't invoke
71598         gl_STRING_MODULE_INDICATOR.
71599         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71600
71601 2007-02-04  Bruno Haible  <bruno@clisp.org>
71602
71603         New module mbscasecmp, reduced goal of strcasecmp.
71604         * modules/mbscasecmp: New file.
71605         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71606         (mbscasecmp): Renamed from strcasecmp.
71607         * lib/strcasecmp.c: Don't include mbuiter.h.
71608         (strcasecmp): Remove support for multibyte locales.
71609         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71610         Change the conditional link warning.
71611         (mbscasecmp): New declaration.
71612         * m4/mbscasecmp.m4: New file.
71613         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71614         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71615         REPLACE_STRCASECMP.
71616         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71618         GNULIB_MBSCASECMP.
71619         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71620         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71621         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71622         (Depends-on): Remove mbuiter.
71623         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71624
71625 2007-02-04  Bruno Haible  <bruno@clisp.org>
71626
71627         New module mbsstr. Remove module strstr.
71628         * modules/mbsstr: New file.
71629         * modules/strstr: Remove file.
71630         * lib/mbsstr.c: Renamed from lib/strstr.c.
71631         (mbsstr): Renamed from strstr.
71632         * lib/string_.h (strstr): Remove declaration. Change the conditional
71633         link warning.
71634         (mbsstr): New declaration.
71635         * m4/mbsstr.m4: New file.
71636         * m4/strstr.m4: Remove file.
71637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71638         REPLACE_STRSTR.
71639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71640         Don't initialize GNULIB_STRSTR.
71641         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71642         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71643         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71644         (Support for systems lacking ANSI C 89): Remove strstr.
71645
71646 2007-02-04  Bruno Haible  <bruno@clisp.org>
71647
71648         New module mbsrchr.
71649         * modules/mbsrchr: New file.
71650         * lib/mbsrchr.c: New file.
71651         * lib/string_.h (strrchr): Add a conditional link warning.
71652         (mbsrchr): New declaration.
71653         * m4/mbsrchr.m4: New file.
71654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71655         GNULIB_MBSRCHR.
71656         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71657         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71658
71659 2007-02-04  Bruno Haible  <bruno@clisp.org>
71660
71661         New module mbschr.
71662         * modules/mbschr: New file.
71663         * lib/mbschr.c: New file.
71664         * lib/string_.h (strchr): Add a conditional link warning.
71665         (mbschr): New declaration.
71666         * m4/mbschr.m4: New file.
71667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71668         GNULIB_MBSCHR.
71669         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71670         * MODULES.html.sh (Internationalization functions): Add mbschr.
71671
71672 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71675
71676         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71677
71678 2007-02-04  Bruno Haible  <bruno@clisp.org>
71679
71680         New module description section 'configure.ac-early'.
71681         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71682         (func_get_autoconf_early_snippet): New function.
71683         (func_import, func_create_testdir): Use it. Remove special cases for
71684         modules 'extensions' and 'lock'.
71685         * modules/extensions (configure.ac-early): Require
71686         gl_USE_SYSTEM_EXTENSIONS.
71687         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71688
71689 2007-02-04  Bruno Haible  <bruno@clisp.org>
71690
71691         Make use of gcj-4.3's -fsource and -ftarget option.
71692         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71693         and if so try the options -fsource and -ftarget.
71694         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71695         source_version, ftarget_option, target_version arguments.
71696         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71697         (is_envjavac_oldgcj_14_14_usable): Renamed from
71698         is_envjavac_gcj_14_14_usable.
71699         (is_envjavac_oldgcj_14_13_usable): Renamed from
71700         is_envjavac_gcj_14_13_usable.
71701         (is_gcj_present): Update.
71702         (is_gcj_43, is_gcj43_usable): New functions.
71703         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71704         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71705         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71706         try the options -fsource and -ftarget.
71707
71708 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71711         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71712         larger value.
71713
71714 2007-02-03  Jim Meyering  <jim@meyering.net>
71715
71716         Give tools a better chance to allocate space for very large buffers.
71717         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71718
71719         Make pwd and readlink work also when run with an unreadable parent dir
71720         on systems with openat support.
71721         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71722         provided getcwd function, even when we have openat support.
71723         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71724
71725 2007-02-02  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71728         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71729         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71730         portability problems if one of these functions is only used on specific
71731         platforms.
71732         Reported by Paul Eggert.
71733
71734 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71735
71736         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71737         is causing more trouble than it's curing.
71738         * lib/regex_internal.h (__mempcpy): Remove.
71739         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71740         (and make the code a tad smaller to boot).
71741         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71742
71743 2007-02-02  Jim Meyering  <jim@meyering.net>
71744
71745         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71746         section, not in the Makefile.am: one.
71747
71748 2007-02-02  Eric Blake  <ebb9@byu.net>
71749
71750         * lib/strchrnul.c: Always include config.h first.
71751
71752         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71753         gnulib strstr is not necessary here.
71754
71755 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71756
71757         * m4/socklen.m4: Fix typo.
71758
71759 2007-02-02  Eric Blake  <ebb9@byu.net>
71760
71761         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71762         * modules/netinet_in (Makefile.am): Likewise.
71763
71764 2007-02-01  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/string_.h (GL_LINK_WARNING): New macro.
71767         (strcasecmp, strstr, strcasestr): If provided by the system,
71768         conditionally define as a macro that leads to a warning instead of to
71769         an error.
71770         (strncasecmp): Conditionally define as a macro that leads to a warning.
71771
71772 2007-02-01  Karl Berry  <karl@gnu.org>
71773
71774         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71775
71776 2007-02-01  Bruno Haible  <bruno@clisp.org>
71777
71778         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71779         renamings.
71780
71781 2007-02-01  Eric Blake  <ebb9@byu.net>
71782
71783         * modules/regex (Depends-on): Revert dependence on mempcpy.
71784         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71785         module's definition of mempcpy.
71786         Reported by Paul Eggert.
71787
71788 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71791         the symbol XYZ before redefining it.  This fixes a problem with
71792         programs that don't use XYZ, when compiled on systems that define
71793         XYZ to something else.
71794
71795 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71798         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71799         writeable to group or other and (2) is intended to have a special
71800         mode bit that is set or cleared.  In such a case, the directory
71801         should be neither group- nor other-writeable until the special
71802         mode bits are right.
71803
71804 2007-01-31  Eric Blake  <ebb9@byu.net>
71805
71806         * modules/mountlist (Depends-on): Add strstr.
71807
71808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71809         bug.
71810         * modules/string (Makefile.am): Remove redundant replacement.
71811         * modules/regex (Depends-on): Add mempcpy.
71812
71813 2007-01-31  Bruno Haible  <bruno@clisp.org>
71814
71815         New module description field 'Link'.
71816         * gnulib-tool (func_usage): Document --extract-link-directive.
71817         (sed_extract_prog): Recognize 'Link' directive.
71818         (func_get_link_directive): New function.
71819         (func_import): Show summary of link directives.
71820         Handle --extract-link-directive option.
71821         * modules/acl (Link): New section.
71822         * modules/clock-time (Link): New section.
71823         * modules/euidaccess (Link): New section.
71824         * modules/gettext (Link): New section.
71825         * modules/iconv (Link): New section.
71826         * modules/lock (Link): New section.
71827         * modules/nanosleep (Link): New section.
71828         * modules/readline (Link): New section.
71829
71830 2007-01-27  Bruno Haible  <bruno@clisp.org>
71831
71832         Enforce the use of gnulib modules for unportable <string.h> functions.
71833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71834         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71835         (gl_HEADER_STRING_H_BODY): Require it.
71836         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71837         the symbol XYZ to one that gives a link error.
71838         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71839         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71840         * modules/mempcpy (configure.ac): Likewise.
71841         * modules/memrchr (configure.ac): Likewise.
71842         * modules/stpcpy (configure.ac): Likewise.
71843         * modules/stpncpy (configure.ac): Likewise.
71844         * modules/strcase (configure.ac): Likewise.
71845         * modules/strcasestr (configure.ac): Likewise.
71846         * modules/strchrnul (configure.ac): Likewise.
71847         * modules/strdup (configure.ac): Likewise.
71848         * modules/strndup (configure.ac): Likewise.
71849         * modules/strnlen (configure.ac): Likewise.
71850         * modules/strpbrk (configure.ac): Likewise.
71851         * modules/strsep (configure.ac): Likewise.
71852         * modules/strstr (configure.ac): Likewise.
71853         * modules/strtok_r (configure.ac): Likewise.
71854
71855 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71856
71857         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71858
71859 2007-01-30  Jim Meyering  <jim@meyering.net>
71860
71861         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71862
71863 2007-01-29  Bruno Haible  <bruno@clisp.org>
71864
71865         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71866         * lib/execute.c: Likewise.
71867         * lib/pipe.c: Likewise.
71868         * lib/printf-args.h: Likewise.
71869         * lib/printf-args.c: Likewise.
71870         * lib/printf-parse.c: Likewise.
71871         * lib/vasnprintf.c: Likewise.
71872
71873 2007-01-29  Eric Blake  <ebb9@byu.net>
71874
71875         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71876         declaration.
71877
71878 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71879
71880         * lib/strptime.h (strptime): Use 'restrict' for args where
71881         POSIX requires this.
71882         * lib/strptime.c (strptime): Likewise.
71883         Change license notice from LGPL to GPL, since gnulib-tool will
71884         change this as needed.
71885         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71886         defined.
71887         Include "strptime.h" first, to check interface.
71888         Do not #undef _LIBC and _NL_CURRENT.
71889         Do not include <stdlib.h>; no longer needed.
71890         Include "time_r.h" and declare ptime_locale_status
71891         only if _LIBC is not defined.
71892         (__P): Remove unused macro.
71893         (match_string): Bring back glibc version, but use it only if _LIBC
71894         is defined.
71895         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71896         Remove unnecessary assertion and abort() call.
71897         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71898         * m4/strptime.m4: Fix serial number comment.
71899         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71900         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71901         (Depends-on): Add time_r.
71902
71903 2007-01-29  Bruno Haible  <bruno@clisp.org>
71904
71905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71906         strptime.
71907         * modules/strptime (Depends-on): Add stdbool.
71908         * lib/strptime.h: Include <time.h> always. Add comments.
71909
71910 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71911
71912         * modules/strptime: New file.
71913         * lib/strptime.h: New file.
71914         * lib/strptime.c: New file.
71915         * m4/strptime.m4: New file.
71916
71917 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * MODULES.html.sh: New module mpsort.
71920         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71921
71922         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71923         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71925         All uses changed.
71926         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71927         All uses changed.
71928         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71929         to _Restrict_.
71930         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71931         the parameter matches the prototype.
71932
71933 2007-01-28  Jim Meyering  <jim@meyering.net>
71934
71935         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71936         sys/time.h here, reverting that part of the previous patch:
71937         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71938
71939 2007-01-28  Bruno Haible  <bruno@clisp.org>
71940
71941         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71942         value of $(SYS_TIME_H).
71943         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71944         remove it conditionally, too. [added by Jim Meyering]
71945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71946         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71947         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71948         GETTIMEOFDAY_REPLACEMENT to 1.
71949
71950 2007-01-28  Bruno Haible  <bruno@clisp.org>
71951
71952         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71953         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71955         Set UNISTD_H instead of UNISTD_H2.
71956         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71957
71958 2007-01-28  Bruno Haible  <bruno@clisp.org>
71959
71960         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71961         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71962
71963 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71964
71965         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71966         (func_create_testdir): Ensure C locale for `grep' and `tr'
71967         character ranges.
71968         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71969         ACLOCAL_AMFLAGS parsing state machine.
71970
71971 2007-01-27  Bruno Haible  <bruno@clisp.org>
71972
71973         * modules/unistr/base: Update.
71974
71975 2007-01-27  Bruno Haible  <bruno@clisp.org>
71976
71977         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71978         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71979         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71980         modules/unistr/u32-mbtouc.
71981         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71982         * lib/unistr.h: Update.
71983         * lib/linebreak.c: Update.
71984         * modules/unistr/u32-mbtouc: Renamed from
71985         modules/unistr/u32-mbtouc-safe.
71986         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71987         * lib/unistr.h: Update.
71988         * lib/unistr/u32-to-u8.c: Update.
71989         * lib/unistr/u32-to-u16.c: Update.
71990
71991 2007-01-27  Bruno Haible  <bruno@clisp.org>
71992
71993         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71994         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71995         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71996         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71997         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71998         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71999         modules/unistr/u16-mbtouc.
72000         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72001         * lib/unistr.h: Update.
72002         * lib/linebreak.c: Update.
72003         * modules/linebreak: Update.
72004         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72005         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72006         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72007         * modules/unistr/u16-mbtouc: Renamed from
72008         modules/unistr/u16-mbtouc-safe.
72009         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72010         * lib/unistr.h: Update.
72011         * lib/unistr/u16-to-u8.c: Update.
72012         * modules/unistr/u16-to-u8: Update.
72013         * lib/unistr/u16-to-u32.c: Update.
72014         * modules/unistr/u16-to-u32: Update.
72015
72016 2007-01-27  Bruno Haible  <bruno@clisp.org>
72017
72018         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72019         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72020         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72021         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72022         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72023         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72024         modules/unistr/u8-mbtouc.
72025         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72026         * lib/unistr.h: Update.
72027         * lib/striconveh.c: Update.
72028         * modules/striconveh: Update.
72029         * lib/linebreak.c: Update.
72030         * modules/linebreak: Update.
72031         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72032         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72033         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72034         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72035         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72036         * lib/unistr.h: Update.
72037         * lib/striconveh.c: Update.
72038         * modules/striconveh: Update.
72039         * lib/unistr/u8-to-u16.c: Update.
72040         * modules/unistr/u8-to-u16: Update.
72041         * lib/unistr/u8-to-u32.c: Update.
72042         * modules/unistr/u8-to-u32: Update.
72043
72044 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72045
72046         Sync from Libtool.
72047         * lib/argz.c: Do not include strings.h nor memory.h, include
72048         string.h unconditionally.  Patch by Simon Josefsson.
72049
72050 2007-01-27  Bruno Haible  <bruno@clisp.org>
72051
72052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72053         from gl_HEADER_STRING_H_BODY.
72054         (gl_HEADER_STRING_H_BODY): Require it.
72055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72057         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72058         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72060         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72062         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72063         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72066         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72067         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72068         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72069         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72070
72071 2007-01-27  Bruno Haible  <bruno@clisp.org>
72072
72073         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72074         check_PROGRAMS into noinst_PROGRAMS.
72075         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72076         check_PROGRAMS in this case.
72077         (func_import): Set for_test to false.
72078         (func_create_testdir): Set for_test to true.
72079
72080 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72081             Bruno Haible  <bruno@clisp.org>
72082
72083         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72084         (Depends-on): Add string.
72085         (Includes): Use <string.h> instead of strcasestr.h.
72086         * modules/string (Makefile.am): Also substitute the value of
72087         REPLACE_STRCASESTR.
72088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72089         assume strcasestr is declared in <string.h> not <strings.h>. Also
72090         set REPLACE_STRCASESTR.
72091         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72092         REPLACE_STRCASESTR.
72093         * lib/strcasestr.h: Remove file.
72094         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72095         * lib/string_.h (strcasestr): New declaration.
72096
72097 2007-01-27  Bruno Haible  <bruno@clisp.org>
72098
72099         * lib/string_.h: Use 'extern'.
72100
72101 2007-01-27  Jim Meyering  <jim@meyering.net>
72102
72103         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72104         of set-but-not-used local, "q".
72105
72106         * lib/mempcpy.c: Include <config.h> before <string.h>.
72107         This fixes a compilation error on HP-UX, due to the system's
72108         "restrict"-using mempcpy prototype.
72109
72110 2007-01-26  Bruno Haible  <bruno@clisp.org>
72111
72112         Small optimization.
72113         * lib/javacomp.c: Include c-strstr.h.
72114          (is_envjavac_gcj): Use c_strstr instead of strstr.
72115         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72116
72117 2007-01-26  Bruno Haible  <bruno@clisp.org>
72118
72119         * MODULES.html.sh (Unicode string functions): Add the new modules.
72120
72121         * modules/uniconv/u32-strconv-to-locale: New file.
72122         * lib/uniconv/u32-strconv-to-locale.c: New file.
72123
72124         * modules/uniconv/u16-strconv-to-locale: New file.
72125         * lib/uniconv/u16-strconv-to-locale.c: New file.
72126
72127         * modules/uniconv/u8-strconv-to-locale: New file.
72128         * lib/uniconv/u8-strconv-to-locale.c: New file.
72129
72130         * modules/uniconv/u32-strconv-from-locale: New file.
72131         * lib/uniconv/u32-strconv-from-locale.c: New file.
72132
72133         * modules/uniconv/u16-strconv-from-locale: New file.
72134         * lib/uniconv/u16-strconv-from-locale.c: New file.
72135
72136         * modules/uniconv/u8-strconv-from-locale: New file.
72137         * lib/uniconv/u8-strconv-from-locale.c: New file.
72138
72139         * modules/uniconv/u32-strconv-to-enc: New file.
72140         * lib/uniconv/u32-strconv-to-enc.c: New file.
72141         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72142         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72143
72144         * modules/uniconv/u16-strconv-to-enc: New file.
72145         * lib/uniconv/u16-strconv-to-enc.c: New file.
72146         * lib/uniconv/u-strconv-to-enc.h: New file.
72147         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72148         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72149
72150         * modules/uniconv/u8-strconv-to-enc: New file.
72151         * lib/uniconv/u8-strconv-to-enc.c: New file.
72152         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72153         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72154
72155         * modules/uniconv/u32-strconv-from-enc: New file.
72156         * lib/uniconv/u32-strconv-from-enc.c: New file.
72157         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72158         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72159
72160         * modules/uniconv/u16-strconv-from-enc: New file.
72161         * lib/uniconv/u16-strconv-from-enc.c: New file.
72162         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72163         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72164
72165         * modules/uniconv/u8-strconv-from-enc: New file.
72166         * lib/uniconv/u8-strconv-from-enc.c: New file.
72167         * lib/uniconv/u-strconv-from-enc.h: New file.
72168         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72169         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72170
72171         * modules/uniconv/u32-conv-from-enc: New file.
72172         * lib/uniconv/u32-conv-from-enc.c: New file.
72173         * modules/uniconv/u32-conv-from-enc-tests: New file.
72174         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72175
72176         * modules/uniconv/u16-conv-from-enc: New file.
72177         * lib/uniconv/u16-conv-from-enc.c: New file.
72178         * lib/uniconv/u-conv-from-enc.h: New file.
72179         * modules/uniconv/u16-conv-from-enc-tests: New file.
72180         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72181
72182         * modules/uniconv/u8-conv-from-enc: New file.
72183         * lib/uniconv/u8-conv-from-enc.c: New file.
72184         * modules/uniconv/u8-conv-from-enc-tests: New file.
72185         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72186
72187         * modules/uniconv/base: New file.
72188         * lib/uniconv.h: New file.
72189
72190 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * doc/gnulib-tool.texi (Initial import): Update to match current
72193         behavior with strdup module.
72194         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72195         * lib/memmem.h: Remove; all uses removed.  This is now done
72196         by <string.h>.
72197         * lib/mempcpy.h: Likewise.
72198         * lib/memrchr.h: Likewise.
72199         * lib/stpcpy.h: Likewise.
72200         * lib/stpncpy.h: Likewise.
72201         * lib/strcase.h: Likewise.
72202         * lib/strchrnul.h: Likewise.
72203         * lib/strdup.h: Likewise.
72204         * lib/strndup.h: Likewise.
72205         * lib/strnlen.h: Likewise.
72206         * lib/strpbrk.h: Likewise.
72207         * lib/strsep.h: Likewise.
72208         * lib/strstr.h: Likewise.
72209         * lib/strtok_r.h: Likewise.
72210         * lib/string_.h: New file.
72211         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72212         Rely on <string.h> instead.
72213         * lib/canon-host.c: Likewise.
72214         * lib/chdir-long.c: Likewise.
72215         * lib/concatpath.c: Likewise.
72216         * lib/exclude.c: Likewise.
72217         * lib/fchdir.c: Likewise.
72218         * lib/getaddrinfo.c: Likewise.
72219         * lib/getcwd.c: Likewise.
72220         * lib/getsubopt.c: Likewise.
72221         * lib/glob.c: Likewise.
72222         * lib/hard-locale.c: Likewise.
72223         * lib/iconvme.c: Likewise.
72224         * lib/javacomp.c: Likewise.
72225         * lib/mempcpy.c: Likewise.
72226         * lib/memrchr.c: Likewise.
72227         * lib/regex_internal.h: Likewise.
72228         * lib/stpncpy.c: Likewise.
72229         * lib/strcasecmp.c: Likewise.
72230         * lib/strchrnul.c: Likewise.
72231         * lib/strdup.c: Likewise.
72232         * lib/striconv.c: Likewise.
72233         * lib/striconveh.c: Likewise.
72234         * lib/striconveha.c: Likewise.
72235         * lib/strncasecmp.c: Likewise.
72236         * lib/strndup.c: Likewise.
72237         * lib/strnlen.c: Likewise.
72238         * lib/strsep.c: Likewise.
72239         * lib/strstr.c: Likewise.
72240         * lib/strtok_r.c: Likewise.
72241         * lib/userspec.c: Likewise.
72242         * lib/w32spawn.h: Likewise.
72243         * lib/xstrndup.c: Likewise.
72244         * lib/mountlist.c (strstr): Remove decl.
72245         * m4/string_h.m4: New file.
72246         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72248         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72249         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72250         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72251         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72252         Set REPLACE_STRCASECMP if necessary.
72253         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72254         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72255         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72256         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72257         HAVE_DECL_STRDUP if necessary.
72258         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72259         since gl_FUNC_STRNDUP does that now.
72260         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72261         Check for decl here...
72262         (gl_PREREQ_STRNLEN): ... not here.
72263         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72264         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72265         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72267         necessary.
72268         * modules/string: New file.
72269         * modules/memmem (Files): Remove special-purpose include file.
72270         (Depends-on): Add string.
72271         (Include): Include <string.h>, not the removed file.
72272         * modules/mempcpy: Likewise.
72273         * modules/memrchr: Likewise.
72274         * modules/stpcpy: Likewise.
72275         * modules/stpncpy: Likewise.
72276         * modules/strcase: Likewise.
72277         * modules/strchrnul: Likewise.
72278         * modules/strdup: Likewise.
72279         * modules/strndup: Likewise.
72280         * modules/strnlen: Likewise.
72281         * modules/strpbrk: Likewise.
72282         * modules/strsep: Likewise.
72283         * modules/strstr: Likewise.
72284         * modules/strtok_r: Likewise.
72285         * tests/test-dirname.c: Don't include "strdup.h", since
72286         <string.h> now suffices.
72287         * tests/test-memmem.c: Don't include "memmem.h", since
72288         <string.h> now suffices.
72289
72290 2007-01-25  Bruno Haible  <bruno@clisp.org>
72291
72292         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72293         *resultp is 0.
72294
72295         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72296         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72297         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72298         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72299
72300         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72301         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72302         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72303         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72304         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72305         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72306
72307 2007-01-24  Bruno Haible  <bruno@clisp.org>
72308
72309         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72311         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72312         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72313         gl_FUNC_FTS_CORE.
72314         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72315         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72316         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72317         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72318         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72319         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72320         gl_FUNC_FCHOWNAT.
72321         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72322         gl_FUNC_STRFTIME.
72323         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72324         Reported by Ralf Wildenhues.
72325
72326 2007-01-24  Bruno Haible  <bruno@clisp.org>
72327
72328         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72329         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72330         gl_GETADDRINFO.
72331         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72332         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72333         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72334
72335 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72338         Don't use 'exit'; just return from 'main'.
72339         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72340
72341         * lib/fnmatch_.h: Readjust white space and comments to match
72342         glibc, to avoid spurious diffs.
72343
72344 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72347         2004-12-01 change by Jakub Jelinek, since this code won't compile
72348         if !LIBC.  Problem reported by Bob Proulx.
72349
72350 2007-01-23  Bruno Haible  <bruno@clisp.org>
72351
72352         * lib/striconveh.c: Include c-strcaseeq.h.
72353         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72354         * modules/striconveh (Depends-on): Add c-strcaseeq.
72355
72356 2007-01-23  Bruno Haible  <bruno@clisp.org>
72357
72358         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72359
72360         * modules/c-strcaseeq: New file.
72361         * lib/c-strcaseeq.h: New file.
72362
72363         * modules/streq: New file.
72364         * lib/streq.h: New file.
72365
72366 2007-01-23  Bruno Haible  <bruno@clisp.org>
72367
72368         * modules/striconveha-tests: New file.
72369         * tests/test-striconveha.c: New file.
72370
72371         * lib/striconveha.h: Include <stdbool.h>.
72372         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72373         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72374         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72375         (mem_iconveha): New function.
72376         (str_iconveha_notranslit): Renamed from str_iconveha.
72377         (str_iconveha): New function.
72378         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72379         c-strcase.
72380
72381 2007-01-23  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72384         encodings without forgiving before trying any encoding with handler.
72385         (str_iconveha): Try all encodings without forgiving before trying any
72386         encoding with handler.
72387
72388 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         Import the following changes from libc.
72391
72392         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72393
72394         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72395
72396         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72397
72398         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72399         normal_bracket label.
72400
72401         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72402
72403         [BZ #361]
72404         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72405         to normal_bracket after fetching the next character.
72406
72407 2007-01-22  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72410         argument.
72411         * lib/striconveh.c (iconv_carefully_1): New function.
72412         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72413         argument.
72414         (str_cd_iconveh): Update.
72415         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72416         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72417         * tests/test-striconveh.c (MAGIC): New macro.
72418         (new_offsets): New function.
72419         (main): Test call with and without offsets.
72420
72421 2007-01-22  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72424         * modules/sys_select (Makefile.am): Likewise.
72425         * modules/sys_socket (Makefile.am): Likewise.
72426         * modules/sys_time (Makefile.am): Likewise.
72427
72428 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * modules/gettimeofday (License): Change from GPL to LGPL, since
72431         gettimeofday is a library function.
72432
72433 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72434
72435         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72436
72437 2007-01-21  Bruno Haible  <bruno@clisp.org>
72438
72439         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72440
72441 2007-01-21  Bruno Haible  <bruno@clisp.org>
72442
72443         * modules/striconveha: New file.
72444         * lib/striconveha.h: New file.
72445         * lib/striconveha.c: New file.
72446         * MODULES.html.sh (Internationalization functions): Add striconveha.
72447         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72448         string.
72449         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72450
72451 2007-01-21  Bruno Haible  <bruno@clisp.org>
72452
72453         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72454         * lib/striconveh.c (str_iconveh): Likewise.
72455
72456 2007-01-21  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/striconveh.h (mem_iconveh): New declaration.
72459         * lib/striconveh.c (mem_iconveh): New function.
72460         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72461
72462 2007-01-21  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72465
72466         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72467         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72468         original result buffer.
72469         (str_cd_iconveh): Update.
72470         * tests/test-striconveh.c (main): Update.
72471
72472         * lib/striconv.h (mem_cd_iconv): Change specification.
72473         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72474         result buffer.
72475         (str_cd_iconv): Update.
72476         * tests/test-striconv.c (main): Update.
72477
72478 2007-01-21  Bruno Haible  <bruno@clisp.org>
72479
72480         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72481
72482 2007-01-20  Jim Meyering  <jim@meyering.net>
72483
72484         * lib/userspec.c (parse_with_separator): If a user or group string
72485         starts with "+", skip the corresponding name-to-ID look-up, since
72486         such a look-up must fail: user and group names may not include "+".
72487
72488 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72491         since we now assume the sys_time module.
72492         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72493         check for sys/time.h; no longer needed.
72494         * modules/poll (Depends-on): Depend on sys_time.
72495
72496 2007-01-18  Bruno Haible  <bruno@clisp.org>
72497
72498         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72500
72501         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72502         gettimeofday.
72503
72504         * tests/test-gettimeofday.c: Include <time.h>.
72505         (dummy): Remove variable.
72506
72507         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72508         gl_HEADER_SYS_TIME_H.
72509         (gl_HEADER_SYS_TIME_H): New macro.
72510
72511         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72512         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72514         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72515         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72517         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72518         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72519         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72520         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72521         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72522
72523         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72524         last change; it caused a compilation error when cross-compiling to
72525         Cygwin.
72526
72527 2007-01-18  Jim Meyering  <jim@meyering.net>
72528
72529         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72530         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72531         than the race-prone "test -d sys || mkdir sys".
72532         (configure.ac): Use AC_PROG_MKDIR_P.
72533         * modules/sys_select: Likewise.
72534         * modules/sys_socket: Likewise.
72535         * modules/sys_time: Likewise.
72536
72537 2007-01-18  Eric Blake  <ebb9@byu.net>
72538
72539         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72540         replace gettimeofday.
72541         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72542         name, to avoid infinite recursion.
72543
72544 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72547         module sys_time.
72548         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72549         assume timespec.h defines struct timeval.
72550         * lib/settime.c: Likewise.
72551         * lib/utimens.c: Likewise.
72552         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72553         since we now assume the gettimeofday module.
72554         * lib/tempname.c (__gen_tempname): Likewise.
72555         * lib/gettimeofday.h: Remove.
72556         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72557         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72558         Include <time.h>, for 'time()'.
72559         (localtime_buffer_addr): Also use this workaround if
72560         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72561         to simplify the uses.  All uses changed.
72562         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72563         that #undef is inside {}, and 'const' follows type name consistently.
72564         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72565         (gettimeofday): Do not use the maximum possible value for
72566         tv->tv_usec, since that might break usages other than ls.c.
72567         Instead, we'll leave ls.c alone.  This undoes today's patch
72568         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72569         we've never observed the problem but might as well keep the
72570         canary.
72571         * lib/nanosleep.c: Include timespec.h first, for interface check.
72572         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72573         now assume the sys_time module.
72574         * lib/tempname.c: Likewise.
72575         * lib/timespec.h: Likewise.
72576         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72577         needed.
72578         * lib/strftime.c: Likewise.
72579         * lib/timespec.h: Likewise.
72580         * lib/posixtm.c: Include posixtm.h first, for interface check.
72581         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72582         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72583         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72584         * lib/sys_time_.h: New file.
72585         * lib/timespec.h (struct timespec): Use long int, not long.
72586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72587         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72588         Remove obsolescent call to AC_HEADER_TIME.
72589         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72591         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72592         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72593         Likewise.
72594         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72595         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72597         into the sys_time module.  Check for gettimeofday just once.
72598         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72599         for gettimeofday signature to just check the signature.  Merely
72600         compile it, since linking doesn't test signature.  Improve test for
72601         whether gettimeofday.o is actually needed.
72602         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72603         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72604         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72605         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72606         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72607         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72608         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72609         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72610         than worrying about sys/time.h.
72611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72612         Don't bother worrying about TIME_WITH_SYS_TIME.
72613         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72614         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72615         * m4/sys_time_h.m4: New file.
72616         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72617         Don't include sys/time.h.  Return from main rather than exiting.
72618         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72619         all uses changed.
72620         * modules/gethrxtime (Depends-on): Add sys_time.
72621         * modules/gettime (Depends-on): Likewise.
72622         * modules/gettimeofday (Depends-on): Likewise.
72623         * modules/nanosleep (Depends-on): Likewise.
72624         * modules/settime (Depends-on): Likewise.
72625         * modules/tempname (Depends-on): Likewise.
72626         * modules/utimens (Depends-on): Likewise.
72627         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72628         (Include): Change back to <sys/time.h>.
72629         (Maintainer): Add self.
72630         * modules/sys_time: New file.
72631         * modules/tempname (Depends-on): Add gettimeofday.
72632         * tests/test-gettimeofday.c: Include <sys/time.h>
72633         rather than gettimeofday.h.
72634
72635 2007-01-17  Bruno Haible  <bruno@clisp.org>
72636
72637         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72638         the license default to GPL.
72639         (func_create_testdir): Don't complain if a module is LGPL and its
72640         tests module depends on GPLed modules.
72641
72642 2007-01-17  Bruno Haible  <bruno@clisp.org>
72643
72644         * lib/gettimeofday.c (gettimeofday): Add code for the case
72645         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72646         maximum possible value for tv->tv_usec, rather than the minimum one.
72647
72648 2005-10-08  Martin Lambers  <marlam@marlam.de>
72649 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72650 2007-01-16  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72653         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72654         gl_FUNC_GETTIMEOFDAY.
72655         (Include): Add gettimeofday.h.
72656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72657         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72658         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72659         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72660         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72661         * lib/gettimeofday.h: New file.
72662         * lib/gettimeofday.c: Include <sys/timeb.h>.
72663         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72664         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72665         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72666         fall back on time().
72667
72668         * tests/test-gettimeofday.c: New file.
72669         * modules/gettimeofday-tests: New file.
72670
72671 2007-01-16  Eric Blake  <ebb9@byu.net>
72672
72673         * modules/fnmatch (Depends-on): Depend on wchar.
72674         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72675         * m4/fnmatch.m4: Likewise.
72676         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72677         * m4/mbchar.m4: Likewise.
72678         * modules/mbswidth (Depends-on): Depend on wchar.
72679         * lib/mbswidth.c: Assume <wchar.h>.
72680         * m4/mbswidth.m4: Likewise.
72681         * modules/quotearg (Depends-on): Depend on wchar.
72682         * lib/quotearg.c: Assume <wchar.h>.
72683         * m4/quotearg.m4: Likewise.
72684         * modules/regex (Depends-on): Depend on wchar.
72685         * lib/regex_internal.h: Assume <wchar.h>.
72686         * m4/regex.m4: Likewise.
72687         * modules/stdint (Depends-on): Depend on wchar.
72688         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72689         * m4/stdint.m4: Likewise.
72690         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72691         * modules/strftime (Depends-on): Depend on wchar.
72692         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72693         * modules/strtol (Depends-on): Depend on wchar.
72694         * lib/strtol.c: Assume <wchar.h>.
72695         * modules/wcwidth (Depends-on): Depend on wchar.
72696         * lib/wcwidth.h: Assume <wchar.h>.
72697         * m4/wcwidth.m4: Likewise.
72698
72699 2007-01-16  Bruno Haible  <bruno@clisp.org>
72700
72701         * modules/csharpexec-script: New, created from...
72702         * modules/csharpexec: ... this.
72703
72704 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72705
72706         * modules/javaexec-script: New, created from...
72707         * modules/javaexec: ... this.
72708
72709 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72710
72711         * modules/poll (Dependencies): Add sys_select.
72712
72713 2007-01-15  Jim Meyering  <jim@meyering.net>
72714
72715         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72716         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72717         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72718         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72719
72720 2007-01-15  Bruno Haible  <bruno@clisp.org>
72721
72722         * modules/striconveh: New file.
72723         * lib/striconveh.h: New file.
72724         * lib/striconveh.c: New file.
72725         * MODULES.html.sh (Internationalization functions): Add striconveh.
72726
72727         * modules/striconveh-tests: New file.
72728         * tests/test-striconveh.c: New file.
72729
72730 2007-01-15  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72733         not from GNU libiconv or GNU libc.
72734
72735 2007-01-15  Bruno Haible  <bruno@clisp.org>
72736
72737         * doc/gnulib-intro.texi (Copyright): Explain the different license
72738         terms for module descriptions, autoconf macros, tests, documentation.
72739
72740 2007-01-14  Bruno Haible  <bruno@clisp.org>
72741
72742         * modules/striconv-tests: New file.
72743         * tests/test-striconv.c: New file.
72744
72745 2007-01-14  Bruno Haible  <bruno@clisp.org>
72746
72747         * modules/iconv-tests: New file.
72748         * tests/test-iconv.c: New file.
72749
72750 2007-01-14  Bruno Haible  <bruno@clisp.org>
72751
72752         * gnulib-tool (func_get_license): For test modules, use the license of
72753         the main module.
72754
72755 2007-01-14  Bruno Haible  <bruno@clisp.org>
72756
72757         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72758         if iconv is found to exist.
72759
72760 2007-01-14  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/c-ctype-tests: New file.
72763         * tests/test-c-ctype.c: New file.
72764
72765 2007-01-14  Bruno Haible  <bruno@clisp.org>
72766
72767         * modules/binary-io-tests: New file.
72768         * tests/test-binary-io.sh: New file.
72769         * tests/test-binary-io.c: New file.
72770
72771 2007-01-14  Bruno Haible  <bruno@clisp.org>
72772
72773         * modules/array-oset-tests: New file.
72774         * tests/test-array_oset.c: New file.
72775
72776 2007-01-14  Bruno Haible  <bruno@clisp.org>
72777
72778         * modules/array-list-tests: New file.
72779         * tests/test-array_list.c: New file.
72780
72781 2007-01-14  Bruno Haible  <bruno@clisp.org>
72782
72783         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72784         and make.
72785         Reported by Simon Josefsson in
72786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72787
72788 2007-01-14  Bruno Haible  <bruno@clisp.org>
72789
72790         * modules/allocsa-tests: New file.
72791         * tests/test-allocsa.c: New file.
72792
72793 2007-01-14  Bruno Haible  <bruno@clisp.org>
72794
72795         * modules/fchdir (Depends-on): Add absolute-header.
72796         * modules/unistd (Depends-on): Likewise.
72797
72798 2006-12-30  Bruno Haible  <bruno@clisp.org>
72799
72800         * modules/fchdir: New file.
72801         * modules/unistd (Files): Add lib/unistd_.h.
72802         (Makefile.am): Generate unistd.h from unistd_.h.
72803         * lib/fchdir.c: New file.
72804         * lib/dirent_.h: New file.
72805         * lib/unistd_.h: New file.
72806         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72807         * m4/fchdir.m4: New file.
72808         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72809         (gl_HEADER_UNISTD): Invoke it.
72810         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72811         function.
72812         * lib/backupfile.c (opendir, closedir): Undefine.
72813         * lib/chown.c (open, close): Undefine.
72814         * lib/clean-temp.c (open, close): Undefine.
72815         * lib/copy-file.c (open, close): Undefine.
72816         * lib/execute.c (open, close): Undefine.
72817         * lib/fsusage.c (open, close): Undefine.
72818         * lib/gc-gnulib.c (open, close): Undefine.
72819         * lib/getcwd.c (opendir, closedir): Undefine.
72820         * lib/glob.c (opendir, closedir): Undefine.
72821         * lib/javacomp.c (open, close): Undefine.
72822         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72823         * lib/openat-proc.c (open, close): Undefine.
72824         * lib/pagealign_alloc.c (open, close): Undefine.
72825         * lib/pipe.c (open, close): Undefine.
72826         * lib/progreloc.c (open, close): Undefine.
72827         * lib/savedir.c (opendir, closedir): Undefine.
72828         * lib/utime.c (open, close): Undefine.
72829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72830
72831 2007-01-10  Bruno Haible  <bruno@clisp.org>
72832
72833         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72834
72835 2007-01-12  Eric Blake  <ebb9@byu.net>
72836
72837         Provide a robust <wchar.h>.  Further simplifications are now
72838         possible in other modules, but not included here.
72839         * modules/wchar: New module.
72840         * m4/wchar.m4: New file.
72841         * lib/wchar_.h: Likewise.
72842         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72843         of the new module.
72844         * MODULES.html.sh (Extended multibyte and wide character utilities):
72845         New section.
72846
72847 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72850         to a reasonable default for memory allocation.
72851         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72852         file system that reports garbage st_size values for symlinks.
72853         Problem reported by Liyang Hu.
72854
72855 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72856
72857         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72858         Emacs .#* auto-save files).
72859
72860 2007-01-11  Bruno Haible  <bruno@clisp.org>
72861
72862         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72863         directory.
72864
72865 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         Use @...@ consistently in lib/wctype_.h.
72868         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72869         on it being set to 1 or 0.
72870         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72871         go back to AC_SUBSTing it.
72872         * modules/wctype (Makefile.am): Undo previous change.
72873
72874 2007-01-10  Eric Blake  <ebb9@byu.net>
72875
72876         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72877         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72878         * modules/wctype (Makefile.am): Likewise.
72879         Reported by Chris McGuire.
72880
72881 2007-01-10  Jim Meyering  <jim@meyering.net>
72882
72883         fts.c: a small readability/maintainability improvement
72884         * lib/fts.c (fts_read): Make this code slightly more readable and
72885         maintainable by hoisting the "sp->fts_cur = p" assignments to
72886         immediately follow the statements that set P.  Derived from
72887         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72888
72889 2007-01-10  Eric Blake  <ebb9@byu.net>
72890
72891         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72892         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72894         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72895         Reported by Chris McGuire.
72896
72897 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72898
72899         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72900         in sed script.
72901
72902 2007-01-09  Bruno Haible  <bruno@clisp.org>
72903
72904         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72905         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72906         variables.
72907         (func_module): Use them.
72908
72909 2007-01-09  Bruno Haible  <bruno@clisp.org>
72910
72911         * modules/unistr/base: New file.
72912         * lib/unistr.h: New file.
72913
72914         * modules/unistr/u8-to-u16: New file.
72915         * lib/unistr/u8-to-u16.c: New file.
72916
72917         * modules/unistr/u8-to-u32: New file.
72918         * lib/unistr/u8-to-u32.c: New file.
72919
72920         * modules/unistr/u16-to-u8: New file.
72921         * lib/unistr/u16-to-u8.c: New file.
72922
72923         * modules/unistr/u16-to-u32: New file.
72924         * lib/unistr/u16-to-u32.c: New file.
72925
72926         * modules/unistr/u32-to-u8: New file.
72927         * lib/unistr/u32-to-u8.c: New file.
72928
72929         * modules/unistr/u32-to-u16: New file.
72930         * lib/unistr/u32-to-u16.c: New file.
72931
72932         * modules/unistr/u8-check: New file.
72933         * modules/unistr/u16-check: New file.
72934         * modules/unistr/u32-check: New file.
72935         * lib/unistr/u8-check.c: New file.
72936         * lib/unistr/u16-check.c: New file.
72937         * lib/unistr/u32-check.c: New file.
72938
72939         * modules/unistr/u8-chr: New file.
72940         * modules/unistr/u16-chr: New file.
72941         * modules/unistr/u32-chr: New file.
72942         * lib/unistr/u8-chr.c: New file.
72943         * lib/unistr/u16-chr.c: New file.
72944         * lib/unistr/u32-chr.c: New file.
72945
72946         * modules/unistr/u8-cmp: New file.
72947         * modules/unistr/u16-cmp: New file.
72948         * modules/unistr/u32-cmp: New file.
72949         * lib/unistr/u8-cmp.c: New file.
72950         * lib/unistr/u16-cmp.c: New file.
72951         * lib/unistr/u32-cmp.c: New file.
72952
72953         * modules/unistr/u8-cpy: New file.
72954         * modules/unistr/u16-cpy: New file.
72955         * modules/unistr/u32-cpy: New file.
72956         * lib/unistr/u8-cpy.c: New file.
72957         * lib/unistr/u16-cpy.c: New file.
72958         * lib/unistr/u32-cpy.c: New file.
72959         * lib/unistr/u-cpy.h: New file.
72960
72961         * modules/unistr/u8-cpy-alloc: New file.
72962         * modules/unistr/u16-cpy-alloc: New file.
72963         * modules/unistr/u32-cpy-alloc: New file.
72964         * lib/unistr/u8-cpy-alloc.c: New file.
72965         * lib/unistr/u16-cpy-alloc.c: New file.
72966         * lib/unistr/u32-cpy-alloc.c: New file.
72967         * lib/unistr/u-cpy-alloc.h: New file.
72968
72969         * modules/unistr/u8-endswith: New file.
72970         * modules/unistr/u16-endswith: New file.
72971         * modules/unistr/u32-endswith: New file.
72972         * lib/unistr/u8-endswith.c: New file.
72973         * lib/unistr/u16-endswith.c: New file.
72974         * lib/unistr/u32-endswith.c: New file.
72975         * lib/unistr/u-endswith.h: New file.
72976
72977         * modules/unistr/u8-mblen: New file.
72978         * modules/unistr/u16-mblen: New file.
72979         * modules/unistr/u32-mblen: New file.
72980         * lib/unistr/u8-mblen.c: New file.
72981         * lib/unistr/u16-mblen.c: New file.
72982         * lib/unistr/u32-mblen.c: New file.
72983
72984         * modules/unistr/u8-mbtouc: New file.
72985         * modules/unistr/u16-mbtouc: New file.
72986         * modules/unistr/u32-mbtouc: New file.
72987         * lib/unistr/u8-mbtouc.c: New file.
72988         * lib/unistr/u16-mbtouc.c: New file.
72989         * lib/unistr/u32-mbtouc.c: New file.
72990
72991         * modules/unistr/u8-mbtouc-safe: New file.
72992         * modules/unistr/u16-mbtouc-safe: New file.
72993         * modules/unistr/u32-mbtouc-safe: New file.
72994         * lib/unistr/u8-mbtouc-safe.c: New file.
72995         * lib/unistr/u16-mbtouc-safe.c: New file.
72996         * lib/unistr/u32-mbtouc-safe.c: New file.
72997
72998         * modules/unistr/u8-move: New file.
72999         * modules/unistr/u16-move: New file.
73000         * modules/unistr/u32-move: New file.
73001         * lib/unistr/u8-move.c: New file.
73002         * lib/unistr/u16-move.c: New file.
73003         * lib/unistr/u32-move.c: New file.
73004         * lib/unistr/u-move.h: New file.
73005
73006         * modules/unistr/u8-next: New file.
73007         * modules/unistr/u16-next: New file.
73008         * modules/unistr/u32-next: New file.
73009         * lib/unistr/u8-next.c: New file.
73010         * lib/unistr/u16-next.c: New file.
73011         * lib/unistr/u32-next.c: New file.
73012
73013         * modules/unistr/u8-prev: New file.
73014         * modules/unistr/u16-prev: New file.
73015         * modules/unistr/u32-prev: New file.
73016         * lib/unistr/u8-prev.c: New file.
73017         * lib/unistr/u16-prev.c: New file.
73018         * lib/unistr/u32-prev.c: New file.
73019
73020         * modules/unistr/u8-set: New file.
73021         * modules/unistr/u16-set: New file.
73022         * modules/unistr/u32-set: New file.
73023         * lib/unistr/u8-set.c: New file.
73024         * lib/unistr/u16-set.c: New file.
73025         * lib/unistr/u32-set.c: New file.
73026         * lib/unistr/u-set.h: New file.
73027
73028         * modules/unistr/u8-startswith: New file.
73029         * modules/unistr/u16-startswith: New file.
73030         * modules/unistr/u32-startswith: New file.
73031         * lib/unistr/u8-startswith.c: New file.
73032         * lib/unistr/u16-startswith.c: New file.
73033         * lib/unistr/u32-startswith.c: New file.
73034         * lib/unistr/u-startswith.h: New file.
73035
73036         * modules/unistr/u8-stpcpy: New file.
73037         * modules/unistr/u16-stpcpy: New file.
73038         * modules/unistr/u32-stpcpy: New file.
73039         * lib/unistr/u8-stpcpy.c: New file.
73040         * lib/unistr/u16-stpcpy.c: New file.
73041         * lib/unistr/u32-stpcpy.c: New file.
73042         * lib/unistr/u-stpcpy.h: New file.
73043
73044         * modules/unistr/u8-stpncpy: New file.
73045         * modules/unistr/u16-stpncpy: New file.
73046         * modules/unistr/u32-stpncpy: New file.
73047         * lib/unistr/u8-stpncpy.c: New file.
73048         * lib/unistr/u16-stpncpy.c: New file.
73049         * lib/unistr/u32-stpncpy.c: New file.
73050         * lib/unistr/u-stpncpy.h: New file.
73051
73052         * modules/unistr/u8-strcat: New file.
73053         * modules/unistr/u16-strcat: New file.
73054         * modules/unistr/u32-strcat: New file.
73055         * lib/unistr/u8-strcat.c: New file.
73056         * lib/unistr/u16-strcat.c: New file.
73057         * lib/unistr/u32-strcat.c: New file.
73058         * lib/unistr/u-strcat.h: New file.
73059
73060         * modules/unistr/u8-strchr: New file.
73061         * modules/unistr/u16-strchr: New file.
73062         * modules/unistr/u32-strchr: New file.
73063         * lib/unistr/u8-strchr.c: New file.
73064         * lib/unistr/u16-strchr.c: New file.
73065         * lib/unistr/u32-strchr.c: New file.
73066
73067         * modules/unistr/u8-strcmp: New file.
73068         * modules/unistr/u16-strcmp: New file.
73069         * modules/unistr/u32-strcmp: New file.
73070         * lib/unistr/u8-strcmp.c: New file.
73071         * lib/unistr/u16-strcmp.c: New file.
73072         * lib/unistr/u32-strcmp.c: New file.
73073
73074         * modules/unistr/u8-strcpy: New file.
73075         * modules/unistr/u16-strcpy: New file.
73076         * modules/unistr/u32-strcpy: New file.
73077         * lib/unistr/u8-strcpy.c: New file.
73078         * lib/unistr/u16-strcpy.c: New file.
73079         * lib/unistr/u32-strcpy.c: New file.
73080         * lib/unistr/u-strcpy.h: New file.
73081
73082         * modules/unistr/u8-strcspn: New file.
73083         * modules/unistr/u16-strcspn: New file.
73084         * modules/unistr/u32-strcspn: New file.
73085         * lib/unistr/u8-strcspn.c: New file.
73086         * lib/unistr/u16-strcspn.c: New file.
73087         * lib/unistr/u32-strcspn.c: New file.
73088         * lib/unistr/u-strcspn.h: New file.
73089
73090         * modules/unistr/u8-strdup: New file.
73091         * modules/unistr/u16-strdup: New file.
73092         * modules/unistr/u32-strdup: New file.
73093         * lib/unistr/u8-strdup.c: New file.
73094         * lib/unistr/u16-strdup.c: New file.
73095         * lib/unistr/u32-strdup.c: New file.
73096         * lib/unistr/u-strdup.h: New file.
73097
73098         * modules/unistr/u8-strlen: New file.
73099         * modules/unistr/u16-strlen: New file.
73100         * modules/unistr/u32-strlen: New file.
73101         * lib/unistr/u8-strlen.c: New file.
73102         * lib/unistr/u16-strlen.c: New file.
73103         * lib/unistr/u32-strlen.c: New file.
73104         * lib/unistr/u-strlen.h: New file.
73105
73106         * modules/unistr/u8-strmblen: New file.
73107         * modules/unistr/u16-strmblen: New file.
73108         * modules/unistr/u32-strmblen: New file.
73109         * lib/unistr/u8-strmblen.c: New file.
73110         * lib/unistr/u16-strmblen.c: New file.
73111         * lib/unistr/u32-strmblen.c: New file.
73112
73113         * modules/unistr/u8-strmbtouc: New file.
73114         * modules/unistr/u16-strmbtouc: New file.
73115         * modules/unistr/u32-strmbtouc: New file.
73116         * lib/unistr/u8-strmbtouc.c: New file.
73117         * lib/unistr/u16-strmbtouc.c: New file.
73118         * lib/unistr/u32-strmbtouc.c: New file.
73119
73120         * modules/unistr/u8-strncat: New file.
73121         * modules/unistr/u16-strncat: New file.
73122         * modules/unistr/u32-strncat: New file.
73123         * lib/unistr/u8-strncat.c: New file.
73124         * lib/unistr/u16-strncat.c: New file.
73125         * lib/unistr/u32-strncat.c: New file.
73126         * lib/unistr/u-strncat.h: New file.
73127
73128         * modules/unistr/u8-strncmp: New file.
73129         * modules/unistr/u16-strncmp: New file.
73130         * modules/unistr/u32-strncmp: New file.
73131         * lib/unistr/u8-strncmp.c: New file.
73132         * lib/unistr/u16-strncmp.c: New file.
73133         * lib/unistr/u32-strncmp.c: New file.
73134
73135         * modules/unistr/u8-strncpy: New file.
73136         * modules/unistr/u16-strncpy: New file.
73137         * modules/unistr/u32-strncpy: New file.
73138         * lib/unistr/u8-strncpy.c: New file.
73139         * lib/unistr/u16-strncpy.c: New file.
73140         * lib/unistr/u32-strncpy.c: New file.
73141         * lib/unistr/u-strncpy.h: New file.
73142
73143         * modules/unistr/u8-strnlen: New file.
73144         * modules/unistr/u16-strnlen: New file.
73145         * modules/unistr/u32-strnlen: New file.
73146         * lib/unistr/u8-strnlen.c: New file.
73147         * lib/unistr/u16-strnlen.c: New file.
73148         * lib/unistr/u32-strnlen.c: New file.
73149         * lib/unistr/u-strnlen.h: New file.
73150
73151         * modules/unistr/u8-strpbrk: New file.
73152         * modules/unistr/u16-strpbrk: New file.
73153         * modules/unistr/u32-strpbrk: New file.
73154         * lib/unistr/u8-strpbrk.c: New file.
73155         * lib/unistr/u16-strpbrk.c: New file.
73156         * lib/unistr/u32-strpbrk.c: New file.
73157         * lib/unistr/u-strpbrk.h: New file.
73158
73159         * modules/unistr/u8-strrchr: New file.
73160         * modules/unistr/u16-strrchr: New file.
73161         * modules/unistr/u32-strrchr: New file.
73162         * lib/unistr/u8-strrchr.c: New file.
73163         * lib/unistr/u16-strrchr.c: New file.
73164         * lib/unistr/u32-strrchr.c: New file.
73165
73166         * modules/unistr/u8-strspn: New file.
73167         * modules/unistr/u16-strspn: New file.
73168         * modules/unistr/u32-strspn: New file.
73169         * lib/unistr/u8-strspn.c: New file.
73170         * lib/unistr/u16-strspn.c: New file.
73171         * lib/unistr/u32-strspn.c: New file.
73172         * lib/unistr/u-strspn.h: New file.
73173
73174         * modules/unistr/u8-strstr: New file.
73175         * modules/unistr/u16-strstr: New file.
73176         * modules/unistr/u32-strstr: New file.
73177         * lib/unistr/u8-strstr.c: New file.
73178         * lib/unistr/u16-strstr.c: New file.
73179         * lib/unistr/u32-strstr.c: New file.
73180         * lib/unistr/u-strstr.h: New file.
73181
73182         * modules/unistr/u8-strtok: New file.
73183         * modules/unistr/u16-strtok: New file.
73184         * modules/unistr/u32-strtok: New file.
73185         * lib/unistr/u8-strtok.c: New file.
73186         * lib/unistr/u16-strtok.c: New file.
73187         * lib/unistr/u32-strtok.c: New file.
73188         * lib/unistr/u-strtok.h: New file.
73189
73190         * modules/unistr/u8-uctomb: New file.
73191         * modules/unistr/u16-uctomb: New file.
73192         * modules/unistr/u32-uctomb: New file.
73193         * lib/unistr/u8-uctomb.c: New file.
73194         * lib/unistr/u16-uctomb.c: New file.
73195         * lib/unistr/u32-uctomb.c: New file.
73196
73197         * MODULES.html.sh (Unicode string functions): Add the new modules.
73198
73199 2007-01-08  Bruno Haible  <bruno@clisp.org>
73200
73201         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73202         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73203         subdirectories.
73204
73205 2007-01-08  Karl Berry  <karl@gnu.org>
73206
73207         * doc/error.texi: mention that main() fns must set program_name
73208         when progname is used.
73209
73210 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73211
73212         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73213         WCTYPE_H is empty, for the benefit of builds from non-distclean
73214         directories.  Problem reported by Eric Blake in
73215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73216
73217 2007-01-08  Bruno Haible  <bruno@clisp.org>
73218
73219         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73220         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73221         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73222         PROVIDE_CANONICALIZE_FILENAME_MODE.
73223         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73224
73225 2007-01-08  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73228         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73229         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73230         * lib/fts.c: Likewise.
73231         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73232
73233 2006-12-25  Bruno Haible  <bruno@clisp.org>
73234
73235         * modules/utf8-ucs4-safe: New file.
73236         * lib/utf8-ucs4-safe.h: New file.
73237         * lib/unistr/utf8-ucs4-safe.c: New file.
73238
73239         * modules/utf16-ucs4-safe: New file.
73240         * lib/utf16-ucs4-safe.h: New file.
73241         * lib/unistr/utf16-ucs4-safe.c: New file.
73242
73243         * MODULES.html.sh (Unicode string functions): Add the new modules.
73244
73245 2007-01-08  Bruno Haible  <bruno@clisp.org>
73246
73247         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73248         (Depends-on): Add unitypes.
73249         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73250         (u8_mbtouc_aux): Move out to separate file.
73251         (u8_mbtouc): Use ucs4_t, uint8_t types.
73252         * lib/unistr/utf8-ucs4.c: New file.
73253
73254         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73255         (Depends-on): Add unitypes.
73256         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73257         (u16_mbtouc_aux): Move out to separate file.
73258         (u16_mbtouc): Use ucs4_t, uint16_t types.
73259         * lib/unistr/utf16-ucs4.c: New file.
73260
73261         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73262         (Depends-on): Add unitypes.
73263         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73264         (u8_uctomb_aux): Move out to separate file.
73265         (u8_uctomb): Use ucs4_t, uint8_t types.
73266         * lib/unistr/ucs4-utf8.c: New file.
73267
73268         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73269         (Depends-on): Add unitypes.
73270         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73271         (u16_uctomb_aux): Move out to separate file.
73272         (u16_uctomb): Use ucs4_t, uint16_t types.
73273         * lib/unistr/ucs4-utf16.c: New file.
73274
73275 2006-12-25  Bruno Haible  <bruno@clisp.org>
73276
73277         * modules/unitypes: New file.
73278         * lib/unitypes.h: New file.
73279         * MODULES.html.sh (func_all_modules): New section "Unicode string
73280         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73281         this section. Add unitypes.
73282
73283 2007-01-08  Bruno Haible  <bruno@clisp.org>
73284
73285         Avoid variable names that conflict with those from libtool.
73286         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73287         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73288         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73289         library_names_spec to acl_library_names_spec, hardcode_* to
73290         acl_hardcode_*.
73291         Reported by Ralf Wildenhues.
73292
73293 2007-01-08  Bruno Haible  <bruno@clisp.org>
73294
73295         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73296         definition.
73297         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73298         definition.
73299         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73300         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73301         definition.
73302         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73303         definition.
73304         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73305         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73306         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73307         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73308         definition.
73309         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73310         definition.
73311         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73312         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73313         GC_USE_<algorithm>.
73314         * lib/gc-libgcrypt.c: Likewise.
73315         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73316         * modules/gc-arctwo (configure.ac): Likewise.
73317         * modules/gc-des (configure.ac): Likewise.
73318         * modules/gc-hmac-md5 (configure.ac): Likewise.
73319         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73320         * modules/gc-md2 (configure.ac): Likewise.
73321         * modules/gc-md4 (configure.ac): Likewise.
73322         * modules/gc-md5 (configure.ac): Likewise.
73323         * modules/gc-random (configure.ac): Likewise.
73324         * modules/gc-rijndael (configure.ac): Likewise.
73325         * modules/gc-sha1 (configure.ac): Likewise.
73326
73327 2007-01-08  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73330         macro definition.
73331         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73332         definition.
73333         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73334         definition.
73335         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73336         * modules/fcntl-safer (configure.ac): Likewise.
73337         * modules/fopen-safer (configure.ac): Likewise.
73338         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73339         GNULIB_FWRITEERROR macro definition.
73340
73341 2007-01-08  Bruno Haible  <bruno@clisp.org>
73342
73343         * m4/gnulib-common.m4: New file.
73344         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73345         (func_get_filelist): Add m4/gnulib-common.m4.
73346
73347 2007-01-08  Bruno Haible  <bruno@clisp.org>
73348
73349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73350         command.
73351
73352 2007-01-08  Jim Meyering  <jim@meyering.net>
73353
73354         Use a more robust test for a "can't happen" condition.
73355         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73356         narrowed the st_size value.  Presuming the "can't happen" condition
73357         is true, that narrowing could conceivably convert an invalid st_size
73358         value into a valid one.  Instead, use a change based on Matthew
73359         Woehlke's original patch.
73360
73361         Slight readability improvement: use an assert-like macro
73362         in place of literal "abort ()" uses.
73363         * lib/fts.c (fts_assert): Define.
73364         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73365         Use this macro instead of a bare 'abort'.
73366
73367 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73370         simply work around them.
73371         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73372         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73373         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73374         declaring.
73375         Don't bother to define as macros, since the standard doesn't require it.
73376         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73377         longer worry about IRIX 5.3.
73378         (HAVE_WCTYPE_CTMP_BUG): Remove.
73379
73380 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73383         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73384         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73385         Problems reported by Georg Schwarz for IRIX 5.3.
73386
73387         * gnulib-tool (autoconf_minversion): Take the maximum version number
73388         found, not the minimum.  Problem reported by James Youngman.
73389
73390 2007-01-03  Karl Berry  <karl@gnu.org>
73391
73392         * doc/error.texi: new file, explaining interaction with progname.
73393         * doc/gnulib.texi: include it.  Update copyright.
73394
73395 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73396
73397         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73398         AC_CANONICAL_HOST, to improve autobuild outputs.
73399
73400 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73401             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73402
73403         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73404         sockets, server sockets, and other file descriptors.  Count errors
73405         to compute the return value.  Reorder the code a bit to be easier
73406         to follow.  Don't set event bits that were not requested (except
73407         POLLERR and POLLHUP).
73408
73409 2007-01-01  Bruno Haible  <bruno@clisp.org>
73410
73411         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73412
73413 2007-01-03  Jim Meyering  <jim@meyering.net>
73414
73415         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73416
73417 2007-01-02  Bruno Haible  <bruno@clisp.org>
73418
73419         * modules/settime (Include): Require timespec.h.
73420         * modules/nanosleep (Include): Likewise.
73421
73422 2007-01-01  Bruno Haible  <bruno@clisp.org>
73423
73424         * gnulib-tool (func_emit_copyright_notice): Bump year.
73425         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73426
73427 2007-01-01  Bruno Haible  <bruno@clisp.org>
73428
73429         Improve support for OpenBSD.
73430         * build-aux/config.rpath (libname_spec): Export.
73431         (library_names_spec): New variable. Export.
73432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73433         library_names_spec from the config.rpath output. Locate shared library
73434         through the name pattern in library_names_spec.
73435
73436 2007-01-01  Eric Blake  <ebb9@byu.net>
73437
73438         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73439
73440 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73443         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73444         assume the C locale, and avoid an "eval" that could cause trouble.
73445         Problem with SORT reported by Bob Proulx.
73446
73447         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73448         Define.  Trivial patch from Henning Nielsen Lund, originally
73449         sent to bug-grep@gnu.org today.
73450
73451 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73454         struct stat.  Problem reported by Henning Nielsen Lund.
73455         * lib/acl.c: Include acl.h first, to check interface.  Don't
73456         bother to include sys/types.h and sys/stat.h again.
73457
73458 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         Import the following change from libc; problem reported by
73461         Sven Verdoolaege.
73462
73463         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73464
73465         [BZ #1373]
73466         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73467
73468 2006-12-28  Jim Meyering  <jim@meyering.net>
73469
73470         * build-aux/announce-gen: Do not assume that the package
73471         builds any of tar.gz, tar.bz2, and .xdelta files.
73472         Suggestion from Simon Josefsson.
73473
73474 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73475
73476         * modules/announce-gen: New file.
73477
73478 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73481         handles its gotchas now.
73482         * lib/mbswidth.c: Likewise.
73483         * lib/wcwidth.h: Likewise.
73484         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73485         and iswcntrl; the wctype module does this stuff now.
73486         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73488         * modules/mbchar (Depends-on): Add wctype.
73489         * modules/mbswidth (Depends-on): Likewise.
73490         * modules/wcwidth (Depends-on): Likewise.
73491
73492 2006-12-27  Eric Blake  <ebb9@byu.net>
73493
73494         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73495         module uses more than what <wctype.h> is required to provide.
73496
73497 2006-12-26  Eric Blake  <ebb9@byu.net>
73498
73499         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73500
73501 2006-12-26  Eric Blake  <ebb9@byu.net>
73502
73503         * modules/absolute-header: New module.
73504         * modules/fcntl (Depends-on): Depend on it.
73505         * modules/inttypes (Depends-on): Likewise.
73506         * modules/stdint (Depends-on): Likewise.
73507         * modules/sys_stat (Depends-on): Likewise.
73508         * modules/wctype (Depends-on): Likewise.
73509         * MODULES.html.sh (Support for building libraries and
73510         executables): Document it.
73511
73512 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * gnulib-tool (SED): Remove, undoing previous change.
73515         The problem was that it broke coreutils on Solaris, because
73516         "sed --posix" leaked into a makefile.
73517         (sed): New alias, if 'alias' and GNU sed.
73518
73519 2006-12-24  Jim Meyering  <jim@meyering.net>
73520
73521         Work around an fchownat bug in glibc-2.4:
73522         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73523         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73524         in spite of the -P option.
73525         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73526         New macros.
73527         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73528         * modules/openat (Files): Add lib/fchownat.c.
73529         * lib/openat.c (fchownat): Don't define here.  Move to...
73530         * lib/fchownat.c: ...this new file.
73531
73532 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         Fix bug reported by Bruno Haible in
73535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73536         where quotearg.c didn't compile on Mac OS X 10.2 because it
73537         lacks <wchar.h> and wint_t.
73538         * lib/wctype_.h (__wctype_wint_t): New type.
73539         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73540         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73541         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73542         Arg is now of type __wctype_wint_t, not wint_t.
73543         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73544         substitute HAVE_WINT_T.
73545         * modules/wctype (Files): Add m4/wint_t.m4.
73546         (wctype.h): Substitute HAVE_WINT_T.
73547
73548 2006-12-23  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73551
73552 2006-12-23  Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73555         S_ISLNK.
73556         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73557         mingw.
73558
73559 2006-12-22  Bruno Haible  <bruno@clisp.org>
73560
73561         * lib/copy-file.c: Include acl.h.
73562         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73563         Close the file descriptors only after being done with copy_acl.
73564         * modules/copy-file (Depends-on): Add acl.
73565
73566 2006-12-22  Bruno Haible  <bruno@clisp.org>
73567
73568         * gnulib-tool (SED): New variable.
73569         Use $SED instead of sed everywhere.
73570
73571 2006-12-22  Bruno Haible  <bruno@clisp.org>
73572
73573         * modules/no-c++: New file.
73574         * m4/no-c++.m4: New file.
73575         * MODULES.html.sh (Support for building libraries and executables):
73576         Add no-c++.
73577
73578 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73581         Include <limits.h>, and use its INT_MAX to rewrite the
73582         j loop so that it does not overflow 'int'.  Problem reported by
73583         Ralf Wildenhues in
73584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73585         Play it safe by shifting left by 1 rather than multiplying by 2,
73586         as GCC is less likely to optimize this away when the value
73587         is signed (when it assumes overflow leads to undefined behavior).
73588         Also, don't assume time_t uses two's complement.
73589
73590 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * MODULES.html.sh: New module wctype.
73593         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73594         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73595         <wctype.h>, since the new wctype module should fix this.
73596         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73597         the wctype module should arrange for it.
73598         * lib/regex_internal.h: Likewise.
73599         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73600         since the wctype module should handle this now.
73601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73602         * modules/fnmatch (Depends-on): Add wctype.
73603         * modules/quotearg (Depends-on): Likewise.
73604         * modules/regex (Depends-on): Likewise.
73605
73606 2006-12-19  Bruno Haible  <bruno@clisp.org>
73607
73608         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73609         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73610
73611 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73612
73613         * modules/savewd (Depends-on): Fix dependency on fcntl.
73614
73615 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73618         conforms to C99, rather than relying on the user's environment
73619         setting of STDINT_H.
73620
73621 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73622         and Eric Blake  <ebb9@byu.net>
73623
73624         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73625         This is more consistent with the other defines here.
73626         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73627         Port to z/OS.  Problem reported by Paul Gilmartin.
73628         Change local vars to use gl_ prefix rather than ac_.
73629         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73630         with other defines.
73631         * modules/double-slash-root: New module.
73632         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73633         (Depends-on): Add double-slash-root.
73634         * MODULES.html.sh (File system functions): Mention new module.
73635
73636 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73637
73638         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73639         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73640         This is for the benefit of gzip, which doesn't do i18n.
73641
73642 2006-12-12  Jim Meyering  <jim@meyering.net>
73643
73644         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73645         Reported by Andreas Schwab <schwab@suse.de>.
73646
73647 2006-12-12  Bruno Haible  <bruno@clisp.org>
73648
73649         Merge these changes.
73650         2006-09-05  Bruno Haible  <bruno@clisp.org>
73651         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73652         iconv_alloc succeeded.
73653         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73654         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73655         test for " && dest " at the end - dest is always != NULL there. Call
73656         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73657         with 2xNULL arguments, also to flush the state storage. Handle the
73658         IRIX iconv behaviour. Realloc the final result, to throw away unused
73659         memory.
73660
73661 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73664         and fchmodat unconditionally, since glibc 2.4 has them.
73665         Problem reported by Arkadiusz Miskiewicz.
73666
73667 2006-12-10  Bruno Haible  <bruno@clisp.org>
73668
73669         * gnulib-tool (func_import): Show the include files only for those
73670         modules that are copied and specified.
73671         Reported by Karl Berry.
73672
73673 2006-12-08  Jim Meyering  <jim@meyering.net>
73674
73675         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73676         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73677
73678         * build-aux/announce-gen: Add two new options, both optional:
73679         --bootstrap-tools=TOOL_LIST
73680               a comma-separated list of tools, e.g.,
73681               autoconf,automake,bison,gnulib
73682         --gnulib-snapshot-date=DATE
73683               if gnulib is in the bootstrap tool list,
73684               then report this as the snapshot date.
73685               If not specified, use the current date/time.
73686               If you specify a date here, be sure it's UTC.
73687
73688 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73689
73690         * tests/test-argp-2.sh: Fix test to match actual output.
73691         (func_compare): Fix sed script to be portable.
73692
73693 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73694
73695         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73696         workaround for this case.  It is not autoconfigured now; offhand
73697         it's hard to see how to autoconfigure it.
73698
73699 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73702         a directory that is about to be chowned.  Such a directory's
73703         initial file permissions should permit the owner only and this
73704         should not be changed until after the chown, since the group and
73705         other bits would be incorrect if they granted permission before
73706         the chown.
73707
73708         Fix porting problem for iswctype reported by Georg Schwarz in:
73709         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73711         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73712         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73713         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73714
73715 2006-12-03  Jim Meyering  <jim@meyering.net>
73716
73717         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73718         p->fts_statp may not yet be defined.
73719         (fts_read): Instead, set it in the caller, once p->fts_statp is
73720         sure to be defined, and corresponds to a top-level directory.
73721         This bug made du -x fail.  Here's the coreutils test case:
73722         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73723         Reported by Mike Frysinger.
73724
73725 2006-12-01  Jim Meyering  <jim@meyering.net>
73726
73727         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73728         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73729         Reported by Simon Josefsson.
73730
73731 2006-11-30  Jim Meyering  <jim@meyering.net>
73732
73733         * m4/warning.m4: Use the all-permissive copyright notice
73734         recommended by RMS (rather than LGPL).
73735         * m4/vararrays.m4: Likewise.
73736         * m4/flexmember.m4: Likewise.
73737
73738 2006-11-29  Bruno Haible  <bruno@clisp.org>
73739
73740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73741         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73742         using +=.
73743         Reported by Simon Josefsson <simon@josefsson.org>.
73744
73745 2006-11-28  James Youngman <jay@gnu.org>
73746
73747         * README: Advise users that they might find the bug-gnulib@gnu.org
73748         and autotools-announce@gnu.org mailing lists useful.
73749
73750 2006-11-28  Bruno Haible  <bruno@clisp.org>
73751
73752         * m4/ptrdiff_max.m4: Remove file.
73753
73754 2006-11-21  Bruno Haible  <bruno@clisp.org>
73755
73756         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73757         _AC_COMPUTE_INT.
73758         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73759         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73760         _AC_COMPUTE_INT.
73761         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73762         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73763         _AC_COMPUTE_INT.
73764         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73765
73766 2006-11-28  Jim Meyering  <jim@meyering.net>
73767
73768         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73769         warning from "gcc -Wshadow" about shadowing the builtin.
73770
73771 2006-11-27  Bruno Haible  <bruno@clisp.org>
73772
73773         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73774         _AC_COMPUTE_INT.
73775         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73776
73777 2006-11-27  Bruno Haible  <bruno@clisp.org>
73778             Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73781
73782 2006-11-26  Bruno Haible  <bruno@clisp.org>
73783
73784         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73785         noinst_LTLIBRARIES.
73786
73787 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73788             Bruno Haible  <bruno@clisp.org>
73789
73790         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73791         if compiling with "gcc -ansi".
73792
73793 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         Fix some incompatibilities with gcc -ansi -pedantic.
73796         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73797         if compiling pedantically with GCC, unless it's C99 or later.
73798         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73799         it mishandles gcc -ansi -pedantic as well.
73800         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73801         if gcc -pedantic.
73802         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73803         initializers for struct if -pedantic, unless it's C99 or later.
73804
73805 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73806
73807         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73808         Don't close an fd more than once. Identical atimes indicate
73809         success, not failure.
73810
73811 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73812
73813         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73814
73815 2006-11-23  Jim Meyering  <jim@meyering.net>
73816
73817         * build-aux/announce-gen: New file.  From coreutils.
73818
73819 2006-11-22  Jim Meyering  <jim@meyering.net>
73820
73821         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73822         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73823         (fts_read): Use a temporary to narrow the overused st_size member
73824         before using it in a switch statement.  Reported by Matthew Woehlke.
73825
73826         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73827         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73828
73829 2006-11-20  Bruno Haible  <bruno@clisp.org>
73830
73831         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73832         changequote instead of pairs of brackets.
73833         Reported by Andreas Schwab <schwab@suse.de>.
73834
73835 2006-11-21  Jim Meyering  <jim@meyering.net>
73836
73837         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73838         so as to remain compatible with older compilers.
73839         Patch from Michael Deutschmann.
73840
73841 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * MODULES.html.sh (File system functions): Add openat.
73844
73845         * lib/openat.h (rpl_fstatat): New macro, if
73846         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73847         (fstatat): Define to rpl_fstatat under the same conditions,
73848         unless COMPILING_FSTATAT.
73849         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73850         seems to have the bug.
73851         * lib/fstatat.c: New file.
73852         * modules/openat (Files): Add it.
73853
73854 2006-11-20  Bruno Haible  <bruno@clisp.org>
73855
73856         * Makefile: New file.
73857
73858 2006-11-20  Jim Meyering  <jim@meyering.net>
73859
73860         The beginnings of syntax-related checks for gnulib.
73861         * lib/Makefile: New file.
73862         * lib/t-idcache: New script.  Ensure that the two halves of
73863         idcache.c stay in sync.
73864
73865         * lib/idcache.c: Adjust comments in user- and group- portions to
73866         be more accurate, and to be consistent with one another.
73867
73868 2006-11-20  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73871         continue using the flexible array member (thus, this module performs
73872         half as many malloc calls), with the addition that...
73873         (getgroup, getuser): Consistently record a non-match via an empty
73874         "name" string, and map an empty string match to a NULL return value.
73875         * modules/idcache (Depends-on): Re-add flexmember.
73876
73877         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73878         (getuidbyname, getgroup, getgidbyname): Likewise.
73879
73880         Use cleaner syntax: NULL rather than 0.
73881         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73882
73883 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73886         It mishandled the case where the group was missing.
73887         Problem reported by Greg Schafer.
73888         * modules/idcache: Likewise.
73889
73890 2006-11-18  Jim Meyering  <jim@meyering.net>
73891
73892         * check-module (%exempt_header): Add exception for some
73893         conditionally-included headers.
73894
73895         * modules/i-ring (Depends-on): Add verify.
73896         (License): Change to LGPL.
73897
73898 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73901         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73902         and inttostr.h.  Use snprintf rather than uinttostr, so that
73903         LGPLed code doesn't depend on GPLed.
73904
73905 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * modules/inline (License): Change from GPL to LGPL.
73908
73909 2006-11-17  Jim Meyering  <jim@meyering.net>
73910
73911         * modules/d-type (License): Switch to LGPL.
73912
73913 2006-11-15  Bruno Haible  <bruno@clisp.org>
73914
73915         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73916
73917 2006-11-15  Eric Blake  <ebb9@byu.net>
73918
73919         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73920         the module dependency.
73921
73922 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73923             Bruno Haible  <bruno@clisp.org>
73924
73925         * gnulib-tool (func_create_testdir): Add license consistency check.
73926
73927 2006-11-15  Eric Blake  <ebb9@byu.net>
73928
73929         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73930         random "(cached)" in configure output.
73931
73932 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73933
73934         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73935         test for conforming inttypes.h is both announced and cached.
73936
73937         * MODULES.html.sh (seen_modules, seen_files): New variables.
73938         (func_module): Rewrite to use a few less gnulib-tool and sed
73939         invocations.  Avoid a couple of quadratic algorithms for ...
73940         (missed_modules, missed_files): ... these, with ...
73941         (func_append, func_tmpdir): ... these new functions, from
73942         gnulib-tool.  Analogously, install traps for cleanup.
73943
73944         * tests/test-gc.c (main): Remove unused variables.
73945         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73946
73947 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         * modules/inttostr (License): Change to LGPL.
73950
73951 2006-11-14  Eric Blake  <ebb9@byu.net>
73952
73953         * modules/tempname (License): Change to LGPL.
73954
73955 2006-11-14  Eric Blake  <ebb9@byu.net>
73956
73957         * doc/functions.texi (Function Portability): *printf functions on
73958         Cygwin now understand all POSIX size specifiers.
73959
73960 2006-11-14  Bruno Haible  <bruno@clisp.org>
73961
73962         * modules/c-ctype (License): Change to LGPL.
73963
73964 2006-11-12  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73967         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73968         for GNOME libraries, for which the include files are installed in
73969         subdirectories of $prefix/include.
73970
73971 2006-11-12  Bruno Haible  <bruno@clisp.org>
73972
73973         * m4/lib-link.m4: Require at least autoconf-2.54.
73974         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73975         name to underscores for the --with option.
73976
73977 2006-11-13  Bruno Haible  <bruno@clisp.org>
73978
73979         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73980         the tests directory.
73981         Reported by Ralf Wildenhues.
73982
73983 2006-11-13  Bruno Haible  <bruno@clisp.org>
73984
73985         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73986         (func_emit_initmacro_end): Undo the override here.
73987         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73988         Works around the famous automake error in coreutils.
73989
73990 2006-11-13  Eric Blake  <ebb9@byu.net>
73991
73992         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73993         element, not its node.
73994
73995 2006-11-12  Bruno Haible  <bruno@clisp.org>
73996
73997         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73998         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73999
74000 2006-11-12  Bruno Haible  <bruno@clisp.org>
74001
74002         * gnulib-tool: New option --local-symlink.
74003         (func_usage): Document it.
74004         (lsymbolic): New variable.
74005         (func_import, func_create_testdir): If --symlink was not specified,
74006         test whether --local-symlink was specified and the file comes from
74007         the local_gnulib_dir.
74008
74009 2006-11-12  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool (func_ln): New function.
74012         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74013
74014 2006-11-12  Bruno Haible  <bruno@clisp.org>
74015
74016         Finish support for source files in subdirectories.
74017         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74018         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74019         AUTOMAKE_OPTIONS.
74020         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74021
74022 2006-11-12  Bruno Haible  <bruno@clisp.org>
74023
74024         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74025         EXTRA_lib_SOURCES augmentation.
74026         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74027
74028 2006-11-12  Jim Meyering  <jim@meyering.net>
74029
74030         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74031         file descriptors.  This also averts a failure on systems with
74032         native openat support when a traversed directory lacks "x" access.
74033         * lib/fts_.h: Include "i-ring.h"
74034         (struct FTS) [fts_fd_ring]: New member.
74035         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74036         (FCHDIR): Add parentheses.
74037         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74038         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74039         When descending, rather than simply closing the previous
74040         fts_cwd_fd value, push that file descriptor onto the ring.
74041         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74042         (fts_open): Initialize the new fd_ring member.
74043         (fts_close): Clear the ring.
74044         (fts_safe_changedir): When possible, use our new fd_ring to skip
74045         the diropen and fstat and dev/ino comparison that would normally
74046         accompany a virtual `chdir ("..")'.
74047
74048         * modules/fts (Depends-on): Add i-ring.
74049         * modules/i-ring: New module.
74050         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74051         * m4/i-ring.m4: New file.
74052
74053 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74054
74055         * gnulib-tool (func_create_testdir): Fix replacement of
74056         `build-aux' in configure.ac.  Run autotools in gltests
74057         subdirectory.
74058         (func_create_testdir, func_create_megatestdir, test): There is
74059         no need for '--force' in most autotool invocations in a new
74060         tree.  Actually fail the whole test if any of the tools, or the
74061         configure or make stages fail.
74062
74063         Sync from Automake.
74064         * build-aux/gnupload: Revert last change.  Add pointer to upload
74065         instructions of the GNU Maintenance Instructions.
74066         Suggestion by Karl Berry.
74067
74068 2006-11-10  Jim Meyering  <jim@meyering.net>
74069
74070         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74071
74072 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74075         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74076         (bind_textdomain_codeset) [! ENABLE_NLS]:
74077         Evaluate all the arguments.  That way, callers get compatible behavior
74078         if the arguments have side effects.  Also, it avoids some GCC
74079         diagnostics in some cases; Joel E. Denny reported problems when Bison
74080         was configured with --enable-gcc-warnigs.
74081
74082 2006-11-10  Jim Meyering  <jim@meyering.net>
74083
74084         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74085         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74086         account.
74087
74088 2006-11-10  Jim Meyering  <jim@meyering.net>
74089
74090         * modules/inline: New file/module.
74091         * modules/xalloc (Files): Remove m4/inline.m4.
74092         (Depends-on): Add inline, instead.
74093         * modules/oset: Likewise.
74094         * modules/list: Likewise.
74095
74096 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74099         Problem reported by Matthew Woehlke.
74100
74101 2006-11-09  Bruno Haible  <bruno@clisp.org>
74102
74103         * lib/tempname.c (gen_tempname): Remove variant that invokes
74104         __gen_tempname.
74105         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74106         __gen_tempname.
74107
74108 2006-11-08  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74111         to 'yes' instead of 'cross-compiling'.
74112
74113 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74114
74115         * lib/quotearg.h (quotearg_free): New decl.
74116         * lib/quotearg.c (quotearg_free): New function.
74117         (slot0, nslots, slotvec0, slotvec):
74118         Now file-scope so that quotearg_free can get at them.
74119
74120 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74121
74122         Sync from Automake.
74123         * build-aux/gnupload: Add missing 'gnu' to example URL.
74124         Report by Karl Berry.
74125
74126 2006-11-08  Bruno Haible  <bruno@clisp.org>
74127
74128         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74129         Suggested by Paul Eggert.
74130
74131 2006-11-08  Jim Meyering  <jim@meyering.net>
74132
74133         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74134         It's already included if !_LIBC.
74135         (fts_safe_changedir): Add a comment.
74136
74137 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74140         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74141         Matthew Woehlke.
74142
74143         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74144         definitions up, to avoid colliding with change below.
74145         (static_inline) [HAVE_INLINE]: New macro.
74146         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74147         Provide extern decls when !HAVE_INLINE.  Do not define unless
74148         static_inline is defined, either by us or by xmalloc.c.  Use
74149         static_inline rather than static inline.
74150         (XCALLOC): Optimize sizeof(T) = 1 case.
74151         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74152
74153 2006-11-07  Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74156         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74157         AC_C_INLINE.
74158         * modules/xalloc (Files): Add m4/inline.m4.
74159
74160 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74161
74162         * README: Fix typo.
74163         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74164         (Miscellanous Notes): ...from this.
74165
74166 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74169         Mention that offsetof should be used instead of sizeof.
74170         From Bruno Haible.
74171
74172 2006-11-07  Bruno Haible  <bruno@clisp.org>
74173
74174         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74175
74176 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74179         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74180         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74181         (gl_tree_add_before, gl_tree_add_after):
74182         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74183         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74184         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74185         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74186         (gl_linked_add_after, gl_linked_add_at): Likewise.
74187         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74189         (gl_tree_add_before, gl_tree_add_after): Likewise.
74190         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74191         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74192         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74193
74194 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74195
74196         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74197
74198 2006-11-06  Bruno Haible  <bruno@clisp.org>
74199
74200         * m4/inline.m4: New file.
74201         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74202         * modules/list (Files): Add m4/inline.m4.
74203         * modules/oset (Files): Likewise.
74204
74205 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * lib/idcache.c: Include <stddef.h>, for offsetof.
74208         (struct userid.name): Change from char * to a flexible array member.
74209         All uses changed.
74210         * modules/idcache (Depends-on): Add flexmember.
74211
74212         * MODULES.html.sh (Core language properties): New module flexmember.
74213         * modules/flexmember, m4/flexmember.m4: New files.
74214
74215         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74216         inline functions that are identical with the old xnmalloc_inline,
74217         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74218         that we can avoid some unnecessary integer multiplications and
74219         divisions in the common case where the element size is known at
74220         compile time.
74221         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74222         needed.
74223         (xnboundedmalloc): Remove.
74224         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74225         arguments, for consistency with rest of this header.
74226         (xcharalloc): Rewrite using XNMALLOC.
74227         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74228         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74229         versions have been moved to lib/xalloc.h and renamed to be the
74230         non-*_inline versions.
74231         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74232         and xnrealloc functions, since those functions are now inline and
74233         now call us.
74234         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74235         renaming described above.
74236         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74237         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74238         captures the dependency in AC_C_INLINE.
74239
74240         New module canonicalize-lgpl, proposed by Charles Wilson in
74241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74242         with a few small changes afterwards.
74243         * MODULES.html.sh (File system functions): New module
74244         canonicalize-lgpl.
74245         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74246         and canonicalize_file_name.
74247         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74248         * modules/canonicalize-lgpl: New files.
74249
74250 2006-11-05  Bruno Haible  <bruno@clisp.org>
74251
74252         * gnulib-tool (func_import, func_create_testdir): Create directories
74253         also for files in subdirectories of lib/.
74254
74255 2006-11-05  Bruno Haible  <bruno@clisp.org>
74256
74257         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74258         ANSI C compliant.
74259
74260 2006-11-03  Bruno Haible  <bruno@clisp.org>
74261
74262         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74263         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74264         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74265         (xnboundedmalloc): New inline function.
74266         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74267         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74268         xmalloc.
74269         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74270         xmalloc.
74271         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74272         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74273         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74274         xmalloc.
74275         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74276         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74277         xmalloc.
74278         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74279         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74280         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74281         xmalloc.
74282         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74283         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74284         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74285         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74286         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74287         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74288         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74289
74290 2006-11-03  Bruno Haible  <bruno@clisp.org>
74291
74292         * lib/c-ctype.h [C++]: Define functions without name mangling.
74293         * lib/fwriteerror.h [C++]: Likewise.
74294         * lib/gcd.h [C++]: Likewise.
74295         * lib/linebreak.h [C++]: Likewise.
74296
74297 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74300         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74301         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74302         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74303         Check for functions and headers just once.
74304         Check for declaration of canonicalize_file_name.
74305         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74306
74307 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74308
74309         * gnulib-tool (func_import): Fix typo in actioncmd.
74310
74311 2006-11-02  Bruno Haible  <bruno@clisp.org>
74312
74313         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74314         newline sequence in the Makefile.am snippet as a space, like "make"
74315         does.
74316         Reported by Roger Persson <perrog@gmail.com>.
74317
74318 2006-11-01  Bruno Haible  <bruno@clisp.org>
74319
74320         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74321         already declared in <string.h>.
74322         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74323
74324 2006-11-01  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74327         * lib/strcase.h: Include <string.h>.
74328         (strcasecmp): Define to rpl_strcasecmp here.
74329
74330 2006-11-01  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74333
74334 2006-11-01  Eric Blake  <ebb9@byu.net>
74335
74336         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74337
74338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74339
74340 2006-10-29  Bruno Haible  <bruno@clisp.org>
74341
74342         Make it compile in C++ mode.
74343         * lib/full-write.c (full_rw): Add a cast.
74344
74345 2006-11-01  Bruno Haible  <bruno@clisp.org>
74346
74347         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74348         be POSIX compliant.
74349         Reported by Roger Persson <perrog@gmail.com>.
74350
74351 2006-11-01  Eric Blake  <ebb9@byu.net>
74352
74353         * lib/getopt_.h: Fix comments.
74354
74355 2006-10-31  Eric Blake  <ebb9@byu.net>
74356
74357         * modules/tmpdir (Depends-on): Add sys_stat.
74358         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74359         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74360         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74361         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74362         tempname.
74363
74364 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         Avoid some C++ diagnostics reported by Bruno Haible.
74367         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74368         xmalloc.
74369         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74370         (struct slotvec): Move to top level.
74371         (quotearg_n_options): Rewrite to avoid xmalloc.
74372         * lib/xalloc.h (xcharalloc): New function.
74373         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74374         [defined __cplusplus]: Add function template that provides result
74375         type propagation.  This part of the change is from Bruno Haible.
74376
74377 2006-10-29  Bruno Haible  <bruno@clisp.org>
74378
74379         Make it compile in C++ mode.
74380         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74381         * lib/strnlen1.c (strnlen1): Cast memchr result.
74382         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74383         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74384         (create_temp_dir): Rename local variable 'template'.
74385         (compile_csharp_using_sscli): Add cast.
74386         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74387         * lib/findprog.c (find_in_path): Likewise.
74388         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74389         * lib/wait-process.c (register_slave_subprocess): Likewise.
74390
74391 2006-10-22  Bruno Haible  <bruno@clisp.org>
74392
74393         * modules/tsearch: New file.
74394         * lib/tsearch.h: New file.
74395         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74396         * m4/tsearch.m4: New file.
74397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74398
74399 2006-10-29  Eric Blake  <ebb9@byu.net>
74400
74401         * lib/arcfour.c: Assume config.h.
74402         * lib/arctwo.c: Likewise.
74403         * lib/base64.c: Likewise.
74404         * lib/check-version.c: Likewise.
74405         * lib/crc.c: Likewise.
74406         * lib/des.c: Likewise.
74407         * lib/gc-gnulib.c: Likewise.
74408         * lib/gc-libgcrypt.c: Likewise.
74409         * lib/gc-pbkdf2-sha1.c: Likewise.
74410         * lib/getaddrinfo.c: Likewise.
74411         * lib/getdelim.c: Likewise.
74412         * lib/getline.c: Likewise.
74413         * lib/hmac-md5.c: Likewise.
74414         * lib/hmac-sha1.c: Likewise.
74415         * lib/iconvme.c: Likewise.
74416         * lib/md2.c: Likewise.
74417         * lib/md4.c: Likewise.
74418         * lib/memxor.c: Likewise.
74419         * lib/read-file.c: Likewise.
74420         * lib/readline.c: Likewise.
74421         * lib/rijndael-alg-fst.c: Likewise.
74422         * lib/rijndael-api-fst.c: Likewise.
74423         * lib/xgetdomainname.c: Likewise.
74424
74425 2006-10-28  Eric Blake  <ebb9@byu.net>
74426
74427         * lib/xstrndup.c: Assume config.h.
74428
74429 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74432         stat-macros.h is now for our own macros, whereas stat_h is for
74433         macros in the <sys/stat.h> name space.
74434         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74435         (STAT_MACROS_H): Remove.
74436         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74437         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74438         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74439         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74440         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74441         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74442         Move these macros to ...
74443         * lib/stat_.h: here.  Don't include stat-macros.h.
74444         * lib/canonicalize.c: Don't include stat-macros.h.
74445         * lib/chown.c: Likewise.
74446         * lib/euidaccess.c: Likewise.
74447         * lib/file-type.c: Likewise.
74448         * lib/filemode.c: Likewise.
74449         * lib/glob.c: Likewise.
74450         * lib/isapipe.c: Likewise.
74451         * lib/lchown.c: Likewise.
74452         * lib/lstat.c: Likewise.
74453         * lib/mkdir-p.c: Likewise.
74454         * lib/rmdir.c: Likewise.
74455         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74456         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74457         unless mkdir isn't declared, to speed up 'configure'.
74458         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74459         would define all the S_* symbols.
74460         * modules/canonicalize (Depends-on):
74461         Depend on sys_stat, not stat-macros.
74462         * modules/chown: Likewise.
74463         * modules/euidaccess: Likewise.
74464         * modules/filemode: Likewise.
74465         * modules/file-type: Likewise.
74466         * modules/glob: Likewise.
74467         * modules/isapipe: Likewise.
74468         * modules/lchown: Likewise.
74469         * modules/lstat: Likewise.
74470         * modules/mkancesdirs: Likewise.
74471         * modules/rmdir: Likewise.
74472         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74473         * modules/modechange: Likewise.
74474         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74475         (configure.ac): Remove gl_STAT_MACROS.
74476         * modules/sys_stat (Depends-on): Remove stat-macros.
74477
74478 2006-10-27  Bruno Haible  <bruno@clisp.org>
74479
74480         * m4/signed.m4: Remove file.
74481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74482         invocation.
74483         * modules/vasnprintf (Files): Remove m4/signed.m4.
74484
74485 2006-10-27  Bruno Haible  <bruno@clisp.org>
74486
74487         Update to GNU gettext 0.16.
74488         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74489         m4/inttypes-h.m4, m4/signed.m4.
74490         * m4/gettext.m4: Update to GNU gettext 0.16.
74491         * m4/intl.m4: New file, from GNU gettext.
74492         * m4/intldir.m4: New file, from GNU gettext.
74493         * config/srclist.txt: Update
74494
74495 2006-10-27  Eric Blake  <ebb9@byu.net>
74496
74497         * MODULES.html.sh: Document tempname.
74498         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74499         dependencies.
74500         (Files): Move lib/tempname.c...
74501         * modules/tempname: ...to this new module.
74502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74503         (gl_PREREQ_TEMPNAME): Move...
74504         * m4/tempname.m4: ...to this new file.
74505         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74506         * modules/sys_stat (Depends-on): Add stat-macros.
74507         * lib/stat_.h (includes): Pick up stat macros.
74508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74509         if stat macros are broken.
74510         * lib/tempname.c (includes): No need to include "stat-macros.h".
74511         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74512         (direxists, __path_search) [!_LIBC]: Don't compile these in
74513         gnulib; the tmpdir module covers that.
74514         * lib/tempname.h: New file.
74515
74516 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * COPYING: Explain how gnulib-tool converts licence headers.
74519         Almost all wording by Eric Blake.
74520
74521 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * lib/mbchar.h (is_basic_table): Make read-only.
74524         * lib/mbchar.c (is_basic_table): Likewise.
74525         Reported by John Darrington.
74526
74527 2006-10-25  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/progname.h (set_program_name): Undefine before defining.
74530
74531 2006-10-25  Bruno Haible  <bruno@clisp.org>
74532
74533         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74534         false for non-gcc C++ compilers.
74535         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74536
74537 2006-10-24  Bruno Haible  <bruno@clisp.org>
74538
74539         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74540         iconv implementations like Irix iconv.
74541
74542 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74543
74544         * modules/vararrays: New file.
74545         * m4/vararrays.m4: New file, taken from diffutils.
74546         * MODULES.html.sh: New module vararrays.
74547
74548 2006-10-24  Karl Berry  <karl@gnu.org>
74549
74550         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74551         Don't call GNU Unix.
74552
74553 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74554
74555         * users.txt: Add Libtool.
74556
74557         Sync from Libtool:
74558
74559         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74562         to gnulib's policy of including config.h unconditionally.
74563
74564 2006-10-24  Bruno Haible  <bruno@clisp.org>
74565
74566         * modules/wcwidth (Files): Add m4/wint_t.m4.
74567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74568         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74569
74570 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74571
74572         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74573         to pacify GCC with some -W flags enabled.  Problem reported by
74574         Bruno Haible.
74575
74576 2006-10-24  Jim Meyering  <jim@meyering.net>
74577
74578         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74579         Reported by Karl Berry.
74580
74581 2006-10-23  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74584
74585 2006-10-24  Bruno Haible  <bruno@clisp.org>
74586
74587         * lib/gl_list.h: Use C comment style, not C++ comment style.
74588
74589 2006-10-23  Eric Blake  <ebb9@byu.net>
74590
74591         * lib/getaddrinfo.c (includes): Add missing include.
74592
74593 2006-10-23  Bruno Haible  <bruno@clisp.org>
74594             Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         Ability to rename obstack_free.
74597         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74598         obstack_free.
74599         (obstack_free): Invoke the __obstack_free macro.
74600         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74601
74602 2006-10-23  Bruno Haible  <bruno@clisp.org>
74603             Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74606         __argc, __argv from the declaration. (They are defined as macros on
74607         mingw.)
74608
74609 2006-10-22  Bruno Haible  <bruno@clisp.org>
74610
74611         * doc/gnulib-intro.texi: New file.
74612         * doc/gnulib.texi: Include it.
74613
74614 2006-10-21  Bruno Haible  <bruno@clisp.org>
74615
74616         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74617         "Introduction", "Miscellanous Notes", "Particular Modules".
74618
74619 2006-10-21  Bruno Haible  <bruno@clisp.org>
74620
74621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74622         Change mostlyclean-local rule to avoid sh syntax error from bash
74623         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74624
74625 2006-10-23  Jim Meyering  <jim@meyering.net>
74626
74627         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74628         in place of snprintf.
74629
74630         * modules/inttostr (Files): Add lib/uinttostr.c.
74631         * lib/uinttostr.c (inttostr): New file/function.
74632         * lib/inttostr.h (uinttostr): Declare.
74633         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74634         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74635         Add uinttostr.
74636         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74637
74638 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74639
74640         * lib/canonicalize.c (ELOOP): Define if not already defined.
74641         Problem reported by Bruno Haible in
74642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74643
74644 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74647         Problem reported by Perry Smith and Ville Laurikari.
74648
74649         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74650         uses.
74651
74652 2006-10-19  Bruno Haible  <bruno@clisp.org>
74653
74654         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74655         for mingw.
74656
74657 2006-10-19  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74660         Needed for mingw.
74661
74662 2006-10-19  Bruno Haible  <bruno@clisp.org>
74663
74664         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74665
74666 2006-10-19  Bruno Haible  <bruno@clisp.org>
74667
74668         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74669         it.
74670
74671 2006-10-19  Bruno Haible  <bruno@clisp.org>
74672
74673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74674         invocation.
74675
74676 2006-10-19  Bruno Haible  <bruno@clisp.org>
74677
74678         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74679         mountlist by default.
74680
74681 2006-10-16  Bruno Haible  <bruno@clisp.org>
74682
74683         * lib/c-strstr.c: Include c-strstr.h.
74684
74685 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74686
74687         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74688         in a slash.
74689
74690 2006-10-18  Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/lock.h [C++]: Wrap definitions in extern "C".
74693
74694 2006-10-18  Bruno Haible  <bruno@clisp.org>
74695
74696         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74697         gl_LIBOBJS list.
74698
74699 2006-10-18  Bruno Haible  <bruno@clisp.org>
74700
74701         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74702
74703 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         * lib/xstrtol.h: Include gettext.h.
74706         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74707         Problem reported by Eric Blake.
74708         * modules/xstrtol (Depends-on): Add gettext-h.
74709
74710 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74711
74712         * lib/strftime.c (advance): New macro.
74713         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74714         incomplete type, so you can't add 0 to it.  Problem and patch
74715         reported by Eelco Dolstra for dietlibc.
74716
74717 2006-10-18  Jim Meyering  <jim@meyering.net>
74718
74719         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74720         type for a local, and rename it: s/up/user_proc/.
74721
74722 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74723
74724         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74725         READ_UTMP_USER_PROCESS.
74726         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74727
74728 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74731         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74732
74733 2006-10-17  Eric Blake  <ebb9@byu.net>
74734
74735         * lib/sigprocmask.c (sigprocmask): Fix typo.
74736
74737         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74738
74739         * modules/clean-temp (Makefile.am): Don't add to make output...
74740         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74741         config.h.
74742
74743 2006-10-17  Bruno Haible  <bruno@clisp.org>
74744
74745         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74746         differently if DEFAULT_TEXT_DOMAIN is set.
74747
74748 2006-10-16  Bruno Haible  <bruno@clisp.org>
74749
74750         * lib/clean-temp.c: Include fwriteerror.h.
74751
74752 2006-10-16  Bruno Haible  <bruno@clisp.org>
74753
74754         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74755
74756 2006-10-16  Bruno Haible  <bruno@clisp.org>
74757
74758         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74759         * lib/sigprocmask.h: Include <sys/types.h>.
74760         (sigset_t): Use the system's definition if present.
74761
74762 2006-10-17  Eric Blake  <ebb9@byu.net>
74763
74764         * lib/xvasprintf.c (includes): Assume config.h.
74765         * lib/xasprintf.c (includes): Likewise.
74766
74767 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74770         at least as wide as intmax_t.
74771
74772 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74773
74774         (Imported from Automake.)
74775         * build-aux/gnupload: Update to version 1.1 of directive file.
74776
74777 2006-10-16  Eric Blake  <ebb9@byu.net>
74778
74779         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74780         match Automake 1.10a.
74781
74782 2006-10-14  Bruno Haible  <bruno@clisp.org>
74783
74784         * modules/sigprocmask: New file.
74785         * lib/sigprocmask.h: New file.
74786         * lib/sigprocmask.c: New file.
74787         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74788         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74789         request sigprocmask.o.
74790         (gl_PREREQ_SIGPROCMASK): New macro.
74791         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74792         (Depends-on): Add sigprocmask.
74793         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74794         gt_SIGNALBLOCKING. Test for 'raise' only once.
74795         * lib/fatal-signal.c: Include sigprocmask.h.
74796         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74797         unblock_fatal_signals): Define always.
74798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74799         sigprocmask.
74800
74801 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         Sync from Automake.
74804         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74805         which incorrectly sets the mode of an existing destination
74806         directory.  In some cases the unpatched install-sh could do the
74807         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74808         system.  We hope this is rare in practice, but it's clearly worth
74809         fixing.  Problem reported by Alex Unleashed in
74810         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74811         Also, don't bother to check for -m bugs unless we're using -m;
74812         suggested by Stepan Kasal.
74813
74814 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74815
74816         Sync from Automake.
74817         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74818         `-c' flag, so they appear at the same position as in %FASTDEP%
74819         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74820         which ignores unknown options only after the first non-option.
74821         Bug report against M4 by Nelson H. F. Beebe.
74822
74823 2006-10-13  Jim Meyering  <jim@meyering.net>
74824
74825         Fix a bug in yesterday's change.
74826         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74827         p->fts_statp->st_dev would be used uninitialized.
74828         Ensures that we always call fts_stat on the very first entry.
74829         Miklos Szeredi reported that find -xdev stopped working.
74830
74831 2006-10-12  Bruno Haible  <bruno@clisp.org>
74832
74833         * gnulib-tool (func_get_automake_snippet): Append an automatically
74834         computed EXTRA_DIST augmentation.
74835         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74836         * modules/alloca-opt (Makefile.am): Likewise.
74837         * modules/allocsa (Makefile.am): Likewise.
74838         * modules/arcfour (Makefile.am): Likewise.
74839         * modules/arctwo (Makefile.am): Likewise.
74840         * modules/argmatch (Makefile.am): Likewise.
74841         * modules/argz (Makefile.am): Likewise.
74842         * modules/atexit (Makefile.am): Likewise.
74843         * modules/backupfile (Makefile.am): Likewise.
74844         * modules/byteswap (Makefile.am): Likewise.
74845         * modules/c-strtod (Makefile.am): Likewise.
74846         * modules/c-strtold (Makefile.am): Likewise.
74847         * modules/calloc (Makefile.am): Likewise.
74848         * modules/canon-host (Makefile.am): Likewise.
74849         * modules/canonicalize (Makefile.am): Likewise.
74850         * modules/chdir-long (Makefile.am): Likewise.
74851         * modules/chdir-safer (Makefile.am): Likewise.
74852         * modules/check-version (Makefile.am): Likewise.
74853         * modules/chown (Makefile.am): Likewise.
74854         * modules/cloexec (Makefile.am): Likewise.
74855         * modules/close-stream (Makefile.am): Likewise.
74856         * modules/closeout (Makefile.am): Likewise.
74857         * modules/crc (Makefile.am): Likewise.
74858         * modules/csharpexec (Makefile.am): Likewise.
74859         * modules/cycle-check (Makefile.am): Likewise.
74860         * modules/des (Makefile.am): Likewise.
74861         * modules/dev-ino (Makefile.am): Likewise.
74862         * modules/dirfd (Makefile.am): Likewise.
74863         * modules/dirname (Makefile.am): Likewise.
74864         * modules/dup2 (Makefile.am): Likewise.
74865         * modules/eealloc (Makefile.am): Likewise.
74866         * modules/error (Makefile.am): Likewise.
74867         * modules/euidaccess (Makefile.am): Likewise.
74868         * modules/exclude (Makefile.am): Likewise.
74869         * modules/exitfail (Makefile.am): Likewise.
74870         * modules/fcntl-safer (Makefile.am): Likewise.
74871         * modules/fcntl (Makefile.am): Likewise.
74872         * modules/file-type (Makefile.am): Likewise.
74873         * modules/fileblocks (Makefile.am): Likewise.
74874         * modules/filemode (Makefile.am): Likewise.
74875         * modules/filenamecat (Makefile.am): Likewise.
74876         * modules/fnmatch (Makefile.am): Likewise.
74877         * modules/fopen-safer (Makefile.am): Likewise.
74878         * modules/fpending (Makefile.am): Likewise.
74879         * modules/fprintftime (Makefile.am): Likewise.
74880         * modules/free (Makefile.am): Likewise.
74881         * modules/fsusage (Makefile.am): Likewise.
74882         * modules/ftruncate (Makefile.am): Likewise.
74883         * modules/fts (Makefile.am): Likewise.
74884         * modules/gc-arcfour (Makefile.am): Likewise.
74885         * modules/gc-des (Makefile.am): Likewise.
74886         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74887         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74888         * modules/gc-md4 (Makefile.am): Likewise.
74889         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74890         * modules/gc-sha1 (Makefile.am): Likewise.
74891         * modules/gc (Makefile.am): Likewise.
74892         * modules/getaddrinfo (Makefile.am): Likewise.
74893         * modules/getcwd (Makefile.am): Likewise.
74894         * modules/getdelim (Makefile.am): Likewise.
74895         * modules/getdomainname (Makefile.am): Likewise.
74896         * modules/getgroups (Makefile.am): Likewise.
74897         * modules/gethostname (Makefile.am): Likewise.
74898         * modules/gethrxtime (Makefile.am): Likewise.
74899         * modules/getline (Makefile.am): Likewise.
74900         * modules/getloadavg (Makefile.am): Likewise.
74901         * modules/getlogin_r (Makefile.am): Likewise.
74902         * modules/getndelim2 (Makefile.am): Likewise.
74903         * modules/getopt (Makefile.am): Likewise.
74904         * modules/getpagesize (Makefile.am): Likewise.
74905         * modules/getpass-gnu (Makefile.am): Likewise.
74906         * modules/getpass (Makefile.am): Likewise.
74907         * modules/getsubopt (Makefile.am): Likewise.
74908         * modules/gettime (Makefile.am): Likewise.
74909         * modules/gettimeofday (Makefile.am): Likewise.
74910         * modules/getugroups (Makefile.am): Likewise.
74911         * modules/getusershell (Makefile.am): Likewise.
74912         * modules/glob (Makefile.am): Likewise.
74913         * modules/group-member (Makefile.am): Likewise.
74914         * modules/hard-locale (Makefile.am): Likewise.
74915         * modules/hash (Makefile.am): Likewise.
74916         * modules/hmac-md5 (Makefile.am): Likewise.
74917         * modules/hmac-sha1 (Makefile.am): Likewise.
74918         * modules/human (Makefile.am): Likewise.
74919         * modules/idcache (Makefile.am): Likewise.
74920         * modules/imaxabs (Makefile.am): Likewise.
74921         * modules/imaxdiv (Makefile.am): Likewise.
74922         * modules/inet_ntop (Makefile.am): Likewise.
74923         * modules/inet_pton (Makefile.am): Likewise.
74924         * modules/intprops (Makefile.am): Likewise.
74925         * modules/inttostr (Makefile.am): Likewise.
74926         * modules/inttypes (Makefile.am): Likewise.
74927         * modules/isapipe (Makefile.am): Likewise.
74928         * modules/javaversion (Makefile.am): Likewise.
74929         * modules/lchmod (Makefile.am): Likewise.
74930         * modules/lchown (Makefile.am): Likewise.
74931         * modules/localcharset (Makefile.am): Likewise.
74932         * modules/long-options (Makefile.am): Likewise.
74933         * modules/lstat (Makefile.am): Likewise.
74934         * modules/malloc (Makefile.am): Likewise.
74935         * modules/mathl (Makefile.am): Likewise.
74936         * modules/mbchar (Makefile.am): Likewise.
74937         * modules/md2 (Makefile.am): Likewise.
74938         * modules/md4 (Makefile.am): Likewise.
74939         * modules/md5 (Makefile.am): Likewise.
74940         * modules/memcasecmp (Makefile.am): Likewise.
74941         * modules/memchr (Makefile.am): Likewise.
74942         * modules/memcmp (Makefile.am): Likewise.
74943         * modules/memcoll (Makefile.am): Likewise.
74944         * modules/memcpy (Makefile.am): Likewise.
74945         * modules/memmem (Makefile.am): Likewise.
74946         * modules/memmove (Makefile.am): Likewise.
74947         * modules/mempcpy (Makefile.am): Likewise.
74948         * modules/memrchr (Makefile.am): Likewise.
74949         * modules/memset (Makefile.am): Likewise.
74950         * modules/memxor (Makefile.am): Likewise.
74951         * modules/mkancesdirs (Makefile.am): Likewise.
74952         * modules/mkdir-p (Makefile.am): Likewise.
74953         * modules/mkdir (Makefile.am): Likewise.
74954         * modules/mkdtemp (Makefile.am): Likewise.
74955         * modules/mkstemp (Makefile.am): Likewise.
74956         * modules/mktime (Makefile.am): Likewise.
74957         * modules/modechange (Makefile.am): Likewise.
74958         * modules/mountlist (Makefile.am): Likewise.
74959         * modules/nanosleep (Makefile.am): Likewise.
74960         * modules/obstack (Makefile.am): Likewise.
74961         * modules/openat (Makefile.am): Likewise.
74962         * modules/pagealign_alloc (Makefile.am): Likewise.
74963         * modules/pathmax (Makefile.am): Likewise.
74964         * modules/physmem (Makefile.am): Likewise.
74965         * modules/poll (Makefile.am): Likewise.
74966         * modules/posixtm (Makefile.am): Likewise.
74967         * modules/posixver (Makefile.am): Likewise.
74968         * modules/putenv (Makefile.am): Likewise.
74969         * modules/quote (Makefile.am): Likewise.
74970         * modules/quotearg (Makefile.am): Likewise.
74971         * modules/raise (Makefile.am): Likewise.
74972         * modules/read-file (Makefile.am): Likewise.
74973         * modules/readline (Makefile.am): Likewise.
74974         * modules/readlink (Makefile.am): Likewise.
74975         * modules/readtokens (Makefile.am): Likewise.
74976         * modules/readutmp (Makefile.am): Likewise.
74977         * modules/realloc (Makefile.am): Likewise.
74978         * modules/regex (Makefile.am): Likewise.
74979         * modules/rename-dest-slash (Makefile.am): Likewise.
74980         * modules/rename (Makefile.am): Likewise.
74981         * modules/rijndael (Makefile.am): Likewise.
74982         * modules/rmdir (Makefile.am): Likewise.
74983         * modules/rpmatch (Makefile.am): Likewise.
74984         * modules/safe-read (Makefile.am): Likewise.
74985         * modules/safe-write (Makefile.am): Likewise.
74986         * modules/same-inode (Makefile.am): Likewise.
74987         * modules/same (Makefile.am): Likewise.
74988         * modules/save-cwd (Makefile.am): Likewise.
74989         * modules/savedir (Makefile.am): Likewise.
74990         * modules/setenv (Makefile.am): Likewise.
74991         * modules/settime (Makefile.am): Likewise.
74992         * modules/sha1 (Makefile.am): Likewise.
74993         * modules/sig2str (Makefile.am): Likewise.
74994         * modules/snprintf (Makefile.am): Likewise.
74995         * modules/stat-macros (Makefile.am): Likewise.
74996         * modules/stat-time (Makefile.am): Likewise.
74997         * modules/stdbool (Makefile.am): Likewise.
74998         * modules/stdint (Makefile.am): Likewise.
74999         * modules/stdlib-safer (Makefile.am): Likewise.
75000         * modules/stpcpy (Makefile.am): Likewise.
75001         * modules/stpncpy (Makefile.am): Likewise.
75002         * modules/strcase (Makefile.am): Likewise.
75003         * modules/strcasestr (Makefile.am): Likewise.
75004         * modules/strchrnul (Makefile.am): Likewise.
75005         * modules/strcspn (Makefile.am): Likewise.
75006         * modules/strdup (Makefile.am): Likewise.
75007         * modules/strerror (Makefile.am): Likewise.
75008         * modules/strftime (Makefile.am): Likewise.
75009         * modules/strndup (Makefile.am): Likewise.
75010         * modules/strnlen (Makefile.am): Likewise.
75011         * modules/strpbrk (Makefile.am): Likewise.
75012         * modules/strsep (Makefile.am): Likewise.
75013         * modules/strstr (Makefile.am): Likewise.
75014         * modules/strtod (Makefile.am): Likewise.
75015         * modules/strtoimax (Makefile.am): Likewise.
75016         * modules/strtok_r (Makefile.am): Likewise.
75017         * modules/strtol (Makefile.am): Likewise.
75018         * modules/strtoll (Makefile.am): Likewise.
75019         * modules/strtoul (Makefile.am): Likewise.
75020         * modules/strtoull (Makefile.am): Likewise.
75021         * modules/strtoumax (Makefile.am): Likewise.
75022         * modules/strverscmp (Makefile.am): Likewise.
75023         * modules/sys_socket (Makefile.am): Likewise.
75024         * modules/sys_stat (Makefile.am): Likewise.
75025         * modules/sysexits (Makefile.am): Likewise.
75026         * modules/time_r (Makefile.am): Likewise.
75027         * modules/timegm (Makefile.am): Likewise.
75028         * modules/timespec (Makefile.am): Likewise.
75029         * modules/tmpfile-safer (Makefile.am): Likewise.
75030         * modules/trim (Makefile.am): Likewise.
75031         * modules/unistd-safer (Makefile.am): Likewise.
75032         * modules/unlinkdir (Makefile.am): Likewise.
75033         * modules/unlocked-io (Makefile.am): Likewise.
75034         * modules/userspec (Makefile.am): Likewise.
75035         * modules/utime (Makefile.am): Likewise.
75036         * modules/utimecmp (Makefile.am): Likewise.
75037         * modules/utimens (Makefile.am): Likewise.
75038         * modules/vasnprintf (Makefile.am): Likewise.
75039         * modules/vasprintf (Makefile.am): Likewise.
75040         * modules/vsnprintf (Makefile.am): Likewise.
75041         * modules/xalloc (Makefile.am): Likewise.
75042         * modules/xgetcwd (Makefile.am): Likewise.
75043         * modules/xnanosleep (Makefile.am): Likewise.
75044         * modules/xreadlink (Makefile.am): Likewise.
75045         * modules/xstrtod (Makefile.am): Likewise.
75046         * modules/xstrtol (Makefile.am): Likewise.
75047         * modules/xstrtold (Makefile.am): Likewise.
75048         * modules/yesno (Makefile.am): Likewise.
75049         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75050
75051 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * modules/error (Makefile.am): Distribute files through
75054         EXTRA_DIST, not lib_SOURCES.
75055
75056 2006-10-12  Eric Blake  <ebb9@byu.net>
75057
75058         * modules/error (Makefile.am): Distribute files in /lib.
75059         * modules/obstack (Makefile.am): Likewise.
75060
75061 2006-10-12  Bruno Haible  <bruno@clisp.org>
75062
75063         * modules/acl (Makefile.am): Distribute all files in lib/ through
75064         EXTRA_DIST.
75065         * modules/arcfour (Makefile.am): Likewise.
75066         * modules/arctwo (Makefile.am): Likewise.
75067         * modules/argmatch (Makefile.am): Likewise.
75068         * modules/argz (Makefile.am): Likewise.
75069         * modules/atexit (Makefile.am): Likewise.
75070         * modules/backupfile (Makefile.am): Likewise.
75071         * modules/c-strtod (Makefile.am): Likewise.
75072         * modules/c-strtold (Makefile.am): Likewise.
75073         * modules/calloc (Makefile.am): Likewise.
75074         * modules/canon-host (Makefile.am): Likewise.
75075         * modules/canonicalize (Makefile.am): Likewise.
75076         * modules/chdir-long (Makefile.am): Likewise.
75077         * modules/chdir-safer (Makefile.am): Likewise.
75078         * modules/check-version (Makefile.am): Likewise.
75079         * modules/chown (Makefile.am): Likewise.
75080         * modules/cloexec (Makefile.am): Likewise.
75081         * modules/close-stream (Makefile.am): Likewise.
75082         * modules/closeout (Makefile.am): Likewise.
75083         * modules/crc (Makefile.am): Likewise.
75084         * modules/cycle-check (Makefile.am): Likewise.
75085         * modules/des (Makefile.am): Likewise.
75086         * modules/dirfd (Makefile.am): Likewise.
75087         * modules/dirname (Makefile.am): Likewise.
75088         * modules/dup2 (Makefile.am): Likewise.
75089         * modules/euidaccess (Makefile.am): Likewise.
75090         * modules/exclude (Makefile.am): Likewise.
75091         * modules/exitfail (Makefile.am): Likewise.
75092         * modules/fcntl-safer (Makefile.am): Likewise.
75093         * modules/file-type (Makefile.am): Likewise.
75094         * modules/fileblocks (Makefile.am): Likewise.
75095         * modules/filemode (Makefile.am): Likewise.
75096         * modules/filenamecat (Makefile.am): Likewise.
75097         * modules/fnmatch (Makefile.am): Likewise.
75098         * modules/fopen-safer (Makefile.am): Likewise.
75099         * modules/fpending (Makefile.am): Likewise.
75100         * modules/fprintftime (Makefile.am): Likewise.
75101         * modules/free (Makefile.am): Likewise.
75102         * modules/fsusage (Makefile.am): Likewise.
75103         * modules/ftruncate (Makefile.am): Likewise.
75104         * modules/fts (Makefile.am): Likewise.
75105         * modules/gc (Makefile.am): Likewise.
75106         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75107         * modules/getaddrinfo (Makefile.am): Likewise.
75108         * modules/getcwd (Makefile.am): Likewise.
75109         * modules/getdelim (Makefile.am): Likewise.
75110         * modules/getdomainname (Makefile.am): Likewise.
75111         * modules/getgroups (Makefile.am): Likewise.
75112         * modules/gethostname (Makefile.am): Likewise.
75113         * modules/gethrxtime (Makefile.am): Likewise.
75114         * modules/getline (Makefile.am): Likewise.
75115         * modules/getloadavg (Makefile.am): Likewise.
75116         * modules/getlogin_r (Makefile.am): Likewise.
75117         * modules/getopt (Makefile.am): Likewise.
75118         * modules/getpass (Makefile.am): Likewise.
75119         * modules/getpass-gnu (Makefile.am): Likewise.
75120         * modules/getsubopt (Makefile.am): Likewise.
75121         * modules/gettime (Makefile.am): Likewise.
75122         * modules/gettimeofday (Makefile.am): Likewise.
75123         * modules/getugroups (Makefile.am): Likewise.
75124         * modules/getusershell (Makefile.am): Likewise.
75125         * modules/glob (Makefile.am): Likewise.
75126         * modules/group-member (Makefile.am): Likewise.
75127         * modules/hard-locale (Makefile.am): Likewise.
75128         * modules/hash (Makefile.am): Likewise.
75129         * modules/hmac-md5 (Makefile.am): Likewise.
75130         * modules/hmac-sha1 (Makefile.am): Likewise.
75131         * modules/human (Makefile.am): Likewise.
75132         * modules/idcache (Makefile.am): Likewise.
75133         * modules/imaxabs (Makefile.am): Likewise.
75134         * modules/imaxdiv (Makefile.am): Likewise.
75135         * modules/inet_ntop (Makefile.am): Likewise.
75136         * modules/inet_pton (Makefile.am): Likewise.
75137         * modules/inttostr (Makefile.am): Likewise.
75138         * modules/isapipe (Makefile.am): Likewise.
75139         * modules/lchown (Makefile.am): Likewise.
75140         * modules/long-options (Makefile.am): Likewise.
75141         * modules/lstat (Makefile.am): Likewise.
75142         * modules/malloc (Makefile.am): Likewise.
75143         * modules/mathl (Makefile.am): Likewise.
75144         * modules/mbchar (Makefile.am): Likewise.
75145         * modules/md2 (Makefile.am): Likewise.
75146         * modules/md4 (Makefile.am): Likewise.
75147         * modules/md5 (Makefile.am): Likewise.
75148         * modules/memcasecmp (Makefile.am): Likewise.
75149         * modules/memchr (Makefile.am): Likewise.
75150         * modules/memcmp (Makefile.am): Likewise.
75151         * modules/memcoll (Makefile.am): Likewise.
75152         * modules/memcpy (Makefile.am): Likewise.
75153         * modules/memmem (Makefile.am): Likewise.
75154         * modules/memmove (Makefile.am): Likewise.
75155         * modules/mempcpy (Makefile.am): Likewise.
75156         * modules/memrchr (Makefile.am): Likewise.
75157         * modules/memset (Makefile.am): Likewise.
75158         * modules/memxor (Makefile.am): Likewise.
75159         * modules/mkancesdirs (Makefile.am): Likewise.
75160         * modules/mkdir (Makefile.am): Likewise.
75161         * modules/mkdir-p (Makefile.am): Likewise.
75162         * modules/mkdtemp (Makefile.am): Likewise.
75163         * modules/mkstemp (Makefile.am): Likewise.
75164         * modules/mktime (Makefile.am): Likewise.
75165         * modules/modechange (Makefile.am): Likewise.
75166         * modules/mountlist (Makefile.am): Likewise.
75167         * modules/nanosleep (Makefile.am): Likewise.
75168         * modules/openat (Makefile.am): Likewise.
75169         * modules/pagealign_alloc (Makefile.am): Likewise.
75170         * modules/physmem (Makefile.am): Likewise.
75171         * modules/poll (Makefile.am): Likewise.
75172         * modules/posixtm (Makefile.am): Likewise.
75173         * modules/posixver (Makefile.am): Likewise.
75174         * modules/putenv (Makefile.am): Likewise.
75175         * modules/quote (Makefile.am): Likewise.
75176         * modules/quotearg (Makefile.am): Likewise.
75177         * modules/raise (Makefile.am): Likewise.
75178         * modules/read-file (Makefile.am): Likewise.
75179         * modules/readline (Makefile.am): Likewise.
75180         * modules/readlink (Makefile.am): Likewise.
75181         * modules/readtokens (Makefile.am): Likewise.
75182         * modules/readutmp (Makefile.am): Likewise.
75183         * modules/realloc (Makefile.am): Likewise.
75184         * modules/regex (Makefile.am): Likewise.
75185         * modules/rename (Makefile.am): Likewise.
75186         * modules/rename-dest-slash (Makefile.am): Likewise.
75187         * modules/rijndael (Makefile.am): Likewise.
75188         * modules/rmdir (Makefile.am): Likewise.
75189         * modules/rpmatch (Makefile.am): Likewise.
75190         * modules/safe-read (Makefile.am): Likewise.
75191         * modules/safe-write (Makefile.am): Likewise.
75192         * modules/same (Makefile.am): Likewise.
75193         * modules/save-cwd (Makefile.am): Likewise.
75194         * modules/savedir (Makefile.am): Likewise.
75195         * modules/setenv (Makefile.am): Likewise.
75196         * modules/settime (Makefile.am): Likewise.
75197         * modules/sha1 (Makefile.am): Likewise.
75198         * modules/sig2str (Makefile.am): Likewise.
75199         * modules/snprintf (Makefile.am): Likewise.
75200         * modules/stdlib-safer (Makefile.am): Likewise.
75201         * modules/stpcpy (Makefile.am): Likewise.
75202         * modules/stpncpy (Makefile.am): Likewise.
75203         * modules/strcase (Makefile.am): Likewise.
75204         * modules/strcasestr (Makefile.am): Likewise.
75205         * modules/strchrnul (Makefile.am): Likewise.
75206         * modules/strcspn (Makefile.am): Likewise.
75207         * modules/strdup (Makefile.am): Likewise.
75208         * modules/strerror (Makefile.am): Likewise.
75209         * modules/strftime (Makefile.am): Likewise.
75210         * modules/strndup (Makefile.am): Likewise.
75211         * modules/strnlen (Makefile.am): Likewise.
75212         * modules/strpbrk (Makefile.am): Likewise.
75213         * modules/strsep (Makefile.am): Likewise.
75214         * modules/strstr (Makefile.am): Likewise.
75215         * modules/strtod (Makefile.am): Likewise.
75216         * modules/strtoimax (Makefile.am): Likewise.
75217         * modules/strtok_r (Makefile.am): Likewise.
75218         * modules/strtol (Makefile.am): Likewise.
75219         * modules/strtoll (Makefile.am): Likewise.
75220         * modules/strtoul (Makefile.am): Likewise.
75221         * modules/strtoull (Makefile.am): Likewise.
75222         * modules/strtoumax (Makefile.am): Likewise.
75223         * modules/strverscmp (Makefile.am): Likewise.
75224         * modules/time_r (Makefile.am): Likewise.
75225         * modules/timegm (Makefile.am): Likewise.
75226         * modules/tmpfile-safer (Makefile.am): Likewise.
75227         * modules/unistd-safer (Makefile.am): Likewise.
75228         * modules/unlinkdir (Makefile.am): Likewise.
75229         * modules/userspec (Makefile.am): Likewise.
75230         * modules/utime (Makefile.am): Likewise.
75231         * modules/utimecmp (Makefile.am): Likewise.
75232         * modules/utimens (Makefile.am): Likewise.
75233         * modules/vasnprintf (Makefile.am): Likewise.
75234         * modules/vasprintf (Makefile.am): Likewise.
75235         * modules/vsnprintf (Makefile.am): Likewise.
75236         * modules/xalloc (Makefile.am): Likewise.
75237         * modules/xgetcwd (Makefile.am): Likewise.
75238         * modules/xnanosleep (Makefile.am): Likewise.
75239         * modules/xreadlink (Makefile.am): Likewise.
75240         * modules/xstrtod (Makefile.am): Likewise.
75241         * modules/xstrtol (Makefile.am): Likewise.
75242         * modules/xstrtold (Makefile.am): Likewise.
75243         * modules/yesno (Makefile.am): Likewise.
75244
75245 2006-10-12  Jim Meyering  <jim@meyering.net>
75246
75247         * m4/getloadavg.m4: Revert the change below.
75248
75249         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75250         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75251         fail with a symlink, which is what coreutils' ./bootstrap now
75252         creates by default.
75253
75254 2006-10-12  Bruno Haible  <bruno@clisp.org>
75255
75256         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75257         mingw.
75258         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75259         MSVC and mingw explicitly.
75260
75261 2006-10-11  Simon Josefsson  <jas@extundo.com>
75262             Bruno Haible  <bruno@clisp.org>
75263
75264         Add support for multiple gnulib-tool invocations in the scope of a
75265         single configure.ac file.
75266         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75267         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75268         with the same contents as the _LIBADD variable.
75269         (func_emit_initmacro_start, func_emit_initmacro_end,
75270         func_emit_initmacro_done): New functions.
75271         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75272         gl_LIBOBJS and gl_LTLIBOBJS.
75273
75274 2006-10-11  Bruno Haible  <bruno@clisp.org>
75275
75276         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75277         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75278         autoreconf. Instead, invoke autopoint explicitly but move back the
75279         *.m4 files from gnulib.
75280
75281 2006-10-11  Bruno Haible  <bruno@clisp.org>
75282
75283         * gnulib-tool (func_usage): Make module names after --create-testdir
75284         optional.
75285         (func_create_testdir): If no module was specified, use nearly all
75286         modules.
75287
75288 2006-10-12  Jim Meyering  <jim@meyering.net>
75289
75290         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75291         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75292         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75293         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75294         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75295         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75296         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75297         (fts_set_stat_required): New function.
75298         (fts_open): Defer the calls to fts_stat, if possible or requested.
75299         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75300         into fts_stat itself.
75301         (fts_read): Perform any required (deferred) fts_stat call.
75302         (fts_build): Likewise, for the directory we're about to open and read.
75303         In the readdir loop, carefully decide whether each entry will require
75304         an eventual call to fts_stat, using dirent.d_type info if available.
75305         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75306         a command line argument into this function.  Update all callers.
75307         Map a return value of FTS_DOT to FTS_D for a command line argument.
75308         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75309         Thanks to Miklos Szeredi for his tenacity and for the initial
75310         bug report about "find" failing on a FUSE-based file system.
75311
75312         * lib/fts.c (fts_open): Use consistent indentation.
75313
75314 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75317         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75318         reported by Jim Meyering.  All uses of cache variables renamed
75319         to match Autoconf's.
75320         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75321         the other one.
75322
75323         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75324         Fix misspelling in diagnostic.
75325
75326 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75329         defined.  Problem reported by Matthew Woehlke.
75330
75331         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75332         Add support for Tandem NonStop R series.
75333         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75334         Use new macro.
75335
75336         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75337         (has_trailing_slash): Omit size arg; all callers changed.
75338         Omit 'inline', since it doesn't help performance and we'd
75339         need to configure it.
75340         Don't count //, ///, etc. as having a trailing slash.
75341         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75342         (rpl_rename_dest_slash): On failure, use rename's errno rather
75343         than (in some cases) an incorrect or junk errno.
75344         Simplify code by removing need to compute length; this does
75345         cause it to make two passes instead of one over the file name,
75346         but it's worth it.
75347
75348         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75349         change, since Autoconf's version may no longer be appropriate now
75350         that we are using CVS Autoconf's version.  Add support for Tandem.
75351
75352 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75353             Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75356         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75357         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75358         gl_AC_TYPE_LONG_LONG.
75359
75360         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75361         instead of HAVE_LONG_LONG.
75362         * lib/printf-args.c (printf_fetchargs): Likewise.
75363         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75364         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75366         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75367         gl_AC_TYPE_LONG_LONG.
75368
75369 2006-10-11  Bruno Haible  <bruno@clisp.org>
75370
75371         * m4/longlong.m4: Add comments.
75372         * m4/ulonglong.m4: Likewise.
75373
75374 2006-10-10  Bruno Haible  <bruno@clisp.org>
75375
75376         Make it possible to #define stpcpy, strdup to aliases.
75377         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75378         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75379
75380 2006-10-10  Bruno Haible  <bruno@clisp.org>
75381
75382         Make it possible to #define gcd to an alias.
75383         * lib/gcd.c: Include config.h.
75384
75385 2006-10-10  Bruno Haible  <bruno@clisp.org>
75386
75387         Make it possible to #define c_isascii to an alias.
75388         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75389         defined. Undefine the macros before defining them, to avoid gcc
75390         warnings.
75391         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75392         define NO_C_CTYPE_MACROS early.
75393
75394 2006-10-10  Bruno Haible  <bruno@clisp.org>
75395
75396         Make it possible to #define set_program_name to an alias.
75397         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75398         ENABLE_RELOCATABLE early.
75399
75400 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75401
75402         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75403         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75404         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75405         More generally, don't assume that 64-bit signed int is available
75406         if unsigned int is, and vice versa.
75407         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75408         unsigned symbols, not on their signed counterparts.
75409         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75410         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75411         (UINT64_C, UINTMAX_C):
75412         Likewise.
75413         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75414         unsigned counterparts.
75415         (Have_long_long, Unsigned): New macros.
75416         (Int): Renamed from INT.
75417         (strtoimax): Use the new macros.
75418         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75419         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75420         * modules/inttypes (inttypes.h): Substitute
75421         HAVE_UNSIGNED_LONG_LONG_INT.
75422         * modules/stdint (stdint.h): Likewise.
75423         (Files): Add m4/ulonglong.m4.
75424
75425 2006-10-10  Bruno Haible  <bruno@clisp.org>
75426
75427         Fix a gcc -Wshadow warning.
75428         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75429         to 'bucket'.
75430         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75431         gl_linked_indexof_from_to): Likewise.
75432         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75433         Likewise.
75434         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75435         Likewise.
75436         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75437         Reported by Eric Blake.
75438
75439 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75442         for NetBSD.  Problem reported by Bruno Haible.
75443
75444 2006-10-09  Jim Meyering  <jim@meyering.net>
75445
75446         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75447         Patch from Bruno Haible.
75448
75449 2006-10-09  Jim Meyering  <jim@meyering.net>
75450
75451         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75452         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75453         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75454
75455 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         Don't include <config.h> twice; this doesn't work in some cases,
75458         e.g., when config.h has "#define intmax_t long long int" and
75459         we include <config.h>, <inttypes.h>, <config.h> in that order.
75460         Problem reported by Matthew Woehlke in:
75461         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75462         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75463         * lib/fts-cycle.c: Don't include config.h.
75464         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75465         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75466         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75467         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75468         inttypes.h.
75469         * lib/xstrtoumax.c: Likewise.
75470         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75471         __strtol and the like, so that this module is more like its siblings.
75472         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75473         Remove; no longer needed now that we assume gnulib inttypes.h.
75474
75475 2006-10-08  Bruno Haible  <bruno@clisp.org>
75476
75477         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75478         option.
75479
75480 2006-10-07  Jim Meyering  <jim@meyering.net>
75481
75482         * modules/inttypes (inttypes.h): Revert what seems to have been
75483         an inadvertent part of today's change: use "|", not "/" in the
75484         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75485
75486 2006-10-07  Bruno Haible  <bruno@clisp.org>
75487
75488         * modules/sublist: New file.
75489
75490 2006-10-07  Bruno Haible  <bruno@clisp.org>
75491
75492         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75493         * modules/argz (argz.h): Likewise.
75494         * modules/arpa_inet (arpa/inet.h): Likewise.
75495         * modules/byteswap (byteswap.h): Likewise.
75496         * modules/configmake (configmake.h): Likewise.
75497         * modules/fcntl (fcntl.h): Likewise.
75498         * modules/fnmatch (fnmatch.h): Likewise.
75499         * modules/getopt (getopt.h): Likewise.
75500         * modules/glob (glob.h): Likewise.
75501         * modules/inttypes (inttypes.h): Likewise.
75502         * modules/netinet_in (netinet/in.h): Likewise.
75503         * modules/poll (poll.h): Likewise.
75504         * modules/stdbool (stdbool.h): Likewise.
75505         * modules/stdint (stdint.h): Likewise.
75506         * modules/sys_select (sys/select.h): Likewise.
75507         * modules/sys_socket (sys/socket.h): Likewise.
75508         * modules/sys_stat (sys/stat.h): Likewise.
75509         * modules/sysexits (sysexits.h): Likewise.
75510         * modules/unistd (unistd.h): Likewise.
75511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75512         Add a "DO NOT EDIT" comment to the generated file.
75513         (func_import): Likewise for gnulib-comp.m4.
75514
75515 2006-10-07  Bruno Haible  <bruno@clisp.org>
75516
75517         * lib/gl_sublist.h: New file.
75518         * lib/gl_sublist.c: New file.
75519
75520 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75523         name (relative to the original working directory) and the file
75524         name component (relative to the temporary working directory).  All
75525         callers changed.
75526         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75527         * lib/mkdir-p.c (make_dir_parents): Likewise.
75528         * lib/mkdir-p.h (make_dir_parents): Likewise.
75529
75530 2006-10-06  Eric Blake  <ebb9@byu.net>
75531
75532         Define several macros for use by the clean-temp module.
75533         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75534         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75535         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75536
75537         * lib/clean-temp.h (close_stream_temp): New declaration.
75538         * lib/clean-temp.c (includes): Pull in headers according to what
75539         other modules are in use.
75540         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75541
75542 2006-10-06  Bruno Haible  <bruno@clisp.org>
75543
75544         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75545         instead of fopen, fwriteerror.
75546
75547 2006-10-06  Bruno Haible  <bruno@clisp.org>
75548
75549         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75550         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75551         int.
75552         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75553         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75554         Return an error indicator.
75555         Suggested by Eric Blake.
75556
75557 2006-10-06  Bruno Haible  <bruno@clisp.org>
75558
75559         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75560         Reported by Eric Blake.
75561
75562 2006-10-06  Bruno Haible  <bruno@clisp.org>
75563
75564         * modules/closeout (Description): Mention stderr too.
75565
75566 2006-10-06  Bruno Haible  <bruno@clisp.org>
75567         and Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         * lib/closeout.c (close_stdout): Also close stderr.
75570         * lib/closeout.h: Update comment.
75571
75572 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75575         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75576         * lib/dirchownmod.c: Include lchown.h.
75577         * lib/lchown.c: Don't include files that lchown.h now includes.
75578         Don't declare chown, since lchown.h now does that.
75579         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75580         (lchown): Define to rpl_chown if lchown is declared but
75581         does not exist.  Declare using a prototype if lchown is not
75582         declared.  Add a copyright notice.
75583         * lib/mkstemp.h: Include <unistd.h>.
75584         * lib/openat.c: Include lchown.h.
75585
75586         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75587         we now test for that separately.
75588         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75589         rather than O_NOFOLLOW, when testing whether it's possible to
75590         avoid a race condition reliably.
75591         * lib/savewd.c (savewd_chdir): Likewise.
75592
75593         Remove macros that are no longer needed now that stdint.h is
75594         reliable.
75595         * lib/fsusage.c (UINTMAX_MAX): Remove.
75596         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75597         * lib/utimecmp.c (SIZE_MAX): Remove.
75598
75599         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75600
75601         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75602         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75603         O_NOATIME works.
75604
75605 2006-10-05  Bruno Haible  <bruno@clisp.org>
75606
75607         * lib/gl_list.h (gl_sortedlist_search_from_to,
75608         gl_sortedlist_indexof_from_to): New declarations.
75609         (gl_list_implementation): New fields sortedlist_search_from_to,
75610         sortedlist_indexof_from_to.
75611         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75612         inline functions.
75613         * lib/gl_list.c (gl_sortedlist_search_from_to,
75614         gl_sortedlist_indexof_from_to): New functions.
75615         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75616         function.
75617         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75618         (gl_array_sortedlist_search_from_to): New function.
75619         (gl_array_list_implementation): Update.
75620         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75621         function.
75622         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75623         (gl_carray_sortedlist_search_from_to): New function.
75624         (gl_carray_list_implementation): Update.
75625         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75626         gl_linked_sortedlist_indexof_from_to): New functions.
75627         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75628         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75629         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75630         gl_tree_sortedlist_indexof_from_to): New functions.
75631         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75632         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75633         Update.
75634         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75635         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75636         Update.
75637
75638 2006-10-05  Bruno Haible  <bruno@clisp.org>
75639
75640         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75641         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75642         (struct gl_list_implementation): Add fields search_from_to,
75643         indexof_from_to. Remove fields search, indexof.
75644         (gl_list_search): Use the search_from_to method.
75645         (gl_list_search_from, gl_list_search_from_to): New functions.
75646         (gl_list_indexof): Use the indexof_from_to method.
75647         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75648         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75649         (gl_list_search_from, gl_list_search_from_to): New functions.
75650         (gl_list_indexof): Use the indexof_from_to method.
75651         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75652         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75653         gl_array_indexof. Add start_index, end_index arguments.
75654         (gl_array_search_from_to): Renamed from gl_array_search. Add
75655         start_index, end_index arguments.
75656         (gl_array_remove, gl_array_list_implementation): Update.
75657         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75658         gl_carray_indexof. Add start_index, end_index arguments.
75659         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75660         start_index, end_index arguments.
75661         (gl_carray_remove, gl_carray_list_implementation): Update.
75662         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75663         gl_linked_search. Add start_index, end_index arguments.
75664         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75665         start_index, end_index arguments.
75666         (gl_linked_remove): Update.
75667         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75668         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75669         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75670         field to 'size_t'.
75671         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75672         gl_tree_search. Add start_index, end_index arguments.
75673         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75674         start_index, end_index arguments.
75675         (gl_tree_remove): Update.
75676         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75677         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75678         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75679         function.
75680         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75681         gl_tree_search. Add start_index, end_index arguments.
75682         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75683         start_index, end_index arguments.
75684         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75685         Update.
75686         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75687
75688 2006-10-05  Bruno Haible  <bruno@clisp.org>
75689
75690         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75691
75692         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75693         fwriteerror_temp): New declarations.
75694         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75695         (descriptors): New variable.
75696         (cleanup): First, close the descriptors.
75697         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75698         fclose_temp, fwriteerror_temp): New functions.
75699
75700 2006-10-04  Jim Meyering  <jim@meyering.net>
75701
75702         * lib/fts.c (fts_open): Tiny comment change.
75703
75704 2006-10-04  Bruno Haible  <bruno@clisp.org>
75705
75706         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75707         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75708         gl_LOCK_BODY.
75709         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75710         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75711         gl_LOCK_EARLY_BODY.
75712         (gl_LOCK): Require gl_LOCK_BODY.
75713
75714 2006-10-04  Bruno Haible  <bruno@clisp.org>
75715
75716         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75717         (gl_oset_search_atleast): New declaration.
75718         (struct gl_oset_implementation): Add field 'search_atleast'.
75719         (gl_oset_search_atleast): New inline function.
75720         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75721         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75722         (gl_array_oset_implementation): Update.
75723         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75724         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75725         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75726
75727 2006-10-04  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75730
75731 2006-10-03  Bruno Haible  <bruno@clisp.org>
75732
75733         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75734         from gl_avltreehash_list_implementation.
75735
75736 2006-10-03  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/gl_oset.c (gl_oset_add): Fix return type.
75739
75740 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75741
75742         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75743
75744 2006-10-02  Eric Blake  <ebb9@byu.net>
75745
75746         * modules/strnlen (Depends-on): Add extensions.
75747
75748 2006-10-02  Eric Blake  <ebb9@byu.net>
75749
75750         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75751         definition in 2.60+.
75752
75753 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75754
75755         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75756         checks.
75757
75758 2006-10-02  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75761         to the AUTOMAKE_OPTIONS.
75762         Reported by Jim Meyering.
75763
75764 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         Work around bug in Solaris 10 /proc file system:
75767         /proc/self/fd/NNN/.. isn't the parent directory of
75768         the directory whose file descriptor is NNN.  This needs to
75769         be worked around at run time, not compile time, since a
75770         program might be built on Solaris 8, where things work, and
75771         run on Solaris 10.
75772         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75773         to use the following interface instead:
75774         (OPENAT_BUFFER_SIZE): New macro.
75775         (openat_proc_name): New function.
75776         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75777         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75778         Likewise.
75779         * lib/openat-proc.c: New file.
75780         * modules/openat (Files): Add lib/openat-proc.c.
75781         (Depends-on): Add same-inode, stdbool.
75782         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75783
75784 2006-09-29  Bruno Haible  <bruno@clisp.org>
75785
75786         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75787         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75788         argument. Set stdout_closed before testing for ferror, not after.
75789         (fwriteerror, fwriteerror_no_ebadf): New functions.
75790
75791 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75792
75793         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75794
75795 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75796
75797         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75798         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75799
75800 2006-09-28  Jim Meyering  <jim@meyering.net>
75801
75802         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75803         Include <unistd.h>.
75804
75805 2006-09-28  Bruno Haible  <bruno@clisp.org>
75806
75807         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75808         * modules/linkedhash-list (Depends-on): Likewise.
75809         * modules/rbtreehash-list (Depends-on): Likewise.
75810
75811 2006-09-28  Bruno Haible  <bruno@clisp.org>
75812
75813         * lib/strndup.h: Simplify the redefinition of strndup.
75814         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75816
75817 2006-09-28  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75820         * lib/gl_linkedhash_list.c: Likewise.
75821         * lib/gl_rbtreehash_list.c: Likewise.
75822
75823 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75826         getaddrinfo.
75827
75828         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75829         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75830         it causes <stdio_ext.h> to cause a compile-time error.
75831         Problem reported by Nelson H. F. Beebe.
75832         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75833         of HAVE_DECL___PENDING.
75834
75835         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75837         declaration.
75838
75839 2006-09-27  Jim Meyering  <jim@meyering.net>
75840
75841         This file could end up with a definition for a function
75842         named __strndup, rather than rpl_strndup on a system with
75843         incomplete weak_alias support.
75844         * lib/strndup.c (strndup): Rename from __strndup.
75845         Remove #defines that used to map __strndup to strndup.
75846         Don't use K&R prototypes.
75847         Remove LIBC-related code, since this file is not sync'd with glibc.
75848         * lib/strndup.h: Revamp, accordingly.
75849         * m4/strndup.m4: Modernize.
75850
75851 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * modules/savewd (Depends-on): Add 'raise'.
75854         * lib/savewd.c: Include <signal.h>, for 'raise'.
75855
75856 2006-09-26  Jim Meyering  <jim@meyering.net>
75857
75858         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75859         when we detect Darwin 8.7.0's acl_get_file bug.
75860         Rearrange to perform the new (below) run-test while $LIBS
75861         contains any acl-related library.  Set USE_ACL at the end.
75862         (gl_ACL_GET_FILE): New function.
75863
75864 2006-09-26  Eric Blake  <ebb9@byu.net>
75865
75866         * lib/verror.c: Include <config.h> unconditionally.
75867
75868 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * modules/clock-time (Maintainer): Add self.
75871         * modules/getlogin_r (Depends-on): Add extensions.
75872
75873 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75874
75875         * modules/clock-time: New module.
75876         * modules/nanosleep (Depends-on): Add clock-time.
75877         * modules/gethrxtime (Depends-on): Likewise.
75878         * modules/gettime (Depends-on): Likewise.
75879         * modules/settime (Depends-on): Likewise.
75880
75881         * modules/fts-lgpl: Depend on openat.
75882         * modules/mkancesdirs: Depend on savewd.
75883         * modules/mkdir-p: Likewise.
75884
75885 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75886
75887         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75888
75889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75890         `gl_have_arbitrary_file_name_length_limit' to
75891         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75892         actually works between configure runs.
75893
75894 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75895             Bruno Haible  <bruno@clisp.org>
75896
75897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75898
75899 2006-09-25  Jim Meyering  <jim@meyering.net>
75900
75901         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75902         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75903
75904 2006-09-25  Eric Blake  <ebb9@byu.net>
75905
75906         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75907         exec's in 2006-09-18 patch when shuffling fds.
75908
75909 2006-09-25  Bruno Haible  <bruno@clisp.org>
75910
75911         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75912         Reported by Jim Meyering.
75913
75914 2006-09-24  Jim Meyering  <jim@meyering.net>
75915
75916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75917         compare a pointer against a literal "0".  That caused failures with
75918         at least HP-UX's hpcc.
75919
75920 2006-09-22  Simon Josefsson  <jas@extundo.com>
75921
75922         * modules/gc-sha1:
75923         * modules/gc-md4:
75924         * modules/gc-hmac-sha1:
75925         * modules/gc-hmac-md5:
75926         * modules/gc-des:
75927         * modules/gc-arcfour: Distribute more files.
75928
75929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75930
75931         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75932         (gl_linked_iterator_from_to): Initialize struct completely.
75933         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75934         (gl_tree_iterator_from_to): Likewise
75935         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75936         * lib/gl_array_list.c [lint] (gl_array_iterator)
75937         (gl_array_iterator_from_to): Likewise.
75938         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75939         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75940         (gl_carray_iterator_from_to): Likewise.
75941
75942         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75943         * lib/md4.c (md4_process_block): Remove unused variable.
75944         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75945         parentheses for clarity.
75946
75947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75948
75949         * modules/bison-i18n (Depends-on): Add gettext.
75950
75951 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75952
75953         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75954         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75955         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75956         also add missing comma that caused broken test.
75957         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75958         stdlib.h, for `abort'.
75959         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75960         variables.
75961         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75962         include unistd.h if present, for `rmdir'.
75963         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75964         variables.
75965         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75966         in the process include standard headers for prototypes.
75967         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75968         gets declared on GNU/Linux.
75969         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75970         unistd.h, for `rmdir'.
75971         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75972
75973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75974         always true.
75975         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75976
75977         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75978
75979 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75980
75981         * gnulib-tool (func_version): Create output all at once.  This
75982         may help avoid triggering unnecessary SIGPIPEs, and at any
75983         rate it doesn't hurt.
75984
75985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75986             Bruno Haible  <bruno@clisp.org>
75987
75988         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75989         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75990         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75991
75992         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75993         (gl_FUNC_VASPRINTF): Invoke it.
75994
75995 2006-09-22  Bruno Haible  <bruno@clisp.org>
75996
75997         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75998         getloadavg.c as first argument.
75999
76000 2006-09-22  Bruno Haible  <bruno@clisp.org>
76001
76002         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76003         at the beginning of the gl_INIT macro.
76004         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76005         gl_GETLOADAVG.
76006
76007 2006-09-22  Bruno Haible  <bruno@clisp.org>
76008
76009         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76010         module.
76011         Suggested by Ralf Wildenhues.
76012
76013 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         Import this patch from libc:
76016
76017         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76018
76019         * lib/regex_internal.c (re_string_reconstruct): Handle
76020         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76021         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76022         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76023         re_string_context_at.
76024
76025         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76026         now requires it.
76027         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76028         gl_REGEX now does it for us.
76029         (gl_REGEX): Add test taken from
76030         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76031
76032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76033         Check that large offsets work.  Modernize Autoconf usages.
76034         Prefer "yes" to mean a good thing rather than a bad.
76035         Don't put "#define mkstemp" in config.h, as this might interfere
76036         with standard system headers that "#define mkstemp mkstemp64".
76037
76038         * modules/mkstemp (Depends-on): Add extensions, so that
76039         mkstemp is visible on some platforms.
76040         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76041         (Include): Change to "mkstemp.h" from <stdlib.h>.
76042         (Files): Add mkstemp.h.
76043
76044         * lib/mkstemp.h: New file, since some standard headers
76045         #define mkstemp.
76046         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76047         Include "mkstemp.h".
76048         Make the _LIBC code resemble glibc original more,
76049         e.g., use K&R style.
76050         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76051         (mkstemp): Remove, since mkstemp.h does this for us.
76052         * lib/stdlib--.h: Include mkstemp.h.
76053
76054         Import this patch from libc:
76055
76056         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76057
76058         * lib/tempname.c (__gen_tempname): Change attempts_min
76059         into a macro.  Use preprocessor to decide how to initialize
76060         attempts [Coverity CID 67].
76061
76062 2006-09-20  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/mkdtemp.c: Import from libc.
76065         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76066                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76067                 attempts_min into a macro.  Use preprocessor to decide how to
76068                 initialize attempts [Coverity CID 67].
76069         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76070                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76071                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76072
76073 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76074
76075         * gnulib-tool (func_exit): New function, to allow to pass the
76076         exit status portably through the trap.  Use everywhere.
76077         (--help, --version): Signal a write error.
76078         (trap): catch SIGPIPE, for write errors.
76079         Exit at the end of the trap, with the correct exit status.
76080
76081 2006-09-19  Karl Berry  <karl@gnu.org>
76082
76083         * doc/gnulib.texi: note about the license texinfo files.
76084
76085 2006-09-19  Eric Blake  <ebb9@byu.net>
76086
76087         * gnulib-tool: Avoid space-tab.
76088
76089 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76092         that prevented coreutils 6.1 from building.  Problem reported
76093         by Petter Reinholdtsen.
76094
76095 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76096
76097         * gnulib-tool (avoidlist): Fix typo that broke options like
76098         --avoid=lock that are used by coreutils bootstrap.
76099
76100 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76101
76102         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76103         more systematically.
76104
76105 2006-09-18  Jim Meyering  <jim@meyering.net>
76106
76107         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76108
76109 2006-09-18  Bruno Haible  <bruno@clisp.org>
76110
76111         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76112
76113 2006-09-18  Bruno Haible  <bruno@clisp.org>
76114
76115         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76116         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76117         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76118         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76119         * m4/gettext.m4: Require autoconf >= 2.52.
76120         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76121         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76122         of gl_cv_header_inttypes_h.
76123
76124 2006-09-18  Bruno Haible  <bruno@clisp.org>
76125
76126         * lib/javaversion.c: Include configmake.h.
76127
76128 2006-09-18  Bruno Haible  <bruno@clisp.org>
76129
76130         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76131         avoid that the while loops be executed in a subshell.
76132
76133 2006-09-18  Bruno Haible  <bruno@clisp.org>
76134
76135         * MODULES.html.sh (func_module): Break long lines.
76136         Suggested by Bruce Korb <bkorb@gnu.org>.
76137
76138 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76139
76140         Speed up by a factor of 1.12.
76141         * gnulib-tool (nl): New variable.
76142         (func_import): Rewrite include directive extraction to only read each
76143         directive once.
76144
76145 2006-09-17  Bruno Haible  <bruno@clisp.org>
76146
76147         * modules/javaversion (Makefile.am): Remove DEFS setting.
76148         (Depends-on): Add configmake, for PKGDATADIR definition.
76149
76150 2006-09-17  Bruno Haible  <bruno@clisp.org>
76151
76152         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76153
76154 2006-09-17  Bruno Haible  <bruno@clisp.org>
76155
76156         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76157         (func_modules_transitive_closure, func_modules_add_dummy,
76158         func_modules_to_filelist, func_import, func_create_testdir,
76159         func_create_megatestdir, ...): Use it wherever possible.
76160         Suggested by Ralf Wildenhues.
76161
76162 2006-09-16  Karl Berry  <karl@gnu.org>
76163
76164         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76165         to avoid sectioning errors.
76166         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76167         [ifinfo]: blank line after @center-ed titles.
76168         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76169         Spell FSF address consistently with others.
76170         (These changes approved by rms.)
76171
76172 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76173
76174         Speed up by a factor of 1.61.
76175         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76176         already checked module names again.
76177
76178 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76179
76180         Speed up by a factor of 1.13.
76181         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76182         for new_files, and the input to func_add_or_update.
76183
76184 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76185
76186         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76187         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76188
76189 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * modules/mkancesdirs (Depends-on): Add fcntl.
76192         * modules/savewd: New file.
76193         * MODULES.html.sh (File system functions): Add savewd.
76194
76195         * modules/configmake (Makefile.am): Add support for the
76196         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76197
76198 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * m4/savewd.m4: New file.
76201
76202 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76205         (dirchownmod): New arg FD.  All callers changed.
76206         Use FD rather than opening the directory ourself, as opening is
76207         now the caller's responsibility.
76208         * lib/dirchownmod.h: Likewise.
76209         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76210         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76211         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76212         (test_dir): Remove.
76213         (mkancesdirs): Return length of prefix of FILE that has already
76214         been made, or -2 if there is a child doing the work.  Redo
76215         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76216         ".", and treat ".." specially since it might stray back into
76217         already-created areas.  Use a subprocess if necessary.  New arg
76218         WD; all users changed.  MAKE_DIR function should now return 1
76219         if it creates a directory that is not readable.  Return -2 if
76220         a child process is spun off.
76221         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76222         Adjust signature to match code.
76223         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76224         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76225         all users changed.
76226         * lib/savewd.c, lib/savewd.h: New files.
76227
76228 2006-09-15  Jim Meyering  <jim@meyering.net>
76229
76230         * modules/rename-dest-slash: New module.
76231         * MODULES.html.sh (posix_compat): Add it here.
76232
76233         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76234
76235 2006-09-15  Jim Meyering  <jim@meyering.net>
76236
76237         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76238         file.
76239
76240         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76241
76242 2006-09-15  Jim Meyering  <jim@meyering.net>
76243
76244         * lib/rename-dest-slash.c (has_trailing_slash): Use
76245         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76246         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76247         test before testing whether SRC is a directory.
76248         Suggestions from Bruno Haible.
76249
76250         Avoid a warning about an unused variable.
76251         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76252         into the #ifdef block where it's used.
76253
76254         * lib/rename-dest-slash.c: New file.
76255
76256 2006-09-14  Bruno Haible  <bruno@clisp.org>
76257
76258         * lib/allocsa.c: Include <config.h> unconditionally.
76259         * lib/asnprintf.c: Likewise.
76260         * lib/asprintf.c: Likewise.
76261         * lib/c-strcasecmp.c: Likewise.
76262         * lib/c-strcasestr.c: Likewise.
76263         * lib/c-strncasecmp.c: Likewise.
76264         * lib/c-strstr.c: Likewise.
76265         * lib/classpath.c: Likewise.
76266         * lib/clean-temp.c: Likewise.
76267         * lib/concatpath.c: Likewise.
76268         * lib/copy-file.c: Likewise.
76269         * lib/csharpcomp.c: Likewise.
76270         * lib/csharpexec.c: Likewise.
76271         * lib/execute.c: Likewise.
76272         * lib/fatal-signal.c: Likewise.
76273         * lib/findprog.c: Likewise.
76274         * lib/fwriteerror.c: Likewise.
76275         * lib/gl_array_list.c: Likewise.
76276         * lib/gl_array_oset.c: Likewise.
76277         * lib/gl_avltree_list.c: Likewise.
76278         * lib/gl_avltree_oset.c: Likewise.
76279         * lib/gl_avltreehash_list.c: Likewise.
76280         * lib/gl_carray_list.c: Likewise.
76281         * lib/gl_linked_list.c: Likewise.
76282         * lib/gl_linkedhash_list.c: Likewise.
76283         * lib/gl_list.c: Likewise.
76284         * lib/gl_oset.c: Likewise.
76285         * lib/gl_rbtree_list.c: Likewise.
76286         * lib/gl_rbtree_oset.c: Likewise.
76287         * lib/gl_rbtreehash_list.c: Likewise.
76288         * lib/imaxabs.c: Likewise.
76289         * lib/imaxdiv.c: Likewise.
76290         * lib/javacomp.c: Likewise.
76291         * lib/javaexec.c: Likewise.
76292         * lib/javaversion.c: Likewise.
76293         * lib/linebreak.c: Likewise.
76294         * lib/localcharset.c: Likewise.
76295         * lib/lock.c: Likewise.
76296         * lib/mbchar.c: Likewise.
76297         * lib/mbswidth.c: Likewise.
76298         * lib/mkdtemp.c: Likewise.
76299         * lib/pipe.c: Likewise.
76300         * lib/printf-args.c: Likewise.
76301         * lib/printf-parse.c: Likewise.
76302         * lib/progname.c: Likewise.
76303         * lib/progreloc.c: Likewise.
76304         * lib/readlink.c: Likewise.
76305         * lib/sh-quote.c: Likewise.
76306         * lib/stpcpy.c: Likewise.
76307         * lib/stpncpy.c: Likewise.
76308         * lib/strcasecmp.c: Likewise.
76309         * lib/strcasestr.c: Likewise.
76310         * lib/strcspn.c: Likewise.
76311         * lib/striconv.c: Likewise.
76312         * lib/strncasecmp.c: Likewise.
76313         * lib/strnlen1.c: Likewise.
76314         * lib/strstr.c: Likewise.
76315         * lib/strtok_r.c: Likewise.
76316         * lib/tls.c: Likewise.
76317         * lib/tmpdir.c: Likewise.
76318         * lib/unicodeio.c: Likewise.
76319         * lib/unsetenv.c: Likewise.
76320         * lib/vasnprintf.c: Likewise.
76321         * lib/vasprintf.c: Likewise.
76322         * lib/wait-process.c: Likewise.
76323         * lib/xallocsa.c: Likewise.
76324         * lib/xsetenv.c: Likewise.
76325         * lib/xstriconv.c: Likewise.
76326
76327 2006-09-13  Simon Josefsson  <jas@extundo.com>
76328
76329         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76330         that internally, suggested by Ralf Wildenhues
76331         <Ralf.Wildenhues@gmx.de>.
76332
76333 2006-09-13  Simon Josefsson  <jas@extundo.com>
76334
76335         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76336         @LIBOBJS@.
76337         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76338
76339 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76342         longer worry about uses that don't define HAVE_CONFIG_H.
76343         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76344         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76345         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76346         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76347         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76348         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76349         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76350         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76351         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76352         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76353         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76354         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76355         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76356         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76357         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76358         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76359         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76360         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76361         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76362         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76363         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76364         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76365         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76366         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76367         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76368         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76369         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76370         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76371         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76372         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76373         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76374         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76375         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76376         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76377         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76378         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76379         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76380         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76381         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76382         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76383         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76384         Likewise.
76385
76386 2006-09-13  Eric Blake  <ebb9@byu.net>
76387
76388         * lib/getopt.c: Fix typo in last commit.
76389
76390 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76391
76392         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76393         dgettext.
76394
76395 2006-09-12  Jim Meyering  <jim@meyering.net>
76396
76397         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76398         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76399         Reported by Nelson H. F. Beebe.
76400
76401 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76402
76403         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76404         program_invocation_name and program_invocation_short_name are
76405         initialized.
76406         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76407         and program_invocation_short_name to argp.h, so they are visible
76408         to user programs.
76409         * lib/argp.h: Likewise
76410
76411 2006-09-10  Bruno Haible  <bruno@clisp.org>
76412
76413         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76414         m4/inttypes_h.m4, m4/uintmax_t.m4.
76415
76416 2006-09-10  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76419         gl_AC_TYPE_UINTMAX_T.
76420
76421 2006-09-10  Bruno Haible  <bruno@clisp.org>
76422
76423         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76424
76425 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76426
76427         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76428         convention.  Text proposed by Bruno Haible.
76429         (struct argp_option): Document the use of N_() wrappers.
76430
76431         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76432         '\v', and translate the two parts separately, instead of feeding
76433         the whole string to gettext.  This allows to exclude
76434         '\v' from the strings visible to the translator by writing doc
76435         strings as N_("..") "\v" N_("..").
76436
76437 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * config/srclist.txt: Undo latest change; the bug was fixed.
76440
76441 2006-09-09  Bruno Haible  <bruno@clisp.org>
76442
76443         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76444         assignments if building a library without libtool.
76445         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76446         in func_emit_lib_Makefile_am.
76447         (func_import): When building a static library libfoo.a, arrange to
76448         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76449         (func_create_testdir): Likewise.
76450         * modules/gc (configure.ac, Makefile.am): If building statically,
76451         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76452         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76453         * modules/striconv (configure.ac, Makefile.am): Likewise.
76454         Based on a suggestion by Ralf Wildenhues.
76455
76456 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76459         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76460         Also:
76461
76462         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76463         Add year_2050_test to catch glibc bug 2821
76464         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76465
76466         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76467         Prefer #ifdef to #if.
76468
76469         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76470         Return from 'main' instead of calling 'exit'.
76471
76472 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76475         returned the maximum time_t value rather than (time_t) -1.
76476         Problem originally reported by William Bardwell
76477         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76478
76479         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76480         Moved to here ...
76481         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76482         ... from here.
76483
76484 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76485
76486         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76487         2821 is fixed.
76488
76489 2006-09-08  Jim Meyering  <jim@meyering.net>
76490
76491         Don't make generated files read-only.  That would bother too many
76492         people.  However, do retain the ability to work when targets are
76493         read-only: remove the destination and temporary files before writing
76494         them (when generated via sed or echo), or by using the -f option for
76495         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76496         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76497         * modules/byteswap, modules/configmake, modules/fcntl:
76498         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76499         * modules/localcharset, modules/netinet_in, modules/poll:
76500         * modules/stdbool, modules/stdint, modules/sys_select:
76501         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76502
76503 2006-09-08  Jim Meyering  <jim@meyering.net>
76504
76505         Avoid new build failure on FreeBSD 6.0.
76506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76507         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76508         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76509
76510 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76511
76512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76513
76514 2006-09-07  Jim Meyering  <jim@meyering.net>
76515
76516         Fix global typo in last change: use chmod u-w, not chmod u-x.
76517         Spotted by Paul Eggert and Bruce Korb.
76518         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76519         * modules/byteswap, modules/configmake, modules/fcntl:
76520         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76521         * modules/localcharset, modules/netinet_in, modules/poll:
76522         * modules/stdbool, modules/stdint, modules/sys_select:
76523         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76524
76525 2006-09-06  Jim Meyering  <jim@meyering.net>
76526
76527         Make generated files be read-only.
76528         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76529         Ensure that each generated file is now read-only.
76530         * modules/argz: Likewise.
76531         * modules/arpa_inet: Likewise.
76532         * modules/byteswap: Likewise.
76533         * modules/configmake: Likewise.
76534         * modules/fcntl: Likewise.
76535         * modules/fnmatch: Likewise.
76536         * modules/getopt: Likewise.
76537         * modules/glob: Likewise.
76538         * modules/inttypes: Likewise.
76539         * modules/netinet_in: Likewise.
76540         * modules/poll: Likewise.
76541         * modules/stdbool: Likewise.
76542         * modules/stdint: Likewise.
76543         * modules/sys_select: Likewise.
76544         * modules/sys_socket: Likewise.
76545         * modules/sys_stat: Likewise.
76546         * modules/sysexits: Likewise.
76547         * modules/localcharset: Same as above, but continue using temporary
76548         file named "t-$@" (why different?) rather than the "$@-t" used
76549         everywhere else.
76550
76551         * modules/sysexits (Makefile.am): Replace literal occurrences
76552         of "sysexit.h" more readable, and more consistent, "$@".
76553
76554 2006-09-06  Bruno Haible  <bruno@clisp.org>
76555
76556         * modules/striconv: New file.
76557         * modules/xstriconv: New file.
76558         * MODULES.html.sh (Internationalization functions): Add striconv,
76559         xstriconv.
76560
76561 2006-09-06  Bruno Haible  <bruno@clisp.org>
76562
76563         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76564         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76565         not using libtool correctly.
76566
76567 2006-09-06  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/striconv.h: New file.
76570         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76571         iconvstring.c.
76572         * lib/xstriconv.h: New file.
76573         * lib/xstriconv.c: New file.
76574
76575 2006-09-06  Bruno Haible  <bruno@clisp.org>
76576
76577         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76578         lib_..._LDFLAGS.
76579
76580 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76581
76582         * lib/argz_.h: Sync from Libtool.
76583
76584         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76585                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76586
76587         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76588
76589 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76590
76591         * modules/trim: New file.
76592
76593 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76594
76595         * lib/trim.h: New file.
76596         * lib/trim.c: New file.
76597
76598 2006-09-05  Bruno Haible  <bruno@clisp.org>
76599
76600         * MODULES.html.sh (String handling): Add trim.
76601
76602 2006-09-04  Karl Berry  <karl@gnu.org>
76603
76604         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76605         until next release.
76606
76607 2006-09-03  Bruno Haible  <bruno@clisp.org>
76608
76609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76610         correctly.
76611
76612 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76615         not gl_GETLOADAVG.  Omit unneeded semicolons.
76616         Problems reported by Ralf Wildenhues in
76617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76618         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76619         at the end, which is the usual gnulib style.
76620
76621         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76622         of doing all the work ourselves.
76623         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76624         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76625
76626 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76629         Problem reported by Ralf Wildenhues in
76630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76631
76632         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76633         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76634
76635 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76638         yesterday's patch by changing test -n to test -z.
76639
76640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76643         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76644         the former is now obsolescent.
76645
76646         * modules/chdir-long (Depends-on): Add fcntl.
76647
76648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76651         obsolescent, and programs should use gnulib instead.
76652         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76653         but with prefixes changed.
76654
76655 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76658         or stdbool.h, because they might not exist while configuring.
76659
76660         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76661         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76662         does that for us.
76663         (O_DIRECTORY): Remove.
76664
76665 2006-08-31  Eric Blake  <ebb9@byu.net>
76666
76667         * gnulib-tool: Don't let emacs change spaces to TAB.
76668
76669 2006-08-31  Bruno Haible  <bruno@clisp.org>
76670
76671         * gnulib-tool: When calling func_import more than once, do it in a
76672         subshell.
76673         Reported by Eric Blake <ebb9@byu.net>.
76674
76675 2006-08-31  Bruno Haible  <bruno@clisp.org>
76676
76677         * gnulib-tool (nl): Remove variable.
76678         (sed_transform_lib_file): Use more robust test for config-h module.
76679         (func_import): Fix typo in 2006-08-25 patch.
76680
76681 2006-08-31  Bruno Haible  <bruno@clisp.org>
76682
76683         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76684         specified, augment Makefile.am variables instead of assigning them.
76685
76686 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         Work around a bug in both the Linux and SunOS 64-bit kernels:
76689         nanosleep mishandles sleeps for longer than 2**31 seconds.
76690         Problem reported by Frank v Waveren in
76691         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76693         Check for nanosleep bug.
76694         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76695
76696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         Work around a bug in both the Linux and SunOS 64-bit kernels:
76699         nanosleep mishandles sleeps for longer than 2**31 seconds.
76700         Problem reported by Frank v Waveren in
76701         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76702         * lib/nanosleep.c (BILLION): New constant.
76703         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76704         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76705         implementation.
76706
76707 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * modules/nanosleep (Depends-on): Add gettime.
76710
76711 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76712         and Simon Josefsson  <jas@extundo.com>
76713         and Oskar Liljeblad  <oskar@osk.mine.nu>
76714
76715         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76716         * gnulib-tool (func_import): New license type 'unmodifiable license
76717         text'.
76718         * modules/fdl: Use it.  Longer description.
76719         * module/gpl, module/lgpl: New files.
76720
76721 2006-08-30  Jim Meyering  <jim@meyering.net>
76722
76723         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76724         shadowing the parameter.
76725
76726 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76727
76728         Sync from Libtool:
76729
76730         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76731
76732         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76733         sharing with gnulib.  Report by Eric Blake.
76734
76735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * modules/isapipe: New file.
76738         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76739
76740 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * modules/configmake (Makefile.am): Add a comment, and omit
76743         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76744         by Bruno Haible.
76745
76746 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * m4/isapipe.m4: New file.
76749
76750 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * lib/isapipe.c, lib/isapipe.h: New files.
76753
76754 2006-08-29  Jim Meyering  <jim@meyering.net>
76755
76756         * modules/configmake (Makefile.am): Make configmake.h depend on
76757         Makefile.  Otherwise, a stale configmake.h could hang around.
76758
76759 2006-08-29  Eric Blake  <ebb9@byu.net>
76760
76761         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76762         resolution of upstream bug 3044.
76763
76764 2006-08-29  Bruno Haible  <bruno@clisp.org>
76765
76766         * modules/localcharset (Depends-on): Add configmake.
76767         (Makefile.am): Remove setting of LIBDIR through DEFS.
76768
76769 2006-08-29  Bruno Haible  <bruno@clisp.org>
76770
76771         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76772         defined.
76773
76774 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * modules/fcntl: New file.
76777         * modules/chdir-safer (Depends-on): Add fcntl.
76778         * modules/fts: Likewise.
76779         * modules/mkdir-p: Likewise.
76780
76781         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76782         This undoes the most recent change, since we're now addressing the
76783         problem in a different way.
76784
76785         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76786         into output, since the output might be called Makefile.am even
76787         if $makefile_name is something different.
76788         (func_import): Use $makefile_am rather than
76789         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76790         empty.
76791
76792         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76793
76794 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76797         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76798         recent change to stdint.m4, since we're now addressing the problem in a
76799         different way.
76800
76801 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * m4/fcntl_h.m4: New file.
76804
76805 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/fcntl_.h: New file.
76808         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76809         the fcntl module.
76810         * lib/dirchownmod.c: Likewise.
76811         * lib/fts.c: Likewise.
76812
76813         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76814         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76815         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76816         just before including <inttypes.h>, to avoid circular inclusion.
76817
76818 2006-08-28  Jim Meyering  <jim@meyering.net>
76819
76820         * doc/visibility.texi: Actually read and correct the grammar of the
76821         sentence affected by yesterday's change.
76822
76823 2006-08-28  Eric Blake  <ebb9@byu.net>
76824
76825         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76826         needs wrapper.
76827
76828 2006-08-28  Eric Blake  <ebb9@byu.net>
76829
76830         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76831
76832 2006-08-28  Eric Blake  <ebb9@byu.net>
76833
76834         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76835
76836 2006-08-28  Bruno Haible  <bruno@clisp.org>
76837
76838         * modules/c-strstr: New file, from GNU gettext.
76839         * MODULES.html.sh (String handling): Add c-strstr.
76840
76841 2006-08-28  Bruno Haible  <bruno@clisp.org>
76842
76843         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76844         macros.
76845         Reported by Eric Blake.
76846
76847 2006-08-28  Bruno Haible  <bruno@clisp.org>
76848
76849         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76850         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76851         * lib/vasprintf.c: Include errno.h, limits.h.
76852         (EOVERFLOW): New fallback definition.
76853         (vasprintf): Test here whether the string length is > INT_MAX.
76854         * lib/vsnprintf.c: Include errno.h, limits.h.
76855         (EOVERFLOW): New fallback definition.
76856         (vsnprintf): Fix bug when generated string was too long for the buffer.
76857         Test here whether the string length is > INT_MAX.
76858
76859 2006-08-28  Bruno Haible  <bruno@clisp.org>
76860
76861         * lib/inttypes_.h (SCNX*): Remove definitions.
76862         Reported by Eric Blake.
76863
76864 2006-08-28  Bruno Haible  <bruno@clisp.org>
76865
76866         * lib/c-strstr.h: New file, from GNU gettext.
76867         * lib/c-strstr.c: New file, from GNU gettext.
76868
76869 2006-08-28  Bruno Haible  <bruno@clisp.org>
76870
76871         * gnulib-tool: Reorder some statements.
76872
76873 2006-08-28  Bruno Haible  <bruno@clisp.org>
76874
76875         * gnulib-tool: New option --makefile-name.
76876         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76877         $makefile_name.
76878         (func_import): Write $makefile_name to the cache file, and read it from
76879         there unless explicitly specified. Use $makefile_name as file name
76880         instead of Makefile.am. Adjust the recommendations accordingly.
76881
76882 2006-08-28  Bruno Haible  <bruno@clisp.org>
76883
76884         * gnulib-tool (func_verify_module): Check against misapplying patch.
76885
76886 2006-08-28  Bruno Haible  <bruno@clisp.org>
76887
76888         * gnulib-tool (func_relativize, func_relconcat): New functions.
76889         Give an error if --local-dir is given with --update.
76890         Remove trailing slashes from $local_gnulib_dir.
76891         (func_import): Store the relativized $local_gnulib_dir in
76892         gnulib-cache.m4, and read it from there if not specified explicitly.
76893
76894 2006-08-28  Bruno Haible  <bruno@clisp.org>
76895
76896         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76897         is the current directory. Respect also $local_gnulib_dir.
76898
76899 2006-08-28  Bruno Haible  <bruno@clisp.org>
76900             Simon Josefsson  <jas@extundo.com>
76901
76902         BeOS portability.
76903         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76904
76905 2006-08-27  Jim Meyering  <jim@meyering.net>
76906
76907         * doc/visibility.texi: Remove duplicate word: "pointer".
76908
76909 2006-08-26  Bruno Haible  <bruno@clisp.org>
76910
76911         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76912         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76913         (Makefile.am): Create inttypes.h from inttypes_.h.
76914         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76915
76916         * modules/imaxabs: New file.
76917
76918         * modules/imaxdiv: New file.
76919
76920 2006-08-26  Bruno Haible  <bruno@clisp.org>
76921
76922         * m4/inttypes.m4: New file.
76923         * m4/_inttypes_h.m4: Remove file.
76924         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76925         PRI_MACROS_BROKEN.
76926         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76927
76928         * m4/imaxabs.m4: New file.
76929
76930         * m4/imaxdiv.m4: New file.
76931
76932 2006-08-26  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/inttypes_.h: New file.
76935         * lib/inttypes.h: Remove file.
76936         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76937
76938         * lib/imaxabs.c: New file.
76939
76940         * lib/imaxdiv.c: New file.
76941
76942 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         New config-h module, so that "make" output needn't be cluttered
76945         by -DHAVE_CONFIG_H.
76946         * MODULES.html.sh (Support for building libraries and executables):
76947         Add config-h.
76948         * modules/config-h: New file.
76949         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76950         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76951         the config-h module is used.
76952
76953         New configmake module, so that "make" output needn't be cluttered
76954         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76955         * MODULES.html.sh (Support for building libraries and executables):
76956         Add configmake.
76957         * modules/configmake: New file.
76958
76959 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * m4/config-h.m4: New file.
76962
76963 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * config/srclist.txt: Add elisp-comp.
76966
76967 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * MODULES.html.sh (Support for building libraries and executables):
76970         Add elisp-comp.
76971         * build-aux/elisp-comp: New file.
76972         * modules/elisp-comp: New file.
76973
76974 2006-08-24  Bruno Haible  <bruno@clisp.org>
76975
76976         * gnulib-tool (func_create_testdir): Use non-default values of
76977         sourcebase and m4base.
76978
76979 2006-08-24  Bruno Haible  <bruno@clisp.org>
76980
76981         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76982         HTML structure.
76983
76984 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * modules/openat (Depends-on): Add lchown.
76987
76988 2006-08-23  Bruno Haible  <bruno@clisp.org>
76989
76990         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76991         of gl_LOCK_EARLY instead of gl_LOCK.
76992
76993 2006-08-23  Bruno Haible  <bruno@clisp.org>
76994
76995         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76996         on OSF/1 to no.
76997         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76998
76999 2006-08-23  Bruno Haible  <bruno@clisp.org>
77000
77001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77002         as unusable.
77003
77004         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77005         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77006         (gl_LOCK): New macro.
77007
77008 2006-08-22  Simon Josefsson  <jas@extundo.com>
77009
77010         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77011         to md5 module.
77012
77013 2006-08-22  Simon Josefsson  <jas@extundo.com>
77014
77015         * MODULES.html.sh: Add "Support for maintaining and release
77016         projects".
77017
77018         * build-aux/gnupload: New file, from coreutils.
77019
77020 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         Avoid the need for AC_LIBSOURCES in m4 macros.
77023         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77024         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77025         * modules/check-version (EXTRA_DIST): Add check-version.h.
77026         * modules/crc (EXTRA_DIST): Add crc.h.
77027         * modules/des (EXTRA_DIST): Add des.h.
77028         * modules/gc (EXTRA_DIST): Add gc.h.
77029         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77030         * modules/getline (EXTRA_DIST): Add getline.h.
77031         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77032         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77033         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77034         * modules/md2 (EXTRA_DIST): Add md2.h.
77035         * modules/md4 (EXTRA_DIST): Add md4.h.
77036         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77037         * modules/read-file (EXTRA_DIST): Add read-file.h.
77038         * modules/readline (EXTRA_DIST): Add readline.h.
77039         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77040         rijndael-api-fst.h.
77041
77042 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * m4/rijndael.m4 (gl_ARCFOUR):
77045         * m4/arctwo.m4 (gl_ARCTWO):
77046         * m4/check-version.m4 (gl_CHECK_VERSION):
77047         * m4/crc.m4 (gl_CRC):
77048         * m4/des.m4 (gl_DES):
77049         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77050         * m4/gc.m4 (gl_GC):
77051         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77052         * m4/getline.m4 (gl_FUNC_GETLINE):
77053         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77054         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77055         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77056         * m4/md2.m4 (gl_MD2):
77057         * m4/md4.m4 (gl_MD4):
77058         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77059         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77060         * m4/readline.m4 (gl_FUNC_READLINE):
77061         * m4/rijndael.m4 (gl_RIJNDAEL):
77062         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77063         to get the necessary .h files and whatnot.
77064
77065 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77068         gnulib rather than the other way around.
77069         * config/srclistvars.sh (COREUTILS): Remove.
77070
77071 2006-08-22  Jim Meyering  <jim@meyering.net>
77072
77073         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77074
77075         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77076
77077 2006-08-22  Eric Blake  <ebb9@byu.net>
77078
77079         * modules/regexprops-generic: New file.
77080         * MODULES.html.sh (Support for building documentation): List it.
77081
77082 2006-08-22  Eric Blake  <ebb9@byu.net>
77083
77084         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77085         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77087         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77088
77089 2006-08-22  Bruno Haible  <bruno@clisp.org>
77090
77091         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77092         and lib_LTLIBRARIES like the other lib_* variables.
77093
77094 2006-08-22  Bruno Haible  <bruno@clisp.org>
77095
77096         * build-aux/x-to-1.in: New file, from GNU gettext.
77097
77098 2006-08-22  Bruno Haible  <bruno@clisp.org>
77099
77100         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77101         <utmpx.h> exists.
77102
77103 2006-08-22  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77106         <utmpx.h> exists.
77107
77108 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         BeOS portability.
77111         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77112         exist.
77113         Problem reported by Bruno Haible.
77114
77115 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         Avoid the need for AC_LIBSOURCES in m4 macros.
77118         * modules/acl (EXTRA_DIST): Add acl.h.
77119         * modules/argmatch (Files): Add m4/argmatch.m4.
77120         (configure.ac): Add gl_ARGMATCH.
77121         (EXTRA_DIST): Renamed from lib_SOURCES, for
77122         consistency with the other modules.  Remove argmatch.c.
77123         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77124         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77125         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77126         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77127         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77128         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77129         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77130         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77131         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77132         * modules/closeout (EXTRA_DIST): Add closeout.h.
77133         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77134         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77135         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77136         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77137         dirname.h; remove basename.c and stripslash.c.
77138         * modules/exclude (EXTRA_DIST): Add exclude.h.
77139         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77140         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77141         * modules/file-type (EXTRA_DIST): Add file-type.h.
77142         * modules/filemode (EXTRA_DIST): Add filemode.h.
77143         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77144         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77145         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77146         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77147         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77148         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77149         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77150         * modules/getdate (EXTRA_DIST): Add getdate.c.
77151         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77152         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77153         * modules/getpass (EXTRA_DIST): Add getpass.h.
77154         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77155         * modules/group-member (EXTRA_DIST): Add group-member.h.
77156         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77157         * modules/hash (EXTRA_DIST): Add hash.h.
77158         * modules/human (EXTRA_DIST): Add human.h.
77159         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77160         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77161         * modules/lchown (EXTRA_DIST): Add lchown.h.
77162         * modules/long-options (EXTRA_DIST): Add long-options.h.
77163         * modules/lstat (EXTRA_DIST): Add lstat.h.
77164         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77165         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77166         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77167         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77168         * modules/memxor (EXTRA_DIST): Add memxor.h.
77169         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77170         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77171         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77172         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77173         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77174         * modules/physmem (EXTRA_DIST): Add physmem.h.
77175         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77176         * modules/posixver (EXTRA_DIST): Add posixver.h.
77177         * modules/quote (EXTRA_DIST): Add quote.h.
77178         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77179         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77180         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77181         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77182         regex_internal.h regexec.c.
77183         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77184         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77185         * modules/same (EXTRA_DIST): Add same.h.
77186         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77187         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77188         * modules/savedir (EXTRA_DIST): Add savedir.h.
77189         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77190         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77191         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77192         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77193         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77194         * modules/strdup (EXTRA_DIST): Add strdup.h.
77195         * modules/strftime (EXTRA_DIST): Add strftime.h.
77196         * modules/strndup (EXTRA_DIST): Add strndup.h.
77197         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77198         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77199         * modules/time_r (EXTRA_DIST): Add time_r.h.
77200         * modules/timespec (EXTRA_DIST): Add timespec.h.
77201         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77202         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77203         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77204         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77205         * modules/userspec (EXTRA_DIST): Add userspec.h.
77206         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77207         * modules/utimens (EXTRA_DIST): Add utimens.h.
77208         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77209         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77210         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77211         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77212         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77213         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77214         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77215         * modules/yesno (EXTRA_DIST): Add yesno.h.
77216
77217 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77220
77221         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77222         * m4/dev-ino.m4, same-inode.m4: Remove.
77223
77224         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77225         * m4/acl.m4 (AC_FUNC_ACL):
77226         * m4/backupfile.m4 (gl_BACKUPFILE):
77227         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77228         * m4/canon-host.m4 (gl_CANON_HOST):
77229         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77230         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77231         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77232         * m4/cloexec.m4 (gl_CLOEXEC):
77233         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77234         * m4/closeout.m4 (gl_CLOSEOUT):
77235         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77236         * m4/dirname.m4 (gl_DIRNAME):
77237         * m4/exclude.m4 (gl_EXCLUDE):
77238         * m4/exitfail.m4 (gl_EXITFAIL):
77239         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77240         * m4/file-type.m4 (gl_FILE_TYPE):
77241         * m4/filemode.m4 (gl_FILEMODE):
77242         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77243         * m4/fpending.m4 (gl_FUNC_FPENDING):
77244         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77245         * m4/fts.m4 (gl_FUNC_FTS):
77246         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77247         * m4/getdate.m4 (gl_GETDATE):
77248         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77249         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77250         * m4/getpass.m4 (gl_FUNC_GETPASS):
77251         * m4/gettime.m4 (gl_GETTIME):
77252         * m4/getugroups.m4 (gl_GETUGROUPS):
77253         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77254         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77255         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77256         * m4/hash.m4 (gl_HASH):
77257         * m4/idcache.m4 (gl_IDCACHE):
77258         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77259         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77260         * m4/long-options.m4 (gl_LONG_OPTIONS):
77261         * m4/lstat.m4 (gl_FUNC_LSTAT):
77262         * m4/md5.m4 (gl_MD5):
77263         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77264         * m4/memcoll.m4 (gl_MEMCOLL):
77265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77267         * m4/memxor.m4 (gl_MEMXOR):
77268         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77270         * m4/modechange.m4 (gl_MODECHANGE):
77271         * m4/mountlist.m4 (gl_MOUNTLIST):
77272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77273         * m4/openat.m4 (gl_FUNC_OPENAT):
77274         * m4/pathmax.m4 (gl_PATHMAX):
77275         * m4/physmem.m4 (gl_PHYSMEM):
77276         * m4/posixtm.m4 (gl_POSIXTM):
77277         * m4/posixver.m4 (gl_POSIXVER):
77278         * m4/quote.m4 (gl_QUOTE):
77279         * m4/quotearg.m4 (gl_QUOTEARG):
77280         * m4/readtokens.m4 (gl_READTOKENS):
77281         * m4/readutmp.m4 (gl_READUTMP):
77282         * m4/regex.m4 (gl_REGEX):
77283         * m4/safe-read.m4 (gl_SAFE_READ):
77284         * m4/safe-write.m4 (gl_SAFE_WRITE):
77285         * m4/same.m4 (gl_SAME):
77286         * m4/save-cwd.m4 (gl_SAVE_CWD):
77287         * m4/savedir.m4 (gl_SAVEDIR):
77288         * m4/settime.m4 (gl_SETTIME):
77289         * m4/sha1.m4 (gl_SHA1):
77290         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77291         * m4/stat-macros.m4 (gl_STAT_MACROS):
77292         * m4/stat-time.m4 (gl_STAT_TIME):
77293         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77294         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77295         * m4/strdup.m4 (gl_FUNC_STRDUP):
77296         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77297         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77298         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77299         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77300         * m4/time_r.m4 (gl_TIME_R):
77301         * m4/timespec.m4 (gl_TIMESPEC):
77302         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77303         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77304         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77305         * m4/userspec.m4 (gl_USERSPEC):
77306         * m4/utimecmp.m4 (gl_UTIMECMP):
77307         * m4/utimens.m4 (gl_UTIMENS):
77308         * m4/xalloc.m4 (gl_XALLOC):
77309         * m4/xgetcwd.m4 (gl_XGETCWD):
77310         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77311         * m4/xreadlink.m4 (gl_XREADLINK):
77312         * m4/xstrtod.m4 (gl_XSTRTOD):
77313         * m4/yesno.m4 (gl_YESNO):
77314         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77315         to get the necessary .h files and whatnot.
77316
77317 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77318             Bruno Haible  <bruno@clisp.org>
77319
77320         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77321         /bin/sh understanding of '!' conditional negation.
77322
77323 2006-08-21  Jim Meyering  <jim@meyering.net>
77324
77325         * modules/openat (Depends-on): Really alphabetize.
77326
77327         * modules/acl (Depends-on): Add error and quote.
77328
77329         * check-module (find_included_lib_files): Add at-func.c to the
77330         ok-to-include-more-than-once white list.
77331
77332         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77333
77334 2006-08-21  Bruno Haible  <bruno@clisp.org>
77335
77336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77337         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77338         Reported by Martin Lambers <marlam@marlam.de>.
77339
77340 2006-08-21  Bruno Haible  <bruno@clisp.org>
77341
77342         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77343         specify an installation location, don't emit a noinst_LIBRARIES or
77344         noinst_LTLIBRARIES assignment.
77345
77346 2006-08-21  Bruno Haible  <bruno@clisp.org>
77347
77348         BeOS portability.
77349         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77350         BeOS has mbrtowc() but no <wctype.h>.
77351
77352 2006-08-21  Bruno Haible  <bruno@clisp.org>
77353
77354         BeOS portability.
77355         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77356         exist.
77357
77358 2006-08-21  Bruno Haible  <bruno@clisp.org>
77359
77360         BeOS portability.
77361         * lib/mbchar.h: Include <wctype.h> only if it exists.
77362
77363 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         Remove files that are no longer needed by their respective modules.
77366         * m4/obstack.m4: Remove.
77367         * m4/strerror_r.m4: Remove.
77368         * m4/uint32_t.m4: Remove.
77369         * m4/uintptr_t.m4: Remove.
77370         * m4/ullong_max.m4: Remove.
77371         * m4/xstrtoimax.m4: Remove.
77372         * m4/xstrtoumax.m4: Remove.
77373
77374         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77375         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77376         dependencies now capture this.
77377
77378         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77379         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77380         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77381         * m4/human.m4 (gl_HUMAN): Likewise.
77382         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77383         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77384
77385         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77386
77387         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77388         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77389         stdint.
77390         * m4/human.m4 (gl_HUMAN): Likewise.
77391         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77392         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77393         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77394         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77395         * m4/xstrtol (gl_XSTRTOL): Likewise.
77396
77397         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77398         AC_TYPE_LONG_LONG_INT.
77399         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77400         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77401         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77403
77404         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77405         on stdbool.
77406
77407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77408         (gl_PREREQ_XSTRTOUL): Remove.
77409
77410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77411
77412         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77413         mode.
77414
77415 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         Add and change modules to make it easier for coreutils to use
77418         gnulib-tool.
77419         * modules/backupfile (Files): Remove m4/d-ino.m4.
77420         (Depends-on): Add d-ino.
77421         * modules/cycle-check (Depends-on): Add stdint.
77422         (lib_SOURCES): Add cycle-check.h.
77423         * modules/d-ino: New module.
77424         * modules/d-type: New module.
77425         * modules/error (Files): Remove m4/strerror_r.m4.
77426         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77427         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77428         m4/inttypes_h.m4, m4/uintmax_t.m4.
77429         (Depends-on): Add stdint.
77430         (lib_SOURCES): Add fsusage.h.
77431         * modules/getcwd (Files): Remove d-ino.m4.
77432         (Depends-on): Add d-ino.
77433         * modules/getndelim2 (Depends-on): Add stdint.
77434         * modules/glob (Files): Remove m4/d-type.m4.
77435         (Depends-on): Add d-type.
77436         * modules/host-os: New module.
77437         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77438         m4/inttypes_h.m4, m4/uintmax_t.m4.
77439         * Depends-on: Add stdint.
77440         (lib_SOURCES): Add human.h.
77441         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77442         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77443         m4/uintmax_t.m4, m4/ulonglong.m4.
77444         (Depends-on): Add stdint.
77445         (EXTRA_DIST): Add inttostr.h.
77446         * modules/lchmod: New module.
77447         * modules/link-follow: New module.
77448         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77449         (Depends-on): Add lchmod.
77450         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77451         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77452         (Depends-on): Add stdint.
77453         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77454         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77455         (Depends-on): Add stdint.
77456         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77457         * modules/perl: New module.
77458         * modules/regex (Depends-on): Add stdint.
77459         * modules/rmdir-errno: New module.
77460         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77461         m4/intmax_t.m4.
77462         (Depends-on): Add stdint.
77463         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77464         m4/uintmax_t.m4.
77465         (Depends-on): Add stdint.
77466         * modules/unlink-busy: New module.
77467         * modules/utimecmp (Depends-on): Add stdint.
77468         * modules/uptime: New module.
77469         * modules/winsz-ioctl: New module.
77470         * modules/winsz-termios: New module.
77471         * modules/xnanosleep (Depends-on): Add nanosleep.
77472         * modules/ullong_max: Remove.
77473         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77474         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77475         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77476         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77477         (Depends-on): Add inttypes.
77478         (lib_SOURCES): Add xstrtol.h.
77479         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77480         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77481         * MODULES.html.sh: Move 'assert' into the assert section.
77482         Move 'dummy' into the linking section.
77483         Remove ullong_max.
77484         Add section for compatibility checks for POSIX:2001 functions,
77485         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77486         winsz-ioctl, and winsz-termios into it.
77487         Add lchmod.
77488         Add top-level Misc section and put host-os, perl, and uptime
77489         into it.
77490
77491 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77494         now assume the stdint module.  Do not include inttypes.h.
77495         * lib/fsusage.h: Likewise.
77496         * lib/getndelim2.c: Likewise.
77497         * lib/human.h: Likewise.
77498         * lib/inttostr.h: Likewise.
77499         * lib/obstack.c: Likewise.
77500         * lib/regex_internal.h: Likewise.
77501         * lib/tempname.c: Likewise.
77502         * lib/utimecmp.c: Likewise.
77503         * lib/xstrtol.h: Likewise.
77504
77505         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77506
77507         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77508         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77509         * lib/xtime.h: Likewise.
77510
77511 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * modules/openat (Files): Add lib/fchmodat.c.
77514         Fixes problem reported by Jay Youngman.
77515
77516 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77519         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77520
77521 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77522             Bruno Haible  <bruno@clisp.org>
77523
77524         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77525         and is a script that invokes bison. Tighten the code. Add comments.
77526
77527 2006-08-18  Jim Meyering  <jim@meyering.net>
77528
77529         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77530         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77531         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77532         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77533
77534 2006-08-18  Bruno Haible  <bruno@clisp.org>
77535
77536         * modules/bison-i18n: New file.
77537         * MODULES.html.sh (Internationalization functions): Add it.
77538
77539 2006-08-18  Bruno Haible  <bruno@clisp.org>
77540
77541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77542         sys/statvfs.h. When getmntinfo was found, check its declaration and
77543         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77544
77545 2006-08-18  Bruno Haible  <bruno@clisp.org>
77546
77547         * m4/bison-i18n.m4: New file, from bison.
77548
77549 2006-08-18  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77552         (ME_DUMMY): Treat "kernfs" as a dummy.
77553         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77554
77555 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77556
77557         Update from coreutils.
77558
77559         2006-08-15  Jim Meyering  <jim@meyering.net>
77560
77561         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77562
77563         2006-01-17  Jim Meyering  <jim@meyering.net>
77564
77565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77566
77567         2006-01-11  Jim Meyering  <jim@meyering.net>
77568
77569         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77570         Check for the lchmod function.
77571
77572 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         Update from coreutils.
77575
77576         * lib/__fpending.h: Add copyright notice.
77577         * lib/fprintftime.h: Likewise.
77578         * lib/savedir.c: Use (C) in copyright notice.
77579         * lib/savedir.h: Likewise.
77580
77581         2006-08-15  Jim Meyering  <jim@meyering.net>
77582
77583         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77584         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77585         in support of the EXPECTED_ERRNO macro.
77586         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77587         definitions.  Instead, define the appropriate symbols and include
77588         "at-func.c".
77589         * lib/mkdirat.c (mkdirat): Likewise.
77590         * lib/fchmodat.c (fchmodat): Likewise.
77591         (ENOSYS): Remove definition.
77592         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77593         it.  Don't include "unistd--.h" -- it wasn't ever used.
77594
77595         2006-01-17  Jim Meyering  <jim@meyering.net>
77596
77597         Rewrite fts.c not to change the current working directory,
77598         by using openat, fstatat, fdopendir, etc..
77599
77600         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77601         (HAVE_OPENAT_SUPPORT): Define.
77602         [_LIBC] (fchdir): Don't undef or define; no longer used.
77603         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77604         Now, this `function' always succeeds, and consumes its file descriptor
77605         parameter -- so callers must not close such FDs.  Update callers.
77606         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77607         (diropen): Add parameter, SP.  Adjust all callers.
77608         Implement using diropen_fd, rather than open.
77609         (fts_open): Initialize new member, fts_cwd_fd.
77610         Remove fts_rft-setting code.
77611         (fts_close): Close fts_cwd_fd, if necessary.
77612         (__opendir2): Define in terms of opendir or opendirat,
77613         depending on whether the FST_NOCHDIR flag is set.
77614         (fts_build): Since fts_safe_changedir consumes its FD, and since
77615         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77616         and close the dup'd file descriptor upon failure.
77617         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77618         (fts_safe_changedir): Tweak semantics to reflect that this function
77619         now calls cwd_advance_fd and hence consumes its FD argument.
77620         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77621         [struct FTS] (fts_rft): Remove now-unused member.
77622         [struct FTS] (fts_cycle.state): Improve comment.
77623
77624         * lib/openat.c (openat_needs_fchdir): New function.
77625         * lib/openat.h (openat_needs_fchdir): Declare it.
77626
77627 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77628
77629         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77630         Problem and fix reported by Pádraig Brady in
77631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77632
77633 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77636
77637 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * lib/memcoll.c (memcoll): Optimize for the common case where the
77640         arguments are bytewise equal.
77641
77642 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77643
77644         * doc/regexprops-generic.texi: Add a copyright notice.
77645
77646 2006-08-15  Bruno Haible  <bruno@clisp.org>
77647
77648         * modules/tmpdir (License): Change to LGPL.
77649
77650 2006-08-15  Bruno Haible  <bruno@clisp.org>
77651
77652         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77653         module.
77654
77655 2006-08-14  Simon Josefsson  <jas@extundo.com>
77656
77657         * config/srclist.txt: Add gnupload.
77658
77659 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         Change copyright notice from LGPL 2 to GPL 2, since that's the
77662         standard form used in the gnulib repository.
77663         * tests/test-lock.c: Likewise.
77664         * tests/test-stdint.c: Likewise.
77665         * tests/test-tls.c: Likewise.
77666
77667         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77668         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77669         Add copyright notice.
77670
77671         * check-module: Add copyright notice.  Output a copyright
77672         notice if "--version" is specified.
77673         * modules/COPYING: New file.
77674         * tests/test-getaddrinfo.c: Add copyright notice.
77675         * tests/test-verify.c: Likewise.
77676
77677 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         Change copyright notice from LGPL 2 to GPL 2, since that's the
77680         standard form used in the gnulib repository.
77681         * lib/lock.c: LGPL -> GPL.
77682         * lib/lock.h: Likewise.
77683         * lib/strnlen1.c: Likewise.
77684         * lib/strnlen1.h: Likewise.
77685         * lib/tls.c: Likewise.
77686         * lib/tls.h: Likewise.
77687         * lib/tmpdir.c: Likewise.
77688
77689         * lib/TODO: Remove; this belongs only in coreutils.
77690
77691 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         Add copyright notices to long-enough files that lack them, since
77694         otherwise the files aren't clearly free.  Use the same notice that
77695         getdate.texi already uses.
77696         * doc/alloca-opt.texi: Add copyright notice.
77697         * doc/alloca.texi: Likewise.
77698         * doc/ctime.texi: Likewise.
77699         * doc/functions.texi: Likewise.
77700         * doc/gcd.texi: Likewise.
77701         * doc/gnulib-tool.texi: Likewise.
77702         * doc/inet_ntoa.texi: Likewise.
77703         * doc/visibility.texi: Likewise.
77704
77705         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77706         * doc/quote.texi: Add copyright notice.
77707
77708         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77709         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77710         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77711         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77712         is now obsolete, and give a pointer to the Sun list.
77713         Add copyright notice.
77714
77715 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * config/srclistvars.sh: Add copyright notice.
77718
77719 2006-08-14  Eric Blake  <ebb9@byu.net>
77720
77721         Import the following change from libc:
77722
77723         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77724
77725         Upstream bug 2997.
77726         * lib/misc/error.c: Add space between program name and message if file
77727         name is missing.
77728
77729 2006-08-12  Karl Berry  <karl@gnu.org>
77730
77731         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77732         remove, these originate in gnulib now.
77733
77734 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77735
77736         * doc/Makefile (standards.info standards.html standards.dvi):
77737         Also depend on make-stds.texi.
77738
77739 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77742         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77743
77744         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77745         in wchar_t.  Problem reported by Eric Blake.
77746
77747         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77748         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77749         Also, help the compiler to keep LEN in a register.
77750
77751 2006-08-11  Eric Blake  <ebb9@byu.net>
77752
77753         * users.txt: Sort.  Add tar.
77754
77755 2006-08-11  Bruno Haible  <bruno@clisp.org>
77756
77757         * users.txt: New file.
77758
77759 2006-08-11  Bruno Haible  <bruno@clisp.org>
77760
77761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77762         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77763
77764 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         * modules/snprintf (Depends-on): Remove minmax.
77767         (Maintainer): Add self and Bruno.
77768
77769 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77772         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77773         (EOVERFLOW): Define if the system does not.
77774         Do not include "minmax.h"; it wasn't used.
77775         (snprintf): Don't assume size_t promotes to an unsigned type.
77776         Fix bug when generated string was too long for the buffer: the
77777         buffer's contents are supposed to be the initial prefix of the
77778         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77779         exceeds INT_MAX; do the check ourselves.
77780
77781         Import the following changes from libc:
77782
77783         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77784
77785         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77786         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77787         set wc to the byte which couldn't be converted.
77788         (re_string_reconstruct): Don't clear valid_raw_len before calling
77789         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77790         tip_context using re_string_context_at.
77791
77792         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77793
77794         * lib/posix/regex.h: g++ still cannot handled [restrict].
77795
77796         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77797
77798         * lib/posix/regex.h: Remove special handling for VMS.
77799
77800 2006-08-10  Jim Meyering  <jim@meyering.net>
77801
77802         * modules/same-inode: New module.
77803         * modules/dev-ino: New module.
77804         * modules/cycle-check: Depend on these modules, rather than simply
77805         including their .h files.
77806         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77807         required via m4/cycle-check.m4.
77808         * modules/same: Depend on new same-inode module, rather than
77809         including same-inode.h.
77810         * modules/chdir-safer: New file.
77811
77812         * modules/chown (Depends-on): Add stat-macros.
77813
77814 2006-08-10  Jim Meyering  <jim@meyering.net>
77815
77816         * m4/cycle-check.m4: New file.
77817         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77818         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77819
77820 2006-08-10  Eric Blake  <ebb9@byu.net>
77821
77822         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77823         in from original proposal.
77824
77825 2006-08-10  Eric Blake  <ebb9@byu.net>
77826         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77827
77828         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77829         namespace.
77830
77831 2006-08-10  Bruno Haible  <bruno@clisp.org>
77832
77833         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77834         as well.
77835
77836 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         Sync from coreutils.
77839
77840         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77841
77842         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77843         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77844
77845 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77846
77847         * modules/restrict: Remove; no longer needed now that we assume
77848         Autoconf 2.59 or later.
77849         * MODULES.html.sh: Remove 'restrict'.
77850         * modules/argp (Depends-on): Remove 'restrict'.
77851         * modules/base64 (Depends-on): Likewise.
77852         * modules/gc (Depends-on): Likewise.
77853         * modules/getaddrinfo (Depends-on): Likewise.
77854         * modules/glob (Depends-on): Likewise.
77855         * modules/inet_ntop (Depends-on): Likewise.
77856         * modules/inet_pton (Depends-on): Likewise.
77857         * modules/memxor (Depends-on): Likewise.
77858         * modules/regex (Depends-on): Likewise.
77859         * modules/strtok_r (Depends-on): Likewise.
77860         * modules/time_r (Depends-on): Likewise.
77861
77862 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77865         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77866         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77867         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77868         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77869         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77870         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77871         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77872
77873         Merge from coreutils.
77874         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77875         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77876         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77877         * m4/time_r.m4 (gl_TIME_R): Likewise.
77878
77879 2006-08-09  Karl Berry  <karl@gnu.org>
77880
77881         * config/srclist.txt: no more gettext-tools, per Bruno.
77882
77883 2006-08-08  Eric Blake  <ebb9@byu.net>
77884
77885         * modules/verror: New module.
77886         * MODULES.html.sh: Document it.
77887
77888 2006-08-08  Eric Blake  <ebb9@byu.net>
77889
77890         * lib/verror.h, lib/verror.c: New files.
77891
77892 2006-08-08  Eric Blake  <ebb9@byu.net>
77893
77894         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77895         verror_at_line output complies with GNU Coding Standards even when
77896         file is NULL.
77897
77898 2006-08-07  Bruno Haible  <bruno@clisp.org>
77899
77900         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77901         versions of AIX.
77902         Reported by Ralf Wildenhues.
77903
77904 2006-08-07  Bruno Haible  <bruno@clisp.org>
77905
77906         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77907         in an AC_DEFUN. Needed so that the autoconf snippets can use
77908         AC_REQUIRE.
77909
77910 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77911
77912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77913         Initialize pkgdata_DATA.
77914         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77915         overriding it.
77916
77917 2006-08-06  Eric Blake  <ebb9@byu.net>
77918
77919         * lib/error.h: Fold in some upstream changes from glibc.
77920         * lib/error.c: Likewise.
77921
77922 2006-08-04  Bruno Haible  <bruno@clisp.org>
77923
77924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77925         Make the mostlyclean-local rule depend on mostlyclean-generic.
77926         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77927
77928 2006-07-31  Bruno Haible  <bruno@clisp.org>
77929
77930         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77931         <stdlib.h>, <string.h>.
77932
77933 2006-07-30  Bruno Haible  <bruno@clisp.org>
77934
77935         * modules/readlink (License): Change to LGPL.
77936
77937 2006-07-30  Bruno Haible  <bruno@clisp.org>
77938
77939         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77940         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77941         set PKGDATADIR to point to it.
77942
77943 2006-07-30  Bruno Haible  <bruno@clisp.org>
77944
77945         * modules/csharpexec (configure.ac): Comment out macro invocation.
77946         * modules/javaexec (configure.ac): Likewise.
77947         * modules/javacomp-script (configure.ac): Likewise.
77948
77949         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77950
77951 2006-07-30  Bruno Haible  <bruno@clisp.org>
77952
77953         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77954         linked-list.
77955
77956 2006-07-30  Bruno Haible  <bruno@clisp.org>
77957
77958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77959
77960 2006-07-30  Bruno Haible  <bruno@clisp.org>
77961
77962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77963         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77964         get removed.
77965
77966 2006-07-29  Bruno Haible  <bruno@clisp.org>
77967
77968         Make it possible for gnulib-tool to work with locally modified or
77969         augmented gnulib repositories.
77970         * gnulib-tool (func_usage): Document --local-dir option.
77971         (local_gnulib_dir): New variable.
77972         Handle --local-dir option.
77973         (func_lookup_file): New function.
77974         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77975         (func_get_description, func_get_filelist, func_get_description,
77976         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77977         func_get_automake_snippet, func_get_include_directive,
77978         func_get_license, func_get_maintainer): Use func_lookup_file.
77979         (func_import, func_create_testdir): Use func_lookup_file.
77980
77981 2006-07-29  Bruno Haible  <bruno@clisp.org>
77982
77983         * modules/setenv (Depends-on): Add unistd.
77984
77985 2006-07-29  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77988
77989 2006-07-29  Bruno Haible  <bruno@clisp.org>
77990
77991         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77992
77993 2006-07-29  Bruno Haible  <bruno@clisp.org>
77994
77995         * gnulib-tool (import, update): If there is no Makefile.am, look at
77996         aclocal.m4, instead of bailing out.
77997
77998 2006-07-29  Bruno Haible  <bruno@clisp.org>
77999
78000         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78001         Categorize the options by when they are useful.
78002
78003 2006-07-29  Bruno Haible  <bruno@clisp.org>
78004
78005         * gnulib-tool (func_usage): Document option --no-libtool.
78006         Handle option --no-libtool.
78007         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78008         for changed semantics of $libtool variable.
78009         (func_import): Likewise. If libtool is not used, show this through
78010         an option --no-libtool.
78011         (func_create_testdir): Update.
78012
78013 2006-07-29  Bruno Haible  <bruno@clisp.org>
78014
78015         * gnulib-tool (func_import): Extend error message about missing
78016         --doc-base.
78017
78018 2006-07-29  Bruno Haible  <bruno@clisp.org>
78019
78020         * gnulib-tool (func_import): Don't create the $docbase directory if
78021         there is no file to store there.
78022
78023 2006-07-29  Bruno Haible  <bruno@clisp.org>
78024
78025         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78026         relevant, look for configure.ac there, not in the current directory.
78027         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78028
78029 2006-07-29  Bruno Haible  <bruno@clisp.org>
78030
78031         * gnulib-tool (SORT): New variable.
78032         (func_usage): Undocument --assume-autoconf option.
78033         Remove --assume-autoconf option handling.
78034         (autoconf_minversion): Determine from the contents of configure.ac.
78035         (func_import): Remove autoconf_minversion handling.
78036         Suggested by Eric Blake.
78037
78038 2006-07-29  Bruno Haible  <bruno@clisp.org>
78039
78040         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78041
78042 2006-07-29  Bruno Haible  <bruno@clisp.org>
78043
78044         * config/srclist.txt (*setenv.[ch]): Remove rules.
78045
78046 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78047
78048         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78049
78050 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78051
78052         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78053         arpa/inet.h.
78054
78055 2006-07-28  Simon Josefsson  <jas@extundo.com>
78056
78057         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78058         * modules/inet_pton (Depends-on): Likewise.
78059
78060 2006-07-28  Simon Josefsson  <jas@extundo.com>
78061
78062         * m4/netinet_in_h.m4: New file.
78063
78064 2006-07-28  Simon Josefsson  <jas@extundo.com>
78065
78066         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78067         #include's.
78068
78069 2006-07-28  Simon Josefsson  <jas@extundo.com>
78070
78071         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78072         #include's.
78073
78074 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78077         setgid on directories only if they set these bits.
78078         * lib/modechange.h: Remove obsolete comment about masks.
78079
78080 2006-07-28  Eric Blake  <ebb9@byu.net>
78081
78082         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78083         macro expansion.
78084
78085 2006-07-28  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78088
78089 2006-07-28  Bruno Haible  <bruno@clisp.org>
78090
78091         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78092
78093 2006-07-28  Bruno Haible  <bruno@clisp.org>
78094
78095         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78096         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78097         Define fallbacks.
78098         Avoids link error on FreeBSD 4.x.
78099         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78100
78101         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78102         encoding.
78103         * lib/mbswidth.c (iswcntrl): Likewise.
78104
78105 2006-07-27  Bruno Haible  <bruno@clisp.org>
78106
78107         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78108         test.
78109
78110 2006-07-27  Bruno Haible  <bruno@clisp.org>
78111
78112         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78113         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78114         defined.
78115
78116 2006-07-26  Eric Blake  <ebb9@byu.net>
78117
78118         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78119
78120 2006-07-26  Eric Blake  <ebb9@byu.net>
78121
78122         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78123         like mingw that lack mkstemp.
78124         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78125         avoid compilation warning on mingw.
78126
78127 2006-07-26  Bruno Haible  <bruno@clisp.org>
78128
78129         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78130         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78131         INT_FAST*_MIN, INTPTR_MIN.
78132
78133 2006-07-25  Bruno Haible  <bruno@clisp.org>
78134
78135         * modules/version-etc (Depends-on): Add stdarg.
78136
78137 2006-07-25  Bruno Haible  <bruno@clisp.org>
78138
78139         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78140         complex commands.
78141
78142 2006-07-25  Bruno Haible  <bruno@clisp.org>
78143
78144         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78145         defined in <stdarg.h> or config.h.
78146
78147 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78150         (gl_STDIO_SAFER): Remove.
78151
78152 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * MODULES.html.sh (File stream based Input/Output):
78155         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78156         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78157         * modules/fopen-safer, modules/tmpfile-safer: New files.
78158         * modules/stdio-safer: Remove.
78159
78160 2006-07-24  Bruno Haible  <bruno@clisp.org>
78161
78162         * modules/tmpdir: New file.
78163         * MODULES.html.sh (File system functions): Add it.
78164
78165 2006-07-24  Bruno Haible  <bruno@clisp.org>
78166
78167         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78168         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78169
78170 2006-07-24  Bruno Haible  <bruno@clisp.org>
78171
78172         * modules/clean-temp: New file.
78173
78174 2006-07-24  Bruno Haible  <bruno@clisp.org>
78175
78176         * m4/tmpdir.m4: New file, from GNU gettext.
78177
78178 2006-07-24  Bruno Haible  <bruno@clisp.org>
78179
78180         * lib/tmpdir.h: New file, from GNU gettext.
78181         * lib/tmpdir.c: New file, from GNU gettext.
78182
78183 2006-07-24  Bruno Haible  <bruno@clisp.org>
78184
78185         * lib/clean-temp.h: New file, from GNU gettext.
78186         * lib/clean-temp.c: New file, from GNU gettext.
78187
78188 2006-07-23  Eric Blake  <ebb9@byu.net>
78189
78190         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78191         (Depends-on): Add binary-io.
78192
78193 2006-07-23  Eric Blake  <ebb9@byu.net>
78194
78195         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78196
78197 2006-07-23  Eric Blake  <ebb9@byu.net>
78198
78199         * lib/tmpfile-safer.c: New file.
78200         * lib/stdio-safer.h (fopen_safer): Add prototype.
78201         * lib/stdio--.h (tmpfile): Make safer.
78202
78203 2006-07-23  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78206         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78207         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78208         gl_linked_remove_at): Use it.
78209
78210 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78211         and Simon Josefsson <jas@extundo.com>
78212
78213         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78214
78215         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78216
78217 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * modules/close-stream: New file.
78220         * modules/closeout (Description): Make it clear that it exits
78221         with a diagnostic on error.
78222         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78223         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78224
78225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * m4/close-stream.m4: New file.
78228
78229 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * lib/close-stream.c, lib/close-stream.h: New files.
78232
78233 2006-07-22  Bruno Haible  <bruno@clisp.org>
78234
78235         Merge from GNU gettext 0.15.
78236
78237         2006-05-01  Bruno Haible  <bruno@clisp.org>
78238
78239                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78240
78241         2006-07-22  Bruno Haible  <bruno@clisp.org>
78242
78243                 * modules/javaversion: New file.
78244                 * MODULES.html.sh (Java): Add javaversion.
78245
78246         2006-03-12  Bruno Haible  <bruno@clisp.org>
78247
78248                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78249
78250         2005-12-04  Bruno Haible  <bruno@clisp.org>
78251
78252                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78253                 (untested).
78254
78255         2006-06-21  Bruno Haible  <bruno@clisp.org>
78256
78257                 Avoid warnings from recent versions of mcs.
78258                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78259                 -o, -L, -r any more. Use options documented since mcs-1.0
78260                 instead. Similarly for -g.
78261
78262         2005-12-04  Bruno Haible  <bruno@clisp.org>
78263
78264                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78265                 .resources, not .resource.
78266
78267         2005-07-09  Bruno Haible  <bruno@clisp.org>
78268
78269                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78270                 add a .dll suffix.
78271                 Reported by Mark Junker <mjscod@gmx.de>.
78272
78273         2006-07-22  Bruno Haible  <bruno@clisp.org>
78274
78275                 * modules/gettext: Upgrade to gettext-0.15.
78276                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78277                 m4/visibility.m4.
78278                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78279
78280 2006-07-22  Bruno Haible  <bruno@clisp.org>
78281
78282         Merge from GNU gettext 0.15.
78283
78284         2006-03-25  Bruno Haible  <bruno@clisp.org>
78285
78286                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78287
78288         2006-07-21  Bruno Haible  <bruno@clisp.org>
78289
78290                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78291                 "1.1".
78292
78293         2006-05-09  Bruno Haible  <bruno@clisp.org>
78294
78295                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78296                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78297                 for the conftestver execution.
78298
78299         2006-05-01  Bruno Haible  <bruno@clisp.org>
78300
78301                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78302                 optional target-version argument. Verify that the compiler
78303                 groks source of the specified source-version, or add -source
78304                 option as necessary. Verify that the compiler produces
78305                 bytecode in the specified target-version, or add -target and
78306                 -source options as necessary. Make the result of the test
78307                 available as variable CONF_JAVAC. Also log error output in
78308                 config.log.
78309
78310         2006-03-11  Bruno Haible  <bruno@clisp.org>
78311
78312                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78313
78314         2006-05-09  Bruno Haible  <bruno@clisp.org>
78315
78316                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78317                 CLASSPATH_SEPARATOR to a semicolon.
78318
78319         2006-03-12  Bruno Haible  <bruno@clisp.org>
78320
78321                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78322                 available as variable CONF_JAVA, for subsequent autoconf
78323                 tests. Also log error output in config.log.
78324
78325         2006-07-19  Bruno Haible  <bruno@clisp.org>
78326
78327                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78328                 that getline works on glibc2 systems. Needed to avoid trouble
78329                 in relocatable.c.
78330                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78331
78332         2005-12-04  Bruno Haible  <bruno@clisp.org>
78333
78334                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78335                 launcher (untested).
78336
78337         2005-12-04  Bruno Haible  <bruno@clisp.org>
78338
78339                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78340
78341         2006-07-22  Bruno Haible  <bruno@clisp.org>
78342
78343                 * gettext.m4: Update from GNU gettext-0.15.
78344                 * nls.m4: Likewise.
78345                 * po.m4: Likewise.
78346                 * inttypes-pri.m4: Likewise.
78347                 * inttypes-h.m4: Renamed from inttypes.m4.
78348                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78349
78350 2006-07-22  Bruno Haible  <bruno@clisp.org>
78351
78352         Merge from GNU gettext 0.15.
78353
78354         2005-07-05  Bruno Haible  <bruno@clisp.org>
78355
78356                 * printf-args.c (printf_fetchargs): Work around broken
78357                 definition of wint_t on mingw.
78358
78359         2005-02-12  Bruno Haible  <bruno@clisp.org>
78360
78361                 * xallocsa.h: Add extern "C" for C++.
78362
78363         2006-05-17  Bruno Haible  <bruno@clisp.org>
78364
78365                 Cygwin portability.
78366                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78367
78368         2006-04-30  Bruno Haible  <bruno@clisp.org>
78369
78370                 * progreloc.c: Include <mach-o/dyld.h> if available.
78371                 (find_executable): Use _NSGetExecutablePath when possible.
78372
78373         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78374
78375                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78376                 function.
78377
78378         2005-12-29  Bruno Haible  <bruno@clisp.org>
78379
78380                 * progreloc.c (set_program_name_and_installdir): Fix
78381                 compilation error.
78382
78383         2005-12-04  Bruno Haible  <bruno@clisp.org>
78384
78385                 Cygwin portability.
78386                 * progreloc.c: Include <windows.h> also on Cygwin.
78387                 (find_executable): Add support for Cygwin.
78388                 (set_program_name_and_installdir): Handle also platforms with
78389                 nonempty EXEEXT.
78390
78391         2006-07-11  Bruno Haible  <bruno@clisp.org>
78392
78393                 * javacomp.c: Fix a comment.
78394                 Reported by Jim Meyering.
78395
78396         2006-04-30  Bruno Haible  <bruno@clisp.org>
78397
78398                 * javacomp.h (compile_java_class): Add source_version,
78399                 target_version arguments.
78400                 * javacomp.c: Rewritten to choose only a compiler that
78401                 respects the specified source_version and target_version.
78402
78403         2006-06-27  Bruno Haible  <bruno@clisp.org>
78404
78405                 Assume correct S_ISDIR macro.
78406                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78407
78408         2006-07-22  Bruno Haible  <bruno@clisp.org>
78409
78410                 * javaversion.h: New file, from GNU gettext.
78411                 * javaversion.c: New file, from GNU gettext.
78412                 * javaversion.java: New file, from GNU gettext.
78413                 * javaversion.class: New file, from GNU gettext.
78414
78415         2006-05-17  Bruno Haible  <bruno@clisp.org>
78416
78417                 Cygwin portability.
78418                 * javaexec.c (execute_java_class): Test for jview program
78419                 also on Cygwin.
78420
78421         2006-04-09  Bruno Haible  <bruno@clisp.org>
78422
78423                 * fatal-signal.c: Don't include string.h.
78424                 (at_fatal_signal): Use a copying loop instead of memcpy.
78425
78426         2005-12-04  Bruno Haible  <bruno@clisp.org>
78427
78428                 * csharpexec.c: Add support for 'clix' launcher (untested).
78429                 (execute_csharp_using_sscli): New function.
78430                 (execute_csharp_program): Call it.
78431
78432         2006-06-21  Bruno Haible  <bruno@clisp.org>
78433
78434                 Avoid warnings from recent versions of mcs.
78435                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78436                 -o, -L, -r any more. Use options documented since mcs-1.0
78437                 instead. Similarly for -g.
78438
78439         2005-07-09  Bruno Haible  <bruno@clisp.org>
78440
78441                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78442                 add a .dll suffix.
78443                 Reported by Mark Junker <mjscod@gmx.de>.
78444
78445         2006-06-17  Bruno Haible  <bruno@clisp.org>
78446
78447                 * config.charset: Update for NetBSD 3.0.
78448
78449         2006-05-17  Bruno Haible  <bruno@clisp.org>
78450
78451                 Cygwin portability.
78452                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78453
78454         2006-05-16  Bruno Haible  <bruno@clisp.org>
78455
78456                 * localcharset.c [CYGWIN]: Include <windows.h>.
78457                 (get_charset_aliases): For Cygwin, return the same CPxxx
78458                 aliases list as under WIN32.
78459                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78460                 the environment variables. Fall back to GetACP().
78461
78462         2006-04-05  Bruno Haible  <bruno@clisp.org>
78463
78464                 * config.charset: Update Juan Manuel Guerrero's address.
78465
78466         2005-02-12  Bruno Haible  <bruno@clisp.org>
78467
78468                 * allocsa.h: Add extern "C" for C++.
78469
78470         2005-02-10  Bruno Haible  <bruno@clisp.org>
78471
78472                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78473                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78474
78475         2006-07-22  Bruno Haible  <bruno@clisp.org>
78476
78477                 * gettext.h: Update to GNU gettext-0.15.
78478
78479 2006-07-22  Bruno Haible  <bruno@clisp.org>
78480
78481         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78482         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78483         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78484
78485 2006-07-21  Eric Blake  <ebb9@byu.net>
78486
78487         * modules/stdlib-safer: New file.
78488         * MODULES.html.sh (File stream based Input/Output): Add
78489         stdlib-safer.
78490
78491 2006-07-21  Eric Blake  <ebb9@byu.net>
78492
78493         * lib/stdlib-safer.h: New file from coreutils, required by
78494         stdlib--.h.
78495
78496 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78499
78500 2006-07-20  Bruno Haible  <bruno@clisp.org>
78501
78502         * gnulib-tool: Recognize new option --assume-autoconf.
78503         (autoconf_minversion): New variable.
78504         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78505
78506 2006-07-20  Bruno Haible  <bruno@clisp.org>
78507
78508         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78509
78510 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78511
78512         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78513         Reindent and repaginate.
78514
78515 2006-07-19  Derek Price  <derek@ximbiot.com>
78516
78517         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78518         Correct grammar.
78519
78520 2006-07-17  Bruno Haible  <bruno@clisp.org>
78521
78522         * modules/list: New file.
78523         * modules/array-list: New file.
78524         * modules/carray-list, modules/carray-list-tests: New files.
78525         * modules/linked-list, modules/linked-list-tests: New files.
78526         * modules/avltree-list, modules/avltree-list-tests: New files.
78527         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78528         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78529         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78530         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78531         * modules/oset: New file.
78532         * modules/array-oset: New file.
78533         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78534         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78535         * tests/test-carray_list.c: New file.
78536         * tests/test-linked_list.c: New file.
78537         * tests/test-avltree_list.c: New file.
78538         * tests/test-rbtree_list.c: New file.
78539         * tests/test-linkedhash_list.c: New file.
78540         * tests/test-avltreehash_list.c: New file.
78541         * tests/test-rbtreehash_list.c: New file.
78542         * tests/test-avltree_oset.c: New file.
78543         * tests/test-rbtree_oset.c: New file.
78544         * MODULES.html.sh (Container data structures): New section.
78545
78546 2006-07-17  Bruno Haible  <bruno@clisp.org>
78547
78548         * m4/gl_list.m4: New file.
78549
78550 2006-07-17  Bruno Haible  <bruno@clisp.org>
78551
78552         * lib/gl_list.h: New file.
78553         * lib/gl_list.c: New file.
78554         * lib/gl_array_list.h: New file.
78555         * lib/gl_array_list.c: New file.
78556         * lib/gl_carray_list.h: New file.
78557         * lib/gl_carray_list.c: New file.
78558         * lib/gl_linked_list.h: New file.
78559         * lib/gl_linked_list.c: New file.
78560         * lib/gl_anylinked_list1.h: New file.
78561         * lib/gl_anylinked_list2.h: New file.
78562         * lib/gl_avltree_list.h: New file.
78563         * lib/gl_avltree_list.c: New file.
78564         * lib/gl_anyavltree_list1.h: New file.
78565         * lib/gl_anyavltree_list2.h: New file.
78566         * lib/gl_rbtree_list.h: New file.
78567         * lib/gl_rbtree_list.c: New file.
78568         * lib/gl_anyrbtree_list1.h: New file.
78569         * lib/gl_anyrbtree_list2.h: New file.
78570         * lib/gl_anytree_list1.h: New file.
78571         * lib/gl_anytree_list2.h: New file.
78572         * lib/gl_linkedhash_list.h: New file.
78573         * lib/gl_linkedhash_list.c: New file.
78574         * lib/gl_anyhash_list1.h: New file.
78575         * lib/gl_anyhash_list2.h: New file.
78576         * lib/gl_avltreehash_list.h: New file.
78577         * lib/gl_avltreehash_list.c: New file.
78578         * lib/gl_rbtreehash_list.h: New file.
78579         * lib/gl_rbtreehash_list.c: New file.
78580         * lib/gl_anytreehash_list1.h: New file.
78581         * lib/gl_anytreehash_list2.h: New file.
78582
78583         * lib/gl_oset.h: New file.
78584         * lib/gl_oset.c: New file.
78585         * lib/gl_array_oset.h: New file.
78586         * lib/gl_array_oset.c: New file.
78587         * lib/gl_avltree_oset.h: New file.
78588         * lib/gl_avltree_oset.c: New file.
78589         * lib/gl_rbtree_oset.h: New file.
78590         * lib/gl_rbtree_oset.c: New file.
78591         * lib/gl_anytree_oset.h: New file.
78592
78593 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * m4/mkancesdirs.m4: New file.
78596         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78597         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78598         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78599         it.
78600
78601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78604         * lib/mkancesdirs.h: New files.
78605         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78606         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78607         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78608         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78609         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78610         callers changed.  Revamp internals significantly, by not
78611         attempting to create directories that are temporarily more
78612         permissive than the final results.  Do not attempt to use
78613         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78614         This removes some race conditions, fixes some bugs, and simplifies
78615         things.  Use new dirchownmod function to do owner and mode changes.
78616         * lib/mkdir-p.h: Likewise.
78617         * lib/modechange.c (octal_to_mode): New function.
78618         (struct mode_change): New member mentioned.
78619         (make_node_op_equals): New arg mentioned.  All callers changed.
78620         (mode_compile): Keep track of which mode bits the user has explicitly
78621         mentioned.
78622         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78623         New arg PMODE_BITS, to keep track of which mode bits the user
78624         mentioned; it treats S_ISUID and S_ISGID speciall.
78625         All callers changed.
78626         * lib/modechange.h: Likewise.
78627
78628 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * MODULES.html.sh: Add mkancestors.
78631         * modules/mkancesdirs: New module.
78632         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78633         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78634         The chdir-safer and afs files are now orphans; I'll remove them
78635         unless someone speaks up.
78636         Add lib/dirchownmod.c, lib/dirchownmod.h.
78637         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78638         Add lchown, mkancesdirs.
78639         (Maintainer): Add self.
78640
78641 2006-07-15  Karl Berry  <karl@gnu.org>
78642
78643         * gnulib-tool: help message wording/arrangement.
78644
78645 2006-07-14  Simon Josefsson  <jas@extundo.com>
78646
78647         * doc/gnulib.texi (Libtool and Windows): New section.
78648
78649 2006-07-12  Simon Josefsson  <jas@extundo.com>
78650
78651         * modules/gendocs (License): Fix license, approved by Karl.
78652
78653 2006-07-12  Eric Blake  <ebb9@byu.net>
78654
78655         * MODULES.html.sh: Add gendocs.
78656
78657 2006-07-11  Eric Blake  <ebb9@byu.net>
78658
78659         * modules/fdl: New module, to install doc/fdl.texi.
78660         * MODULES.html.sh: Add new section for documentation modules.
78661         * gnulib-tool: Avoid space-tab.
78662         (--doc-base): New option, to manage files from doc.
78663
78664 2006-07-11  Eric Blake  <ebb9@byu.net>
78665
78666         * m4/absolute-header.m4: Fix comments to match recent change.
78667
78668 2006-07-11  Eric Blake  <ebb9@byu.net>
78669
78670         * gnulib-tool: List --doc-base before --tests-base.
78671
78672 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78673
78674         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78675
78676 2006-07-11  Bruno Haible  <bruno@clisp.org>
78677
78678         * README: Mention where to put documentation.
78679
78680 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78681
78682         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78683
78684 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78687         to stdint.m4.
78688
78689 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78692         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78693         "no/such/file/stdint.h" when there is no such file, so that
78694         the resulting C code can be parsed by dodgy compilers.
78695         Problems reported by Bob Proulx.
78696
78697 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78698
78699         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78700         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78701         macros into the GNU _D_EXACT_NAMLEN.
78702         * lib/savedir.c:  Likewise.
78703         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78704
78705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78706         and Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78709         * m4/savedir.m4:
78710         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78711         macros into the GNU _D_EXACT_NAMLEN.
78712
78713 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78716         around the absolute name, to work around a problem with the HP-UX
78717         11.23 native C compiler, reported by Bob Proulx.
78718
78719 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * doc/maintain.texi, make-stds.texi: Sync from
78722         <http://savannah.gnu.org/projects/gnustandards>.
78723
78724 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78727
78728 2006-07-09  Jim Meyering  <jim@meyering.net>
78729
78730         * m4/glob.m4: Remove a doubled word in a comment.
78731
78732 2006-07-09  Jim Meyering  <jim@meyering.net>
78733
78734         * lib/argp-pv.c: Remove a doubled word in a comment.
78735         * lib/check-version.c (check_version): Likewise.
78736         * lib/javacomp.c (compile_java_class): Likewise.
78737
78738 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78741         for the benefit of people using Autoconf 2.60.  If you want to
78742         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78743         (or m4/onceonly.m4, if pre-2.57) manually.
78744
78745 2006-07-08  Jim Meyering  <jim@meyering.net>
78746
78747         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78748         comment.
78749         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78750         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78751         comment.
78752
78753 2006-07-08  Jim Meyering  <jim@meyering.net>
78754
78755         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78756
78757 2006-07-07  Simon Josefsson  <jas@extundo.com>
78758
78759         * tests/test-crc.c: Change expected crc value, the test vector
78760         were probably computed using the old broken crc.c?
78761
78762 2006-07-06  Simon Josefsson  <jas@extundo.com>
78763
78764         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78765         now the canonical place for the M4 file).
78766
78767         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78768         from the sys_socket dependency now.
78769
78770         * modules/inet_pton (Files): Ditto.
78771
78772         * modules/inet_ntop (Files): Ditto.
78773
78774 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78775
78776         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78777         not gl_PREREQ_GETUSERSHELL.
78778
78779 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78780
78781         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78782         with only one argument, for Autoconf 2.60.
78783         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78784         expand to nothing, so add a shell command to avoid syntax error.
78785         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78786
78787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78788
78789         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78790
78791 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78794         no longer needed.  Check for isblank decl.
78795         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78796         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78797         of existence.
78798
78799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * lib/getloadavg.c: Use __VMS, not VMS.
78802         * lib/getopt.c: Likewise.
78803         * lib/getpagesize.h: Likewise.
78804         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78805         and probably does not work.
78806
78807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78808
78809         * lib/.cppi-disable: Add wcwidth.
78810         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78811         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78812         (ISGRAPH): Remove.  All uses changed to isgraph.
78813         (FOLD) [!defined _LIBC]: Remove special case.
78814         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78815         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78816         HAVE_ISBLANK.
78817         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78818         case.
78819
78820 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78821
78822         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78823         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78824         brackets.  Other minor changes to suppress some compiler
78825         warnings.
78826
78827 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78828         and Paul Eggert  <eggert@cs.ucla.edu>
78829
78830         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78831         of invoking obsolescent AC_HEADER_DIRENT macro.
78832         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78833         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78836         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78837         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78838         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78839         * m4/readdir.m4: Remove; no longer needed.
78840
78841 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78842         and Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78845         Don't worry about this obsolete case any more.
78846         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78847         directories.
78848         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78849         worry about this obsolete case any more.
78850         * lib/fts.c: Likewise.
78851         * lib/getcwd.c: Likewise.
78852         * lib/glob.h: Likewise.
78853         * lib/savedir.c: Likewise.
78854
78855 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78858         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78859         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78860         needed.
78861         All uses removed.
78862         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78863         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78864         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78865         needed.
78866         * m4/getdate.m4 (gl_GETDATE): Likewise.
78867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78868         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78869         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78872         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78873         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78874         needed.
78875
78876 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78877
78878         * lib/memcasecmp.c: Include <limits.h>.
78879         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78880         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78881         Don't assume isdigit succeeds only on '0' through '9'.
78882
78883 2006-07-05  Eric Blake  <ebb9@byu.net>
78884
78885         * modules/getaddrinfo (Depends-on): Add snprintf.
78886
78887 2006-07-05  Eric Blake  <ebb9@byu.net>
78888
78889         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78890         to avoid 'header present but could not be compiled' on cygwin.
78891
78892 2006-07-05  Eric Blake  <ebb9@byu.net>
78893
78894         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78895         missing from netdb.h.
78896         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78897
78898 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78899
78900         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78901         no longer needed.
78902         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78903         * m4/getdate.m4 (gl_GETDATE): Likewise.
78904         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78905         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78906         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78907         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78908         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78909
78910 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78911
78912         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78913         All uses of is_space replaced by isspace.
78914         * lib/exit.h: Don't talk about STDC_HEADERS.
78915         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78916         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78917         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78918         replaced by isprint etc.
78919         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78920         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78921         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78922         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78923         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78924         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78925
78926 2006-07-05  Bruno Haible  <bruno@clisp.org>
78927
78928         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78929         the function exists, before testing against AIX.
78930         Reported by Martin Lambers <marlam@marlam.de>.
78931
78932 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78935         From Mark D. Baushke.
78936
78937 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78940         to the absolute name, not just one, to bypass Sun C 5.8's
78941         "warning: #include of /usr/include/... may be non-portable".
78942
78943 2006-07-04  Eric Blake  <ebb9@byu.net>
78944
78945         * modules/dirname-tests: New test module.
78946         * tests/test-dirname.c: New file, replacing dirname.c
78947         TEST_DIRNAME section that was recently deleted.
78948
78949 2006-07-04  Bruno Haible  <bruno@clisp.org>
78950
78951         Assume ANSI C header files and <ctype.h> functions.
78952         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78953         (mbsnwidth): Use isprint, iscntrl instead.
78954
78955 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         Merge from coreutils.
78958         * MODULES.html.sh: Add xstrtold.
78959         * modules/xstrtold: New file.
78960         * modules/cycle-check (Files): Add lib/same-inode.h.
78961         * modules/dirname (Files): Add m4/double-slash-root.m4.
78962         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78963         * modules/mkdir-p (Files): Add lib/same-inode.h.
78964         * modules/same (Files): Add lib/same-inode.h.
78965
78966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78969         This is to keep the terminology clean; POSIX talks about
78970         "absolute pathnames", not "full pathnames", but the GNU
78971         Coding Standards say to use "path" for something else;
78972         so use "absolute" to keep both sides happy.
78973         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78974         Set gl_absolute_header, not gl_full_header_path.
78975         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78976         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78977         All uses changed.
78978
78979         Merge from coreutils.
78980
78981         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78984         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78985         want to require the building of c-strtod.o.
78986         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78987         needs -lm directly.
78988         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78989
78990         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78993         --as-needed option if available.  Problem reported by Albert Chin in
78994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78995         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78996         cc merely issues a bunch of annoying warnings for --as-needed
78997         (this problem was reported by Bob Proulx).  Also, try linking with
78998         -lm to detect a bug in binutils 2.16 (this problem was reported
78999         by Ralf Wildenhues).
79000
79001         2006-06-18  Jim Meyering  <jim@meyering.net>
79002
79003         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79004         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79005         macro.
79006         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79007         also check for glibc-2.4's abort-inducing bug.
79008
79009         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79010         Low-probability clean-up should be to use rmdir to get rid of
79011         the just-created directory, not unlink.
79012
79013         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79014         configure fail, and request a bug report to inform us about it.
79015         Add a comment that, barring reports to the contrary, in 2007 we'll
79016         assume ftruncate is universally available.
79017
79018         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79021
79022         2006-03-12  Jim Meyering  <jim@meyering.net>
79023
79024         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79025         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79026         * m4/same.m4 (gl_SAME): Likewise.
79027         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79028
79029         2006-03-11  Eric Blake  <ebb9@byu.net>
79030
79031         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79032         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79033         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79034         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79035
79036 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79039         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79040         reported by Mark D. Baushke, one in
79041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79042
79043         Merge from coreutils.
79044
79045         * lib/.cppi-disable: Add stdint_.h.
79046         * lib/.cvsignore: Add stdint.h.
79047
79048         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79051         both double and long double versions.
79052         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79053         * lib/xstrtold.c: New file.
79054         * lib/xstrtod.h (xstrtold): New decl.
79055
79056         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/filemode.c (setst): Remove.
79059         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79060         (arguably) clearer, and the generated code is a bit smaller on my
79061         Debian GNU/Linux stable x86 host.
79062
79063         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79064
79065         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79066         Assume that filemode.h includes sys/types.h and sys/stat.h.
79067         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79068         (ftypelet): Reorder to put common cases first, for efficiency.
79069         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79070         to do 'M'.
79071         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79072         of 10, for compatibility with FreeBSD.  All callers changed.
79073         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79074         types that can't be deduced solely from st_mode.  First arg is now a
79075         const pointer.
79076         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79077         (strmode): Renamed from mode_string.
79078         (filemodestring): New decl.
79079         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79080         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79081         needed.
79082         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79083
79084         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79087         fsusage.h now does that.  Include fsusage.h first, to test interface.
79088         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79089         at most one method (the old code could have generated decls that
79090         didn't conform to C89, not that this was ever exercised).
79091         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79092
79093         2006-03-19  Jim Meyering  <jim@meyering.net>
79094
79095         Work even in a chroot where d_ino values for entries in "/"
79096         don't match the stat.st_ino values for the same names.
79097         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79098         number, iterate through all entries again, using lstat instead.
79099         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79100         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79101
79102         * lib/getcwd.c (__getcwd): Clarify a comment.
79103         Use memcpy in place of a call to strcpy.
79104
79105         2006-03-12  Jim Meyering  <jim@meyering.net>
79106
79107         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79108         matches that of the current directory (which we're about to chdir ".."
79109         out of), then save the dev-ino of the parent, instead.
79110
79111         * lib/same-inode.h (SAME_INODE): New file/macro.
79112         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79113         Include "same-inode.h", instead.
79114         * lib/same.c: Likewise.
79115         * lib/cycle-check.h: Include "same-inode.h".
79116         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79117         * lib/cycle-check.c (SAME_INODE): Remove definition.
79118         * lib/root-dev-ino.h: Include "same-inode.h".
79119
79120         2006-03-11  Eric Blake  <ebb9@byu.net>
79121
79122         * lib/same.c (same_name): s/base_name/last_component/
79123         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79124         * lib/filenamecat.c (file_name_concat): Likewise.
79125
79126         2006-03-11  Eric Blake  <ebb9@byu.net>,
79127                     Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79130         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79131         drive prefix.
79132         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79133         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79134         (last_component): New method.
79135         * lib/dirname.c (dir_len): Determine when drive letters need a
79136         subsequent slash.  Preserve // when it is special.
79137         (dir_name): Don't append dot when drive letter is absolute.
79138         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79139         * lib/basename.c (base_name): New semantics - malloc the result.
79140         Preserve // when it is special.  Preserve relative files that look
79141         like drive letters.
79142         (base_len): Preserve // when it is special.
79143         (last_component): New method, similar to old base_name semantics.
79144         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79145         base_name.  Strip redundant slashes from ///.
79146
79147 2006-07-03  Jim Meyering  <jim@meyering.net>
79148
79149         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79150         macro is used before the first cycle_check call.
79151
79152 2006-07-03  Eric Blake  <ebb9@byu.net>
79153
79154         * modules/dirname (Depends-on): Add xstrndup.
79155
79156 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79159         test cases, so that config.log is a bit easier to follow.
79160
79161 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79162
79163         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79164         both are 64 bits, since this seems to be the tradition, and this
79165         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79166         we ever run into a host that prefers long long to long in this
79167         case, we'll need another configure-time test.  Problem reported by
79168         Jim Meyering.
79169
79170 2006-07-02  Eric Blake  <ebb9@byu.net>
79171
79172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79173
79174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * modules/inttypes (Depends-on): No longer depends on stdint.
79177         * modules/stdint (Description): Say more about assumptions.
79178         Say that the fast types might differ.  Say macros are used.
79179         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79180         (Makefile.am): Revise list of substituted symbols to match
79181         new stdint.m4.
79182         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79183         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79184         * tests/test-stdint.c (verify_same_types)
79185         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79186         the code conforms to C99/C89.
79187         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79188         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79189
79190 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79193         but fix a bug, by requiring at least 64 bits.
79194         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79195         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79196         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79197         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79198
79199         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79200         changes.  Make 2.59 a prerequisite.  Check and substitute for
79201         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79202         inttypes.h.  Do not use special include files; just use the
79203         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79204         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79205         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79206         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79207         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79208         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79209         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79210         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79211         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79212         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79213         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79214         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79215         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79216         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79217         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79218         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79219         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79220         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79221         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79222         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79223         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79224         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79225         not check for things that C99 does not require, e.g., int8_t.  If
79226         a test isn't needed unless <stdint.h> isn't working, and is
79227         unlikely to be needed for any other reason, then don't do it
79228         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79229         size_t, since we assume C89 freestanding at least.  Do not check
79230         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79231         the right thing even if the types are not defined.  Instead use:
79232         (gl_STDINT_TYPE_PROPERTIES): New macro.
79233         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79234         testing whether <sys/types.h> clashes, as Autoconf does this for
79235         us now.  All uses removed.
79236         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79237         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79238         (gl_CHECK_TYPE_SAME):
79239         Remove; no longer needed.
79240         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79241         exists, since we'll return 0 anyway in that case.
79242         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79243
79244 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79247         possible collision with system files.
79248         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79249         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79250         WCHAR_MIN and WCHAR_MAX in this case.
79251         (<stddef.h>): Do not include; no longer needed.
79252         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79253         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79254         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79255         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79256         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79257         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79258         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79259         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79260         !defined(__c99))]: Include in this case too, since it's harmless
79261         now.
79262         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79263         dangerous to do so.
79264         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79265         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79266         (_STDINT_MIN, _STDINT_MAX): New macros.
79267         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79268         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79269         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79270         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79271         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79272         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79273         macros, not typedefs; this simplifies things quite a bit.
79274         Use long int for all types narrower than int64_t.
79275         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79276         Define in terms of long long int or int64_t or long int,
79277         not int64_t or int32_t.  This saves some compile-time testing.
79278         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79279         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79280         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79281         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79282         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79283         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79284         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79285         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79286         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79287         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79288         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79289         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79290         undef any previous version and define our own version, for
79291         simplicity and consistency with the new macros for types.
79292         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79293         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79294         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79295         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79296         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79297         @WINT_T_SUFFIX@ to keep things simple here.
79298         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79299         Simplify by assuming typical 8/16/32/64 host, since we're
79300         already doing that elsewhere anyway.
79301         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79302         and assume long long int is 64 bits if available.  This
79303         speeds up 'configure'.
79304
79305 2006-07-01  Eric Blake  <ebb9@byu.net>
79306
79307         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79308         Reported by Andreas Buening.
79309
79310 2006-07-01  Eric Blake  <ebb9@byu.net>
79311
79312         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79313
79314 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79315
79316         * lib/getaddrinfo.c: fixed typo
79317
79318 2006-06-29  Jim Meyering  <jim@meyering.net>
79319
79320         * modules/strftime (Maintainer): Add my name, since with the
79321         FPRINTFTIME changes strftime.c has forked from glibc.
79322
79323 2006-06-29  Eric Blake  <ebb9@byu.net>
79324
79325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79326
79327 2006-06-29  Eric Blake  <ebb9@byu.net>
79328
79329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79330
79331 2006-06-29  Eric Blake  <ebb9@byu.net>
79332
79333         * lib/stat_.h: New file.
79334
79335 2006-06-29  Eric Blake  <ebb9@byu.net>
79336
79337         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79338         unused static function.
79339
79340 2006-06-29  Eric Blake  <ebb9@byu.net>
79341
79342         * doc/functions.texi (Function Portability): Document missing lstat
79343         on mingw.
79344
79345 2006-06-29  Eric Blake  <ebb9@byu.net>
79346
79347         * MODULES.html.sh: Add sys_stat.
79348         * modules/sys_stat: New module.
79349         * modules/mkstemp (Depends-on): Add sys_stat.
79350
79351 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79352
79353         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79354
79355 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79356
79357         * m4/c-bs-a.m4: Removed.
79358
79359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79360
79361         * lib/strftime.c: Assume strftime() exists.
79362
79363 2006-06-29  Derek Price  <derek@ximbiot.com>
79364
79365         * modules/c-bs-a: Removed - \a is C89.
79366         * MODULES.html.sh: Remove c-bs-a.
79367
79368 2006-06-29  Bruno Haible  <bruno@clisp.org>
79369
79370         * modules/wcwidth (License): Change to LGPL.
79371
79372 2006-06-28  Simon Josefsson  <jas@extundo.com>
79373
79374         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79375         on _WIN32.
79376
79377         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79378         getnameinfo.
79379
79380 2006-06-28  Simon Josefsson  <jas@extundo.com>
79381
79382         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79383
79384 2006-06-28  Simon Josefsson  <jas@extundo.com>
79385
79386         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79387         functions there.  It will succeed on Windows XP, but on Windows
79388         2000 and (presumably) earlier, it will fail, and use the internal
79389         re-implementation.
79390         (use_win32_p): New function.
79391         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79392         Support AI_NUMERICSERV to disable getservbyname.
79393         (getnameinfo): New function, only supports
79394         NI_NUMERICHOST|NI_NUMERICSERV for now.
79395
79396         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79397         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79398         getnameinfo.
79399
79400 2006-06-28  Eric Blake  <ebb9@byu.net>
79401
79402         * modules/wcwidth: New file.
79403         * modules/mbchar (Depends-on): Add wcwidth.
79404         * modules/mbswidth (Depends-on): Add wcwidth.
79405         * MODULES.html.sh: Add wcwidth.
79406
79407 2006-06-28  Eric Blake  <ebb9@byu.net>
79408
79409         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79411
79412 2006-06-28  Eric Blake  <ebb9@byu.net>
79413
79414         * lib/xvasprintf.h: Fix comments.
79415
79416 2006-06-28  Eric Blake  <ebb9@byu.net>
79417
79418         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79419         * lib/mbswidth.c (wcwidth): Move from here...
79420         * lib/wcwidth.h: ...to this new file.
79421
79422 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79423
79424         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79425
79426         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79427         it's obsolete.
79428         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79429
79430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79431
79432         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79433         Autoconf 2.60 says this stuff was obsolete.
79434
79435 2006-06-28  Bruno Haible  <bruno@clisp.org>
79436
79437         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79438
79439 2006-06-28  Bruno Haible  <bruno@clisp.org>
79440
79441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79442         gt_TYPE_WCHAR_T.
79443
79444 2006-06-28  Bruno Haible  <bruno@clisp.org>
79445
79446         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79447         declaration for wcwidth.
79448         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79449
79450 2006-06-28  Bruno Haible  <bruno@clisp.org>
79451
79452         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79453         (mkdir): Define using _mkdir.
79454
79455 2006-06-28  Bruno Haible  <bruno@clisp.org>
79456
79457         * lib/getaddrinfo.h: Fix POSIX URL.
79458         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79459         _WIN32.
79460         (use_win32_p): Make static.
79461         (getaddrinfo): Reject service name if it is empty or does not consist
79462         solely of decimal digits, or if its value is > 65535.
79463         (getnameinfo): Remove useless casts.
79464
79465 2006-06-27  Simon Josefsson  <jas@extundo.com>
79466
79467         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79468         Eggert and Martin Lambers.
79469
79470 2006-06-27  Simon Josefsson  <jas@extundo.com>
79471
79472         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79473         Eggert and Martin Lambers.
79474
79475 2006-06-27  Bruno Haible  <bruno@clisp.org>
79476
79477         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79478         result to 0, not to empty.
79479         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79480
79481 2006-06-27  Bruno Haible  <bruno@clisp.org>
79482
79483         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79484
79485 2006-06-26  Simon Josefsson  <jas@extundo.com>
79486
79487         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79488         present.
79489
79490 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79493         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79494         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79495
79496 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79497
79498         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79499
79500 2006-06-26  Bruno Haible  <bruno@clisp.org>
79501
79502         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79503
79504 2006-06-26  Bruno Haible  <bruno@clisp.org>
79505
79506         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79507
79508 2006-06-26  Bruno Haible  <bruno@clisp.org>
79509
79510         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79511         SGI C compiler in pre-C99 mode.
79512         Suggested by Mark D. Baushke and Larry Jones.
79513
79514 2006-06-26  Bruno Haible  <bruno@clisp.org>
79515
79516         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79517         WCHAR_MAX.
79518         Reported by Mark D. Baushke and Larry Jones.
79519
79520 2006-06-26  Bruno Haible  <bruno@clisp.org>
79521
79522         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79523         in pre-C99 mode.
79524         Suggested by Mark D. Baushke and Larry Jones.
79525
79526 2006-06-23  Simon Josefsson  <jas@extundo.com>
79527             Bruno Haible  <bruno@clisp.org>
79528
79529         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79530         Emit mostlyclean-local rule.
79531         (func_emit_tests_Makefile_am): Likewise.
79532         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79533
79534 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79535
79536         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79537
79538 2006-06-23  Bruno Haible  <bruno@clisp.org>
79539
79540         * tests/test-stdint.c: Update to match ISO C 99 Technical
79541         Corrigendum 1.
79542
79543 2006-06-23  Bruno Haible  <bruno@clisp.org>
79544
79545         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79546
79547 2006-06-23  Bruno Haible  <bruno@clisp.org>
79548
79549         * lib/stdint_.h: Treat IRIX like OpenBSD.
79550
79551 2006-06-23  Bruno Haible  <bruno@clisp.org>
79552
79553         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79554         ISO C 99 Technical Corrigendum 1.
79555
79556 2006-06-22  Simon Josefsson  <jas@extundo.com>
79557
79558         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79559         MinGW.
79560
79561 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79564         needed.  Some compiler complained about some of them.  Problem reported
79565         by Larry Jones in
79566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79567
79568 2006-06-21  Simon Josefsson  <jas@extundo.com>
79569
79570         * tests/test-getaddrinfo.c: New file.
79571
79572         * modules/getaddrinfo-tests: New file.
79573
79574         * MODULES.html.sh: Add inet_pton.
79575
79576         * modules/inet_pton: New file.
79577
79578 2006-06-21  Simon Josefsson  <jas@extundo.com>
79579
79580         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79581         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79582         of using the (limited) gnulib implementation on Windows XP.
79583
79584         * m4/inet_pton.m4: New file.
79585
79586 2006-06-21  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79589         variable.
79590
79591         * lib/socket_.h: Don't define WINVER.
79592
79593         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79594         slightly modified to work in gnulib.
79595
79596 2006-06-21  Simon Josefsson  <jas@extundo.com>
79597
79598         * doc/gnulib.texi (Windows sockets): Add.
79599
79600 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * lib/read-file.c (fread_file): Start with buffer allocation of
79603         0 bytes rather than 1 byte; this simplifies the code.
79604         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79605         code to free buffer and save/restore errno.
79606         (internal_read_file): Remove unused local.
79607
79608 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79611         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79612         Problem reported by Denis Excoffier in
79613         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79614
79615 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79616
79617         * modules/sys_socket, modules/socklen: Include sys/types since
79618         FreeBSD 4.x's sys/socket.h needs it.
79619
79620 2006-06-19  Simon Josefsson  <jas@extundo.com>
79621
79622         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79623
79624 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79627
79628 2006-06-19  Bruno Haible  <bruno@clisp.org>
79629
79630         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79631         and FULL_PATH_INTTYPES_H in angle brackets.
79632         Reported by Mark D. Baushke <mdb@gnu.org>.
79633
79634 2006-06-17  Eric Blake  <ebb9@byu.net>
79635
79636         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79637         errno.
79638
79639 2006-06-17  Bruno Haible  <bruno@clisp.org>
79640
79641         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79642         <sys/inttypes.h>.
79643
79644 2006-06-17  Bruno Haible  <bruno@clisp.org>
79645
79646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79647         whether errno is declared. Assume <errno.h> declares errno.
79648
79649 2006-06-17  Bruno Haible  <bruno@clisp.org>
79650
79651         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79652
79653 2006-06-17  Bruno Haible  <bruno@clisp.org>
79654
79655         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79656         problem on Solaris 2.5.1.
79657
79658 2006-06-16  Eric Blake  <ebb9@byu.net>
79659
79660         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79661         * lib/unicodeio.c [!defined errno]: Likewise.
79662         * lib/strtol.c [!defined errno]: Likewise.
79663         * lib/strtod.c [!defined errno]: Likewise.
79664
79665 2006-06-15  Eric Blake  <ebb9@byu.net>
79666
79667         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79668
79669 2006-06-15  Eric Blake  <ebb9@byu.net>
79670
79671         * config/srclist.txt (ssize_t.m4): Lose sync.
79672
79673 2006-06-15  Bruno Haible  <bruno@clisp.org>
79674
79675         * modules/stdint (Files): Include m4/full-header-path.m4,
79676         m4/size_max.m4, m4/wchar_t.m4.
79677         (Makefile.am): Many more substitutions.
79678         * modules/stdint-tests: New file.
79679         * tests/test-stdint.c: New file.
79680
79681 2006-06-15  Bruno Haible  <bruno@clisp.org>
79682
79683         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79684         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79685         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79686         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79687         gl_CHECK_TYPE_SAME): New macros.
79688
79689 2006-06-15  Bruno Haible  <bruno@clisp.org>
79690
79691         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79692
79693 2006-06-15  Bruno Haible  <bruno@clisp.org>
79694
79695         * lib/stdint_.h: Rewritten to be fully auto-configured.
79696         Fixes bug on HP-UX/IA64.
79697
79698 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         * lib/getdate.y (__attribute__): Don't define if already defined.
79701         Problem reported by Larry Jones.
79702         * lib/utimens.c (__attribute__): Likewise.
79703
79704 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79707         reported by Andreas Schwab.
79708
79709 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79710             Bruno Haible  <bruno@clisp.org>
79711
79712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79713         check for the declaration of strnlen and a run test that exposes the
79714         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79715         rpl_strndup.
79716
79717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79718             Bruno Haible  <bruno@clisp.org>
79719
79720         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79721
79722 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79723
79724         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79725         compile test, for Tru64 4.0D.
79726
79727 2006-05-28  Karl Berry  <karl@gnu.org>
79728
79729         * config/srclist.txt (printf-args.c): lose sync.
79730
79731 2006-05-26  Martin Lambers  <marlam@marlam.de>
79732
79733         * lib/getpass.c: Updates the test for the native W32 API, and adds
79734         missing includes, thus fixing compilation warnings.
79735
79736 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79737
79738         * lib/exclude.c (exclude_fnmatch): New function.
79739         (excluded_file_name): Call exclude_fnmatch.
79740         * lib/exclude.h (excluded_file_name): New prototype
79741
79742 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79743
79744         * lib/tempname.c (small_open, large_open): New macros.
79745         (__open, __open64) [!_LIBC]: Remove.
79746         (__gen_tempname): Use small_open and large_open instead of __open
79747         and __open64.  This fixes a portability bug on HP-UX 11.11i
79748         reported by Simon Wing-Tang in
79749         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79750
79751 2006-05-24  Bruno Haible  <bruno@clisp.org>
79752
79753         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79754         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79755         Reported by Thorsten Maerz <torte@netztorte.de> via
79756         Aaron Stone <aaron@serendipity.cx>.
79757
79758 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79759
79760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79761         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79762         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79763         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79764         not really conditional on the cache.
79765         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79766
79767 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79770         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79771         (my_usleep): Don't mishandle maximum value.
79772
79773 2006-05-19  Jim Meyering  <jim@meyering.net>
79774
79775         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79776
79777 2006-05-17  Bruno Haible  <bruno@clisp.org>
79778
79779         Cygwin portability.
79780         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79781
79782 2006-05-17  Bruno Haible  <bruno@clisp.org>
79783
79784         * lib/stdint_.h: Fix recognition of Cygwin.
79785
79786 2006-05-15  Bruno Haible  <bruno@clisp.org>
79787
79788         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79789         on libtool patch by Ralf Wildenhues.
79790
79791 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79794         test for C99 conformance; (bool) 0.5 is an integer constant
79795         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79796         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79797
79798 2006-05-11  Simon Josefsson  <jas@extundo.com>
79799
79800         * m4/xvasprintf.m4: Fix obvious typo.
79801
79802 2006-05-11  Jim Meyering  <jim@meyering.net>
79803
79804         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79805         James Lemley.
79806
79807 2006-05-10  Simon Josefsson  <jas@extundo.com>
79808
79809         * lib/md4.c: Typo fix, update copyright years.
79810         (K1, K2): Don't use L because it turn computations into 64-bit on
79811         64-bit platforms.
79812
79813 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79816         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79817         unwanted sign propagation, e.g., on hosts with 64-bit int.
79818         There still are some problems with reeelly weird theoretical hosts
79819         (e.g., 33-bit int) but it's not worth worrying about now.
79820         * lib/sha1.c (rol): Likewise.
79821         (K1, K2, K3, K4): Remove unnecessary L suffix.
79822
79823 2006-05-10  Bruno Haible  <bruno@clisp.org>
79824
79825         * lib/des.c: Cast to avoid warnings.
79826
79827 2006-05-09  Bruno Haible  <bruno@clisp.org>
79828
79829         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79830         (Depends-on): Depend also on xsize, stdarg.
79831         (configure.ac): Add gl_XVASPRINTF.
79832
79833 2006-05-09  Bruno Haible  <bruno@clisp.org>
79834
79835         * m4/xvasprintf.m4: New file.
79836
79837 2006-05-09  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79840         (EOVERFLOW): Define fallback value.
79841         (xstrcat): New function.
79842         (xvasprintf): Recognize the special case of a string concatenation.
79843
79844 2006-05-08  Eric Blake  <ebb9@byu.net>
79845
79846         * gnulib-tool (func_version): Base copyright year on CVS date.
79847         (func_emit_copyright_notice): New function.
79848         (func_emit_lib_Makefile_am): Use it.
79849         (func_emit_tests_Makefile_am): Likewise.
79850         (func_import): Likewise.
79851
79852 2006-05-08  Bruno Haible  <bruno@clisp.org>
79853
79854         * modules/stdarg: New file.
79855         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79856
79857 2006-05-08  Bruno Haible  <bruno@clisp.org>
79858
79859         * m4/stdarg.m4: New file, from GNU gettext.
79860
79861 2006-05-08  Bruno Haible  <bruno@clisp.org>
79862
79863         * config/srclist.txt (build-aux/config.rpath): different from latest
79864         release.
79865
79866 2006-05-08  Bruno Haible  <bruno@clisp.org>
79867
79868         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79869
79870 2006-05-05  Jim Meyering  <jim@meyering.net>
79871
79872         * m4/warning.m4: New file, derived from bison's file by the same name.
79873
79874 2006-05-03  Bruno Haible  <bruno@clisp.org>
79875
79876         * lib/stdint_.h: Shorter URL.
79877         * lib/inttypes.h: Likewise.
79878
79879 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79882
79883 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * lib/verify.h: Document the internals better.  Most of this change
79886         was written by Bruno Haible.
79887
79888 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * doc/verify.texi: New file, partly based on a proposal by
79891         Bruno Haible.
79892
79893 2006-05-02  Bruno Haible  <bruno@clisp.org>
79894
79895         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79896         test from here...
79897         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79898
79899 2006-04-29  Bruno Haible  <bruno@clisp.org>
79900
79901         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79902         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79903
79904 2006-04-29  Bruno Haible  <bruno@clisp.org>
79905
79906         * gnulib-tool: Make --update option actually work.
79907
79908 2006-04-29  Bruno Haible  <bruno@clisp.org>
79909
79910         * doc/gcd.texi: New file.
79911         * doc/gnulib.texi: Include it.
79912
79913 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         * lib/getdate.y (get_date): When adding relative date, start with the
79916         initial time, not with the result of the first mktime call.
79917
79918 2006-04-25  Bruno Haible  <bruno@clisp.org>
79919
79920         * gnulib-tool (func_import): Output the include directives in three
79921         blocks, sorted separately.
79922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79923
79924 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79925
79926         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79927         to define main with arguments, for C++.  Reported by Eric Blake.
79928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79929         Prefer 'int main ()' to 'int main (void)', for C++.
79930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79932         for 'main', for C99 and C++.
79933
79934 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79937         Don't assume that exit status -1 is valid.
79938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79940         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79941         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79942         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79943         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79944         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79945         functions can be used without declaring them, or that you can
79946         exit with status -1.
79947         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79948
79949 2006-04-24  Karl Berry  <karl@gnu.org>
79950
79951         * config/srclist.txt (longdouble.m4): sync lost.
79952
79953 2006-04-24  Eric Blake  <ebb9@byu.net>
79954
79955         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79956
79957 2006-04-24  Bruno Haible  <bruno@clisp.org>
79958
79959         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79960         poll() implementation in AIX.
79961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79962
79963 2006-04-24  Bruno Haible  <bruno@clisp.org>
79964
79965         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79966         assigned exactly once.
79967
79968 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79969             Bruno Haible  <bruno@clisp.org>
79970
79971         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79972         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79973         for AM_CPPFLAGS.
79974
79975 2006-04-23  Bruno Haible  <bruno@clisp.org>
79976
79977         * modules/copy-file: Depend on unistd.
79978         * modules/execute: Likewise.
79979         * modules/fatal-signal: Likewise.
79980         * modules/findprog: Likewise.
79981         * modules/mkdtemp : Likewise.
79982         * modules/pipe: Likewise.
79983         * modules/wait-process: Likewise.
79984
79985 2006-04-23  Bruno Haible  <bruno@clisp.org>
79986
79987         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79988         condition was already detected.
79989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79990
79991 2006-04-23  Bruno Haible  <bruno@clisp.org>
79992
79993         * lib/copy-file.c: Include <unistd.h> unconditionally.
79994         * lib/execute.c: Likewise.
79995         * lib/fatal-signal.c: Likewise.
79996         * lib/findprog.c: Likewise.
79997         * lib/mkdtemp.c: Likewise.
79998         * lib/pipe.h: Likewise.
79999         * lib/pipe.c: Likewise.
80000         * lib/wait-process.h: Likewise.
80001
80002 2006-04-23  Bruno Haible  <bruno@clisp.org>
80003
80004         * gnulib-tool (func_usage): Fix --import description. Document
80005         --update.
80006         (func_import): Create temporary file in a temporary directory, if
80007         --dry-run is specified. Silence errors from 'grep' when there are no
80008         m4 files in $m4dir.
80009         (func_create_testdir): Silence errors from 'grep' when there are no
80010         m4 files in $m4dir.
80011         Reported by Karl Berry <karl@freefriends.org>.
80012
80013 2006-04-20  Bruno Haible  <bruno@clisp.org>
80014
80015         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80016         one argument, so that the code will be portable to Autoconf 2.60.
80017         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80019         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80020
80021 2006-04-19  Derek Price  <derek@ximbiot.com>
80022             Eric Blake  <ebb9@byu.net>
80023
80024         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80025         rather than "/full/path.h".  Update comment to match.  Shorten &
80026         generalize m4_translit call via AS_TR_CPP.
80027
80028 2006-04-19  Derek Price  <derek@ximbiot.com>
80029             Eric Blake  <ebb9@byu.net>
80030
80031         * lib/inttypes.h: Correct grammar in comment.
80032
80033 2006-04-18  Derek Price  <derek@ximbiot.com>
80034             Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         * modules/inttypes: New file.
80037         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80038
80039 2006-04-18  Derek Price  <derek@ximbiot.com>
80040             Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80043         New files.
80044
80045 2006-04-18  Derek Price  <derek@ximbiot.com>
80046             Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * lib/inttypes.h: New file.
80049         * lib/strtoimax.c: Assume <inttypes.h>.
80050
80051 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80054         isn't mounted.  Problem reported by Kir Kolyshkin.
80055
80056 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80059         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80060         Derek R. Price.
80061         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80062         implementation.
80063
80064 2006-04-12  Eric Blake  <ebb9@byu.net>
80065
80066         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80067         is now done automatically by the corresponding Autoconf macro.
80068
80069 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80072         time_r.h.
80073
80074 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         Merge regex changes from libc, removing some of our
80077         POSIX-conformance changes that were rejected and redoing them in a
80078         less-intrusive way.
80079
80080         * lib/regcomp.c (re_compile_internal, init_dfa):
80081         Length arg is now size_t, not Idx.  All uses changed.
80082         (peek_token): Forward decl now says internal_function.
80083         (__re_error_msgid, __re_error_msgid_idx):
80084         Now static rather than extern with attribute_hidden.
80085         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80086         For some reason libc prefers K&R style defns for external functions.
80087         (regerror) [!defined _LIBC]: Likewise.
80088         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80089         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80090         (build_range_exp, build_collating_symbol):
80091         Use K&R-style defn.
80092         (re_compile_fastmap): Use '\0' to memset, not 0.
80093         (utf8_sb_map): Make the calculations more obvious.
80094         (init_dfa, parse_bracket_exp, build_charclass_op):
80095         Call calloc and cast result, as glibc does.
80096         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80097         (build_range_exp, build_collating_symbol):
80098         Now internal functions.
80099
80100         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80101
80102         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80103         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80104         Don't depend on VMS; depend on __VMS instead, for POSIX
80105         namespace cleanness.
80106         (regoff_t): Define to ssize_t, not long int.
80107
80108         Remove the REG_ macros named below.  Instead, make the old names
80109         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80110         __USE_GNU_REGEX.
80111         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80112         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80113         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80114         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80115         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80116         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80117         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80118         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80119         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80120         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80121         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80122         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80123         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80124         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80125         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80126         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80127         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80128         (REG_NREGS):
80129         Remove.  All uses replaced by the old RE_* names.
80130         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80131         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80132         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80133         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80134         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80135         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80136         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80137         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80138         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80139         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80140         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80141         Don't bother having these macros be independent of each others'
80142         values, since they no longer exist in the POSIX name space.
80143
80144         Rename the following member names back to their old names,
80145         unless !__USE_GNU_REGEX.  All uses changed back.
80146         (buffer): Renamed from re_buffer.
80147         (allocated): Renamed from re_allocated.
80148         (used): Renamed from re_used.
80149         (syntax): Renamed from re_syntax.
80150         (fastmap): Renamed from re_fastmap.
80151         (translate): Renamed from re_translate.
80152         (can_be_null): Renamed from re_can_be_null.
80153         (regs_allocated): Renamed from re_regs_allocated.
80154         (fastmap_accurate): Renamed from re_fastmap_accurate.
80155         (no_sub): Renamed from re_no_sub.
80156         (not_bol): Renamed from re_not_bol.
80157         (not_eol): Renamed from re_not_eol.
80158         (newline_anchor): Renamed from re_newline_anchor.
80159         (num_regs): Renamed from rm_num_regs.
80160         (start): Renamed from rm_start.
80161         (end): Renamed from rm_end.
80162
80163         (free_state): Move up a bit.
80164
80165         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80166         #define to be empty.
80167         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80168         when that is what is intended.
80169         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80170         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80171         (MAX): New macro.
80172         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80173         All uses changed back to re_malloc, etc.  It's now the caller's
80174         responsibility to check for overflow; all callers changed.
80175         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80176         (re_x2nrealloc): Remove.
80177         (free_state): Remove decl.
80178
80179         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80180         (re_set_registers, re_exec):
80181         Use K&R-style defn.
80182
80183         2006-01-31  Roland McGrath  <roland@redhat.com>
80184
80185         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80186         Reported by Mike Frysinger <vapier@gentoo.org>.
80187
80188         2006-01-15  Andreas Jaeger  <aj@suse.de>
80189
80190         [BZ #1950]
80191         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80192         build_wcs_upper_buffer change.
80193         (build_wcs_upper_buffer): Change return type.
80194
80195         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80196
80197         * lib/regex_internal.h: Include <stdint.h> if available.
80198
80199         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80200
80201         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80202
80203         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80204
80205         * lib/regcomp.c: Adjust for changed secondary hash function.
80206
80207         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80208
80209         * lib/regex.h: Pretty printing.
80210         Clean up namespace a bit.
80211
80212         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80213
80214         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80215         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80216
80217         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80218                     Ulrich Drepper  <drepper@redhat.com>
80219
80220         [BZ #1302]
80221         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80222         changed.
80223         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80224
80225         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80226
80227         [BZ #281]
80228         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80229         * lib/regcomp.c: Remove unnecessary uses of
80230         unsigned RE_TRANSLATE_TYPE.
80231         * lib/regex_internal.h: Likewise.
80232         * lib/regex_internal.c: Likewise.
80233         * lib/regexec.c: Likewise.
80234         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80235
80236         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80237
80238         * lib/regexec.c (find_recover_state): Remove unnecessary
80239         initialization.
80240         (transit_state_bkref): Make DFA a const pointer.
80241         (get_subexp): Likewise.
80242         (check_arrival): Likewise.
80243         (update_cur_sifted_state): Likewise.
80244         (re_search_internal): Likewise.
80245         (prune_impossible_nodes): Likewise.
80246         (acquire_init_state_context): Likewise.
80247         (proceed_next_node): Likewise.
80248         (set_regs): Likewise.
80249         (free_fail_stack_return): Likewise.
80250         (check_arrival_expand_ecl): Mark DFA parameter as const.
80251         (check_arrival_expand_ecl_sub): Likewise.
80252         (check_subexp_limits): Likewise.
80253         (sub_epsilon_src_nodes):  Likewise.
80254         (add_epsilon_src_nodes):  Likewise.
80255         (merge_state_array): Likewise.
80256         (update_regs): Likewise.
80257         (build_trtable): Likewise.
80258         (sift_states_backward): Mark MCTX parameter as const.
80259         (build_sifted_states): Likewise.
80260         (update_cur_sifted_state): Likewise.
80261         (sift_states_mkref): Likewise.
80262         (check_arrival_expand_ecl): Mark eclosure as const.
80263         (check_dst_limits_calc_pos_1): Likewise.
80264         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80265         pointer.
80266
80267         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80268
80269         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80270         (transit_state_sb): Likewise.
80271         (transit_state_mb): Likewise.
80272         (sift_states_iter_mb): Likewise.
80273         (check_arrival_add_next_nodes): Likewise.
80274         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80275         [_LIBC] (re_search_2_stub): Use mempcpy.
80276
80277         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80278         mbrtowc for very simple UTF-8 case.
80279
80280         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80281         a pointer-to-const.
80282         (re_acquire_state_context): Likewise.
80283         * lib/regex_internal.h: Adjust prototypes.
80284
80285         * lib/regex.c: Prevent using C++ compilers.
80286
80287         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80288         (re_acquire_state_context): Likewise.
80289
80290 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * modules/regex (Depends-on): Add ssize_t.
80293
80294 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80297         translation table.
80298
80299 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80300
80301         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80302
80303 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80304             Bruno Haible  <bruno@clisp.org>
80305
80306         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80307         <sys/types.h> and <inttypes.h>.
80308
80309 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80310
80311         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80312         `__error_t_defined', so argp.h will not typedef the former.
80313
80314 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80317         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80318         glibc names.  Even if glibc is changed to conform to POSIX, the
80319         traditional names will be available anyway, since regex depends on
80320         the extensions module.  Also, fix a longstanding typo in the
80321         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80322         reported by Emanuele Giaquinta.  Also, change sense of cached
80323         variable, so that the message makes sense.
80324
80325 2006-03-24  Simon Josefsson  <jas@extundo.com>
80326
80327         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80328         including some doc fixes.
80329         (base64_encode_alloc): Fix +1 bug on allocation failures.
80330
80331 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80332
80333         * lib/base64.c (base64_encode): Do not read past end of array with
80334         unsanitized input on systems with CHAR_BIT > 8.
80335
80336 2006-03-24  Eric Blake  <ebb9@byu.net>
80337
80338         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80339
80340 2006-03-22  Karl Berry  <karl@gnu.org>
80341
80342         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80343         * config/srclistvars.sh (COREUTILS): new var.
80344
80345 2006-03-17  Jim Meyering  <jim@meyering.net>
80346
80347         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80348         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80349
80350 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80353         no longer needs it.  Instead, check that regoff_t is as least
80354         as wide as ptrdiff_t.
80355
80356         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80357         so that our regex.h stays compatible with the installed regex.
80358         This is helpful for installers who configure --without-included-regex.
80359         Problem reported by Emanuele Giaquinta.
80360
80361 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80364         Typedef to long int, not to off_, as POSIX will likely change
80365         in that direction.
80366
80367 2006-03-15  Eric Blake  <ebb9@byu.net>
80368
80369         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80370
80371 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80372
80373         * lib/argp-help.c (validate_uparams): Fix typo
80374         * lib/argp-parse.c (argp_default_options): Consistently begin help
80375         messages with a lowercase letter.
80376
80377 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80380         overrun buffers and shouldn't be used (much as gets shouldn't be
80381         used).
80382         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80383
80384 2006-03-08  Simon Josefsson  <jas@extundo.com>
80385
80386         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80387         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80388
80389 2006-03-08  Simon Josefsson  <jas@extundo.com>
80390
80391         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80392         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80393
80394 2006-03-08  Simon Josefsson  <jas@extundo.com>
80395
80396         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80397         signal that configure disabled the device.
80398
80399 2006-03-08  Simon Josefsson  <jas@extundo.com>
80400
80401         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80402         languages.
80403
80404 2006-03-07  Simon Josefsson  <jas@extundo.com>
80405
80406         * modules/getopt (Depends-on): Add unistd.
80407
80408         * modules/unistd: New file.
80409
80410 2006-03-07  Simon Josefsson  <jas@extundo.com>
80411
80412         * modules/gc-random: New file.
80413
80414 2006-03-07  Simon Josefsson  <jas@extundo.com>
80415
80416         * m4/unistd_h.m4: New file.
80417
80418 2006-03-07  Simon Josefsson  <jas@extundo.com>
80419
80420         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80421         test to be side-effect free by storing the result in the cache
80422         variable gl_cv_lib_readline, and moving the assignment of
80423         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80424         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80425
80426 2006-03-07  Simon Josefsson  <jas@extundo.com>
80427
80428         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80429         error on missing devices (the functions will return an error).
80430
80431         * m4/gc.m4: Move random stuff to gc-random.m4
80432
80433 2006-03-07  Simon Josefsson  <jas@extundo.com>
80434
80435         * lib/unistd_.h: New file.
80436
80437 2006-03-07  Simon Josefsson  <jas@extundo.com>
80438
80439         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80440
80441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80444         Problem reported by Juan Manuel Guerrero.
80445
80446 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80449         the unistd module.
80450         * lib/getlogin_r.c: Likewise.
80451         * lib/getlogin_r.h: Likewise.
80452         * lib/glob.c: Likewise.
80453         * lib/pagealign_alloc.c: Likewise.
80454         * lib/unistd_.h: Remove; no longer needed.
80455
80456 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80459         Add unistd.
80460         * modules/c-stack (Depends-on): Add unistd.
80461         * modules/getlogin_r: Likewise.
80462         * modules/glob: Likewise.
80463         * modules/pagealign_alloc: Likewise.
80464         * modules/unistd (Files): Remove lib/unistd_.h.
80465         (EXTRA_DIST): Remove.
80466         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80467         need unistd_.h.
80468         (MOSTLYCLEANFILES): Remove unistd.h-t.
80469
80470 2006-03-03  Simon Josefsson  <jas@extundo.com>
80471
80472         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80473
80474 2006-03-03  Simon Josefsson  <jas@extundo.com>
80475
80476         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80477         libidn and bison.
80478
80479 2006-03-03  Simon Josefsson  <jas@extundo.com>
80480
80481         * build-aux/maint.mk: Add indent target.
80482
80483 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80484
80485         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80486         our replacement poll.h in any case, to avoid a differing
80487         declaration from a system header.  Seen on AIX.
80488
80489 2006-03-01  Simon Josefsson  <jas@extundo.com>
80490
80491         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80492         <kasal@ucw.cz>.
80493
80494 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * modules/gettime (Depends-on): Add extensions module.
80497         * modules/nanosleep (Depends-on): Likewise.
80498         * modules/settime (Depends-on): Likewise.
80499
80500 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80503         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80504         pedantically.
80505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80506         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80507
80508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80509         not "==".  Reported by Ralf Wildenhues.
80510
80511 2006-03-01  Karl Berry  <karl@gnu.org>
80512
80513         * doc/Copyright/request-*: new files, synced from gnuorg.
80514
80515 2006-03-01  Karl Berry  <karl@gnu.org>
80516
80517         * config/srclist.txt (Copyright/*): new entries.
80518
80519 2006-02-28  Simon Josefsson  <jas@extundo.com>
80520
80521         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80522
80523 2006-02-27  Simon Josefsson  <jas@extundo.com>
80524
80525         * lib/base64.h: Indent #define's.  From Jim Meyering
80526         <jim@meyering.net>.
80527
80528 2006-02-27  Jim Meyering  <jim@meyering.net>
80529
80530         Revert the change of 2006-02-24, so these files can continue
80531         to be sync'd from gettext.
80532         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80533         of `config.h'.
80534
80535 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * modules/intprops: New file.
80538         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80539         Add intprops.
80540         * modules/getloadavg (Files): Remove lib/intprops.h.
80541         (Depends-on): Add intprops.
80542         * modules/human: Likewise.
80543         * modules/inttostr: Likewise.
80544         * modules/openat: Likewise.
80545         * modules/sig2str: Likewise.
80546         * modules/userspec: Likewise.
80547         * modules/utimecmp: Likewise.
80548         * modules/xnanosleep: Likewise.
80549         * modules/xstrtol: Likewise.
80550
80551 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80552
80553         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80554         * modules/lock-tests (TESTS): Use $(EXEEXT).
80555         * modules/tls-tests: Likewise.
80556         * modules/argp-tests: Likewise.
80557         (check_PROGRAMS): New var, replacing...
80558         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80559
80560 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80561
80562         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80563         `config.h'.
80564
80565 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80568
80569 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80570
80571         Sync from coreutils.
80572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80573         gl_CHDIR_SAFER.
80574
80575 2006-02-22  Jim Meyering  <jim@meyering.net>
80576
80577         Sync from coreutils.
80578         * m4/chdir-safer.m4: New file.
80579
80580 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80583         AT_FDCWD exceeds INT_MAX.
80584         * lib/openat.h (AT_FDCWD): Likewise.
80585
80586 2006-02-17  Eric Blake  <address@hidden>
80587
80588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80589
80590 2006-02-16  Simon Josefsson  <jas@extundo.com>
80591
80592         * modules/getaddrinfo (Depends-on): Add sys_socket.
80593
80594 2006-02-15  Simon Josefsson  <jas@extundo.com>
80595
80596         * build-aux/maint.mk: Add dsyntax-check rule.
80597
80598 2006-02-15  Eric Blake  <ebb9@byu.net>
80599
80600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80601         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80602         'present but cannot compile' warnings on cygwin.
80603         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80604         use ws2tcpip.h if sys/socket.h works.
80605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80606         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80607
80608 2006-02-14  Simon Josefsson  <jas@extundo.com>
80609
80610         * modules/maintainer-makefile (Files): Rename.
80611
80612         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80613         and (the local) Makefile.cfg to maint-cfg.mk.
80614
80615         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80616         to the latter.
80617
80618         * modules/maintainer-makefile: New module.
80619
80620         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80621         severaly stripped to make it possible to build it up from scratch
80622         with reliable tests.
80623
80624         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80625         fixes to permit overriding the default actions when configure and
80626         makefile are not available.
80627
80628 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         Sync from coreutils.
80631         * modules/lstat (Depends-on): Don't depend on xalloc.
80632         (License): Change from GPL to LGPL, since this is now simply a
80633         replacement for a libc function.
80634
80635 2006-02-14  Jim Meyering  <jim@meyering.net>
80636
80637         Sync from coreutils.
80638
80639         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80640         failure on deficient systems, and simplify gnulib lgpl dependencies.
80641         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80642         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80643
80644         * lib/xalloc-die.c: Remove unused definition of N_.
80645
80646 2006-02-14  Jim Meyering  <jim@meyering.net>
80647
80648         Sync from coreutils.
80649         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80650         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80651         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80652         double-quote uses of that variable, to accommodate the rare case in
80653         which getmntent is available in none of the libraries checked.  This
80654         happens at least on FreeBSD 5.0.
80655
80656 2006-02-13  Simon Josefsson  <jas@extundo.com>
80657
80658         * gnulib-tool (Usage): Fix --import, from
80659         karl@freefriends.org (Karl Berry).
80660
80661 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80662
80663         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80664
80665 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80666
80667         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80668         "autoupdate" on 2005-12-12.
80669
80670 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * modules/closeout (Depends-on): Remove atexit.
80673
80674 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80677         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80678
80679 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80682         __EXTENSIONS__ if this causes compilation to fail.  Problem
80683         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80684         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80685
80686 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80689         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80691         All uses changed.
80692
80693 2006-01-26  Simon Josefsson  <jas@extundo.com>
80694
80695         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80696         prototype is visible on mingw32.
80697
80698         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80699         for mingw32.
80700
80701         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80702         mingw32).
80703
80704 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80705
80706         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80707         attempt to open for write; this always fails, at least on POSIX
80708         hosts.  This reinstates the 2006-01-09 change, which was
80709         inadvertently removed.
80710
80711 2006-01-26  Bruno Haible  <bruno@clisp.org>
80712
80713         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80714         Reported by Paul Eggert.
80715
80716 2006-01-26  Bruno Haible  <bruno@clisp.org>
80717             Paul Eggert  <eggert@cs.ucla.edu>
80718
80719         * lib/stdbool_.h (_Bool)
80720         [(! (defined __cplusplus || defined __BEOS__)
80721           && !defined __GNUC__
80722           && !(defined __HP_cc || defined __xlc__
80723                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80724                || defined __sgi))]:
80725         #define to signed char in these cases too; this simplifies
80726         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80727         etc., separately) and makes it more conservative.
80728
80729 2006-01-25  Simon Josefsson  <jas@extundo.com>
80730
80731         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80732         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80733         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80734
80735 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80736
80737         * lib/argp-namefrob.h: Bugfix. Remove stray #
80738
80739 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80742         so that we test the test.
80743         Check for yet another HP-UX cc bug involving *bool |= bool.
80744
80745 2006-01-25  Karl Berry  <karl@gnu.org>
80746
80747         * config/srclist.txt (vasnprintf.c): sync lost.
80748
80749 2006-01-25  Jim Meyering  <jim@meyering.net>
80750
80751         Sync from the stable (b5) branch of coreutils:
80752
80753         * lib/fts.c (fts_children): Don't let close() clobber errno from
80754         failed fchdir().
80755
80756         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80757         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80758         a dangling symlink.  That can also happen at least for ELOOP.
80759         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80760         FYI, this bug predates the inclusion of fts.c in coreutils.
80761
80762         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80763         in their own block, so pre-c99 compilers don't object.
80764
80765         Avoid the double-free (first in fts_read, second in fts_close) that
80766         would occur when an `active' directory is made inaccessible (e.g.,
80767         via chmod a-x) during a traversal.
80768         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80769         before returning.  Reproduce this failure by
80770         mkdir -p a/b; cd a; chmod a-x . b
80771         Reported by Stavros Passas.
80772
80773 2006-01-25  Jim Meyering  <jim@meyering.net>
80774
80775         * lib/fileblocks.c: Remove more useless parentheses.
80776         * lib/readutmp.h: Likewise.
80777
80778 2006-01-25  Bruno Haible  <bruno@clisp.org>
80779
80780         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80781         warnings.
80782         Reported by Paul Eggert.
80783
80784 2006-01-25  Bruno Haible  <bruno@clisp.org>
80785
80786         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80787         rid of a trap command. For Solaris sh.
80788         Reported by Mark D. Baushke <mdb@gnu.org>.
80789
80790 2006-01-24  Simon Josefsson  <jas@extundo.com>
80791
80792         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80793         Bruno.
80794
80795 2006-01-24  Karl Berry  <karl@gnu.org>
80796
80797         * config/srclist.txt (argp-namefrob.h): sync lost.
80798
80799 2006-01-24  Jim Meyering  <jim@meyering.net>
80800
80801         * modules/openat (Files): Add lib/intprops.h.
80802         From Mark D. Baushke.
80803
80804 2006-01-24  Jim Meyering  <jim@meyering.net>
80805
80806         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80807         Reported by Mark D. Baushke.
80808
80809 2006-01-24  Jim Meyering  <jim@meyering.net>
80810
80811         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80812
80813 2006-01-24  Bruno Haible  <bruno@clisp.org>
80814
80815         * modules/strnlen (Maintainer): Change from glibc to all.
80816
80817 2006-01-24  Bruno Haible  <bruno@clisp.org>
80818
80819         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80820         Patch by Paul Eggert.
80821
80822 2006-01-24  Bruno Haible  <bruno@clisp.org>
80823
80824         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80825         already has it.
80826         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80827         2005-11-26.
80828
80829         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80830         'signed char' to avoid problems with the built-in _Bool type.
80831         Reported by Paul Eggert on 2005-11-26.
80832
80833 2006-01-24  Bruno Haible  <bruno@clisp.org>
80834
80835         * gnulib-tool (func_import): Avoid constructing complicated sed
80836         expressions inside backquote.
80837         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80838
80839 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80840
80841         These changes imported from libc.
80842         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80843         test and two separate function calls.
80844         * lib/strndup.c (__strndup): Add libc_hidden_def.
80845
80846 2006-01-23  Simon Josefsson  <jas@extundo.com>
80847
80848         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80849         Remove the test_*_SOURCES variable: automake infers it by default.
80850         * modules/tls-tests: Likewise.
80851
80852 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Work around porting bugs reported by Dieter in
80855         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80856         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80857         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80858         Include "getopt.h" first, to check interface.
80859         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80860         !HAVE_DECL_GETENV.
80861         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80862         (__strndup): Revert to K&R-style function dfns, the glibc style.
80863         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80864         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80865         Include strnlen.h first, to get prototype properly.
80866         (strnlen): Renamed from __strnlen.
80867         Remove weak alias.
80868
80869 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80872
80873 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * config/srclist.txt: Adjust to reflect glibc reorganization.
80876         This affects only comments.
80877
80878 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80879
80880          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80881          Reported by Bruce Korb <bkorb@gnu.org>.
80882
80883 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80884
80885         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80886         to pacify gcc -Wswitch-default.
80887
80888 2006-01-22  Bruno Haible  <bruno@clisp.org>
80889
80890         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80891         temporary buffer for sprintf, take into account the precision also
80892         for 'd', 'i', 'u', 'o', 'x', 'X'.
80893
80894 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80895
80896         * modules/argp-tests: New module
80897         * tests/test-argp.c: New file
80898         * tests/test-argp-2.sh: New file
80899
80900 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80901
80902         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80903         (__argp_base_name): Removed
80904         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80905         typo.
80906         (__argp_base_name): Provide macro definition or extern declaration
80907         depending on the configuration
80908
80909 2006-01-20  Simon Josefsson  <jas@extundo.com>
80910
80911         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80912
80913 2006-01-20  Simon Josefsson  <jas@extundo.com>
80914
80915         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80916
80917 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80920         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80921         Suggested by Bruno Haible.
80922
80923 2006-01-20  Karl Berry  <karl@gnu.org>
80924
80925         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80926         until changes propagate, I guess.
80927
80928 2006-01-19  Simon Josefsson  <jas@extundo.com>
80929
80930         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80931
80932 2006-01-19  Simon Josefsson  <jas@extundo.com>
80933
80934         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80935
80936 2006-01-19  Simon Josefsson  <jas@extundo.com>
80937
80938         * gnulib-tool: Set check_PROGRAMS.
80939
80940         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80941         modules/des-tests, modules/gc-arcfour-tests,
80942         modules/gc-arctwo-tests, modules/gc-des-tests,
80943         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80944         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80945         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80946         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80947         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80948         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80949         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80950         test_*_SOURCES.
80951
80952 2006-01-18  Simon Josefsson  <jas@extundo.com>
80953
80954         * modules/socklen (Depends-on): Depend on sys_socket.
80955
80956 2006-01-18  Simon Josefsson  <jas@extundo.com>
80957
80958         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80959         modules/des-tests, modules/gc-arcfour-tests,
80960         modules/gc-arctwo-tests, modules/gc-des-tests,
80961         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80962         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80963         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80964         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80965         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80966         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80967         $(EXEEXT) to automake TESTS variable, for mingw32.
80968
80969 2006-01-17  Simon Josefsson  <jas@extundo.com>
80970
80971         * modules/socklen (Include): Need sys/socket.h.
80972
80973 2006-01-17  Bruno Haible  <bruno@clisp.org>
80974
80975         * modules/ssize_t (Include): Add <sys/types.h>.
80976
80977 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80978
80979         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80980         it's not portable and it doesn't work with cross-compiles.
80981         Problem reported by Bruno Haible.  Fix missing-$ typo in
80982         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80983         -zignore from being used with Sun's C compiler.
80984
80985 2006-01-12  Simon Josefsson  <jas@extundo.com>
80986
80987         * lib/base64.c: Fix warning, reported by Bruno Haible
80988         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80989
80990 2006-01-12  Bruno Haible  <bruno@clisp.org>
80991
80992         * modules/ldd: New file.
80993         * build-aux/ldd.sh.in: New file.
80994         * MODULES.html.sh (Support for building libraries and executables): Add
80995         ldd.
80996
80997 2006-01-12  Bruno Haible  <bruno@clisp.org>
80998
80999         * m4/ldd.m4: New file.
81000
81001 2006-01-12  Bruno Haible  <bruno@clisp.org>
81002
81003         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81004         endless loop while replacing $auxdir with build-aux.
81005
81006 2006-01-11  Simon Josefsson  <jas@extundo.com>
81007
81008         * lib/stdint_.h (SIZE_MAX): Add missing (.
81009
81010 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         Sync from coreutils.
81013         * lib/md5.c: Fix commentary typos.
81014         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81015         * lib/md5.h (__attribute__): Remove; unused.
81016         * lib/sha1.c: Fix commentary to match md5 better.
81017         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81018         so that we don't need to worry about alignment.  All uses changed.
81019         This merges the 2005-10-28 md5 change into sha1.
81020
81021 2006-01-11  Jim Meyering  <jim@meyering.net>
81022
81023         Sync from coreutils.
81024         * lib/md5.c (OP): Fix spacing.
81025
81026 2006-01-11  Bruno Haible  <bruno@clisp.org>
81027
81028         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81029         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81030         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81031
81032 2006-01-11  Bruno Haible  <bruno@clisp.org>
81033
81034         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81035         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81036         the "early" section as well.
81037
81038 2006-01-11  Bruno Haible  <bruno@clisp.org>
81039
81040         Avoid "ar: no archive members specified" error on MacOS X.
81041         * gnulib-tool (func_modules_add_dummy): New function.
81042         (func_import, func_create_testdir): Invoke it.
81043
81044 2006-01-11  Bruno Haible  <bruno@clisp.org>
81045
81046         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81047         with $auxdir in AC_CONFIG_FILES statements.
81048
81049 2006-01-11  Bruno Haible  <bruno@clisp.org>
81050
81051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81052         Initialize also noinst_HEADERS to empty.
81053
81054 2006-01-11  Bruno Haible  <bruno@clisp.org>
81055
81056         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81057         variables.
81058         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81059         autoreconf.
81060
81061 2006-01-11  Bruno Haible  <bruno@clisp.org>
81062
81063         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81064         overridable by the user.
81065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81066
81067 2006-01-10  Simon Josefsson  <jas@extundo.com>
81068
81069         * modules/sys_socket: New file.
81070
81071 2006-01-10  Simon Josefsson  <jas@extundo.com>
81072
81073         * m4/sys_socket_h.m4: New file.
81074
81075 2006-01-10  Simon Josefsson  <jas@extundo.com>
81076
81077         * lib/socket_.h: New file.
81078
81079 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81080
81081         * modules/readutmp (Maintainer): Add myself.
81082
81083 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81084
81085         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81086         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81087         People who are still concerned with buggy memcmp implementations
81088         can invoke gl_FUNC_MEMCMP themselves.
81089
81090 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * lib/regex_internal.h (BITSET_WORD_BITS):
81093         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81094         preprocessor mishandles large unsigned values as if they were signed.
81095         Problem reported by Claudio Fontana in
81096         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81097
81098 2006-01-10  Jim Meyering  <jim@meyering.net>
81099
81100         Avoid the double-free (first in fts_read, second in fts_close) that
81101         would occur when an `active' directory is made inaccessible (e.g.,
81102         via chmod a-x) during a traversal.
81103         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81104         before returning.  Reproduce this failure by
81105         mkdir -p a/b; cd a; chmod a-x . b
81106         Reported by Stavros Passas.
81107
81108         Sync from coreutils.
81109         * lib/sha1.c: Tweak grammar in a comment.
81110
81111 2006-01-10  Jim Meyering  <jim@meyering.net>
81112
81113         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81114         Patch by Joerg Sonnenberger.
81115
81116 2006-01-10  Bruno Haible  <bruno@clisp.org>
81117
81118         * modules/readutmp: Depend on module free.
81119         * modules/strtok_r: Depend on module restrict.
81120
81121 2006-01-10  Bruno Haible  <bruno@clisp.org>
81122
81123         * modules/gettext (configure.ac): Add an invocation of
81124         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81125
81126 2006-01-10  Bruno Haible  <bruno@clisp.org>
81127
81128         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81129         Reported by Werner Lemberg <wl@gnu.org>.
81130
81131 2006-01-10  Bruno Haible  <bruno@clisp.org>
81132
81133         * lib/localcharset.c: Update from GNU gettext.
81134
81135 2006-01-10  Bruno Haible  <bruno@clisp.org>
81136
81137         * lib/argp.h (__const): Remove macro. Use const instead.
81138         * lib/argp-fmtstream.h (__const): Likewise.
81139         * lib/glob_.h (__const): Remove macro.
81140         * lib/glob-libc.h: Use const instead of __const.
81141
81142 2006-01-10  Bruno Haible  <bruno@clisp.org>
81143
81144         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81145         variable.
81146         Needed to avoid an automake error regarding the 'gettext' module.
81147
81148 2006-01-09  Simon Josefsson  <jas@extundo.com>
81149
81150         * modules/inet_ntop (Depends-on): Add restrict.
81151
81152 2006-01-09  Simon Josefsson  <jas@extundo.com>
81153
81154         * modules/gc-rijndael-tests (License): Put under LGPL.
81155
81156         * modules/gc-des-tests (License): Likewise.
81157
81158         * modules/gc-arcfour-tests (License): Likewise.
81159
81160         * modules/gc-arctwo-tests (License): Likewise.
81161
81162         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81163
81164         * modules/gc-hmac-sha1-tests (Files): Likewise.
81165
81166         * modules/gc-hmac-md5-tests (License): Likewise.
81167
81168         * modules/gc-sha1-tests (License): Likewise.
81169
81170         * modules/gc-md5-tests (License): Likewise.
81171
81172         * modules/gc-md4-tests (License): Likewise.
81173
81174         * modules/gc-md2-tests (License): Likewise.
81175
81176         * modules/gc-tests (License): Likewise.
81177
81178         * modules/des-tests (License): Likewise.
81179
81180         * modules/md4-tests (License): Likewise.
81181
81182         * modules/md2-tests (License): Likewise.
81183
81184 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81185
81186         Sync from coreutils:
81187
81188         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81189         * modules/lib-ignore: New file.
81190         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81191         chdir-safer.m4, lchmod.m4.
81192         * modules/openat: Add mkdirat.c, openat-priv.h.
81193
81194 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81195
81196         Sync from coreutils.
81197         * m4/lib-ignore.m4: New file.
81198         * m4/lchmod.m4: New file.
81199
81200 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81201
81202         Sync from coreutils.
81203         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81204         for write access: POSIX says that must fail.
81205         * lib/fts.c (diropen): Likewise.
81206         * lib/save-cwd.c (save_cwd): Likewise.
81207         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81208         well, for minor improvements on hosts that lack O_DIRECTORY.
81209         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81210         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81211         Fall back on chown if open failed with EACCES.
81212
81213         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81214         Report an error at compile-time if only a 1-second nominal clock
81215         resolution is found.
81216
81217         * lib/lchmod.h: New file.
81218         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81219         (make_dir_parents): Use lchown rather than chown, and
81220         lchmod rather than chmod.
81221
81222         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81223         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81224         "proc" reported by n0dalus.
81225
81226         * lib/mountlist.c: Include <limits.h>.
81227         (dev_from_mount_options)
81228         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81229         New function.  It no longer assumes "dev=" has the System V meaning
81230         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81231         (read_file_system_list)
81232         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81233         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81234         dev= in that case.
81235
81236         * lib/posixtm.h (PDS_PRE_2000): New macro.
81237         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81238         allow_century.  All usages changed.  Reject dates outside the range
81239         1969-1999 if PDS_PRE_2000 is used.
81240
81241 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81242
81243         Sync from coreutils.
81244         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81245         (Time of day items): Mention the possibility of leap seconds.
81246         Problem reported by Dr. David Alan Gilbert.
81247
81248 2006-01-09  Jim Meyering  <jim@meyering.net>
81249
81250         Sync from coreutils.
81251
81252         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81253
81254         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81255
81256         * lib/modechange.c (mode_compile): Reject an invalid mode string
81257         that starts with an octal digit.  From Andreas Gruenbacher.
81258
81259         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81260         and dup to open_safer and dup_safer, respectively.
81261         (openat_permissive): Fix typo in comment.
81262
81263         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81264         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81265         (_): Remove; no longer needed.
81266         (openat): Renamed from rpl_openat; no need for rpl_openat
81267         since openat.h renames openat for us.
81268         Replace most of the body with a call to openat_permissive,
81269         to avoid duplicate code.
81270         Port to (probably hypothetical) environments were mode_t is
81271         wider than int.
81272         (openat_permissive): Require mode arg, so that we can check
81273         types better.  Put it just after flags.  Change cwd failure
81274         indicator from pointer-to-bool to pointer-to-errno-value.
81275         All callers changed.
81276         Invoke openat_save_fail and/or openat_restore_fail if
81277         cwd_errno is null, so that openat can call us.
81278         (openat_permissive, fdopendir, fstatat, unlinkat):
81279         Simplify errno handling to avoid some duplicate code,
81280         as it's OK to set errno on success.
81281         * lib/openat.h: Revamp code so that function macros depend on
81282         __OPENAT_PREFIX only, not also on AT_FDCWD.
81283         (openat_ro): Remove.  Caller changed to use openat_permissive.
81284         (openat_permissive): Now a macro, if not a function.
81285         (openat_restore_fail, openat_save_fail): Now always functions,
81286         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81287
81288         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81289         and openat.c.
81290         * lib/mkdirat.c: Include openat-priv.h.
81291         Remove definitions of macros defined therein.
81292         * lib/openat.c: Likewise.
81293
81294         * lib/mkdirat.c (mkdirat): New file and function.
81295         * lib/openat.h (mkdirat): Declare.
81296
81297         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81298
81299         * lib/openat.h (openat_permissive): Declare.
81300         (openat_ro): Define.
81301
81302         * lib/openat.c (EXPECTED_ERRNO): New macro.
81303         (openat_permissive): New function -- used in remove.c rewrite.
81304         (all functions): Set errno just before returning, only if there
81305         was an actual failure.
81306         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81307
81308         Emulate openat-family functions using Linux's procfs, if possible.
81309         Idea and some code based on Ulrich Drepper's glibc changes.
81310
81311         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81312         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81313         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81314         before falling back on save_cwd and restore_cwd.
81315         (fdopendir, fstatat, unlinkat): Likewise.
81316
81317         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81318         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81319
81320         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81321         as second argument to va_arg.  Otherwise, some versions of gcc
81322         warn that `if this code is reached, the program will abort'.
81323
81324 2006-01-09  Jim Meyering  <jim@meyering.net>
81325
81326         Sync from coreutils.
81327         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81328         Require openat-priv.h.
81329
81330 2006-01-09  Bruno Haible  <bruno@clisp.org>
81331
81332         * modules/strnlen (Include): Use strnlen.h.
81333
81334 2006-01-09  Bruno Haible  <bruno@clisp.org>
81335
81336         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81337
81338 2006-01-09  Bruno Haible  <bruno@clisp.org>
81339
81340         * lib/sysexit_.h (EX_OK): New macro.
81341         Suggested by Martin Lambers <marlam@marlam.de>.
81342
81343 2006-01-09  Bruno Haible  <bruno@clisp.org>
81344
81345         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81346         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81347
81348 2006-01-09  Bruno Haible  <bruno@clisp.org>
81349
81350         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81351         numbers.
81352
81353 2006-01-09  Bruno Haible  <bruno@clisp.org>
81354
81355         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81356         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81357         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81358         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81359
81360 2006-01-09  Bruno Haible  <bruno@clisp.org>
81361
81362         * build-aux/javacomp.sh.in: New file, moved from lib/.
81363         * modules/javacomp-script (Files): Update.
81364         (configure.ac): Add AC_CONFIG_FILES invocation.
81365         (EXTRA_DIST): Remove variable.
81366
81367         * build-aux/javaexec.sh.in: New file, moved from lib/.
81368         * modules/javaexec (Files): Update.
81369         (configure.ac): Add AC_CONFIG_FILES invocation.
81370         (EXTRA_DIST): Remove javaexec.sh.in.
81371
81372         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81373         * modules/csharpcomp-script (Files): Update.
81374         (configure.ac): Add AC_CONFIG_FILES invocation.
81375         (EXTRA_DIST): Remove variable.
81376
81377         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81378         * modules/csharpexec (Files): Update.
81379         (configure.ac): Add AC_CONFIG_FILES invocation.
81380         (EXTRA_DIST): Remove csharpexec.sh.in.
81381
81382 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81383
81384         Sync from coreutils.
81385
81386         Add POSIX ACL support
81387         * lib/acl.h (copy_acl, set_acl): Add declarations.
81388         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81389         systems other than Linux.
81390         (chmod_or_fchmod): New function: use fchmod when possible,
81391         and chmod otherwise.
81392         (file_has_acl): Add a POSIX ACL implementation, with a
81393         Linux-specific subcase.
81394         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81395         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81396         acls are unsupported.
81397         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81398         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81399         are unsupported.
81400
81401 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81402
81403         Sync from coreutils.
81404         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81405
81406 2006-01-07  Bruno Haible  <bruno@clisp.org>
81407
81408         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81409         gl_EARLY.
81410
81411 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81412
81413         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81414         Problem reported for Mingw by Mark Junker.
81415
81416 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * README: Gnulib normally doesn't generate a tarball.
81419
81420 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81423         long int, not int, for nanosecond counts, so that people who are
81424         used to POSIX struct timespec won't be surprised.  Reported by Jim
81425         Meyering.
81426
81427 2005-12-28  Bruno Haible  <bruno@clisp.org>
81428
81429         * build-aux/config.rpath: Update from GNU gettext.
81430
81431 2005-12-16  Jim Meyering  <jim@meyering.net>
81432
81433         * modules/fprintftime: New module.
81434         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81435
81436 2005-12-16  Jim Meyering  <jim@meyering.net>
81437
81438         * m4/fprintftime.m4: New file.
81439
81440 2005-12-16  Jim Meyering  <jim@meyering.net>
81441
81442         * lib/fprintftime.c, lib/fprintftime.h: New files.
81443
81444 2005-12-15  Simon Josefsson  <jas@extundo.com>
81445
81446         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81447         new m4/socklen.m4.
81448
81449 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81450
81451         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81452         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81453
81454 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81455
81456         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81457         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81458         struct uparams is valid. Fall back to the default values if it is
81459         not.
81460
81461 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81462
81463         * modules/argp (Files): Add argp-pin.c
81464         (Depends-on): dirname
81465         (lib_SOURCES): Add argp-pin.c
81466
81467 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81468
81469         * m4/argp.m4:  Check if program_invocation_name and
81470         program_invocation_short_name are declared and define appropriate
81471         macros if they are not.
81472
81473 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81474
81475         * lib/argp-help.c (__argp_base_name): New function
81476         (__argp_short_program_name): Rewrite using __argp_base_name
81477         * lib/argp-namefrob.h: Define program_invocation_name and
81478         program_invocation_short_name if requested
81479         (__argp_base_name): Add prototype
81480         * lib/argp-parse.c (argp_def): Use gettext wrappers
81481         (argp_default_parser): Use __argp_base_name
81482         * lib/argp-pin.c: New file. Defines program_invocation_name and
81483         program_invocation_short_name on systems that lack them.
81484
81485 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81486
81487         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81488         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81489         porting problem reported by Georg Schwarz in
81490         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81491
81492 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81493
81494         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81495         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81496         porting problem reported by Georg Schwarz in
81497         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81498
81499 2005-12-05  Bruno Haible  <bruno@clisp.org>
81500
81501         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81502         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81503         Reported by Mark Junker <mjscod@gmx.de>.
81504
81505 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81506
81507         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81508         Use implementation from Albert Chin, with some
81509         comments/corrections by Stepan Kasal and myself.
81510
81511 2005-12-02  Bruno Haible  <bruno@clisp.org>
81512
81513         * gnulib-tool (func_import): Accept GPLed build tool modules when
81514         --lgpl is given.
81515         * modules/csharpcomp-script: New file.
81516         * modules/csharpcomp: Depend on it.
81517         * modules/javacomp-script: New file.
81518         * modules/javacomp: Depend on it.
81519         Suggested by Simon Josefsson.
81520
81521 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81524         statement, to work around an HP-UX 10.20 compiler bug reported by
81525         Peter O'Gorman.
81526
81527 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81528
81529         * modules/savedir (Depends-on): Add openat.
81530
81531 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81534         (uintmax_t) [defined uintmax_t]: Do not declare.
81535         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81536         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81537         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81538         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81539         sake of portability to weird hosts that C allows (though we don't
81540         know of any practical examples).
81541
81542         * lib/savedir.h (fdsavedir): New decl.
81543         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81544         contains most of the former guts of savedir.
81545         (savedir): Use savedirstream.
81546         Include "openat.h".
81547
81548 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81549
81550         * modules/obstack (Files): Add m4/ulonglong.m4.
81551         Problem reported by Davide Angelocola.
81552
81553 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81554
81555         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81556         coreutils no longer futzes with rounding modes.
81557
81558 2005-11-14  Jim Meyering  <jim@meyering.net>
81559
81560         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81561         replacement of mkstemp.
81562
81563 2005-11-10  Simon Josefsson  <jas@extundo.com>
81564
81565         * lib/readline.c: Remove EOL.
81566
81567 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         * modules/gethrxtime (Depends-on): Add gettime.
81570
81571 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81574         or gettimeofday; no longer needed.
81575
81576 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81579         time business.
81580         (gethrxtime) [! (HAVE_NANOUPTIME
81581         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81582         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81583         our own approximation.
81584
81585 2005-11-08  Eric Blake  <ebb9@byu.net>
81586
81587         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81588
81589 2005-11-08  Eric Blake  <ebb9@byu.net>
81590
81591         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81592
81593 2005-11-04  Bruno Haible  <bruno@clisp.org>
81594
81595         * gnulib-tool: Implement --update mode.
81596
81597 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         Fix porting problem reported by Theodoros V. Kalamatianos.
81600         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81601         Don't assume that futimes failing means we must fail.
81602
81603 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81606         variables to suggest the intended function of the PATH_MAX check.
81607
81608 2005-10-30  Kean Johnston  <jkj@sco.com>
81609
81610         Trivial changes to support SCO systems.
81611         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81612         as PATH_MAX.
81613         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81614         where __ptr is null when no I/O is pending.
81615
81616 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81619         leave errno alone.  Problem reported by Dmitry V. Levin.
81620
81621 2005-10-28  Simon Josefsson  <jas@extundo.com>
81622
81623         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81624         Test more.
81625
81626         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81627
81628         * modules/md2, modules/md2-tests: New files.
81629
81630 2005-10-28  Simon Josefsson  <jas@extundo.com>
81631
81632         * m4/inet_ntop.m4: More tests.
81633
81634         * m4/gc-md2.m4, md2.m4: New file.
81635
81636 2005-10-28  Simon Josefsson  <jas@extundo.com>
81637
81638         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81639         "restrict" keywords, as per POSIX.  Protect the function
81640         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81641         Don't use K&R prototypes.  Check the sprintf return values.
81642         Re-define EAFNOSUPPORT if not present.  Indent.
81643
81644         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81645         suggested by Bruno Haible <bruno@clisp.org>.
81646
81647         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81648
81649         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81650
81651         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81652         libgcrypt).
81653
81654         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81655
81656         * lib/md2.h, lib/md2.c: New files.
81657
81658 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81661         errno alone.  Problem reported by Frederic Jolliton.
81662
81663 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         * modules/verify (License): Change from GPL to LGPL.  This is a
81666         tiny module and there are apparently near-equivalents that are
81667         under the BSD license.
81668
81669 2005-10-24  Simon Josefsson  <jas@extundo.com>
81670
81671         * modules/sha1: Relicense to LGPL.
81672
81673 2005-10-24  Simon Josefsson  <jas@extundo.com>
81674
81675         * lib/md4.h: Shrink buffer size, now that we changed the type.
81676
81677 2005-10-23  Simon Josefsson  <jas@extundo.com>
81678
81679         * gnulib-tool (func_import): Fix --tests-base.
81680
81681 2005-10-22  Simon Josefsson  <jas@extundo.com>
81682
81683         * modules/arcfour (Depends-on): Need stdint.
81684
81685 2005-10-22  Simon Josefsson  <jas@extundo.com>
81686
81687         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81688         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81689
81690 2005-10-22  Simon Josefsson  <jas@extundo.com>
81691
81692         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81693         suggested by Bruno Haible <bruno@clisp.org>.
81694
81695 2005-10-22  Simon Josefsson  <jas@extundo.com>
81696
81697         * lib/crc.h: Include stddef.h, for size_t.
81698
81699 2005-10-22  Simon Josefsson  <jas@extundo.com>
81700
81701         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81702         arcfour_context struct (simplify test vector testing in GNU
81703         Shishi).
81704
81705 2005-10-21  Simon Josefsson  <jas@extundo.com>
81706
81707         * modules/des, modules/des-tests: New files.
81708
81709         * modules/gc-des, modules/gc-des-tests: New files.
81710
81711         * tests/test-des.c, tests/test-gc-des.c: New file.
81712
81713 2005-10-21  Simon Josefsson  <jas@extundo.com>
81714
81715         * modules/arctwo, modules/arctwo-tests: New files.
81716
81717         * tests/test-arctwo.c: New file.
81718
81719         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81720
81721         * tests/test-gc-arctwo.c: New file.
81722
81723 2005-10-21  Simon Josefsson  <jas@extundo.com>
81724
81725         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81726         Bruno Haible <bruno@clisp.org>.
81727
81728         * m4/gc-des.m4: New file.
81729
81730 2005-10-21  Simon Josefsson  <jas@extundo.com>
81731
81732         * m4/arctwo.m4: New file.
81733
81734         * m4/gc-arctwo.m4: New file.
81735
81736 2005-10-21  Simon Josefsson  <jas@extundo.com>
81737
81738         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81739         block.
81740
81741 2005-10-21  Simon Josefsson  <jas@extundo.com>
81742
81743         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81744         <bruno@clisp.org>.
81745
81746         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81747
81748         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81749         Bruno Haible <bruno@clisp.org>.
81750
81751         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81752         <bruno@clisp.org>.
81753
81754 2005-10-21  Simon Josefsson  <jas@extundo.com>
81755
81756         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81757
81758 2005-10-21  Simon Josefsson  <jas@extundo.com>
81759
81760         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81761
81762 2005-10-21  Simon Josefsson  <jas@extundo.com>
81763
81764         * lib/des.h, lib/des.c: New files.
81765
81766         * lib/gc-gnulib.c: Support DES.c
81767
81768 2005-10-21  Simon Josefsson  <jas@extundo.com>
81769
81770         * lib/arctwo.h, lib/arctwo.c: New files.
81771
81772         * lib/gc-gnulib.c: Support ARCTWO.
81773
81774 2005-10-21  Simon Josefsson  <jas@extundo.com>
81775
81776         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81777         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81778
81779 2005-10-21  Simon Josefsson  <jas@extundo.com>
81780
81781         * gnulib-tool (func_import, func_create_testdir): Define automake
81782         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81783         Makefile.am snippet),
81784         suggested by Bruno Haible <bruno@clisp.org>.
81785
81786         * modules/gc (Makefile.am): Use it.
81787
81788 2005-10-21  Bruno Haible  <bruno@clisp.org>
81789
81790         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81791         patch.
81792
81793 2005-10-19  Simon Josefsson  <jas@extundo.com>
81794
81795         * tests/test-gc-rijndael.c: New file.
81796
81797         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81798
81799 2005-10-19  Simon Josefsson  <jas@extundo.com>
81800
81801         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81802         interface too.
81803
81804 2005-10-19  Simon Josefsson  <jas@extundo.com>
81805
81806         * tests/test-gc-arcfour.c: New file.
81807
81808         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81809
81810 2005-10-19  Simon Josefsson  <jas@extundo.com>
81811
81812         * modules/gc-md4, modules/gc-md4-tests: New file.
81813
81814         * tests/test-gc-md4.c: New file.
81815
81816 2005-10-19  Simon Josefsson  <jas@extundo.com>
81817
81818         * m4/gc-md4.m4: New file.
81819
81820 2005-10-19  Simon Josefsson  <jas@extundo.com>
81821
81822         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81823         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81824         <kasal@ucw.cz>.
81825
81826 2005-10-19  Simon Josefsson  <jas@extundo.com>
81827
81828         * m4/gc-arcfour.m4: New file.
81829
81830         * m4/gc-rijndael.m4: New file.
81831
81832 2005-10-19  Simon Josefsson  <jas@extundo.com>
81833
81834         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81835
81836 2005-10-19  Simon Josefsson  <jas@extundo.com>
81837
81838         * lib/gc-gnulib.c: Support ARCFOUR.
81839
81840 2005-10-19  Simon Josefsson  <jas@extundo.com>
81841
81842         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81843         support.
81844
81845         * lib/gc.h: Add ECB enum type.
81846
81847         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81848
81849 2005-10-18  Simon Josefsson  <jas@extundo.com>
81850
81851         * tests/test-md5.c: New file.
81852
81853         * modules/md5-tests: New file.
81854
81855 2005-10-18  Simon Josefsson  <jas@extundo.com>
81856
81857         * tests/test-md4.c: New file.
81858
81859         * modules/md4, modules/md4-tests: New files.
81860
81861 2005-10-18  Simon Josefsson  <jas@extundo.com>
81862
81863         * m4/md4.m4: New file.
81864
81865 2005-10-18  Simon Josefsson  <jas@extundo.com>
81866
81867         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81868
81869 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81870
81871         * gnulib-tool (func_create_testdir): Omit the second check whether
81872         BUILT_SOURCES in nonempty.
81873
81874 2005-10-17  Simon Josefsson  <jas@extundo.com>
81875
81876         * tests/test-rijndael.c: New file.
81877
81878 2005-10-17  Simon Josefsson  <jas@extundo.com>
81879
81880         * modules/sha1: Depend on stdint instead of md5.
81881
81882         * modules/md5: Depend on stdint, remove uint32_t.
81883
81884 2005-10-17  Simon Josefsson  <jas@extundo.com>
81885
81886         * modules/gc-sha1-tests: New file.
81887
81888         * tests/test-gc-sha1.c: New file.
81889
81890 2005-10-17  Simon Josefsson  <jas@extundo.com>
81891
81892         * m4/md5.m4: Remove call to uint32_t.m4.
81893
81894 2005-10-17  Simon Josefsson  <jas@extundo.com>
81895
81896         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81897
81898         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81899         md5.h.
81900
81901         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81902
81903         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81904
81905 2005-10-17  Simon Josefsson  <jas@extundo.com>
81906
81907         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81908
81909 2005-10-17  Simon Josefsson  <jas@extundo.com>
81910
81911         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81912
81913 2005-10-17  Simon Josefsson  <jas@extundo.com>
81914
81915         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81916
81917         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81918
81919 2005-10-17  Bruno Haible  <bruno@clisp.org>
81920
81921         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81922         that it can also be used in a test.
81923
81924 2005-10-16  Bruno Haible  <bruno@clisp.org>
81925
81926         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81927         TESTS_ENVIRONMENT, so that individual tests can augment it.
81928
81929         * gnulib-tool (func_create_testdir): Use an intermediate target for
81930         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81931         macros, like $(ALLOCA_H), which cannot be passed through the command
81932         line.
81933
81934 2005-10-15  Simon Josefsson  <jas@extundo.com>
81935
81936         * modules/rijndael-tests: New file.
81937
81938         * modules/rijndael: New file.
81939
81940 2005-10-15  Simon Josefsson  <jas@extundo.com>
81941
81942         * m4/rijndael.m4: New file.
81943
81944 2005-10-15  Simon Josefsson  <jas@extundo.com>
81945
81946         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81947
81948         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81949
81950 2005-10-14  Simon Josefsson  <jas@extundo.com>
81951
81952         * tests/test-arcfour.c: New file.
81953
81954         * modules/arcfour, modules/arcfour-tests: New files.
81955
81956 2005-10-14  Simon Josefsson  <jas@extundo.com>
81957
81958         * m4/arcfour.m4: New file.
81959
81960 2005-10-14  Simon Josefsson  <jas@extundo.com>
81961
81962         * lib/arcfour.h, lib/arcfour.c: New files.
81963
81964 2005-10-14  Roland McGrath  <roland@redhat.com>
81965
81966         Import from libc.  [BZ #1331]
81967         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81968         macro argument.
81969         Reported by Matej Vela <vela@debian.org>.
81970
81971 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81974         include <wchar.h>; no longer needed.
81975
81976 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81979
81980 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81981         and  Ulrich Drepper  <drepper@redhat.com>
81982
81983         Import from libc.
81984         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81985         instead of inline stream orientation test and two separate
81986         function calls.  Pay no attention to USE_IN_LIBIO.
81987
81988 2005-10-13  Simon Josefsson  <jas@extundo.com>
81989
81990         * modules/gc-hmac-md5-tests: New file.
81991
81992         * tests/test-gc-hmac-sha1.c: New file.
81993
81994         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81995
81996         * modules/gc-hmac-md5-tests: New file.
81997
81998         * tests/test-gc-md5.c: New file.
81999
82000         * modules/gc-md5-tests: New file.
82001
82002 2005-10-13  Simon Josefsson  <jas@extundo.com>
82003
82004         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82005         Move memory allocation outside of loop.
82006
82007 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82008
82009         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82010         intermediate directory is in a read-only file system.  Problem
82011         reported by Eric Blake.
82012
82013 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82014
82015         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82016
82017 2005-10-12  Simon Josefsson  <jas@extundo.com>
82018
82019         * tests/test-hmac-sha1.c: New file.
82020
82021         * modules/hmac-sha1-tests: New file.
82022
82023         * modules/hmac-sha1: New file.
82024
82025 2005-10-12  Simon Josefsson  <jas@extundo.com>
82026
82027         * modules/gc-sha1: New file.
82028
82029 2005-10-12  Simon Josefsson  <jas@extundo.com>
82030
82031         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82032
82033         * tests/test-gc-pbkdf2-sha1.c: New file.
82034
82035 2005-10-12  Simon Josefsson  <jas@extundo.com>
82036
82037         * modules/gc-md5, modules/gc-hmac-md5: New files.
82038
82039         * modules/gc (Files): Remove md5, memxor and hmac files.
82040
82041 2005-10-12  Simon Josefsson  <jas@extundo.com>
82042
82043         * m4/gc-pbkdf2-sha1.m4: New file.
82044
82045         * m4/gc-hmac-sha1.m4: New file.
82046
82047         * m4/gc-sha1: New file.
82048
82049         * m4/hmac-sha1.m4: New file.
82050
82051 2005-10-12  Simon Josefsson  <jas@extundo.com>
82052
82053         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82054
82055         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82056
82057 2005-10-12  Simon Josefsson  <jas@extundo.com>
82058
82059         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82060         suggested by Bruno Haible <bruno@clisp.org>.
82061
82062 2005-10-12  Simon Josefsson  <jas@extundo.com>
82063
82064         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82065
82066 2005-10-12  Simon Josefsson  <jas@extundo.com>
82067
82068         * lib/gc-pbkdf2-sha1.c: New file.
82069
82070         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82071
82072 2005-10-12  Simon Josefsson  <jas@extundo.com>
82073
82074         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82075
82076         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82077
82078 2005-10-12  Simon Josefsson  <jas@extundo.com>
82079
82080         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82081         GC_USE_HMAC_MD5, respectively.
82082
82083         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82084         (gc_md5): Fix typo.
82085
82086         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82087
82088         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82089
82090         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82091
82092 2005-10-12  Bruno Haible  <bruno@clisp.org>
82093
82094         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82095         Reported by Stepan Kasal <kasal@ucw.cz>.
82096
82097 2005-10-11  Simon Josefsson  <jas@extundo.com>
82098
82099         * tests/test-crc.c: New file.
82100
82101         * modules/crc, modules/crc-tests: New files.
82102
82103 2005-10-11  Simon Josefsson  <jas@extundo.com>
82104
82105         * m4/crc.m4: New file.
82106
82107 2005-10-11  Simon Josefsson  <jas@extundo.com>
82108
82109         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82110
82111         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82112
82113         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82114
82115 2005-10-11  Simon Josefsson  <jas@extundo.com>
82116
82117         * lib/crc.h, lib/crc.c: New files.
82118
82119         * lib/gc.h (gc_hash_buffer): Add doc.
82120
82121 2005-10-11  Bruno Haible  <bruno@clisp.org>
82122
82123         * modules/c-strcasestr: New file.
82124         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82125
82126 2005-10-11  Bruno Haible  <bruno@clisp.org>
82127
82128         * modules/c-strcase: New file.
82129         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82130
82131 2005-10-11  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/strcasecmp.c: Include limits.h.
82134         (strcasecmp): Avoid integer overflow on exotic platforms.
82135         * lib/strncasecmp.c: Include limits.h.
82136         (strncasecmp): Avoid integer overflow on exotic platforms.
82137         Reported by Paul Eggert.
82138
82139 2005-10-11  Bruno Haible  <bruno@clisp.org>
82140
82141         * lib/c-strcasestr.h: New file, from GNU gettext.
82142         * lib/c-strcasestr.c: New file, from GNU gettext.
82143
82144 2005-10-11  Bruno Haible  <bruno@clisp.org>
82145
82146         * lib/c-strcase.h: New file, from GNU gettext.
82147         * lib/c-strcasecmp.c: New file, from GNU gettext.
82148         * lib/c-strncasecmp.c: New file, from GNU gettext.
82149
82150 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82151
82152         * modules/mempcpy (License): GPL -> LGPL.
82153         * modules/strchrnul (License): Likewise.
82154         * modules/sysexits (License): Likewise.
82155
82156 2005-10-08  Simon Josefsson  <jas@extundo.com>
82157
82158         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82159
82160 2005-10-07  Simon Josefsson  <jas@extundo.com>
82161
82162         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82163
82164 2005-10-06  Simon Josefsson  <jas@extundo.com>
82165
82166         * tests/test-hmac-md5.c: New file.
82167
82168         * modules/hmac-md5-tests: New file.
82169
82170         * modules/hmac-md5: New file.
82171
82172 2005-10-06  Simon Josefsson  <jas@extundo.com>
82173
82174         * m4/hmac-md5.m4: New file.
82175
82176         * m4/memxor.m4: Require gl_C_RESTRICT.
82177
82178 2005-10-06  Simon Josefsson  <jas@extundo.com>
82179
82180         * lib/memxor.c (memxor): Avoid casts and warnings.
82181
82182 2005-10-06  Simon Josefsson  <jas@extundo.com>
82183
82184         * lib/hmac-md5.c: New file.
82185
82186         * lib/hmac.h: New file.
82187
82188 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82191         promotes to int, not unsigned int, to catch the AIX 5.3
82192         compiler bug.
82193
82194 2005-10-05  Simon Josefsson  <jas@extundo.com>
82195
82196         * modules/memxor: New file.
82197
82198         * modules/iconv (Files): Move config.rpath to havelib, it is used
82199         there.
82200
82201         * modules/havelib (Files): Add config.rpath.
82202
82203 2005-10-05  Simon Josefsson  <jas@extundo.com>
82204
82205         * m4/memxor.m4: New file.
82206
82207 2005-10-05  Simon Josefsson  <jas@extundo.com>
82208
82209         * lib/memxor.c (memxor): Fix compiler error.
82210
82211         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82212         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82213
82214         * lib/memxor.h, lib/memxor.c: New files.
82215
82216         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82217         we assume all systems have it, suggested by Jim Meyering
82218         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82219         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82220         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82221         same reasons.
82222
82223 2005-10-05  Simon Josefsson  <jas@extundo.com>
82224
82225         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82226
82227 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82230         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82231         needed, since the source code now assumes these .h files.
82232
82233 2005-10-05  Derek Price  <derek@ximbiot.com>
82234
82235         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82236
82237 2005-10-05  Bruno Haible  <bruno@clisp.org>
82238
82239         * modules/stdint (License): Change to LGPL.
82240
82241 2005-10-04  Simon Josefsson  <jas@extundo.com>
82242
82243         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82244         D. Baushke" <mdb@gnu.org>.
82245
82246 2005-10-04  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/verify.h (verify_true): Provide alternative definition for C++.
82249
82250 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82251
82252         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82253         (SSIZE_MAX): New macro, if not already defined.
82254         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82255         than 2 GiB.
82256
82257 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82258
82259         Sync from coreutils.
82260         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82261         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82262         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82263         ULLONG_MAX doesn't work with 2.7.2.1.
82264
82265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82268         From Ben Pfaff.
82269
82270         * modules/exclude (Depends-on): Depend on verify.
82271         * modules/strtoimax (Depends-on): Likewise.
82272         * modules/utimecmp (Depends-on): Likewise.
82273
82274 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * lib/exclude.c: Include verify.h.
82277         (verify): Remove.  All callers changed to use verify.h's version.
82278         * lib/strtoimax.c: Likewise.
82279         * lib/utimecmp.c: Likewis.e
82280
82281         Sync from coreutils.
82282         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82283         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82284         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82285         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82286         bother returning ENOSYS if settimeofday or stime fails; just let
82287         them return whatever errno they want to return.
82288         * lib/utimens.c: Include unistd.h, for dup2.
82289         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82290         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82291
82292 2005-10-02  Jim Meyering  <jim@meyering.net>
82293
82294         Sync from coreutils.
82295         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82296         from glibc-2.2.5 that fails for read-only files.
82297
82298 2005-10-02  Jim Meyering  <jim@meyering.net>
82299
82300         Sync from coreutils.
82301         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82302         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82303         `#if HAVE_CONFIG_H'.
82304         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82305         Remove AT_FDCWD test.
82306         Do not consume the fd unless successful.
82307         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82308         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82309         block, so that we don't even try to compile it if settimeofday is
82310         available.  This works around a compilation failure on OSF1 V5.1,
82311         due to stime requiring a `long int*' while tv_sec is `int'.
82312
82313 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82314
82315         Sync from coreutils.
82316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82317         against `yes', rather than just testing for nonempty.
82318
82319 2005-10-01  Simon Josefsson  <jas@extundo.com>
82320
82321         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82322         and Darwin.
82323
82324         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82325         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82326         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82327         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82328         Check if struct addrinfo is declared.
82329
82330 2005-10-01  Simon Josefsson  <jas@extundo.com>
82331
82332         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82333         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82334         AI_* and EAI_* definitions.  Protect function declarations.
82335
82336 2005-10-01  Jim Meyering  <jim@meyering.net>
82337
82338         Sync from coreutils.
82339
82340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82341         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82342         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82344         in the inet and nsl libraries.  Required on Solaris 5.7.
82345
82346 2005-10-01  Jim Meyering  <jim@meyering.net>
82347
82348         Sync from coreutils.
82349         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82350         in the inet and nsl libraries.  Required on Solaris 5.7.
82351
82352 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82353
82354         * lib/getdelim.c (getdelim): Remove unused variables.
82355
82356 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82359         so that the code works even with ancient cpp.  Portability problem
82360         with GCC 2.7.2.1 reported by Thomas M.Ott.
82361
82362 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * modules/regex (Depends-on): Add strcase.
82365
82366         * modules/gethostname (Licence): Change from GPL to LGPL, since
82367         gethostname.c is a trivial implementation of a standard library
82368         function.
82369         * modules/poll (License): Change from GPL to LGPL, since it's
82370         derived from LGPL code.
82371
82372 2005-09-27  Jim Meyering  <jim@meyering.net>
82373
82374         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82375         HAVE_CONFIG_H.
82376
82377         * lib/intprops.h (signed_type_or_expr__): Define.
82378         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82379         for unsigned types.
82380
82381 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * lib/verify.h (verify_expr): Remove, replacing with:
82384         (verify_true): New macro that returns true instead of void.
82385         (verify_type__): Remove.
82386         (verify): Use verify_true rather than verify_type__.
82387
82388 2005-09-26  Bruno Haible  <bruno@clisp.org>
82389
82390         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82391         is necessary.
82392         (lib_SOURCES): Remove mbchar.c.
82393         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82394         (Files): Add m4/mbrtowc.m4.
82395         * modules/mbiter: Likewise.
82396         * modules/mbuiter: Likewise.
82397
82398 2005-09-26  Bruno Haible  <bruno@clisp.org>
82399
82400         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82401         compile mbchar.c if they are not both present.
82402         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82403         * m4/mbiter.m4 (gl_MBITER): Likewise.
82404         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82405         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82406         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82407
82408 2005-09-25  Jim Meyering  <jim@meyering.net>
82409
82410         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82411         also uses socklen_t.
82412
82413 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82414
82415         * lib/utimens.c (ENOSYS): Define if not already defined.
82416         (futimens): Support having a null PATH if the file descriptor
82417         is nonnegative.
82418
82419         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82420         Remove.
82421         (__attribute): Define to empty unless GCC 3.1 or later.
82422         This works around a core dump on OpenBSD 3.4, which has GCC
82423         2.95.3, which dumps core when given __attribute__(()).  It also
82424         simplifies other tests, since we really don't want to bother with
82425         worrying about which ancient version of GCC supported what.
82426         Original problem reported by Yoann Vandoorselaere, with part of
82427         the fix suggested by Derek Price.
82428
82429 2005-09-24  Jim Meyering  <jim@meyering.net>
82430
82431         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82432         so we can once again use a positive bitfield width of 1 -- now we
82433         don't have to explain why we were using a bitfield width of 2.
82434
82435 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82436
82437         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82438         and similarly for the other external symbols.  Problem reported
82439         by James Gallager.
82440
82441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82442         bug reported by Jim Meyering.
82443
82444         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82446         not needed, since socklen is a prerequisite module.
82447
82448 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82449
82450         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82451         Problem reported by Eric Blake.
82452         (getaddrinfo): Initialize se so that it's not garbage.
82453         Redo internal storage allocation so that it doesn't make unportable
82454         assumptions about alignment.
82455         Fix a memory leak.
82456
82457         * lib/utimens.c (futimens): Use futimesat if available.
82458         Prefer it to futimes since it doesn't have the futimes bug.
82459
82460         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82461         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82462         Instead, declare a function that returns a pointer to an array,
82463         and use verify_type__ to declare the size of the array.
82464         Problem and germ of a solution reported by Bruno Haible.
82465         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82466         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82467
82468 2005-09-23  Jim Meyering  <jim@meyering.net>
82469
82470         Sync from coreutils.
82471         Correct build failure (socklen_t not defined) on at least
82472         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82474
82475 2005-09-23  Jim Meyering  <jim@meyering.net>
82476
82477         * modules/getaddrinfo (Depends-on): Add socklen.
82478
82479 2005-09-23  Bruno Haible  <bruno@clisp.org>
82480
82481         * tests/test-verify.c: New file.
82482
82483 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         Sync from coreutils.
82486
82487         * modules/argmatch (Depends-on): Add verify.
82488         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82489         unistd-safer.
82490         * modules/save-cwd (Depends-on): Likewise.
82491
82492         * modules/openat (Files): Add lib/openat-die.c.
82493         (Depends-on): Remove error, exitfail.
82494         Add dirname.
82495
82496         * modules/verify: New file.
82497         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82498         with "verify" module.
82499
82500 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82501
82502         Sync from coreutils.
82503
82504         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82505         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82506         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82507         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82508         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82509         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82510         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82511         Don't bother checking for string.h, stdlib.h, unistd.h.
82512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82514         module's job.
82515         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82516         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82517
82518         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82519         (gl_GETDATE): Use it.
82520
82521         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82522
82523 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82524
82525         Sync from coreutils.
82526
82527         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82528         stat-time.h.
82529         * lib/argmatch.h: Include verify.h
82530         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82531         (ARGMATCH_ASSERT): Remove; unused.
82532         * lib/canonicalize.c: Assume STDC_HEADERS.
82533         * lib/exclude.c: Include "strcase.h".
82534         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82535         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82536         and stdio-safer.h.
82537         (getusershell): Call fopen, not fopen_safer.
82538         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82539         Do not include unistd-safer.h.
82540         (save_cwd): Don't call fd_safer; no longer needed
82541         now that we include fcntl--.h.
82542
82543         * lib/getdate.y (relative_time): New type.
82544         (RELATIVE_TIME_0): New constant.
82545         (parser_control): Use relative_time instead of doing it ourselves.
82546         (%union): Add new relative_time rel member.
82547         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82548         Now typeless.
82549         (relunit, relunit_snumber): Now of type rel.
82550         (zone, rel, relunit, get_date): Adjust to above changes.
82551
82552         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82553         Do not include unistd-safer.h.
82554         (getloadavg): Don't call fd_safer; no longer needed
82555         now that we include fcntl--.h.
82556
82557         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82558         (make_dir_parents): Treat ENOSYS like EEXIST.
82559
82560         Improve quality of diagnostics on restore_cwd failure.
82561         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82562         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82563         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82564         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82565         each time through the loop.  Do not diagnose restore_cwd failure;
82566         that is the caller's job (and perhaps the caller does not care).
82567
82568         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82569         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82570         If the file already exists but is not a directory, don't bother
82571         to try to make its parents.
82572         Close potential file descriptor leak if we can't chdir("/") (!).
82573         Don't always return true if chdir($PWD) fails; return true only
82574         if the requested action was done successfully (except for the
82575         chdir($PWD)).
82576         Don't log final directory unless we actually made it.
82577         Refactor to avoid duplicate code to fix up permissions.
82578         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82579
82580         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82581         to make it a bit faster and (I hope) clearer.
82582         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82583         Fix bug in formats like %2N.
82584
82585         * lib/verify.h: New file.
82586
82587 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82588
82589         Sync from coreutils.
82590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82591
82592 2005-09-22  Jim Meyering  <jim@meyering.net>
82593
82594         Sync from coreutils.
82595
82596         * m4/lstat.m4 (gl_FUNC_LSTAT):
82597         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82598         Remove obsolete comment.
82599         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82600         * m4/xstrtod.m4: Likewise.
82601
82602         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82603
82604 2005-09-22  Jim Meyering  <jim@meyering.net>
82605
82606         Sync from coreutils.
82607
82608         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82609
82610         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82611         the .tm_year member, since otherwise gcc-4.0 would now warn about
82612         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82613
82614         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82615         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82616
82617         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82618         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82619         when run in a time zone for which daylight savings time is in effect
82620         for the starting date.
82621
82622         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82623         stop us from restricting permissions of just-created absolute-named
82624         directories.
82625         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82626         to restore initial working directory.
82627         * lib/mkdir-p.c (make_dir_parents): New parameter:
82628         different_working_dir, to tell caller if/when we change the working
82629         directory and are unable to return to the initial one.
82630         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82631         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82632         `return false'.  This fixes a bug introduced on 2004-07-30.
82633
82634         * lib/openat.c (fdopendir): Be sure to close the supplied
82635         file descriptor before returning.  This makes our replacement
82636         implementation a little closer to Solaris's, where fdopendir
82637         ties the file descriptor to the returned DIR* pointer.
82638         * lib/openat.c (unlinkat): New function.
82639         * lib/openat.h (unlinkat): Add prototype.
82640         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82641         (openat_restore_fail): Rename from openat_restore_die.
82642         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82643
82644         Provide an alternative to exiting immediately upon save_cwd or
82645         restore_cwd failure.  Now, an application can arrange e.g.,
82646         to perform a longjump in that case.
82647         * lib/openat.c: Include dirname.h.
82648         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82649         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82650         and openat_restore_die rather than calling error directly.
82651         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82652
82653         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82654         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82655         define.
82656
82657         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82658         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82659                             int utc, int nanoseconds);
82660         Background:
82661         date should not have to allocate a megabyte of virtual memory to
82662         handle a format argument like +%1048575T.  When implemented with
82663         strftime, it must allocate such a buffer, use strftime to fill it
82664         in, print it, then free it.
82665         With fprintftime, it simply prints everything and exits.
82666         With no need for memory allocation, that's one fewer way to fail.
82667         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82668         optional field width, not before, so we accept %9:z, not %:9z.
82669         (my_strftime): Be sure to use L_('x') for literals.
82670
82671         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82672         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82673         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82674         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82675         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82676         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82677         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82678         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82679         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82680         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82681         * lib/xgethostname.c, lib/xreadlink.c:
82682         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82683
82684         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82685         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82686         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82687         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82688         and don't include <sys/file.h>).
82689
82690 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82691
82692         Sync from coreutils.
82693
82694         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82695         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82696         [!LDAV_DONE]: Avoid unused variable warning.
82697
82698 2005-09-21  Bruno Haible  <bruno@clisp.org>
82699
82700         * lib/unicodeio.h (unicode_to_mb): New declaration.
82701
82702 2005-09-20  Derek Price  <derek@ximbiot.com>
82703
82704         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82705         getaddrinfo.h.
82706
82707 2005-09-20  Bruno Haible  <bruno@clisp.org>
82708
82709         * gnulib-tool: Remove trailing slashes from the values specified for
82710         --source-base, --m4-base, --tests-base, --aux-dir.
82711         Suggested by Simon Josefsson <jas@extundo.com>.
82712
82713 2005-09-20  Bruno Haible  <bruno@clisp.org>
82714
82715         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82716         func_modules_to_filelist, func_import, func_create_testdir): Make all
82717         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82718         change when gnulib-tool is invoked in a different locale.
82719
82720 2005-09-19  Simon Josefsson  <jas@extundo.com>
82721
82722         * m4/socklen.m4: Fix typo.
82723
82724 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82725
82726         Use a consistent style for including <config.h>.
82727         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82728         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82729         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82730         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82731         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82732         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82733         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82734         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82735         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82736         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82737         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82738         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82739         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82740         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82741         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82742         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82743         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82744         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82745         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82746         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82747         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82748         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82749         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82750         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82751         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82752         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82753         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82754         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82755         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82756         lib/xstrtoumax.c, lib/yesno.c:
82757         Standardize inclusion of config.h.
82758         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82759         lib/inttostr.h:  Removed inclusion of config.h from header files.
82760         * lib/inttostr.c:  Adjusted in-tree users.
82761         * lib/timespec.h: Remove superfluous warning to include config.h.
82762         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82763         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82764         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82765         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82766         config.h with HAVE_CONFIG_H.
82767
82768 2005-09-19  Jim Meyering  <jim@meyering.net>
82769
82770         * modules/pathmax (License): Change to LGPL.
82771
82772 2005-09-19  Derek Price  <derek@ximbiot.com>
82773
82774         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82775
82776 2005-09-19  Bruno Haible  <bruno@clisp.org>
82777
82778         * gnulib-tool (import): Provide default for --tests-base.
82779
82780 2005-09-19  Bruno Haible  <bruno@clisp.org>
82781
82782         * doc/quote.texi: New file, extracted from gnulib.texi.
82783         * doc/ctime.texi: New file, extracted from gnulib.texi.
82784         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82785         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82786         * doc/gnulib.texi: Include them.
82787
82788 2005-09-18  Bruno Haible  <bruno@clisp.org>
82789
82790         Portability fix.
82791         * gnulib-tool (func_readlink): New function.
82792         (func_ln_if_changed): Use it.
82793
82794 2005-09-18  Bruno Haible  <bruno@clisp.org>
82795
82796         * gnulib-tool: Support --with-tests also with --import.
82797         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82798         (func_import): Use variables $testsbase and $inctests. Emit a
82799         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82800         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82801         SUBDIRS += $testsdir.
82802         (func_create_testdir): Update.
82803
82804 2005-09-18  Bruno Haible  <bruno@clisp.org>
82805
82806         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82807         instead of $dry_run.
82808         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82809         (func_ln_if_changed): Don't handle dry-run here.
82810         (func_import): In dry-run mode, detect more precisely which actions
82811         would be performed, and don't use "...ing" verbs.
82812
82813 2005-09-18  Bruno Haible  <bruno@clisp.org>
82814
82815         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82816         (func_import): Use join on two temporary files instead of three nested
82817         loops, in order to determine which files are new or old.
82818
82819 2005-09-18  Bruno Haible  <bruno@clisp.org>
82820
82821         * gnulib-tool (func_import): Comment out code that spits out the
82822         new files with --dry-run.
82823
82824 2005-09-18  Bruno Haible  <bruno@clisp.org>
82825
82826         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82827
82828 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82829
82830         * lib/stat-time.h: New file.
82831         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82832         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82833         in a different way.
82834         (timespec_cmp): New function.
82835         * lib/utimecmp.c: Include stat-time.h.
82836         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82837         members exist, not on the obsolescent ST_MTIM_NSEC.
82838         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82839
82840 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82843
82844 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * MODULES.html.sh (File system functions): Add stat-time.
82847         * modules/stat-time: New file.
82848         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82849         is now done in a different way, by the stat-time module.
82850         * modules/utimecmp (Depends-on): Add stat-time.
82851
82852 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * m4/st_mtim.m4: Remove.  Superseded by...
82855         * m4/stat-time.m4: New file.
82856         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82857         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82858
82859 2005-09-15  Derek Price  <derek@ximbiot.com>
82860
82861         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82862
82863 2005-09-15  Derek Price  <derek@ximbiot.com>
82864
82865         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82866         * lib/regex_internal.c: Ditto, using this...
82867         (__GNUC_PREREQ): ...new macro.
82868         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82869         using...
82870         (__GNUC_PREREQ): ...this new macro.
82871
82872         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82873
82874 2005-09-15  Derek Price  <derek@ximbiot.com>
82875             Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82878         changes, consolidating in...
82879         * lib/regex_internal.h: ...this file.
82880
82881 2005-09-13  Jim Meyering  <jim@meyering.net>
82882
82883         * lib/canon-host.c: Filter through gnu indent and reword comments
82884         slightly.
82885         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82886
82887 2005-09-13  Derek Price  <derek@ximbiot.com>
82888
82889         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82890         failure.
82891         Reported by Jim Meyering  <jim@meyering.net>.
82892
82893 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82894
82895         * lib/base64.c: Typo.
82896         (base64_encode): Put b64str in initialized data section.
82897
82898 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         Merge glibc and coreutils changes into gnulib, plus a few
82901         extra fixes.
82902         * lib/md5.c: Use #error rather than a string.
82903         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82904         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82905         (__attribute__): Define to empty for non recent-GCC.
82906         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82907         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82908         Renamed from their non-__ counterparts, with new macros replacing
82909         them if not _LIBC.  Add __THROW attribute.
82910         (rol): Remove.
82911         (struct md5_ctx): Align buffer if using GCC.
82912         * lib/sha1.h (struct sha1_ctx): Likewise.
82913         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82914         The old name was backwards.
82915         (NOTSWAP): Remove; not used.
82916         (rol): New macro, moved here from md5.h.
82917         (sha1_process_block): Remove a FIXME that doesn't make sense.
82918
82919 2005-09-12  Derek Price  <derek@ximbiot.com>
82920
82921         Return usable errors from canon-host.
82922         * lib/canon-host.h: New file.
82923         * lib/canon-host.c (canon_host): Wrap...
82924         (canon_host_r): ...this new function, which now relies exclusively on
82925         getaddrinfo.
82926         (ch_strerror): New function.
82927         (last_cherror): New global.
82928         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82929         interface.
82930         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82931         void *.
82932         (freeaddrinfo): Free ai->ai_canonname when set.
82933
82934 2005-09-12  Derek Price  <derek@ximbiot.com>
82935
82936         Make canon-host require getaddrinfo.
82937         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82938         AC_LIBSOURCE canon-host.h.  Call...
82939         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82940         gl_GETADDRINFO.
82941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82942
82943 2005-09-12  Derek Price  <derek@ximbiot.com>
82944
82945         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82946         LGPL.
82947         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82948
82949 2005-09-12  Derek Price  <derek@ximbiot.com>
82950
82951         * lib/gai_strerror.c: Include config.h when available.  Include
82952         getaddrinfo.h before other headers to test interface.
82953         Reported by Larry Jones <lawrence.jones@ugs.com>.
82954
82955 2005-09-12  Derek Price  <derek@ximbiot.com>
82956             Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         * modules/glob (Files): Add glob-libc.h.
82959
82960 2005-09-12  Derek Price  <derek@ximbiot.com>
82961             Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82964         glob_.h, glob-libc.h.
82965         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82966
82967 2005-09-12  Derek Price  <derek@ximbiot.com>
82968             Paul Eggert  <eggert@cs.ucla.edu>
82969
82970         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82971         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82972         protecting things that should be done only in gnulib contexts.
82973         * lib/glob_.h: New file, containing only the glob things needed for
82974         gnulib.
82975         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82976         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82977         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82978         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82979         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82980         and to respect the namespace rules better.
82981
82982 2005-09-08  Simon Josefsson  <jas@extundo.com>
82983
82984         * modules/socklen: New file.
82985
82986 2005-09-08  Simon Josefsson  <jas@extundo.com>
82987
82988         * m4/socklen.m4: New file.
82989
82990 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82991
82992         * modules/utimens (Files): Add m4/utimbuf.m4, since
82993         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82994         Reported by Sergey Poznyakoff.
82995
82996 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82997
82998         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82999         definitions, since that's the preferred style in glibc.
83000         Fix a minor spacing issue, and update copyright notice to match
83001         glibc's.
83002
83003 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83006
83007 2005-09-06  Simon Josefsson  <jas@extundo.com>
83008
83009         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83010         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83011
83012 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83015         warning.
83016
83017 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * config/srclist.txt: Add glibc bug 1302.
83020
83021 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         Change bitset word type from unsigned int to unsigned long int,
83024         as this has better performance on typical 64-bit hosts.
83025         Port bitset code to hosts with unusual word sizes.
83026         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83027         (build_collating_symbol):
83028         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83029         argument is a bitset.  This is merely a style issue, but it makes
83030         it clearer that an entire array is expected.
83031         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83032         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83033         Port to the case where bitset_word is not the same as unsigned int.
83034         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83035         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83036         Likewise.
83037         * lib/regexec.c (check_dst_limits_calc_pos_1,
83038         check_subexp_matching_top):
83039         (build_trtable, group_nodes_into_DFAstates):
83040         Likewise.
83041         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83042         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83043         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83044         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83045         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83046         * lib/regcomp.c (optimize_subexps, lower_subexp):
83047         Work even if bitset_word has holes in its bitwise representation.
83048         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83049         * lib/regexec.c (check_dst_limits_calc_pos_1,
83050         check_subexp_matching_top):
83051         Likewise.
83052         * lib/regex_internal.c (re_string_reconstruct):
83053         Don't assume UCHAR_MAX == 255.
83054         * lib/regex_internal.h (bitset_set_all): Likewise.
83055         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83056         All uses changed.
83057         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83058         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83059         All uses changed.
83060         (BITSET_WORD_MAX): New macro.
83061         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83062         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83063         (bitset_empty, bitset_copy):
83064         Prefer sizeof (bitset) to multiplying it out ourselves.
83065         (bitset_not_merge): Remove; unused.
83066         (bitset_contain): Return bool, not unsigned int with one bit on.
83067         All callers changed.
83068         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83069         alignment than re_node_set; do this by defining a new internal
83070         type struct dests_alloc and using it to allocate memory.
83071
83072 2005-09-05  Bruno Haible  <bruno@clisp.org>
83073
83074         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83075         links.
83076
83077 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83078
83079         * modules/size_max (Makefile.am): Add size_max.h
83080
83081 2005-09-04  Derek Price  <derek@ximbiot.com>
83082
83083         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83084
83085 2005-09-03  Simon Josefsson  <jas@extundo.com>
83086
83087         * gnulib-tool: Fix typo.
83088
83089 2005-09-03  Simon Josefsson  <jas@extundo.com>
83090
83091         * config/srclist.txt: Add glibc bug 1293.
83092
83093 2005-09-03  Derek Price  <derek@ximbiot.com>
83094
83095         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83096         From Larry Jones <lawrence.jones@ugs.com>.
83097
83098 2005-09-02  Simon Josefsson  <jas@extundo.com>
83099
83100         * modules/socklen: New file.
83101
83102 2005-09-02  Simon Josefsson  <jas@extundo.com>
83103
83104         * modules/havelib: New module.
83105
83106         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83107         Use havelib.
83108
83109 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83110
83111         Check for arithmetic overflow when calculating sizes, to prevent
83112         some buffer-overflow issues.  These patches are conservative, in the
83113         sense that when I couldn't determine whether an overflow was possible,
83114         I inserted a run-time check.
83115         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83116         macros.
83117         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83118         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83119         (re_xnrealloc, re_x2nrealloc): New inline functions.
83120         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83121         parse_bracket_exp):
83122         (build_equiv_class, build_charclass): Check for arithmetic overflow
83123         in size expression calculations.
83124         * lib/regex_internal.c (re_string_realloc_buffers):
83125         (build_wcs_upper_buffer, re_node_set_add_intersect):
83126         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83127         (re_dfa_add_node, register_state): Likewise.
83128         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83129         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83130         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83131         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83132
83133 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83134
83135         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83136         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83137
83138 2005-09-02  Bruno Haible  <bruno@clisp.org>
83139
83140         Support for lib vs. lib64 distinction on biarch platforms.
83141         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83142         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83143         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83144
83145 2005-09-02  Bruno Haible  <bruno@clisp.org>
83146
83147         * gnulib-tool (import): In the other first-use case, provide defaults
83148         as well.
83149
83150 2005-09-02  Bruno Haible  <bruno@clisp.org>
83151
83152         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83153         patches not yet found in the latest gettext release.
83154
83155 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83156
83157         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83158         to avoid a collision with bits/local_lim.h in glibc.
83159         All uses changed.  Problem reported by Dmitry V. Levin in
83160         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83161
83162         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83163         bugs in int versus size_t comparisons.
83164         (re_string_context_at): Fix bug where the code assumed that
83165         Idx is signed.
83166
83167         Use bool where appropriate.
83168         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83169         All callers changed.
83170         (calc_eclosure_iter): Likewise, for ROOT arg.
83171         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83172         (build_charclass_op): Likewise, for NON_MATCH arg.
83173         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83174         (re_string_construct_common): Likewise, for ICASE arg.
83175         * lib/regexec.c (re_search_2_stub, re_search_stub):
83176         Likewise, for RET_LEN arg.
83177         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83178         (set_regs): Likewise, for FL_BACKTRACK arg.
83179         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83180         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83181         (calc_eclosure_iter, parse_bracket_exp):
83182         Use bool for internal variables that are booleans.
83183         * lib/regexec.c (re_search_internal, check_matching,
83184         proceed_next_node):
83185         (set_regs, build_sifted_states, sift_states_bkref):
83186         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83187         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83188         (find_collation_sequence_value):
83189         Likewise.
83190         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83191         (re_node_set_compare):
83192         Return bool, not int. All callers changed.
83193         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83194         (build_trtable, check_node_accept): Likewise.
83195         * lib/regex_internal.h: Include stdbool.h.
83196
83197         Fix bugs uncovered when converting to bool.
83198         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83199         failure instead of charging ahead blindly.
83200         * lib/regex_internal.c (register_state): Likewise.
83201         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83202         for freeing internal storage.
83203         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83204         bitset pieces used as boolean, to avoid undefined behavior
83205         on hosts that do int overflow checking.
83206
83207 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83208
83209         * config/srclist.txt: Add glibc bugs 1285-1287.
83210
83211 2005-09-01  Jim Meyering  <jim@meyering.net>
83212
83213         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83214         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83215         Require gl_STAT_MACROS, too.
83216
83217 2005-09-01  Bruno Haible  <bruno@clisp.org>
83218
83219         * gnulib-tool (import): In the first-use case, provide defaults.
83220
83221 2005-09-01  Bruno Haible  <bruno@clisp.org>
83222
83223         * gnulib-tool (func_import): Remove the .tmp files.
83224
83225 2005-09-01  Bruno Haible  <bruno@clisp.org>
83226
83227         * gnulib-tool (func_import): Fix handling of symbolic links.
83228
83229 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83232         old glibc regex code mishandles strings longer than 2**31 bytes.
83233         This patch fixes this when the regex code is used in gnulib
83234         (i.e., outside glibc).
83235
83236         This patch should not affect the use of the regex code inside
83237         glibc.  No doubt this problem also needs to be handled for glibc
83238         as well, but the result will be an incompatible change to the
83239         glibc ABI, and the old ABI will have to be supported too.  That
83240         can be the the subject for another patch.
83241
83242         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83243         governing whether the rest of this patch is active.  By default,
83244         the macro is disabled and the patch has no effect.
83245         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83246         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83247         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83248         (re_match_2, re_set_registers): Use the new types.
83249         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83250         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83251         New macros.
83252         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83253         (re_string_context_at, bin_tree_t, re_dfastate_t):
83254         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83255         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83256         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83257         (re_string_char_size_at, re_string_wchar_at):
83258         (re_string_elem_size_at):
83259         Use the new types and macros to port to 64-bit hosts.
83260         Use unsigned types for internal values, so that the code
83261         mostly works even for arrays larger than SSIZE_MAX.
83262         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83263         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83264         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83265         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83266         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83267         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83268         (calc_inveclosure, parse_dup_op, build_range_exp):
83269         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83270         (fetch_number, create_token_tree, mark_opt_subexp):
83271         Likewise.
83272         * lib/regex_internal.c (re_string_construct_common,
83273         create_ci_newstate):
83274         (create_cd_newstate, re_string_allocate, re_string_construct):
83275         (re_string_realloc_buffers, build_wcs_upper_buffer):
83276         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83277         (re_string_reconstruct, re_string_peek_byte_case):
83278         (re_string_fetch_byte_case, re_string_context_at):
83279         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83280         (re_node_set_init_copy, re_node_set_add_intersect):
83281         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83282         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83283         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83284         (re_acquire_state, re_acquire_state_context, register_state):
83285         Likewise.
83286         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83287         search_cur_bkref_entry):
83288         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83289         (re_search_internal, re_search_2_stub, re_search_stub)
83290         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83291         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83292         (update_cur_sifted_state, check_dst_limits):
83293         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83294         (check_subexp_limits, sift_states_bkref, merge_state_array):
83295         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83296         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83297         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83298         (expand_bkref_cache, check_node_accept_bytes):
83299         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83300         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83301         (acquire_init_state_context, check_halt_node_context):
83302         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83303         (sift_states_backward, clean_state_log_if_needed):
83304         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83305         (find_recover_state, transit_state_sb, transit_state_mb):
83306         (transit_state_bkref, build_trtable, match_ctx_clean):
83307         Likewise.
83308         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83309         to work around an assumption that REG_MISSING is negative.
83310
83311         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83312         (seek_collating_symbol_entry) [defined _LIBC]:
83313         (lookup_collation_sequence_value) [defined _LIBC]:
83314         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83315         Use prototypes rather than old-style function definitions.
83316         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83317         (transit_state_sb) [0]:
83318         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83319
83320         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83321         rm_eo.
83322
83323         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83324         (optimize_subexps, lower_subexp):
83325         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83326         since the signed shift might overflow.  Use 1u<<31 instead.
83327         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83328         Likewise.
83329         * lib/regexec.c (check_dst_limits_calc_pos_1,
83330         check_subexp_matching_top): Likewise.
83331
83332         * lib/regcomp.c (optimize_subexps, lower_subexp):
83333         Use CHAR_BIT rather than 8, for clarity.
83334         * lib/regexec.c (check_dst_limits_calc_pos_1):
83335         (check_subexp_matching_top): Likewise.
83336         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83337         have to worry about portability issues when shifting it left.
83338         Remove no-longer-needed test for table_size > 0.
83339         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83340         in a word, as the resulting behavior is undefined.
83341         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83342         in one case, a <= should have been an <, and in another case the
83343         whole test was missing.
83344         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83345         the standard name CHAR_BIT.
83346         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83347         this is not true on one's complement and signed-magnitude hosts.
83348
83349         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83350         next_last_offset.
83351         (struct re_dfa_t): Remove unused member states_alloc.
83352         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83353
83354 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83357         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83358         and large-file glibc and in 32-bit large-file Solaris.
83359
83360 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83361
83362         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83363         lengths fit in regoff_t; this isn't true if regoff_t is the same
83364         width as size_t.
83365         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83366         (= START + RANGE) instead of RANGE.  This avoids overflow
83367         problems when regoff_t is the same width as size_t.
83368         All callers changed.
83369         (re_search_2_stub): Check for overflow when adding the
83370         sizes of the two strings.
83371         (re_search_stub): Check for overflow when adding START
83372         to RANGE; if it occurs, substitute the extreme value.
83373
83374 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83377
83378 2005-08-31  Jim Meyering  <jim@meyering.net>
83379
83380         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83381         a pointer-to-const.
83382         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83383         (register_state): Likewise.
83384         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83385         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83386         (group_nodes_into_DFAstates): Likewise.
83387
83388 2005-08-31  Jim Meyering  <jim@meyering.net>
83389
83390         * check-module: Add a FIXME comment.
83391
83392 2005-08-31  Eric Blake  <ebb9@byu.net>
83393
83394         * modules/unistd-safer (Files): Add unistd--.h.
83395         * modules/stdio-safer (Files): Add stdio--.h.
83396
83397 2005-08-31  Derek Price  <derek@ximbiot.com>
83398
83399         * lib/getdelim.c (getdelim): Return EOF on EOF.
83400         Reported by Larry Jones <lawrence.jones@ugs.com>.
83401
83402 2005-08-31  Bruno Haible  <bruno@clisp.org>
83403
83404         Avoid unnecessary diffs in the generated lib/Makefile.am.
83405         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83406         the generated files.
83407         (func_import): Don't set cmd.
83408
83409 2005-08-31  Bruno Haible  <bruno@clisp.org>
83410
83411         * lib/strstr.c: Include <stddef.h>, for NULL.
83412         * lib/strcasestr.c: Likewise.
83413         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83414
83415 2005-08-31  Bruno Haible  <bruno@clisp.org>
83416
83417         * gnulib-tool: New option --macro-prefix.
83418         (func_import): Use macro_prefix.
83419         (import): Handle option --macro-prefix.
83420
83421 2005-08-31  Bruno Haible  <bruno@clisp.org>
83422
83423         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83424         Also use new variables cached_lgpl, cached_libtool.
83425
83426 2005-08-31  Bruno Haible  <bruno@clisp.org>
83427
83428         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83429         always instantiating them.
83430
83431 2005-08-31  Bruno Haible  <bruno@clisp.org>
83432
83433         * gnulib-tool (func_import): Read the previous cached settings
83434         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83435         earlier added by gnulib but are now dropped. Warn when a gnulib file
83436         overwrites a non-gnulib file.
83437
83438 2005-08-31  Bruno Haible  <bruno@clisp.org>
83439
83440         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83441         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83442         projects that don't keep autogenerated files in CVS. Put into
83443         actioncmd only the specified modules, not the transitive closure.
83444
83445 2005-08-31  Bruno Haible  <bruno@clisp.org>
83446
83447         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83448         Create directories that shall be filled.
83449         (import): Don't look for gl_* macros in configure.ac. Recurse across
83450         all directories containing a gnulib-cache.m4 files, if meaningful.
83451
83452 2005-08-31  Bruno Haible  <bruno@clisp.org>
83453
83454         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83455         (import): Set seen_libtool when we see gl_LIBTOOL.
83456
83457 2005-08-31  Bruno Haible  <bruno@clisp.org>
83458
83459         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83460         declaration macro definitions from generated gnulib.m4.
83461
83462 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83463
83464         * lib/iconvme.h: Add prototype for iconv_alloc.
83465
83466 2005-08-29  Simon Josefsson  <jas@extundo.com>
83467
83468         * lib/iconvme.c: Fix errno.
83469
83470 2005-08-29  Bruno Haible  <bruno@clisp.org>
83471
83472         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83473         that it works when the directory contains spaces.
83474
83475 2005-08-29  Bruno Haible  <bruno@clisp.org>
83476
83477         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83478
83479 2005-08-29  Bruno Haible  <bruno@clisp.org>
83480
83481         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83482         Emit more advice.
83483
83484 2005-08-29  Bruno Haible  <bruno@clisp.org>
83485         and Stepan Kasal  <kasal@ucw.cz>
83486
83487         * check-module: If more parameters are given, check each of them
83488         separately; add more exceptions, as noted by Jim Meyering.
83489         (check_module): New procedure.
83490         (%exempt_header): Now contains all exceptions.
83491
83492 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83493
83494         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83495
83496 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83497
83498         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83499
83500 2005-08-28  Bruno Haible  <bruno@clisp.org>
83501
83502         * m4/gnulib-tool.m4: New file.
83503
83504 2005-08-27  Jim Meyering  <jim@meyering.net>
83505
83506         * modules/unistd-safer (Files): Add pipe-safer.c.
83507         * modules/fcntl-safer (Files): Add creat-safer.c.
83508
83509 2005-08-27  Jim Meyering  <jim@meyering.net>
83510
83511         * m4/stdlib-safer.m4: New file.  From coreutils.
83512         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83513         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83514         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83515         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83516         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83517
83518 2005-08-27  Jim Meyering  <jim@meyering.net>
83519
83520         * lib/fopen-safer.c: Merge minor changes from coreutils.
83521         * lib/dup-safer.c: Likewise.
83522         * lib/fd-safer.c: Likewise.
83523
83524         Merge from coreutils.
83525         * lib/stdio--.h: New file.
83526         * lib/stdlib--.h: New file.
83527         * lib/mkstemp-safer.c: New file.
83528
83529         GNU tar needs these.
83530         * lib/pipe-safer.c: New file.
83531         * lib/creat-safer.c: New file.
83532         * lib/fcntl--.h (creat): Define to creat_safer.
83533         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83534         * lib/unistd--.h (pipe): Define to pipe_safer.
83535         * lib/unistd-safer.h: Declare pipe_safer.
83536
83537 2005-08-26  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83540         Haible <bruno@clisp.org>.
83541
83542 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * lib/regex_internal.h: Remove all references to
83545         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83546         or better.
83547         (bitset_not, bitset_merge, bitset_not_merge):
83548         (bitset_mask, re_string_allocate, re_string_construct):
83549         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83550         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83551         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83552         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83553         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83554         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83555         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83556         (re_acquire_state_context):
83557         Remove unnecessary forward decls.
83558         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83559         Put __attribute at function definition,
83560         now that the function decl has been removed.
83561         * lib/regex_internal.c (re_string_peek_byte_case):
83562         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83563         Likewise.
83564
83565 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83566
83567         * m4/regex.m4: Add AC_PREREQ(2.50).
83568         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83569
83570 2005-08-25  Simon Josefsson  <jas@extundo.com>
83571
83572         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83573         __fsetlocking.
83574
83575 2005-08-25  Simon Josefsson  <jas@extundo.com>
83576
83577         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83578         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83579         GLIBC specific code.
83580
83581 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83582
83583         Make regex safe for g++.  This fixes one real bug (an "err"
83584         that should have been "*err").  g++ problem reported by
83585         Sam Steingold.
83586         * lib/regex_internal.h (re_calloc): New macro, consistent with
83587         re_malloc etc.  All callers of calloc changed to use re_calloc.
83588         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83589         not int.  All callers changed.
83590         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83591         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83592         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83593         (find_recover_state): Change "err" to "*err"; this fixes what
83594         appears to be a real bug.
83595         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83596         versus int.
83597
83598 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         * modules/regex (Depends-on): Add malloc, since the code
83601         assumes that !malloc(0) means failure.
83602
83603 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83606
83607         alloca modernization/simplification for regex.
83608         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83609         needs to be at the start of the file, and can be moved into
83610         regex_internal.h and simplified.
83611         * lib/regex_internal.h: Include <alloca.h>.
83612         (__libc_use_alloca) [!defined _LIBC]: New macro.
83613         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83614         now works outside glibc.
83615
83616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * config/srclist.txt: Add glibc bugs 1241, 1245.
83619
83620 2005-08-25  Jim Meyering  <jim@meyering.net>
83621
83622         * lib/open-safer.c: Include <config.h>.
83623         Otherwise, we'd lose LARGEFILE support in any file using
83624         e.g. "fcntl--.h"
83625
83626 2005-08-25  Bruno Haible  <bruno@clisp.org>
83627
83628         * m4/minmax.m4: Require autoconf 2.52.
83629         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83630         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83631         alternatives of translit over the alphabet.
83632         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83633
83634 2005-08-24  Simon Josefsson  <jas@extundo.com>
83635
83636         * tests/test-getpass.c: New file.
83637
83638 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83639
83640         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83641         for GNU regex features.
83642
83643 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83646         * lib/regex.h (regerror): Likewise.
83647
83648         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83649         requires this.  (The code never needed it.)
83650
83651         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83652         All uses of recently-renamed identifiers changed to use the new,
83653         POSIX-compliant names.  The code will build and run just fine
83654         without these changes, but it's better to eat our own dog food
83655         and use the standard-conforming names.
83656
83657         * lib/regex.h: Fix a multitude of POSIX name space violations.
83658         These changes have an effect only for programs that define
83659         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83660         do not change anything for programs compiled in the normal way.
83661         Also, there is no effect on the ABI.
83662
83663         (_REGEX_SOURCE): New macro.
83664         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83665         defined and _GNU_SOURCE is not; this fixes a name space violation.
83666
83667         Rename the following macros to obey POSIX requirements.
83668         The old names are still visible as macros if _REGEX_SOURCE is defined.
83669         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83670         RE_BACKSLASH_ESCAPE_IN_LISTS.
83671         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83672         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83673         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83674         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83675         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83676         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83677         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83678         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83679         (REG_INTERVALS): renamed from RE_INTERVALS.
83680         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83681         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83682         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83683         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83684         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83685         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83686         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83687         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83688         RE_UNMATCHED_RIGHT_PAREN_ORD.
83689         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83690         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83691         (REG_DEBUG): renamed from RE_DEBUG.
83692         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83693         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83694         unusual, since we can't clash with the POSIX REG_ICASE.
83695         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83696         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83697         (REG_NO_SUB): renamed from RE_NO_SUB.
83698         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83699         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83700         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83701         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83702         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83703         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83704         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83705         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83706         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83707         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83708         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83709         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83710         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83711         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83712         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83713         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83714         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83715         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83716         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83717         (REG_FIXED): Renamed from REGS_FIXED.
83718         (REG_NREGS): Renamed from RE_NREGS.
83719
83720         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83721         of other REG_* macros, since POSIX says the user is allowed to
83722         #undef these macros selectively.
83723
83724         (reg_errcode_t): Update comment stating what other tables need
83725         to be consistent.
83726
83727         Rename the following enum values to obey POSIX requirements.
83728         The old names are still visible as macros.
83729         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83730         is not defined, since GNU is supposed to be a superset of POSIX as
83731         much as possible, and since we want reg_errcode_t to be a signed
83732         type for implementation consistency.
83733         (_REG_NOERROR): Renamed from REG_NOERROR.
83734         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83735         (_REG_BADPAT): Renamed from REG_BADPAT.
83736         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83737         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83738         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83739         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83740         (_REG_EBRACK): Renamed from REG_EBRACK.
83741         (_REG_EPAREN): Renamed from REG_EPAREN.
83742         (_REG_EBRACE): Renamed from REG_EBRACE.
83743         (_REG_BADBR): Renamed from REG_BADBR.
83744         (_REG_ERANGE): Renamed from REG_ERANGE.
83745         (_REG_ESPACE): Renamed from REG_ESPACE.
83746         (_REG_BADRPT): Renamed from REG_BADRPT.
83747         (_REG_EEND): Renamed from REG_EEND.
83748         (_REG_ESIZE): Renamed from REG_ESIZE.
83749         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83750         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83751         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83752         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83753         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83754
83755         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83756         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83757         changed.  But support the old name if the new one is not defined
83758         and if _REGEX_SOURCE.
83759
83760         Change the following member names in struct re_pattern_buffer.
83761         The old names are still supported if !_REGEX_SOURCE.
83762         The new names are always supported, regardless of _REGEX_SOURCE.
83763         (re_buffer): Renamed from buffer.
83764         (re_allocated): Renamed from allocated.
83765         (re_used): Renamed from used.
83766         (re_syntax): Renamed from syntax.
83767         (re_fastmap): Renamed from fastmap.
83768         (re_translate): Renamed from translate.
83769         (re_can_be_null): Renamed from can_be_null.
83770         (re_regs_allocated): Renamed from regs_allocated.
83771         (re_fastmap_accurate): Renamed from fastmap_accurate.
83772         (re_no_sub): Renamed from no_sub.
83773         (re_not_bol): Renamed from not_bol.
83774         (re_not_eol): Renamed from not_eol.
83775         (re_newline_anchor): Renamed from newline_anchor.
83776
83777         Change the following member names in struct re_registers.
83778         The old names are still supported if !_REGEX_SOURCE.
83779         The new names are always supported, regardless of _REGEX_SOURCE.
83780         (rm_num_regs): Renamed from num_regs.
83781         (rm_start): Renamed from start.
83782         (rm_end): Renamed from end.
83783
83784         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83785         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83786         Prepend __ to parameter names.
83787
83788         Undo yesterday's changes.
83789
83790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83791
83792         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83793         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83794         lib/regex.c.
83795
83796 2005-08-24  Jim Meyering  <jim@meyering.net>
83797
83798         Sync from coreutils.
83799         * m4/fcntl-safer.m4: New file.
83800
83801         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83802         and object files for this module.
83803
83804 2005-08-24  Jim Meyering  <jim@meyering.net>
83805
83806         Sync from coreutils.
83807         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83808
83809 2005-08-24  Jim Meyering  <jim@meyering.net>
83810
83811         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83812         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83813
83814 2005-08-24  Jim Meyering  <jim@meyering.net>
83815
83816         * modules/fcntl-safer: New module.
83817         * modules/fts (Depends-on): Add fcntl-safer.
83818         * MODULES.html.sh (File descriptor based Input/Output):
83819         Add fcntl-safer.
83820
83821 2005-08-24  Bruno Haible  <bruno@clisp.org>
83822
83823         Support for unit test modules.
83824         * modules/README: Mention tests modules.
83825         * modules/TEMPLATE-TESTS: New file.
83826         * gnulib-tool: New options --extract-tests-module, --with-tests and
83827         --tests-base (unused for the moment).
83828         (testsbase, inctests): New variables.
83829         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83830         (func_verify_module): Exclude TEMPLATE-TESTS.
83831         (func_verify_nontests_module, func_verify_tests_module): New functions.
83832         (func_get_dependencies): Add implicit dependency for tests modules.
83833         (func_get_tests_module): New function.
83834         (func_modules_transitive_closure): When --with-tests was specified,
83835         include the unit tests as well, unless explicitly avoided.
83836         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83837         (func_emit_tests_Makefile_am): New function.
83838         (func_create_testdir): When --with-tests was specified, emit a
83839         tests/ directory.
83840         * MODULES.html.sh (Future developments): Update.
83841
83842 2005-08-24  Bruno Haible  <bruno@clisp.org>
83843
83844         * modules/tls-tests: New file.
83845         * tests/test-tls.c: New file, from GNU gettext.
83846
83847 2005-08-24  Bruno Haible  <bruno@clisp.org>
83848
83849         * modules/lock-tests: New file.
83850         * tests/test-lock.c: New file, from GNU gettext.
83851
83852 2005-08-24  Bruno Haible  <bruno@clisp.org>
83853
83854         * lib/lock.h: Add multiple inclusion guard.
83855         * lib/tls.h: Add multiple inclusion guard.
83856
83857 2005-08-24  Bruno Haible  <bruno@clisp.org>
83858
83859         * gnulib-tool: Add support for the --aux-dir option to
83860         --create-testdir, --create-megatestdir, --test, --megatest.
83861         (func_create_testdir, func_create_megatestdir): Optionally emit a
83862         AC_CONFIG_AUX_DIR directive.
83863         (create-testdir, create-megatestdir, test, megatest): Provide a
83864         default value for $auxdir.
83865
83866 2005-08-24  Bruno Haible  <bruno@clisp.org>
83867
83868         * gnulib-tool (import): Use compound statement instead of subshell
83869         where possible.
83870
83871 2005-08-24  Bruno Haible  <bruno@clisp.org>
83872
83873         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83874
83875 2005-08-24  Bruno Haible  <bruno@clisp.org>
83876
83877         * gnulib-tool (func_version): Update.
83878
83879 2005-08-24  Bruno Haible  <bruno@clisp.org>
83880
83881         * gnulib-tool (func_import, func_create_testdir,
83882         func_create_megatestdir): Quote all autoconf macro arguments.
83883
83884 2005-08-24  Bruno Haible  <bruno@clisp.org>
83885
83886         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83887         option --force, because --force causes the aclocal.m4 of each
83888         subdirectory to be newer than the corresponding config.h.in.
83889
83890 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83893         All contents moved to gl_REGEX.
83894         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83895         assume that it does.
83896
83897 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83898
83899         * lib/regex.h (REG_NOSYS)
83900         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83901         Define, since POSIX requires it as of 2001.
83902         (_REG_ENOSYS)
83903         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83904         New private symbol, used to keep the enum signed in all cases.
83905         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83906         Youngman in
83907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83908
83909         * lib/regex_internal.c (re_string_skip_chars, register_state):
83910         (calc_state_hash):
83911         Remove forward decls; no longer needed now that we use prototypes.
83912         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83913         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83914         (clean_state_log_if_needed): Likewise.
83915
83916 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * config/srclist.txt: Add glibc bugs 1231-1233.
83919
83920 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         Fix problems reported by Sam Steingold in
83923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83924         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83925         assumed that reg_errcode_t is a signed type, which is not
83926         necessarily true if _XOPEN_SOURCE is not defined.
83927         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83928         since some compilers warn about it otherwise.
83929
83930 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83931
83932         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83933         (init_word_char, create_initial_state, duplicate_node_closure):
83934         (fetch_token, peek_token_bracket, build_range_exp):
83935         (build_collating_symbol): Remove forward decls; no longer needed
83936         now that we use prototypes.
83937
83938         * lib/regcomp.c:
83939         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83940         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83941         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83942         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83943         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83944         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83945         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83946         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83947         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83948         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83949         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83950         (build_charclass, build_charclass_op, fetch_number, create_tree):
83951         (create_token_tree, mark_opt_subexp, duplicate_tree):
83952         Use prototypes rather than old-style definitions.
83953
83954         * lib/regex_internal.c:
83955         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83956         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83957         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83958         (re_string_reconstruct, re_string_peek_byte_case):
83959         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83960         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83961         (re_node_set_init_copy, re_node_set_add_intersect):
83962         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83963         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83964         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83965         (re_acquire_state, re_acquire_state_context, register_state):
83966         (create_ci_newstate, create_cd_newstate, free_state):
83967         Likewise.
83968         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83969         re_search_2):
83970         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83971         (re_search_internal, prune_impossible_nodes):
83972         (acquire_init_state_context, check_matching, static):
83973         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83974         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83975         (update_regs, sift_states_backward, build_sifted_states):
83976         (clean_state_log_if_needed, merge_state_array):
83977         (update_cur_sifted_state, add_epsilon_src_nodes):
83978         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83979         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83980         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83981         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83982         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83983         (check_arrival, check_arrival_add_next_nodes):
83984         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83985         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83986         (check_node_accept_bytes, check_node_accept, extend_buffers):
83987         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83988         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83989         (sift_ctx_init):
83990         Likewise.
83991
83992         * lib/regex_internal.h:
83993         (re_string_allocate, re_string_construct, re_string_reconstruct):
83994         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83995         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83996         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83997         (re_string_context_at, re_string_peek_byte_case):
83998         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83999         is defined, since we now use prototypes always.
84000
84001         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84002         C89 or better.  All uses removed.
84003
84004 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84005
84006         * config/srclist.txt: Add glibc bugs 1220-1227.
84007
84008 2005-08-20  Jim Meyering  <jim@meyering.net>
84009
84010         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84011         of unused local, dfa.
84012
84013 2005-08-20  Bruno Haible  <bruno@clisp.org>
84014
84015         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84016
84017 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84020         (re_node_set_insert_last, re_dfa_add_node):
84021         Rename local variables to avoid GCC shadowing warnings.
84022
84023 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84024
84025         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84026         [defined lint]: Suppress bogus uninitialized-variable warnings.
84027
84028         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84029         and let the caller return REG_ESPACE if out of space.  This
84030         removes an uninitialied-variable warning with GCC 4.0.1, and also
84031         avoids taking the address of a local variable.  All callers
84032         changed.
84033
84034 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84037         $LIBCSRC/posix/regexec.c.
84038         Add glibc bug 1217 for regcomp.c.
84039
84040 2005-08-19  Jim Meyering  <jim@meyering.net>
84041
84042         * lib/regexec.c (proceed_next_node): Redo local variables to
84043         avoid GCC shadowing warnings.
84044
84045 2005-08-18  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/strstr.c (strstr): Fix return value in multibyte case.
84048         * lib/strcasestr.c (strcasestr): Likewise.
84049
84050 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84051
84052         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84053
84054 2005-08-17  Jim Meyering  <jim@meyering.net>
84055
84056         Make the %s format (seconds since the epoch) work for a negative
84057         number and when used with a zero-padded field width, e.g. %015s.
84058
84059         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84060         label so that it precedes the code to set `digits'.  Otherwise,
84061         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84062         print `00-22'.  Now, it prints `-0022', as it should.
84063
84064 2005-08-17  Bruno Haible  <bruno@clisp.org>
84065
84066         * modules/strstr (Files): Add m4/mbrtowc.m4.
84067         (Depends-on): Add mbuiter.
84068
84069 2005-08-17  Bruno Haible  <bruno@clisp.org>
84070
84071         * modules/strcasestr: New file.
84072         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84073         strcasestr.
84074
84075 2005-08-17  Bruno Haible  <bruno@clisp.org>
84076
84077         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84078
84079 2005-08-17  Bruno Haible  <bruno@clisp.org>
84080
84081         * modules/mbuiter: New file.
84082         * MODULES.html.sh (Extended multibyte and wide character utilities):
84083         Add mbuiter.
84084
84085 2005-08-17  Bruno Haible  <bruno@clisp.org>
84086
84087         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84088         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84089
84090 2005-08-17  Bruno Haible  <bruno@clisp.org>
84091
84092         * m4/strcasestr.m4: New file.
84093
84094 2005-08-17  Bruno Haible  <bruno@clisp.org>
84095
84096         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84097         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84098
84099 2005-08-17  Bruno Haible  <bruno@clisp.org>
84100
84101         * lib/strcasestr.h: New file.
84102         * lib/strcasestr.c: New file.
84103
84104 2005-08-17  Bruno Haible  <bruno@clisp.org>
84105
84106         * lib/strcasecmp.c: Use mbuiter.h.
84107
84108 2005-08-17  Bruno Haible  <bruno@clisp.org>
84109
84110         * lib/mbuiter.h: New file.
84111
84112 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84115         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84116         and gl_GETOPT are both invoked via different paths (as happens
84117         with GNU tar CVS because it uses both argp and getopt), the former
84118         wins.
84119
84120 2005-08-16  Bruno Haible  <bruno@clisp.org>
84121
84122         * modules/tls: New file.
84123         * MODULES.html.sh (Multithreading): Add tls.
84124
84125 2005-08-16  Bruno Haible  <bruno@clisp.org>
84126
84127         * modules/strnlen1: New file.
84128         * MODULES.html.sh (String handling): Add strnlen1.
84129
84130 2005-08-16  Bruno Haible  <bruno@clisp.org>
84131
84132         * modules/strcase (Files): Add m4/mbrtowc.m4.
84133         (Depends-on): Add strnlen1, mbchar.
84134
84135 2005-08-16  Bruno Haible  <bruno@clisp.org>
84136
84137         * modules/mbiter: New file.
84138         * MODULES.html.sh (Extended multibyte and wide character utilities):
84139         Add mbiter.
84140
84141 2005-08-16  Bruno Haible  <bruno@clisp.org>
84142
84143         * modules/mbfile: New file.
84144         * MODULES.html.sh (Extended multibyte and wide character utilities):
84145         Add mbfile.
84146
84147 2005-08-16  Bruno Haible  <bruno@clisp.org>
84148
84149         * modules/mbchar: New file.
84150         * MODULES.html.sh (Extended multibyte and wide character utilities):
84151         New section.
84152
84153 2005-08-16  Bruno Haible  <bruno@clisp.org>
84154
84155         * m4/tls.m4: New file, from GNU gettext.
84156
84157 2005-08-16  Bruno Haible  <bruno@clisp.org>
84158
84159         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84160         always.
84161         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84162
84163 2005-08-16  Bruno Haible  <bruno@clisp.org>
84164
84165         * m4/mbiter.m4: New file.
84166
84167 2005-08-16  Bruno Haible  <bruno@clisp.org>
84168
84169         * m4/mbfile.m4: New file.
84170
84171 2005-08-16  Bruno Haible  <bruno@clisp.org>
84172
84173         * m4/mbchar.m4: New file.
84174
84175 2005-08-16  Bruno Haible  <bruno@clisp.org>
84176
84177         * lib/tls.h: New file, from GNU gettext.
84178         * lib/tls.c: New file, from GNU gettext.
84179
84180 2005-08-16  Bruno Haible  <bruno@clisp.org>
84181
84182         * lib/strnlen1.h: New file.
84183         * lib/strnlen1.c: New file.
84184
84185 2005-08-16  Bruno Haible  <bruno@clisp.org>
84186
84187         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84188         (mbi_init): Update.
84189         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84190         NUL byte, not after it.
84191
84192 2005-08-16  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/strcase.h (strcasecmp): Add note in comments.
84195         * lib/strncasecmp.c: Use code from strcasecmp.c.
84196         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84197         (strcasecmp): Work correctly in multibyte locales.
84198
84199 2005-08-16  Bruno Haible  <bruno@clisp.org>
84200
84201         * lib/mbiter.h: New file.
84202
84203 2005-08-16  Bruno Haible  <bruno@clisp.org>
84204
84205         * lib/mbfile.h: New file.
84206
84207 2005-08-16  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/mbchar.h: New file.
84210         * lib/mbchar.c: New file.
84211
84212 2005-08-16  Bruno Haible  <bruno@clisp.org>
84213
84214         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84215         the valid ones. Makes the comparison operations transitive:
84216         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84217         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84218
84219 2005-08-15  Simon Josefsson  <jas@extundo.com>
84220
84221         * modules/ssize_t (License): Change to 'unlimited'.
84222
84223         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84224
84225 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84226
84227         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84228         Add comments for each pending glibc patch.
84229
84230 2005-08-15  Bruno Haible  <bruno@clisp.org>
84231
84232         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84233         __cplusplus is defined.
84234
84235 2005-08-14  Jim Meyering  <jim@meyering.net>
84236
84237         Sync from coreutils.
84238
84239         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84240         Use the hash-table-based cycle-detection code not just when
84241         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84242         Reported by James Youngman in
84243         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84244         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84245         FTS_TIGHT_CYCLE_CHECK.
84246         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84247         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84248         once again.
84249         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84250         * lib/fts.c (fd_safer): Remove decl.
84251         Include fcntl--.h rather than unistd-safer.h
84252         (fts_safe_changedir): Don't call fd_safer; no longer needed
84253         now that we include fcntl--.h.
84254
84255 2005-08-12  Simon Josefsson  <jas@extundo.com>
84256
84257         * modules/getndelim2: Use ssize_t module.
84258         * modules/getnline: Likewise.
84259         * modules/safe-read: Likewise.
84260         * modules/xreadlink: Likewise.
84261
84262         * modules/ssize_t: New file.
84263
84264 2005-08-12  Simon Josefsson  <jas@extundo.com>
84265
84266         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84267
84268 2005-08-12  Simon Josefsson  <jas@extundo.com>
84269
84270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84271         ssize_t.
84272
84273 2005-08-12  Simon Josefsson  <jas@extundo.com>
84274
84275         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84276         readline, getdelim and check_version.
84277         (Support for systems lacking ISO C 99: Sizes of integer types):
84278         Add size_max.
84279
84280 2005-08-12  Bruno Haible  <bruno@clisp.org>
84281
84282         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84283
84284 2005-08-11  Simon Josefsson  <jas@extundo.com>
84285
84286         * modules/readline: New file.
84287
84288         * modules/strnlen (Files): Add strnlen.h.
84289
84290 2005-08-11  Simon Josefsson  <jas@extundo.com>
84291
84292         * m4/readline.m4: New file.
84293
84294 2005-08-11  Simon Josefsson  <jas@extundo.com>
84295
84296         * lib/readline.h, readline.c: New file.
84297
84298 2005-08-11  Simon Josefsson  <jas@extundo.com>
84299
84300         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84301         gl_AVOID.
84302
84303 2005-08-11  Bruno Haible  <bruno@clisp.org>
84304
84305         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84306
84307 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84308
84309         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84310
84311 2005-08-10  Simon Josefsson  <jas@extundo.com>
84312
84313         * tests/test-iconvme.c: New file.
84314
84315 2005-08-10  Simon Josefsson  <jas@extundo.com>
84316
84317         * m4/strnlen.m4: New file.
84318
84319         * m4/strndup.m4: Don't check for strnlen declaration, done in
84320         strnlen.m4.
84321
84322 2005-08-10  Simon Josefsson  <jas@extundo.com>
84323
84324         * lib/strndup.c: Use strnlen.h.
84325
84326         * lib/strnlen.h: New file.
84327
84328 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84329
84330         * README: Typos.
84331
84332 2005-08-02  Simon Josefsson  <jas@extundo.com>
84333
84334         * modules/readline: New file.
84335
84336 2005-08-02  Simon Josefsson  <jas@extundo.com>
84337
84338         * modules/getdelim: New file.
84339
84340         * modules/getline: Rewrite, don't use getndelim2.
84341
84342 2005-08-02  Simon Josefsson  <jas@extundo.com>
84343
84344         * m4/getline.m4: Separate out getdelim stuff into separate module.
84345
84346         * m4/getdelim.m4: New file.
84347
84348 2005-08-02  Simon Josefsson  <jas@extundo.com>
84349
84350         * lib/getline.h, getline.c: Rewrite.
84351
84352         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84353
84354 2005-07-31  Bruno Haible  <bruno@clisp.org>
84355
84356         * lib/lock.h (gl_lock_initializer): New macro.
84357         (gl_lock_define_initialized): Use it.
84358         (gl_rwlock_initializer): New macro.
84359         (gl_rwlock_define_initialized): Use it.
84360         (gl_recursive_lock_initializer): New macro.
84361         (gl_recursive_lock_define_initialized): Use it.
84362
84363 2005-07-30  Karl Berry  <karl@gnu.org>
84364
84365         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84366         Report from Ben Pfaff, regarding getopt.
84367
84368 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84369
84370         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84371         normal way.
84372         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84373         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84374         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84375         (gl_GETOPT): Use the new macros.  Most of the implementation
84376         is moved to the new macros.  This is for programs like Emacs
84377         that don't want all the functionality of gl_GETOPT.
84378
84379 2005-07-26  Bruno Haible  <bruno@clisp.org>
84380
84381         * m4/lock.m4: Update from GNU gettext.
84382
84383 2005-07-26  Bruno Haible  <bruno@clisp.org>
84384
84385         * lib/lock.h: Update from GNU gettext.
84386         * lib/lock.c: Update from GNU gettext.
84387
84388 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84391         obsolescent AC_TRY_RUN.  Include the default includes files, for
84392         'exit'.
84393
84394 2005-07-24  Bruno Haible  <bruno@clisp.org>
84395
84396         * modules/visibility: New file.
84397         * MODULES.html.sh (Misc): Add visibility.
84398
84399 2005-07-24  Bruno Haible  <bruno@clisp.org>
84400
84401         * m4/visibility.m4: New file.
84402
84403 2005-07-24  Bruno Haible  <bruno@clisp.org>
84404
84405         * doc/visibility.texi: New file.
84406
84407 2005-07-22  Bruno Haible  <bruno@clisp.org>
84408
84409         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84410         $(ALLOCA_H), redundant through BUILT_SOURCES.
84411         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84412         redundant through BUILT_SOURCES.
84413         * modules/byteswap (Makefile.am): Remove explicit dependency on
84414         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84415         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84416         $(FNMATCH_H), redundant through BUILT_SOURCES.
84417         * modules/getopt (Makefile.am): Remove explicit dependency on
84418         $(GETOPT_H), redundant through BUILT_SOURCES.
84419         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84420         redundant through BUILT_SOURCES.
84421         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84422         redundant through BUILT_SOURCES.
84423         * modules/stdbool (Makefile.am): Remove explicit dependency on
84424         $(STDBOOL_H), redundant through BUILT_SOURCES.
84425         * modules/stdint (Makefile.am): Remove explicit dependency on
84426         $(STDINT_H), redundant through BUILT_SOURCES.
84427         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84428         Remove explicit dependency on $(SYSEXITS_H).
84429         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84430
84431 2005-07-18  Simon Josefsson  <jas@extundo.com>
84432
84433         * lib/check-version.c (check_version): Accept identical versions too.
84434
84435 2005-07-18  Bruno Haible  <bruno@clisp.org>
84436
84437         * modules/lock: New file.
84438         * MODULES.html.sh (Multithreading): New section.
84439
84440 2005-07-18  Bruno Haible  <bruno@clisp.org>
84441
84442         * m4/lock.m4: New file, from GNU gettext.
84443
84444 2005-07-18  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/lock.h: New file, from GNU gettext.
84447         * lib/lock.c: New file, from GNU gettext.
84448
84449 2005-07-18  Bruno Haible  <bruno@clisp.org>
84450
84451         * lib/lock.h (gl_once_t): New type.
84452         (gl_once_define, gl_once): New macros.
84453         * lib/lock.c (fresh_once): New variable.
84454         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84455         functions.
84456
84457 2005-07-16  Simon Josefsson  <jas@extundo.com>
84458
84459         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84460         workaround, suggested by Bruno.
84461
84462 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * modules/xalloc (Depends-on): Add xalloc-die.
84465         * modules/xvasprintf (Depends-on): Add xalloc-die.
84466
84467 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84470         with a minor change.
84471
84472 2005-07-15  Bruno Haible  <bruno@clisp.org>
84473
84474         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84475         When using lib/poll.c, define poll as rpl_poll.
84476
84477 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * modules/argp (Depends-on): Remove unlocked-io.
84480
84481 2005-07-14  Derek Price  <derek@ximbiot.com>
84482
84483         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84484         for glob symlink bug.
84485
84486 2005-07-14  Bruno Haible  <bruno@clisp.org>
84487
84488         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84489         Instead, test for *_unlocked function declarations directly.
84490
84491 2005-07-11  Simon Josefsson  <jas@extundo.com>
84492
84493         * modules/size_max: New file.
84494
84495         * modules/xsize: Depend on size_max module for size_max.m4.
84496
84497 2005-07-11  Simon Josefsson  <jas@extundo.com>
84498
84499         * lib/size_max.h: New file.
84500
84501 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84504         copyright symbol and the year.
84505         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84506         (version_etc_va): Use parameterized copyright notice.
84507         Reword to conform to the current GNU coding standards.
84508
84509 2005-07-11  Karl Berry  <karl@gnu.org>
84510
84511         * doc/gnulib.texi (Quoting): new node.
84512         (Initial import): more info, from Patrice.
84513
84514 2005-07-11  Bruno Haible  <bruno@clisp.org>
84515
84516         * gnulib-tool (func_usage): Document option --avoid.
84517         (Command line options): Handle --avoid.
84518         (func_acceptable): New function.
84519         (func_modules_transitive_closure): Use it.
84520
84521 2005-07-11  Bruno Haible  <bruno@clisp.org>
84522
84523         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84524         Reported by Jim Meyering.
84525
84526 2005-07-10  Bruno Haible  <bruno@clisp.org>
84527
84528         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84529         Needed when size_t is smaller than 'unsigned int'.
84530         Reported by Paul Eggert.
84531
84532 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84533
84534         * modules/argp (Depends-on): Add unlocked-io
84535
84536 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84537
84538         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84539         block of defines.
84540
84541 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84542
84543         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84544         fix now.
84545
84546 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84547         and Paul Eggert  <eggert@cs.ucla.edu>
84548
84549         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84550         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84551
84552 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * modules/regex (Files): Add lib/regex_internal.c,
84555         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84556         (Depends-on): Add extensions.
84557         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84558
84559 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84562         pathconf.
84563         * m4/same.m4 (gl_SAME): Likewise.
84564         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84565
84566         * m4/regex.m4: Adjust to new libc regex implementation.
84567         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84568         all the .c and .h parts of (the new) regex.
84569         Quote the m4 stuff better.
84570         Check for RE_ICASE bug of old gnulib.
84571         Check for REG_STARTEND of recent libc.
84572         Rename local variables from jm_* to gl_*.
84573         Quote operand of "test -f".
84574         Say "recent enough" version of libc, not "version 2".
84575         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84576         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84577         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84578         Remove check for btowc, isascii.
84579         Require AM_LANGINFO_CODESET.
84580
84581 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * lib/regex.c, regex.h: Sync from libc.
84584         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84585         * lib/regexec.c:
84586         New files, synced from libc, except that regex_internal.h
84587         currently has a small porting fix.
84588
84589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84592         regex_internal.c, regexec.c.
84593         Add regex_internal.h too, but as a comment, since the libc version
84594         is currently broken in gnulib mode.
84595
84596 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84597
84598         Support programs like Emacs that use gnulib but not gettext.
84599         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84600         * modules/gettext-h: New file.
84601         * modules/gettext (Files): Remove lib/gettext.h.
84602         (Depends-on): Add gettext-h.
84603         (Makefile.am): Remove lib_SOURCES.
84604         * modules/argmatch, modules/c-stack, modules/closeout:
84605         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84606         * modules/execute, modules/file-type, modules/getaddrinfo:
84607         * modules/getopt, modules/human, modules/javacomp:
84608         * modules/javaexec, modules/mkdir-p, modules/obstack:
84609         * modules/openat, modules/pagealign_alloc, modules/pipe:
84610         * modules/quotearg, modules/regex, modules/rpmatch:
84611         * modules/unicodeio, modules/userspec, modules/version-etc:
84612         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84613         * modules/xsetenv:
84614         Depend on gettext-h, not gettext.
84615
84616 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84617
84618         * gnulib-tool (func_import): Add support for 'public domain' license.
84619         * modules/alloca, modules/atexit, modules/memmove:
84620         Now public domain, not GPL.
84621         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84622         * modules/realloc, modules/strerror, modules/strtod:
84623         Now LGPL, not GPL.
84624
84625 2005-07-05  Bruno Haible  <bruno@clisp.org>
84626
84627         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84628         autoconf CVS. Needed for mingw.
84629
84630 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84631
84632         Remove the dependency of the strftime module on the tzset module.
84633         * modules/strftime (Depends-on): Remove dependency on tzset.
84634
84635 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         Remove the dependency of the strftime module on the tzset module.
84638         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84639         gl_FUNC_TZSET_CLOBBER.
84640
84641 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84642
84643         Remove the dependency of the strftime module on the tzset module.
84644         * lib/strftime.c (my_strftime)
84645         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84646         Copy the input structure, to work around some of the bug with
84647         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84648         Solaris releases, you should also use the tzset module, but we won't
84649         require it as a dependency any more since we don't want LGPLed code
84650         to depend on GPLed code.
84651
84652 2005-07-02  Jim Meyering  <jim@meyering.net>
84653
84654         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84655         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84656         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84657         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84658
84659 2005-07-02  Jim Meyering  <jim@meyering.net>
84660
84661         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84662
84663 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84666         declares only 'struct timespec;' (!).
84667
84668 2005-07-01  Jim Meyering  <jim@meyering.net>
84669
84670         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84671         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84672         * lib/save-cwd.c, tempname.c:
84673         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84674         and don't include <sys/file.h>).
84675
84676 2005-06-29  Jim Meyering  <jim@meyering.net>
84677
84678         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84679         type name.  Use the variable name instead.
84680         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84681         Likewise.
84682
84683 2005-06-28  Simon Josefsson  <jas@extundo.com>
84684
84685         * modules/check-version (Files): Add check-version.m4.
84686
84687 2005-06-28  Simon Josefsson  <jas@extundo.com>
84688
84689         * m4/check-version.m4: New file, suggested by Jim Meyering
84690         <jim@meyering.net>.
84691
84692 2005-06-28  Simon Josefsson  <jas@extundo.com>
84693
84694         * lib/check-version.h, lib/check-version.c: New files.
84695
84696 2005-06-28  Simon Josefsson  <jas@extundo.com>
84697
84698         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84699         collision with global variable.  Better indentation.  Don't
84700         increment buffer pointer beyond buffer end.  Based on comments
84701         from Paul Eggert <eggert@cs.ucla.edu>.
84702
84703         * lib/base64.h: Indent.
84704
84705 2005-06-28  Simon Josefsson  <jas@extundo.com>
84706
84707         * doc/gnulib.texi (Library version handling): New section.
84708
84709 2005-06-28  Jim Meyering  <jim@meyering.net>
84710
84711         * check-module (find_included_lib_files): Hard-code another
84712         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84713         but modules/fts-lgpl (correctly) does not list those files.
84714
84715         * modules/canonicalize (Files): Add lib/pathmax.h.
84716
84717 2005-06-25  Simon Josefsson  <jas@extundo.com>
84718
84719         * modules/check-version: New file.
84720
84721 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84724         initializer of struct addrinfo, as an indication that we don't
84725         care how many members the structure has.
84726
84727 2005-06-24  Derek Price  <derek@ximbiot.com>
84728         and Bruno Haible  <bruno@clisp.org>
84729
84730         Remove stat module & update lstat.
84731         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84733         * m4/stat.m4: Remove this file.
84734
84735 2005-06-24  Derek Price  <derek@ximbiot.com>
84736         and Bruno Haible  <bruno@clisp.org>
84737
84738         Remove stat module & update lstat.
84739         * lib/stat.c: Remove this file...
84740         (slash_aware_lstat): ...moving this content and its support...
84741         * lib/lstat.c (rpl_lstat): ...into here.
84742         * lib/lstat.h: New file.
84743
84744 2005-06-24  Derek Price  <derek@ximbiot.com>
84745         and Bruno Haible  <bruno@clisp.org>
84746
84747         Remove stat module & update lstat.
84748         * config/srclist.txt (libc sources): Remove stat.
84749
84750 2005-06-24  Derek Price  <derek@ximbiot.com>
84751         and Bruno Haible  <bruno@clisp.org>
84752
84753         Remove stat module & update lstat.
84754         * MODULES.html.sh (stat): Remove.
84755         * MODULES.html: Regenerated.
84756         * modules/lstat (Description): Correct function name.
84757         (Files): Add "lstat.h".
84758         (Depends-on): Remove stat, add xalloc, stat-macros.
84759         * modules/stat: Remove this file.
84760         (Include): Add "lstat.h", remove <sys/stat.h>.
84761
84762 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84765         (ranged_convert): Don't save conversion in a temporary struct.
84766         This causes a warning with GCC 4.0.0, and anyway in the typical
84767         case it's not worth the extra 100 bytes or so of code.
84768         (ranged_convert, __mktime_internal): When calling a function via a
84769         pointer P, use P () rather than (*P) (), as we now assume C89 or
84770         better.
84771
84772 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84773
84774         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84775         "who -r" failed to give output.  Problem reported by Tim Waugh.
84776
84777         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84778         (xcalloc): Use it to avoid needless tests.
84779         Problem reported by Jim Meyering.
84780
84781 2005-06-20  Derek Price  <derek@ximbiot.com>
84782
84783         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84784         unnecessary for Autoconfs > 2.59c.
84785
84786 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84787
84788         * lib/argp.h (__option_is_short): Check upper limit of
84789         __key. Isprint() requires its argument to have the value
84790         of an unsigned char or EOF.
84791
84792 2005-06-16  Jim Meyering  <jim@meyering.net>
84793
84794         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84795         when either N or S is zero.
84796
84797 2005-06-16  Derek Price  <derek@ximbiot.com>
84798
84799         * m4/bison.m4: Declare YACC & YFLAGS precious.
84800
84801 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84804         multibyte string or pattern, fall back on unibyte matching.
84805         Problem reported by James Youngman.
84806
84807 2005-06-08  Bruno Haible  <bruno@clisp.org>
84808
84809         * modules/csharpcomp: New file.
84810         * MODULES.html.sh (C#): Add csharpcomp.
84811
84812 2005-06-08  Bruno Haible  <bruno@clisp.org>
84813
84814         * m4/csharpcomp.m4: New file, from GNU gettext.
84815
84816 2005-06-08  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/csharpcomp.h: New file, from GNU gettext.
84819         * lib/csharpcomp.c: New file, from GNU gettext.
84820         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84821
84822 2005-06-08  Bruno Haible  <bruno@clisp.org>
84823
84824         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84825         warning on mingw.
84826
84827 2005-06-07  Derek Price  <derek@ximbiot.com>
84828
84829         Sync from CVS.
84830         * lib/glob_.h: Indent nested #ifdef.
84831
84832 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         Sync from coreutils.
84835         Use "file name" when talking about file names, instead of "filename"
84836         or "path", as per the GNU coding standards.
84837         * lib/mkdir-p.c: Renamed from makepath.c.
84838         (make_dir_parents): Renamed from make_path.  All callers changed.
84839         * lib/mkdir-p.h: Likewise.  All includers changed.
84840         * lib/filenamecat.c: Renamed from path-concat.c.
84841         (file_name_concat): Renamed from path_concat.  All callers changed.
84842         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84843         * lib/filenamecat.h: Likewise.  All includers changed.
84844         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84845         in comments or local variable names.
84846         * lib/basename.c: Likewise.
84847         * lib/canonicalize.c, canonicalize.h: Likewise.
84848         * lib/dirname.c, dirname.h: Likewise.
84849         * lib/euidaccess.c: Likewise.
84850         * lib/exclude.c: Likewise
84851         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84852         * lib/fsusage.c, fsuage.h: Likewise.
84853         * lib/fts.c, fts_.h: Likewise.
84854         * lib/getcwd.c: Likewise.
84855         * lib/getloadavg.c: Likewise.
84856         * lib/mkstemp.c: Likewise.
84857         * lib/mountlist.c, mountlist.h: Likewise.
84858         * lib/openat.c, openat.h: Likewise.
84859         * lib/readlink-stub.c: Likewise.
84860         * lib/readutmp.c, readutmp.h: Likewise.
84861         * lib/rename.c: Likewise.
84862         * lib/rmdir.c: Likewise.
84863         * lib/same.c: Likewise.
84864         * lib/savedir.c: Likewise.
84865         * lib/stripslash.c: Likewise.
84866         * lib/tempname.c: Likewise.
84867         * lib/xreadlink.c: Likewise.
84868         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84869         All uses changed.
84870         * lib/exclude.h: Likewise.
84871
84872         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84873         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84874         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84875         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84876         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84877         files have been getting away with it for years (MORE/BSD 4.3
84878         is extinct now).
84879         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84880         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84881
84882         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84883         Define to 256, not 255, as per modern POSIX.
84884
84885 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84886
84887         Sync from coreutils.
84888         Use "file name" when talking about file names, instead of "filename"
84889         or "path", as per the GNU coding standards.
84890         * MODULES.html.sh: mkdir-p renamed from makepath.
84891         filenamecat renamed from path-concat.
84892         * modules/filenamecat: Renamed from modules/path-concat.
84893         (Files): filenamecat.h and filenamecat.c renamed from
84894         path-concat.h and path-concat.c.
84895         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84896         (Include): filenamecat.h, not path-concat.h.
84897         * modules/mkdir-p: Renamed from modules/makepath.
84898         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84899         makepath.c.
84900         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84901         (Include): mkdir-p.h, not makepath.h.
84902
84903 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84904
84905         Sync from coreutils.
84906         * m4/mkdir-p.m4: Renamed from makepath.m4.
84907         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84908         Rename files from makepath.c to mkdir-p.c, and from
84909         makepath.h to mkdir-p.h.
84910         * m4/filenamecat.m4: Renamed from path-concat.m4.
84911         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84912         Rename files from path-concat.c to filenamecat.c,
84913         and from path-concat.h to filenamecat.h.
84914         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84915         "file name" in local variables or comments.
84916         * m4/rename.m4: Likewise.
84917
84918 2005-06-01  Bruno Haible  <bruno@clisp.org>
84919
84920         * modules/csharpexec: New file.
84921         * MODULES.html.sh (C#): New section.
84922
84923 2005-06-01  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/csharp.m4: New file, from GNU gettext.
84926         * m4/csharpexec.m4: New file, from GNU gettext.
84927
84928 2005-06-01  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/csharpexec.h: New file, from GNU gettext.
84931         * lib/csharpexec.c: New file, from GNU gettext.
84932         * lib/csharpexec.sh.in: New file, from GNU gettext.
84933
84934 2005-05-31  Derek Price  <derek@ximbiot.com>
84935             Paul Eggert  <eggert@cs.ucla.edu>
84936
84937         Sync from cvs.
84938         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84939
84940 2005-05-31  Derek Price  <derek@ximbiot.com>
84941             Paul Eggert  <eggert@cs.ucla.edu>
84942
84943         Sync from cvs.
84944         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84945
84946 2005-05-29  Derek Price  <derek@ximbiot.com>
84947
84948         * config/srclist.txt (glob_.h, glob.c): Add these files.
84949
84950 2005-05-29  Derek Price  <derek@ximbiot.com>
84951
84952         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84953         * modules/glob: New file.
84954         * modules/getlogin_r: Add link to POSIX spec in description.
84955
84956 2005-05-29  Derek Price  <derek@ximbiot.com>
84957             Paul Eggert  <eggert@cs.ucla.edu>
84958
84959         * m4/glob.m4: New file.
84960
84961 2005-05-29  Derek Price  <derek@ximbiot.com>
84962             Paul Eggert  <eggert@cs.ucla.edu>
84963
84964         * lib/glob_.h, lib/glob.c: New files.
84965
84966 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84969         * modules/fts-lgpl (Depends-on): Remove gettext.
84970
84971 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84974         and don't require gt_INTTYPES_PRI.
84975
84976 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84979
84980         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84981         the configuration hassle isn't worth it.
84982         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84983         (LONGEST_MODIFIER, PRIuMAX): Remove.
84984
84985 2005-05-27  Bruno Haible  <bruno@clisp.org>
84986
84987         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84988
84989 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84992         _POSIX_PTHREAD_SEMANTICS for Solaris.
84993
84994 2005-05-25  Derek Price  <derek@ximbiot.com>
84995
84996         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84997
84998 2005-05-25  Derek Price  <derek@ximbiot.com>
84999             Paul Eggert  <eggert@cs.ucla.edu>
85000
85001         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85002         * lib/getlogin_r.c, getlogin_r.h: New files.
85003
85004 2005-05-25  Bruno Haible  <bruno@clisp.org>
85005             Derek Price  <derek@ximbiot.com>
85006
85007         * lib/getlogin_r.h: Simplify API documentation.
85008
85009 2005-05-23  Derek Price  <derek@ximbiot.com>
85010
85011         * modules/minmax (Files): Add m4/minmax.m4.
85012         (configure.ac): Add gl_MINMAX.
85013
85014 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85015
85016         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85017         so that unistd-safer.h (GPL'ed code) need not be included.
85018
85019 2005-05-22  Bruno Haible  <bruno@clisp.org>
85020
85021         * m4/minmax.m4: New file.
85022         Based on a patch by Derek Price <derek@ximbiot.com>.
85023
85024 2005-05-22  Bruno Haible  <bruno@clisp.org>
85025
85026         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85027         (INT64_MIN): Fix definition.
85028         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85029
85030         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85031         NEED_SIGNED_INT_TYPES.
85032
85033         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85034         HAVE_SYSTEM_INTTYPES.
85035
85036 2005-05-22  Bruno Haible  <bruno@clisp.org>
85037
85038         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85039         Also include <sys/param.h> if it defines MIN, MAX.
85040         Based on a patch by Derek Price <derek@ximbiot.com>.
85041
85042 2005-05-21  Jim Meyering  <jim@meyering.net>
85043
85044         * modules/fts (Files): Add m4/inttypes-pri.m4.
85045         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85046
85047 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         New fts module.
85050         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85051         (setup_dir, free_dir): New functions.
85052         (enter_dir, leave_dir): Define trivial
85053         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85054         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85055         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85056         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85057         Move to fts-cycle.c.
85058         (fts_open): Use setup_dir.
85059         (fts_close): Use free_dir.
85060         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85061         This adds a label and some gotos, but the alternatives were messier.
85062         Check for memory allocation failure when entering a dir.
85063         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85064         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85065         (FTS): New member fts_cycle, that is a union that contains the
85066         old active_dir_ht and cycle_state.  All uses changed to mention
85067         fts_cycle.ht and fts_cycle.state.
85068         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85069         fts.c, with the following changes:
85070         (setup_dir, free_dir): New functions.
85071         (enter_dir): Now returns bool.  Return true if successful, false
85072         if memory exhausted.  All callers changed.
85073         Do not bother partly cleaning up on
85074         memory allocation failure; that is free_dir's job.
85075         However, free ad if hash_insert fails, to avoid memory leak.
85076         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85077         fts->fts_options to see which union member to use.
85078
85079 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85082         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85083
85084 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85087
85088 2005-05-20  Jim Meyering  <jim@meyering.net>
85089
85090         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85091         Now a macro, to pacify GCC.
85092
85093 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85094
85095         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85096         of -1.
85097
85098 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85099
85100         * lib/chown.c (rpl_chown): Return -1 on failure.
85101
85102 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85105         Don't check for stddef.h.
85106         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85107         don't use its results.
85108         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85109         since we include them unconditionally.  Don't require
85110         AM_STDBOOL_H, since stdbool is a prerequisite.
85111         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85112         since we assume C89 or better.
85113         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85114         as we don't use their results.
85115         Don't check for fchdir, memmove, memset, strrchr, as we use
85116         them unconditionally.
85117         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85118         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85119
85120 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85123         Include <stddef.h> unconditionally, since we assume C89 now.
85124         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85125         * lib/fts.c: Include fts_.h first, to check interface.
85126         Do not include intprops.h; no longer needed.
85127         Include cycle-check.h and hash.h, since fts_.h no longer does.
85128         Remove unnecessary casts of closedir to void.
85129         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85130         decide whether to decrement nlinks.
85131         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85132         (FTS): Use struct hash_table * instead of Hash_table, so that
85133         we no longer need to include hash.h here.
85134
85135 2005-05-18  Jim Meyering  <jim@meyering.net>
85136
85137         * modules/dirfd (License): Change to LGPL.  Most of the code
85138         is already in the public domain.
85139
85140 2005-05-18  Jim Meyering  <jim@meyering.net>
85141
85142         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85143         Reported by Yoann Vandoorselaere.
85144
85145 2005-05-17  Jim Meyering  <jim@meyering.net>
85146
85147         * m4/fts.m4: New file, from coreutils.
85148
85149 2005-05-17  Jim Meyering  <jim@meyering.net>
85150
85151         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85152
85153 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         Sync from coreutils.
85156         * m4/unlinkdir.m4: New file.
85157
85158 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85159
85160         Sync from coreutils.
85161         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85162         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85163         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85164         White space changes only.
85165         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85166         special.
85167         * lib/yesno.c: Include getline.h, not ctype.h.
85168         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85169         Use getline to remove arbitrary restriction on response length.
85170
85171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85172
85173         * config/srclist-update: Spell out "Street" in FSF postal
85174         mail address; this is the style the FSF seems to prefer.
85175
85176         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85177         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85178         this updates FSF postal mail address.
85179
85180         Sync from coreutils.
85181         * modules/unlinkdir: New file.
85182         * modules/yesno (Depends-on): Add getline.
85183         * MODULES.html.sh (File system functions): Add unlinkdir.
85184
85185 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85186
85187         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85188         lib/strsep.h:
85189         Change the initial comment to refer to GPL, not LGPL.
85190         gnulib-tool will change it to LGPL as needed.
85191
85192         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85193         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85194         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85195         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85196         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85197         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85198         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85199         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85200         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85201         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85202         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85203         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85204         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85205         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85206         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85207         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85208         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85209         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85210         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85211         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85212         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85213         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85214         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85215         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85216         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85217         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85218         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85219         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85220         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85221         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85222         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85223         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85224         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85225         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85226         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85227         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85228         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85229         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85230         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85231         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85232         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85233         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85234         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85235         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85236         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85237         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85238         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85239         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85240         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85241         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85242         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85243         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85244         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85245         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85246         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85247         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85248         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85249         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85250         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85251         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85252         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85253         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85254         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85255         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85256         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85257         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85258         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85259         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85260         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85261         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85262         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85263         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85264         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85265         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85266         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85267         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85268         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85269         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85270         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85271         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85272         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85273         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85274         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85275         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85276         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85277         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85278         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85279         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85280         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85281         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85282         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85283         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85284         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85285         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85286         lib/yesno.c, lib/yesno.h:
85287         Update FSF postal mail address.
85288
85289 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85292         tests/test-memmem.c, tests/test-stpncpy.c:
85293         Update FSF postal mail address.
85294
85295 2005-05-13  Bruno Haible  <bruno@clisp.org>
85296
85297         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85298         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85299         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85300         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85301         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85302         Add support for 64-bit integers in the MSVC compiler.
85303
85304 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85305
85306         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85307
85308 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85309
85310         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85311
85312 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         * doc/getdate.texi (General date syntax): Don't say that date
85315         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85316         Problem reported by Nic Ferrier.
85317
85318 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85319
85320         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85321         specified in ai_socktype. Fix invalid ai_protocol
85322         check. ai_protocol is usually set to 0 or depending on
85323         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85324         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85325         ai_socktype / ai_protocol in the returned addrinfo structure.
85326
85327 2005-05-10  Simon Josefsson  <jas@extundo.com>
85328
85329         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85330         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85331
85332 2005-05-10  Karl Berry  <karl@gnu.org>
85333
85334         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85335         (from http://www.gnu.org/licenses).
85336         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85337         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85338         fdl.texi suffices.
85339
85340 2005-05-10  Karl Berry  <karl@gnu.org>
85341
85342         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85343         (COPYING.DOC): remove.
85344
85345         * config/srclist-update: new FSF address.
85346
85347 2005-05-10  Derek Price  <derek@ximbiot.com>
85348
85349         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85350         possible.
85351
85352 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85353             Bruno Haible  <bruno@clisp.org>
85354
85355         * modules/inet_ntop: New file.
85356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85357         inet_ntop.
85358
85359 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85360             Bruno Haible  <bruno@clisp.org>
85361
85362         * m4/inet_ntop.m4: New file.
85363
85364 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85365             Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/inet_ntop.h: New file.
85368         * lib/inet_ntop.c: New file, from glibc with modifications.
85369
85370 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * modules/time_r (License): Change to LGPL.
85373         * modules/extensions (License): Change to LGPL.  Actually,
85374         the license is more permissive than that, but currently gnulib-tool
85375         doesn't know how to handle more-permissive licenses.
85376
85377         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85378         Problem reported by Dave Love.
85379
85380 2005-05-08  Jim Meyering  <jim@meyering.net>
85381
85382         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85383         blank.
85384
85385 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * modules/argmatch (Depends-on): Add stdbool.
85388         * modules/backupfile (Depends-on): Likewise.
85389         * modules/chdir-long (Depends-on): Likewise.
85390         * modules/closeout (Depends-on): Likewise.
85391         * modules/cycle-check (Depends-on): Likewise.
85392         * modules/dirname (Depends-on): Likewise.
85393         * modules/fnmatch (Depends-on): Likewise.
85394         * modules/fsusage (Depends-on): Likewise.
85395         * modules/fwriteerror (Depends-on): Likewise.
85396         * modules/getcwd (Depends-on): Likewise.
85397         * modules/getloadavg (Depends-on): Likewise.
85398         * modules/hard-locale (Depends-on): Likewise.
85399         * modules/makepath (Depends-on): Likewise.
85400         * modules/mountlist (Depends-on): Likewise.
85401         * modules/nanosleep (Depends-on): Likewise.
85402         * modules/posixtm (Depends-on): Likewise.
85403         * modules/quotearg (Depends-on): Likewise.
85404         * modules/readtokens (Depends-on): Likewise.
85405         * modules/readtokens0 (Depends-on): Likewise.
85406         * modules/readutmp (Depends-on): Likewise.
85407         * modules/save-cwd (Depends-on): Likewise.
85408         * modules/strftime (Depends-on): Likewise.
85409         * modules/userspec (Depends-on): Likewise.
85410         * modules/utimecmp (Depends-on): Likewise.
85411         * modules/xgetcwd (Depends-on): Likewise.
85412         * modules/xnanosleep (Depends-on): Likewise.
85413         * modules/xstrtod (Depends-on): Likewise.
85414         * modules/yesno (Depends-on): Likewise.
85415
85416 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85419         needless checks.
85420
85421 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         Merge from coreutils.  Among other things,
85424         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85425         * lib/fd-safer.c: New file.
85426         * lib/fcntl-safer.h, open-safer.c: Remove.
85427         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85428         * lib/dup-safer.c: Include unistd-safer.h first.
85429         Don't include errno.h.
85430         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85431         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85432         * lib/file-type.c: Rely on file-type.h change.
85433         * lib/getloadavg.c: Include unistd-safer.h.
85434         (getloadavg): Use safer open.
85435         * lib/getusershell.c: Include "stdio-safer.h".
85436         (getusershell): Use safer fopen.
85437         * lib/long-options.c (long_options): Use NULL rather than 0.
85438         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85439         'free'.
85440         * lib/modechange.c: Likewise.
85441         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85442         (MODE_DONE): New constant.
85443         (struct mode_change): Remove 'next' member.
85444         (make_node_op_equals): New function; like the old one of the
85445         same name, except it allocates an array.
85446         (mode_compile, mode_create_from_ref): Use it.
85447         (mode_compile): Allocate result as an array, not a linked list.
85448         Parse octal string ourself, so that we catch mistakes like "+0".
85449         (mode_adjust): Arg is an array, not a linked list.
85450         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85451         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85452         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85453         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85454         Remove.  This is now stat-macros.h's job.
85455         (talloc): Remove.  All callers replaced by xalloc, so that
85456         our invokers don't have to worry about reporting memory failures.
85457         (make_node_op_equals): Remove.
85458         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85459         New constants.
85460         (struct mode_change): Moved here from modechange.h.
85461         (mode_append_entry): Remove.
85462         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85463         apps to have incorrect behavior.  Use simpler algorithm for head
85464         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85465         Detect more invalid usages rather than having somewhat-random behavior.
85466         Don't insert an "a=" action, as that leads to incorrect behavior.
85467         (mode_compile, mode_create_from_ref): Return NULL on error instead
85468         of an enum, since now there's only one way to have an error.  All
85469         callers changed.
85470         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85471         at the correct time.  Simplify calculation of "+u" and its ilk.
85472         Don't mishandle "+X".
85473         (mode_free): Remove "register" and localize decls.
85474         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85475         (struct mode_change): Move to modechange.c; callers don't
85476         need to see this stuff.
85477         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85478         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85479         (mode_change, mode_adjust): Reflect the new signatures noted above.
85480         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85481         that might redefine system include files.
85482         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85483         (my_usleep): Use NULL rather than (void *) 0.
85484         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85485         Use siginterrupt to specify that system calls should be interrupted.
85486         (rpl_nanosleep): Move initialization of suspended closer to call of
85487         my_usleep.
85488         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85489         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85490         (desirable_utmp_entry): New function.
85491         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85492         using x2nrealloc, to simplify logic.
85493         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85494         size calculation.  Do not assume utmp file is a regular file.
85495         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85496         (READ_UTMP_CHECK_PIDS): New constant.
85497         * lib/save-cwd.c: Include unistd-safer.h.
85498         (save_cwd): Use fd_safer.
85499         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85500         [!_LIBC] Include "stat-macros.h" instead.
85501         * lib/unistd-safer.h (fd_safer): New decl.
85502
85503 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * modules/getloadavg (Depends-on): Add unistd-safer.
85506         * modules/getusershell (Depends-on): Add stdio-safer.
85507         * modules/lstat (Depends-on): Remove xalloc.
85508         * modules/mkstemp (Depends-on): Add stat-macros.
85509         * modules/modechange (Depends-on): Remove xstrtol.
85510         Add stat-macros, xalloc.
85511         * modules/save-cwd (Depends-on): Add unistd-safer.
85512         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85513         * modules/unistd-safer (Files): Add lib/fd-safer.c
85514         (Makefile.am): Remove lib_SOURCES.
85515
85516         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85517         Remove fcntl-safer; unistd-safer supersedes it.
85518
85519 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85520
85521         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85522         AC_HEADER_STAT.
85523         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85524         (gl_PREREQ_CHOWN): Remove.
85525         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85526         it.  Don't require AC_HEADER_STAT.
85527         (gl_PREREQ_LSTAT): Remove.
85528         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85529         Don't require AC_HEADER_STAT.
85530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85531         (gl_PREREQ_RMDIR): Remove.
85532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85533         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85534         the stat-macros module a prerequisite.
85535         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85536         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85537         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85538         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85539         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85540         variable names.
85541         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85542         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85543         variable prefixes.
85544         * m4/fcntl-safer.m4: Remove.
85545         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85547         Invoke gl_PREREQ_FD_SAFER.
85548         (gl_PREREQ_FD_SAFER): New macro.
85549         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85550         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85551         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85552         Remove duplicate call to AC_LIBOBJ(readutmp).
85553         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85554
85555         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85556         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85557
85558 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85559
85560         * MODULES.html.sh (Misc): Add byteswap.
85561
85562 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85563
85564         * modules/getcwd (Depends-on): Add extensions.
85565         * modules/openat (Depends-on): Likewise.
85566
85567 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85568
85569         * modules/byteswap: New file.
85570
85571 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85572
85573         * m4/byteswap.m4: New file.
85574
85575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85576
85577         * lib/byteswap_.h: New file.
85578
85579 2005-04-25  Karl Berry  <karl@gnu.org>
85580
85581         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85582
85583 2005-04-25  Albert Chin  <china@thewrittenword.com>
85584
85585         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85586         Toolkit C bug.
85587
85588 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85589
85590         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85591         (func_ln_if_changed): Remove forcibly for no error message
85592         in case file does not exist.
85593
85594 2005-04-19  Simon Josefsson  <jas@extundo.com>
85595
85596         * gnulib-tool (Options): Make --symlink mean --symbolic.
85597
85598 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85599
85600         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85601
85602 2005-04-16  Simon Josefsson  <jas@extundo.com>
85603
85604         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85605
85606 2005-04-15  Simon Josefsson  <jas@extundo.com>
85607
85608         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85609
85610 2005-04-15  Simon Josefsson  <jas@extundo.com>
85611
85612         * gnulib-tool: Rename --symlink to --symbolic.
85613
85614 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85615
85616         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85617         symbolic links to files instead of copying/moving.  Add --aux-dir,
85618         specifying directory relative --dir where auxiliary build tools
85619         are placed.
85620
85621 2005-04-14  Bruno Haible  <bruno@clisp.org>
85622
85623         * modules/allocsa (License): Change to LGPL.
85624         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85625
85626 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85627
85628         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85629         that "UTC +1 second" continues to work.  Problem reported
85630         by Dmitry V. Levin.
85631         (relunit_snumber): New rule.
85632         (relunit): Use it.
85633
85634 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * lib/getdate.y (universal_time_zone_table): New constant.
85637         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85638         universal_time_zone_table.
85639         (lookup_zone): Prefer universal_time_zone_table to
85640         local_time_zone_table, so that "GMT" time stamps are allowed in
85641         London during the summer.  Problem reported by Ian Abbott.
85642
85643 2005-04-12  Jim Meyering  <jim@meyering.net>
85644
85645         * lib/human.c (humblock): Set *options even when returning due to
85646         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85647         warning from gcc-4.
85648
85649 2005-04-09  Jim Meyering  <jim@meyering.net>
85650
85651         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85652         -Wuninitialized: initialize tm0.tm_year.
85653
85654 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85657         count, since there's no maximum.  All uses changed.
85658         Add member dsts_seen.
85659         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85660         not being INT_MAX.
85661         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85662         Use pc_rels_seen to decide whether a date is absolute.
85663
85664         * lib/getdate.y (number): Don't overwrite year.
85665         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85666         check.
85667
85668 2005-04-02  Simon Josefsson  <jas@extundo.com>
85669
85670         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85671         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85672
85673 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85674
85675         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85676         where no absolute path name can be longer than PATH_MAX.
85677
85678 2005-03-27  Jim Meyering  <jim@meyering.net>
85679
85680         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85681
85682 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85685         "one's complement" -> "ones' complement" in comment, as per Knuth.
85686         "value of type" -> "type or expression" in comment.
85687         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85688
85689 2005-03-26  Jim Meyering  <jim@meyering.net>
85690
85691         Comment nits.
85692         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85693         Correct typos: s/or/of/.
85694
85695 2005-03-26  Jim Meyering  <jim@meyering.net>
85696
85697         * modules/check-include-files: Move to ../ and rename to...
85698         * check-module: ...this.
85699
85700 2005-03-25  Jim Meyering  <jim@meyering.net>
85701
85702         * modules/xvasprintf (Files): Add xalloc.h.
85703
85704 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85705
85706         * modules/gettext (Files): config/config.rpath ->
85707         build-aux/config.rpath
85708         * modules/iconv (Files): Likewise.
85709         Problem reported by Oskar Liljeblad.
85710
85711 2005-03-23  Jim Meyering  <jim@meyering.net>
85712
85713         * modules/check-include-files: New script to check for
85714         missing dependencies, multiple includes, etc.
85715
85716         * modules/c-strtold (Depends-on): Add xalloc.
85717         * modules/c-strtod (Depends-on): Add xalloc.
85718         * modules/hash (Depends-on): Add xalloc.
85719         (Files): Remove lib/xalloc.h.
85720
85721         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85722         * modules/userspec (Files): Add lib/inttostr.h.
85723
85724 2005-03-23  Jim Meyering  <jim@meyering.net>
85725
85726         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85727
85728 2005-03-22  Jim Meyering  <jim@meyering.net>
85729
85730         * modules/stat-macros: New module.
85731         * modules/canonicalize, modules/euidaccess, modules/file-type,
85732         * modules/filemode, modules/lchown, modules/makepath,
85733         * modules/rmdir, modules/stat: Depend on new stat-macros module
85734         rather than listing lib/stat-macros.h manually.
85735         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85736
85737 2005-03-22  Jim Meyering  <jim@meyering.net>
85738
85739         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85740
85741 2005-03-22  Bruno Haible  <bruno@clisp.org>
85742
85743         * config/srclist.txt: Replace target directory 'config' with
85744         'build-aux'.
85745         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85746         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85747         ../build-aux/.
85748
85749 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         * modules/chdir-long (Depends-on): Add mempcpy.
85752
85753         * modules/acl, modules/backupfile, modules/c-strtod,
85754         modules/c-strtold, modules/canon-host, modules/canonicalize,
85755         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85756         modules/exclude, modules/exitfail, modules/file-type,
85757         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85758         modules/getdate, modules/getline, modules/getpagesize,
85759         modules/getpass, modules/getugroups, modules/group-member,
85760         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85761         modules/inttostr, modules/long-options, modules/makepath,
85762         modules/md5, modules/memcasecmp, modules/memcoll,
85763         modules/modechange, modules/mountlist, modules/path-concat,
85764         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85765         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85766         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85767         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85768         modules/strftime, modules/strndup, modules/strverscmp,
85769         modules/timespec, modules/unlocked-io, modules/userspec,
85770         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85771         modules/yesno:
85772         Remove lib_SOURCES line from Makefile.am section, as this is now
85773         done automatically by the corresponding Autoconf macro.
85774
85775 2005-03-21  Jim Meyering  <jim@meyering.net>
85776
85777         Changes imported from coreutils.
85778
85779         * lib/cycle-check.c: Don't include xalloc.h.
85780
85781         * lib/path-concat.c: Don't include assert.h.
85782         (path_concat): Remove assertion that would have triggered
85783         for ABASE starting with more than one slash.
85784         Reported by Andreas Schwab.
85785
85786         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85787         properly when ABASE is an absolute file name.
85788         Correct the description of this function.
85789         Include <assert.h>.
85790         Add an assertion and a test driver.
85791         This fixes a bug introduced on 2004-07-02.
85792         Andreas Schwab reported the resulting failure of cp --parents:
85793         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85794
85795 2005-03-21  Jim Meyering  <jim@meyering.net>
85796
85797         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85798         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85799
85800 2005-03-21  Jim Meyering  <jim@meyering.net>
85801         and  Paul Eggert  <eggert@cs.ucla.edu>
85802
85803         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85804         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85805         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85806         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85807         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85808         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85809         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85810         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85811         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85812         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85813         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85814         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85815         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85816         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85817         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85818         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85819         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85820         for these modules.
85821
85822 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85825         (which shouldn't happen), generate nothing instead of returning 0
85826         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85827
85828 2005-03-16  Bruno Haible  <bruno@clisp.org>
85829
85830         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85831         HAVE_LONGLONG_64BIT.
85832
85833 2005-03-16  Bruno Haible  <bruno@clisp.org>
85834
85835         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85836         HAVE_LONGLONG_64BIT.
85837
85838 2005-03-16  Bruno Haible  <bruno@clisp.org>
85839
85840         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85841         HAVE_LONGLONG_64BIT.
85842
85843 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85844
85845         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85846         reliably distinguish strftime failure from empty output on POSIX
85847         hosts.
85848
85849 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85850
85851         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85852         (iconv_string): Don't guess a size-zero buffer, as that might cause
85853         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85854         result would be 'too large', where 'too large' is (heuristically)
85855         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85856         overflow concerns.  This will prevent some unwanted malloc failures
85857         when the inputs are very large.
85858
85859 2005-03-15  Karl Berry  <karl@gnu.org>
85860
85861         * config/srclist.txt (config.rpath): from gettext.
85862         * config/config.rpath: update.
85863
85864 2005-03-15  Bruno Haible  <bruno@clisp.org>
85865
85866         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85867         to 'negate'.
85868
85869         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85870         variable.
85871
85872         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85873         results.
85874
85875 2005-03-14  Simon Josefsson  <jas@extundo.com>
85876
85877         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85878         <fx@gnu.org>.
85879
85880 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85883         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85884         intprops.h.
85885         * lib/strtol.c: Likewise.
85886
85887 2005-03-14  Jim Meyering  <jim@meyering.net>
85888
85889         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85890         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85891         to be nonzero so that we (and caller) can detect the difference
85892         between a valid zero-length expansion and an error return, even
85893         when the underlying strftime fails before writing anything into
85894         that location.
85895
85896 2005-03-14  Bruno Haible  <bruno@clisp.org>
85897
85898         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85899         Update from GNU gettext 0.14.3.
85900
85901 2005-03-10  Jim Meyering  <jim@meyering.net>
85902
85903         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85904
85905 2005-03-10  Jim Meyering  <jim@meyering.net>
85906
85907         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85908         so that this module works on systems without fchdir.
85909
85910 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85911
85912         Factor int-properties macros into a single file, except for
85913         glibc-related files.
85914         * lib/intprops.h: New file.
85915         * lib/getloadavg.c: Include it instead of limits.h.
85916         (INT_STRLEN_BOUND): Remove.
85917         * lib/human.c: Include intprops.h.
85918         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85919         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85920         302/1000.
85921         * lib/inttostr.h: Include intprops.h instead of limits.h.
85922         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85923         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85924         for consistency with intprops.h.
85925         (time_t_is_integer, twos_complement_arithmetic): Use them.
85926         * lib/sig2str.h: Include <signal.h>, intprops.h.
85927         (INT_STRLEN_BOUND): Remove.
85928         * lib/strftime.c (TYPE_SIGNED): Remove.
85929         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85930         * lib/strtol.c: Adjust comments to match intprops.h.
85931         * lib/userspec.c: Include intprops.h.
85932         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85933         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85934         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85935         instead of rolling our own expressions.
85936         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85937
85938         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85939         instead of int.
85940         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85941         the right thing even if adding 1900 would overflow.  Similarly
85942         for tm_mon + 1 and tm_yday + 1.
85943         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85944         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85945         (DO_SIGNED_NUMBER): New macro.
85946         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85947
85948 2005-03-07  Bruno Haible  <bruno@clisp.org>
85949
85950         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85951
85952 2005-03-07  Bruno Haible  <bruno@clisp.org>
85953
85954         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85955
85956 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85957
85958         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85959         (func_import): Only replace files via --import when they have actually
85960         changed.
85961
85962 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85963
85964         * m4/mmap-anon.m4: New file.
85965         * m4/pagealign_alloc.m4: New file.
85966
85967 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85968             Bruno Haible  <bruno@clisp.org>
85969
85970         * modules/pagealign_alloc: New file.
85971         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85972
85973 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85974             Bruno Haible  <bruno@clisp.org>
85975
85976         * lib/pagealign_alloc.h: New file.
85977         * lib/pagealign_alloc.c: New file.
85978
85979 2005-03-03  Bruno Haible  <bruno@clisp.org>
85980
85981         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85982         Use an all-permissive copyright notice, recommended by RMS.
85983
85984 2005-03-02  Bruno Haible  <bruno@clisp.org>
85985
85986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85987         of AIX, the replacement has to be done only after <string.h> is
85988         included, therefore not in config.h. stpncpy.h does the replacement,
85989         and stpncpy.c uses it.
85990
85991 2005-03-02  Bruno Haible  <bruno@clisp.org>
85992
85993         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85994         stpncpy.c uses it.
85995
85996 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85999         The workaround isn't strictly needed for POSIX conformance, and
86000         it's too much of a pain to configure and maintain.  We'll ask
86001         people to fix their kernels instead.
86002         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86003         (NANOSLEEP_BUG_WORKAROUND): Remove.
86004         (xnanosleep): Remove the workaround.
86005
86006 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86009         Reported by Derek Price.
86010         (Include): Add "timespec.h".
86011
86012         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86013
86014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86015
86016         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86017         to detect nanosleep bug.
86018
86019 2005-03-01  Bruno Haible  <bruno@clisp.org>
86020
86021         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86022
86023 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86024
86025         * modules/gethrxtime: New file.
86026         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86027         (Depends-on): Add gethrxtime.
86028         (configure.ac): Add gl_XNANOSLEEP.
86029         (Makefile.am): Remove lib_SOURCES line.
86030
86031 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86032
86033         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86034         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86035
86036 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86039         * lib/timespec.h (gettime): Return void, since it always
86040         succeeds now.  All uses changed.
86041         * lib/gettime.c (gettime): Likewise.
86042         [HAVE_NANOTIME]: Prefer nanotime.
86043         Assume gettimeofday succeeds, as POSIX requires.
86044         Assime time () succeeds, since other code already does.
86045         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86046         (timespec_subtract): Remove.
86047         (NANOSLEEP_BUG_WORKAROUND): New constant.
86048         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86049         things considerably.  Use it only on GNU/Linux hosts, since the
86050         workaround shouldn't be needed elsewhere.
86051
86052 2005-02-24  Bruno Haible  <bruno@clisp.org>
86053
86054         * modules/gettext (Files): Add m4/glibc2.m4.
86055
86056 2005-02-24  Bruno Haible  <bruno@clisp.org>
86057
86058         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86059         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86060         * m4/progtest.m4:
86061         Update from GNU gettext 0.14.2.
86062         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86063
86064 2005-02-24  Bruno Haible  <bruno@clisp.org>
86065
86066         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86067         * lib/config.charset: Update from GNU gettext 0.14.2.
86068
86069 2005-02-24  Bruno Haible  <bruno@clisp.org>
86070
86071         * lib/gettext.h: Update from GNU gettext 0.14.2.
86072
86073 2005-02-23  Simon Josefsson  <jas@extundo.com>
86074
86075         * m4/iconvme.m4: New file.
86076
86077 2005-02-23  Jim Meyering  <jim@meyering.net>
86078
86079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86080         change.
86081         Thanks to Bruno Haible for catching it.
86082
86083 2005-02-22  Simon Josefsson  <jas@extundo.com>
86084
86085         * modules/iconvme: New file.
86086
86087         * MODULES.html.sh: Add iconvme.
86088
86089 2005-02-22  Simon Josefsson  <jas@extundo.com>
86090
86091         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86092
86093 2005-02-22  Simon Josefsson  <jas@extundo.com>
86094
86095         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86096
86097 2005-02-22  Jim Meyering  <jim@meyering.net>
86098
86099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86100         s/ifndef/ifdef/.
86101
86102 2005-02-20  Neil Conway  <neilc@samurai.com>
86103
86104         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86105         returned by OSX/Darwin if the specified buffer is not large
86106         enough for the hostname.
86107
86108 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86109
86110         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86111         pass it to _help, otherwise the latter coredumps trying to
86112         dereference state.root_argp.
86113
86114 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86115
86116         * modules/chdir-long (Depends-on): Add memrchr.
86117         * modules/memrchr (Files): Add lib/memrchr.h.
86118         (Include): "memrchr.h".
86119
86120 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86123
86124 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * lib/memrchr.h: New file.
86127         * lib/chdir-long.c: Include it.
86128         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86129         Don't bother including stddef.h.
86130
86131 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86132
86133         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86134         inclusion.
86135         Include <sys/types.h>, for dev_t.
86136         (ME_DUMMY, ME_REMOTE): Move from here....
86137         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86138         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86139         Dmitry V. Levin.
86140         Include mountlist.h first, to test the interface.
86141
86142 2005-01-29  Bruno Haible  <bruno@clisp.org>
86143
86144         * lib/progname.c (program_name): Initialize.
86145         Needed when linking statically on MacOS X.
86146
86147 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86148
86149         Sync from coreutils.
86150         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86151         (Depends-on): Add c-strtod.
86152         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86153
86154 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86155
86156         Sync from coreutils.
86157         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86158
86159         Remove files that are specific to coreutils.
86160         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86161
86162 2005-01-28  Bruno Haible  <bruno@clisp.org>
86163
86164         * modules/javacomp: New file.
86165         * MODULES.html.sh (Java): Add javacomp.
86166
86167 2005-01-28  Bruno Haible  <bruno@clisp.org>
86168
86169         * m4/javacomp.m4: New file, from GNU gettext.
86170
86171 2005-01-28  Bruno Haible  <bruno@clisp.org>
86172
86173         * lib/javacomp.sh.in: New file, from GNU gettext.
86174         * lib/javacomp.h: New file, from GNU gettext.
86175         * lib/javacomp.c: New file, from GNU gettext.
86176
86177 2005-01-26  Simon Josefsson  <jas@extundo.com>
86178
86179         * lib/gai_strerror.c: Use GPL in header.
86180
86181 2005-01-26  Bruno Haible  <bruno@clisp.org>
86182
86183         * modules/javaexec: New file.
86184         * MODULES.html.sh (Java): Add javaexec.
86185
86186 2005-01-26  Bruno Haible  <bruno@clisp.org>
86187
86188         * m4/javaexec.m4: New file, from GNU gettext.
86189
86190 2005-01-26  Bruno Haible  <bruno@clisp.org>
86191
86192         * lib/javaexec.sh.in: New file, from GNU gettext.
86193         * lib/javaexec.h: New file, from GNU gettext.
86194         * lib/javaexec.c: New file, from GNU gettext.
86195
86196 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86197
86198         * modules/lchown (Depends-on): Remove lchown.h
86199
86200 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86201
86202         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86203         must be defined if the header file was not found, in order
86204         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86205
86206 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86207
86208         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86209         initializers for struct pentry_state.
86210         (__argp_error): Check return value of __asprintf
86211         (__argp_failure): Translate error message
86212
86213         * lib/argp-parse.c: Removed braces around the expansion of N_()
86214
86215 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86216
86217         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86218         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86219         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86220         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86221         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86222         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86223         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86224         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86225         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86226         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86227         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86228         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86229         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86230         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86231         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86232         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86233         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86234         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86235         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86236         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86237         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86238         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86239         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86240         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86241         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86242         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86243         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86244         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86245         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86246         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86247         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86248         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86249         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86250         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86251         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86252         Use an all-permissive copyright notice, recommended by RMS.
86253
86254 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * modules/chdir-long (Depends-on): Remove mempcpy.
86257
86258 2005-01-21  Jim Meyering  <jim@meyering.net>
86259
86260         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86261         same value as for Solaris 9.
86262
86263         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86264         component length.  This included changing the parameter to be
86265         of type `char *' rather than `char const *'.
86266         * lib/chdir-long.h (chdir_long): Update prototype.
86267
86268         * lib/openat.c (fdopendir, fstatat): New functions.
86269         * lib/openat.h: Include headers required for use of DIR and struct
86270         stat.
86271         [AT_SYMLINK_NOFOLLOW]: Define.
86272         (fdopendir, fstatat): Add prototypes.
86273
86274 2005-01-21  Bruno Haible  <bruno@clisp.org>
86275
86276         * modules/classpath: New file.
86277         * MODULES.html.sh (Java): Add classpath.
86278
86279 2005-01-21  Bruno Haible  <bruno@clisp.org>
86280
86281         * lib/classpath.h: New file, from GNU gettext.
86282         * lib/classpath.c: New file, from GNU gettext.
86283
86284 2005-01-20  Simon Josefsson  <jas@extundo.com>
86285
86286         * modules/version-etc-fsf: New file.
86287
86288 2005-01-20  Simon Josefsson  <jas@extundo.com>
86289
86290         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86291         * lib/version-etc.c: Remove version_etc_copyright.
86292         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86293         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86294
86295 2005-01-20  Simon Josefsson  <jas@extundo.com>
86296
86297         * lib/base64.h (isbase64): Add.
86298
86299         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86300         using a unsigned prototype, don't inline.
86301         (base64_decode): Use it.
86302
86303 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86304
86305         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86306         it.
86307
86308 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86309
86310         * lib/save-cwd.c (save_cwd): Remove code to support the case
86311         where fchdir is missing or flaky.
86312
86313 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86314
86315         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86316
86317 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86318
86319         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86320         AC_LIBSOURCES now does this.
86321         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86322         with new ullong_max module.
86323
86324 2005-01-19  Bruno Haible  <bruno@clisp.org>
86325
86326         * modules/sh-quote: New file.
86327         * MODULES.html.sh (Executing programs): Add sh-quote.
86328
86329 2005-01-19  Bruno Haible  <bruno@clisp.org>
86330
86331         * lib/sh-quote.h: New file, from GNU gettext.
86332         * lib/sh-quote.c: New file, from GNU gettext.
86333
86334 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86335
86336         Merge from coreutils.
86337         * m4/ullong_max.m4: New file.
86338         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86339         (gl_MACROS): Assume localeconv exists.
86340
86341 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         Merge changes from coreutils, as described below in several
86344         changelogs dated today.
86345
86346         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86347         (O_DIRECTORY): Remove; not needed here, since "." must be
86348         a directory.  All uses removed.
86349         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86350         universal on Suns, and we also need to test for IRIX.
86351         Revamp code to use 'if' rather than '#if'.
86352         Avoid unnecessary comparison of cwd->desc to 0.
86353
86354         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86355         for known valid error numbers rather than observed invalid ones.
86356
86357 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * modules/ullong_max: New file.
86360
86361         * modules/chdir-long, modules/openat: New files.
86362         * modules/save-cwd (Depends-on): Depend on chdir-long.
86363         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86364
86365 2005-01-18  Jim Meyering  <jim@meyering.net>
86366
86367         Merge from coreutils.
86368         * m4/chdir-long.m4, m4/openat.m4: New files.
86369         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86370         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86371         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86372         is sane and DOES follow symlinks.  Besides, testing 20 different
86373         systems found no broken chown implementations.
86374         Prompted by a change in rsync's copy of this macro.
86375         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86376
86377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86378
86379         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86380         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86381         NULL-means-set-to-current-time semantics.
86382         Remove temporary file immediately, rather than waiting
86383         for configure's at-exit trap code to do it.
86384
86385 2005-01-18  Jim Meyering  <jim@meyering.net>
86386
86387         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86388
86389         * lib/utimens.c (futimens): Account for the fact that futimes
86390         can also fail with errno == ENOSYS or errno == ENOENT.
86391         Patch from Dmitry V. Levin.
86392
86393         Change the name of the robust chdir function from chdir to chdir_long.
86394         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86395         (restore_cwd): Use chdir_long, not chdir.
86396         * lib/chdir-long.c: Renamed from chdir.c.
86397         * lib/chdir-long.h: Renamed from chdir.h.
86398         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86399         Hurd.
86400
86401 2005-01-18  Bruno Haible  <bruno@clisp.org>
86402
86403         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86404         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86405         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86406         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86407         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86408         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86409         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86410         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86411         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86412         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86413         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86414         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86415         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86416         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86417         Use an all-permissive copyright notice, recommended by RMS.
86418
86419 2005-01-18  Bob Proulx  <bob@proulx.com>
86420
86421         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86422         simplify offsetof() macro construct to avoid compile failure with
86423         native HP-UX 11.0 ANSI C compiler.
86424
86425 2005-01-17  Bruno Haible  <bruno@clisp.org>
86426
86427         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86428         redundant because stpncpy.m4 takes care of it.
86429
86430 2005-01-17  Bruno Haible  <bruno@clisp.org>
86431
86432         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86433
86434 2005-01-17  Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86437         used.
86438
86439 2005-01-17  Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/fwriteerror.h (fwriteerror): Change specification to include
86442         fclose.
86443         * lib/fwriteerror.c: Include <stdbool.h>.
86444         (fwriteerror): At the end, close the file stream. Record whether
86445         stdout was already closed.
86446
86447 2005-01-17  Bruno Haible  <bruno@clisp.org>
86448
86449         * lib/execute.c (environ): Declare if needed.
86450         * lib/pipe.c (environ): Likewise.
86451         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86452
86453 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86454
86455         * modules/argp: Depend on vsnprintf
86456
86457 2005-01-10  Jim Meyering  <jim@meyering.net>
86458
86459         * modules/closeout (Depends-on): Add atexit.
86460
86461 2005-01-06  Bruno Haible  <bruno@clisp.org>
86462
86463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86464
86465 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86466
86467         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86468         definitions to be after all include files, to avoid collisions.
86469         Problem reported by Bob Proulx.
86470
86471 2005-01-04  Jim Meyering  <jim@meyering.net>
86472
86473         Changes imported from coreutils.
86474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86475         as the mkstemp template, use a temporary directory and an
86476         8.3-friendly template to avoid trouble on systems like DJGPP.
86477         Reported by Juan M. Guerrero via Stepan Kasal.
86478         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86479         close. Remove the temporary directory right away, rather than waiting
86480         for configure's at-exit trap code to do it.
86481         Suggestion from Stepan Kasal.
86482
86483 2005-01-01  Simon Josefsson  <jas@extundo.com>
86484
86485         * gnulib-tool: Print #include directives when --import'ing.
86486
86487 2004-12-28  Simon Josefsson  <jas@extundo.com>
86488
86489         * tests/test-base64.c: Include required header files.  Remove
86490         unused variables.
86491
86492 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86493
86494         * modules/error (Depends-on): Remove gettext.
86495
86496 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86499         not needed.  This removes a dependency on the gettext module.
86500         [defined _LIBC]: Do not include <libintl.h>; not needed.
86501
86502 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86505         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86506
86507 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86508
86509         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86510         HAVE_DECL_STRTOLD.
86511
86512 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * modules/getdate (Depends-on): Remove alloca-opt.
86515
86516 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86519
86520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86521
86522         * lib/argp-parse.c: Include <stddef.h>.
86523         (alignof, alignto): New macros.
86524         (parser_init): Don't assume that void * is aligned sufficiently
86525         for struct option.
86526
86527         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86528         need to extend the stack.
86529         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86530         large.
86531
86532 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86533
86534         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86535
86536 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86537
86538         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86539         (2004-10-24) change.  Apparently this was a false alarm.
86540
86541         * modules/getdate: Depend on alloca-opt, not alloca.
86542
86543 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86546         Remove now-obsolete comment about AIX.
86547         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86548         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86549         (YYMAXDEPTH): New macro.
86550
86551 2004-12-18  Simon Josefsson  <jas@extundo.com>
86552
86553         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86554
86555 2004-12-18  Bruno Haible  <bruno@clisp.org>
86556
86557         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86558
86559 2004-12-18  Bruno Haible  <bruno@clisp.org>
86560
86561         * lib/fatal-signal.c (fatal_signals): Make non-const.
86562         (init_fatal_signals): New function.
86563         (uninstall_handlers, install_handlers): Ignore signals that were set to
86564         SIG_IGN.
86565         (at_fatal_signal): Call init_fatal_signals.
86566         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86567         SIG_IGN.
86568         Reported by Paul Eggert.
86569
86570 2004-12-18  Bruno Haible  <bruno@clisp.org>
86571
86572         * doc/alloca.texi: New file.
86573         * doc/alloca-opt.texi: New file.
86574
86575 2004-12-17  Jim Meyering  <jim@meyering.net>
86576
86577         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86578         Otherwise, install-sh could exit with improper exit status when
86579         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86580
86581 2004-12-16  Simon Josefsson  <jas@extundo.com>
86582
86583         * tests/test-base64.c: Add license.
86584
86585 2004-12-15  Stepan Kasal  <address@hidden>
86586
86587         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86588
86589 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86590
86591         * modules/getcwd (Files): Add m4/d-ino.m4.
86592         Suggested by Mark D. Baushke.
86593
86594 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86595
86596         * lib/getdate.y (textint): New member "negative".
86597         (time_zone_hhmm): New function.
86598         Expect 14 shift-reduce conflicts, not 13.
86599         (o_colon_minutes): New rule.
86600         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86601         (yylex): Set the "negative" member of signed numbers.
86602
86603 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86604
86605         * doc/getdate.texi (Time of day items, Time zone items):
86606         Describe new formats +00:00, UTC+00:00.
86607
86608 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86609
86610         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86611         spurious "-l"s.  Problem reported by Stepan Kasal.
86612
86613 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86616         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86617
86618 2004-12-04  Simon Josefsson  <jas@extundo.com>
86619
86620         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86621         Vandoorselaere <yoann@prelude-ids.org>.
86622
86623 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86624
86625         Changes imported from coreutils.
86626         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86627         exist.
86628         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86629
86630 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86631
86632         Changes imported from coreutils.
86633         * lib/hard-locale.c: Assume <locale.h> exists.
86634         Include "strdup.h".
86635         (GLIBC_VERSION): New macro.
86636         (hard_locale): Assume setlocale exists.
86637         Rewrite to avoid #ifdef.
86638         Use strdup rather than malloc + strcpy.
86639         * lib/human.c: Assume <locale.h> exists.
86640         (human_readable): Assume localeconv exists.
86641
86642 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86643
86644         * modules/hard-locale (Depends-on): Add strdup.
86645
86646 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86647
86648         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86649         convert T2, not T.  (Imported from libc.)
86650
86651 2004-11-30  Simon Josefsson  <jas@extundo.com>
86652
86653         * modules/restrict (License): Change to LGPL.
86654
86655 2004-11-30  Simon Josefsson  <jas@extundo.com>
86656
86657         * m4/restrict.m4: Add copyright and copying conditions.
86658
86659 2004-11-30  Simon Josefsson  <jas@extundo.com>
86660
86661         * m4/base64.m4: New file.
86662
86663 2004-11-30  Simon Josefsson  <jas@extundo.com>
86664
86665         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86666         base64.
86667
86668         * tests/test-base64.c: New file.
86669
86670         * modules/base64: New file.
86671
86672 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86673
86674         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86675         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86676
86677         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86678
86679 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86680
86681         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86682         (__getcwd.c): Don't restore errno; glibc doesn't.
86683         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86684         first, falling back to our code only if its results look suspicious.
86685         Ensure that the resulting buffer is only as large as necessary.
86686
86687         * lib/readutmp.c: Include readutmp.h first.
86688         Include <errno.h>, since readutmp.h no longer does that.
86689         * lib/readutmp.h: Don't include <errno.h>,
86690         <sys/param.h>, <time.h>; not needed to establish interface.
86691         (errno): Remove decl.
86692         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86693         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86694         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86695
86696 2004-11-28  Simon Josefsson  <jas@extundo.com>
86697
86698         * lib/base64.h, base64.c: New file.
86699
86700 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86701
86702         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86703
86704 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86705
86706         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86707         (Depends-on): Remove pathmax, same.  Add mempcpy.
86708         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86709         (Makefile.am): Append getcwd.h to lib_SOURCES.
86710         (Include): Add getcwd.h.
86711         (Maintainer): Change from Jim Meyering to "all, glibc",
86712         since getdate now uses intended-for-glibc code.
86713         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86714         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86715
86716 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86717
86718         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86719         HP's ANSI C compiler.
86720         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86721         Declaring int functions causes warnings on some modern systems and
86722         shouldn't be needed to compile on ancient ones.
86723         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86724         defined.
86725
86726         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86727         with the following changes.
86728         (__set_errno): Parenthesize properly.
86729         Include <stdbool.h>.
86730         (MIN, MAX, MATCHING_INO): New macros.
86731         (__getcwd): Define with prototype, not K&R form.
86732         Use heuristics to allocate default buffer on stack if possible.
86733         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86734         behavior, and to avoid the PATH_MAX limit when computing
86735         ../../../../...
86736         Use MATCHING_INO to compare inode number to file.
86737         Check for arithmetic overflow in size calculations.
86738         Fix bug in reallocation of dot array that caused getcwd to fail
86739         on directories nested deeper than 75.
86740         Be more careful about saving errno on error.
86741         Do not use realloc; use only free+malloc, as this is a bit
86742         more flexible and avoids a needless copy operation.
86743         Do not inspect st_dev and st_ino for symbolic links; POSIX
86744         doesn't specify the latter.
86745         Check for closedir errors.
86746         Avoid needless casts.
86747         Use "#ifdef weak_alias" around weak_alias, to be like other
86748         glibc code.
86749         The following changes to getcwd.c have effect only when used in
86750         gnulib; they have no effect inside glibc proper.
86751         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86752         as alloca isn't used.
86753         (alloca, __alloca): Likewise.
86754         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86755         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86756         unconditionally, as gnulib assumes C89 or better.
86757         Do not include <sys/param.h>.
86758         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86759         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86760         better.
86761         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86762         Include <dirent.h> in a way that is compatible with modern Autoconf.
86763         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86764         New macros, if not already defined.
86765         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86766         Use "_LIBC", not "defined _LIBC", for consistency.
86767         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86768         a mempcpy module.
86769         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86770         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86771         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86772         credit only to Jim Meyering and adjust the copyright dates.
86773         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86774         <stdlib.h>, <unistd.h>, "pathmax.h".
86775         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86776         (INITIAL_BUFFER_SIZE): Remove.
86777         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86778
86779 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86782         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86783         Use the _ONCE methods, for efficiency.
86784         Check for fcntl.h.  In test program, include <errno.h>
86785         and <fcntl.h> if available.  Remove old K&R cruft from
86786         test program.  Check for common errors in GNU/Linux,
86787         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86788         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86789         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86790         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86791         name accordingly.
86792         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86793         accommodate new getcwd.c.
86794         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86795         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86796         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86797         that's all we need now.
86798
86799 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86800
86801         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86802         argp-parse.c depends on getopt internals, that means we should
86803         always use our getopt, to be on the safe side.
86804         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86805         order not to spoil the result of an eventual previous invocation
86806         of gl_GETOPT_SUBSTITUTE.
86807
86808 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86809
86810         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86811         redefinition warnings. To avoid them, include the defines
86812         in `#if !defined __need_getopt ... #endif'. The only place
86813         where __getopt_argv_const is used is in definitions
86814         of getopt_long and getopt_long_only below, which are as well
86815         protected by `#ifndef __need_getopt'.
86816         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86817         __need_getopt after including <stdio.h> and <unistd.h> These
86818         headers might have defined it.
86819
86820 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86821
86822         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86823
86824 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86825
86826         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86827         (futimens): New function, which uses futimes if available.
86828         (futimens, utimens): Support timespec==NULL, with same semantics
86829         as utime and utimens.
86830         * lib/utimens.h (futimens): New decl.
86831
86832 2004-11-23  Jim Meyering  <jim@meyering.net>
86833
86834         * lib/getopt_.h: Remove trailing blanks.
86835
86836 2004-11-23  Jim Meyering  <jim@meyering.net>
86837
86838         * lib/__fpending.c: Add comment.
86839
86840 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86841
86842         * modules/canonicalize (Depends-on): Add xreadlink.
86843         Problem reported by James Youngman.
86844
86845 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86846
86847         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86848         New macros.
86849         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86850         optopt): Use them instead of invoking ## directly; otherwise, the
86851         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86852
86853 2004-11-19  Bruno Haible  <bruno@clisp.org>
86854
86855         * lib/strtok_r.c: Move comments from here...
86856         * lib/strtok_r.h: ... to here.
86857
86858 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86859
86860         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86861         implementations that mishandle size_t overflow.
86862
86863 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86864
86865         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86866         might fail.  Problem reported by Yoann Vandoorselaere.
86867         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86868         implementations that mishandle size_t overflow.
86869
86870 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86871
86872         * modules/canon-host (Depends-on): Add strdup.
86873
86874 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86875
86876         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86877
86878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86879
86880         * lib/canon-host.c: Include "strdup.h".
86881         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86882         Use strdup instead of malloc/strcpy to duplicate strings.
86883
86884         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86885         (human_space_before_unit): New constant.
86886         * lib/human.c (human_readable): Support it.
86887
86888         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86889         (xgetcwd): Set errno correctly when failing.
86890         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86891         the failure is actually due to a PATH_MAX problem.
86892
86893         Further getopt changes to make it more likely that glibc will
86894         buy the changes back.
86895         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86896         (getopt): Use it, so to preserve glibc semantic
86897         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86898         when compiling for libc.
86899         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86900         (getopt_long, getopt_long_only): Use it.
86901
86902         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86903         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86904         (getopt): Argv is now char * const *, as per standard.
86905         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86906         not char *__getopt_argv_const *.
86907         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86908         _getopt_long_only_r): Likewise.
86909         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86910         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86911         _getopt_long_r, _getopt_long_only_r): Likewise.
86912         * lib/getopt_.h (__getopt_argv_const): Remove.
86913         (getopt): Argv is now char * const *, as per standard.
86914
86915         * lib/getdate.y (tORDINAL): New token.
86916         (day, relunit): Allow it for relative times.
86917         (relative_time_table): Use tORDINAL for ordinals.
86918
86919 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86920
86921         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86922         Document that "second" isn't allowed as an ordinal number.
86923
86924 2004-11-16  Jim Meyering  <jim@meyering.net>
86925
86926         * modules/closeout (Depends-on): Add fpending.
86927
86928 2004-11-15  Jim Meyering  <jim@meyering.net>
86929
86930         * lib/closeout.c: Include "__fpending.h" once again.
86931         Include <stdbool.h>.
86932         (close_stdout): Don't fail just because stdout was closed initially,
86933         since some programs don't write to stdout in the normal course of
86934         operation (other than --version and --help), and we don't want this
86935         function to make e.g. `touch file >&-' fail.
86936         But do fail if it was closed and someone has tried to write to it.
86937         E.g., `printf foo >&-' must fail.
86938
86939 2004-11-13  Jim Meyering  <jim@meyering.net>
86940
86941         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86942
86943 2004-11-12  Simon Josefsson  <jas@extundo.com>
86944
86945         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86946         small doc fix is still pending.
86947
86948 2004-11-11  Simon Josefsson  <jas@extundo.com>
86949
86950         * modules/strtok_r: New file.
86951
86952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86953         strtok_r.
86954
86955 2004-11-11  Simon Josefsson  <jas@extundo.com>
86956
86957         * m4/strtok_r.m4: New file.
86958
86959         * m4/getopt.m4: Replace opterr.
86960
86961 2004-11-11  Simon Josefsson  <jas@extundo.com>
86962
86963         * lib/strtok_r.h, strtok_r.c: New file.
86964
86965 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86966
86967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86968         of replacing opterr, getopt, etc.  This should handle the
86969         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86970
86971 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86972
86973         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86974         we can stop lying to compilers about the constness of argv when we
86975         are compiled outside glibc.
86976         (getopt, getopt_long, getopt_long_only): Use it.
86977         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86978         _getopt_internal, getopt): Likewise.
86979         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86980         _getopt_long_only_r): Likewise.
86981         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86982         _getopt_long_r, _getopt_long_only_r): Likewise.
86983
86984         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86985         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86986         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86987         the other external symbols.
86988         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86989         declaration, since the above renaming now works around collisions.
86990
86991 2004-11-11  Jim Meyering  <jim@meyering.net>
86992
86993         * lib/linebreak.c: Remove trailing blanks.
86994         * lib/alloca_.h: Likewise.
86995         * lib/acosl.c: Likewise.
86996         * lib/euidaccess.c: Likewise.
86997         * lib/allocsa.h: Likewise.
86998
86999 2004-11-10  Simon Josefsson  <jas@extundo.com>
87000
87001         * m4/getaddrinfo.m4: New file.
87002
87003 2004-11-10  Simon Josefsson  <jas@extundo.com>
87004
87005         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87006
87007 2004-11-10  Simon Josefsson  <jas@extundo.com>
87008
87009         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87010         getaddrinfo.
87011
87012         * modules/getaddrinfo: New file.
87013
87014 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87015
87016         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87017
87018 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87019
87020         * lib/mktime.c (SHR): New macro, which is a portable
87021         substitute for >> that should work even on Crays.
87022         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87023         Problem reported by Mark D. Baushke in
87024         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87025         * lib/getdate.y (SHR): Likewise.
87026         (tm_diff): Use it.
87027         * lib/strftime.c (SHR): Likewise.
87028         (tm_diff): Use it.
87029         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87030         quote_these_too, so that right shifts are well defined.  All uses
87031         changed.
87032
87033 2004-11-10  Jim Meyering  <jim@meyering.net>
87034
87035         Ensure that no close failure goes unreported.
87036         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87037         return early when it seems there's nothing to flush.
87038         Don't include __fpending.h.
87039
87040 2004-11-10  Jim Meyering  <jim@meyering.net>
87041
87042         * modules/closeout (Depends-on): Remove fpending.
87043
87044 2004-11-10  Jim Meyering  <jim@meyering.net>
87045
87046         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87047
87048 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87049
87050         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87051         gl_FUNC_STRFTIME.
87052         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87053         and AC_REQUIRE when possible, to avoid duplicate checks.
87054         Check for <wchar.h>.
87055
87056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87057
87058         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87059
87060 2004-11-09  Bruno Haible  <bruno@clisp.org>
87061
87062         * m4/sockpfaf.m4: New file.
87063
87064 2004-11-05  Bruno Haible  <bruno@clisp.org>
87065
87066         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87067         Reported by Mark D. Baushke <mdb@cvshome.org>.
87068
87069 2004-11-04  Bruno Haible  <bruno@clisp.org>
87070
87071         2004-09-11  Bruno Haible  <bruno@clisp.org>
87072                 * allocsa.valgrind: New file.
87073         2004-02-06  Bruno Haible  <bruno@clisp.org>
87074                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87075                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87076                 Reported by Christopher Seip <chris.seip@hp.com>.
87077
87078 2004-11-04  Bruno Haible  <bruno@clisp.org>
87079
87080         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87081         (Makefile.am): Distribute it.
87082
87083 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87086         with errno == ERANGE if the buffer is too small.
87087         Problem reported by Mark D. Baushke.
87088
87089 2004-11-03  Albert Chin  <china@thewrittenword.com>
87090             Paul Eggert  <eggert@cs.ucla.edu>
87091
87092         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87093         equivalent, substitute $ac_type for equivalent type rather than
87094         blindly using uint32_t *always* which won't work if uint32_t is not
87095         available.  Define _UINT32_T to work around typedef of uint32_t if
87096         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87097         2.5.1.
87098
87099 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87100
87101         * m4/jm-macros.m4: Sync from coreutils.
87102         (gl_MACROS): Check for mbrlen, for pathchk.
87103         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87104
87105 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87106
87107         * lib/xreadlink.c (MAXSIZE): New macro.
87108         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87109         size does not exceed MAXSIZE.  Avoid cast.
87110         As suggested by Mark D. Baushke in
87111         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87112         if readlink fails with buffer size just under MAXSIZE, try again
87113         with MAXSIZE.
87114
87115 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87116
87117         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87118
87119 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87120         and  Paul Eggert  <eggert@cs.ucla.edu>
87121
87122         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87123         (get_date): Overparenthesize to avoid GCC warning.
87124
87125 2004-11-02  Bruno Haible  <bruno@clisp.org>
87126
87127         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87128         returns void.
87129
87130 2004-11-02  Bruno Haible  <bruno@clisp.org>
87131
87132         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87133         function returns void.
87134
87135 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87138         fflush_unlocked, flockfile, funlockfile, funlockfile,
87139         fputs_unlocked, putc_unlocked.
87140
87141 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87142
87143         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87144         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87145         already declared.
87146
87147 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87148
87149         * modules/getdate (Files): Add doc/getdate.texi.
87150         (Depends-on): Add setenv, xalloc.
87151
87152 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87153
87154         * lib/getdate.y: Add support for TZ="foo" within a date string.
87155         Fix some bugs near time_t boundaries.  Reject dates with
87156         out-of-range components, e.g., "Sept 31".
87157         Include <stdlib.h>, "setenv.h", "xalloc.h".
87158         (ISDIGIT_LOCALE): Remove; unused.
87159         Note that the TZ and time functions used here are not reentrant.
87160         (mktime_ok, get_tz): New functions.
87161         (TZBUFSIZE): New constant.
87162         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87163         This requires that we sometimes generate our own TZ="XXX..." setting.
87164
87165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         * doc/getdate.texi: New file, from coreutils with modifications for
87168         the new TZ parsing.
87169
87170 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87171
87172         * lib/mktime.c (not_equal_tm): Remove redundant check.
87173
87174 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87175
87176         * modules/regex (lib_SOURCES): Add regex.c.
87177         Reported by James Youngman in
87178         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87179
87180 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87181
87182         * lib/getdate.y: Use Bison 1.875 features, and some minor
87183         code cleanups.  This change does not affect semantics.
87184         Don't include <stdlib.h>; no longer needed.
87185         Don't include unlocked-io.h; only the "#if TEST" code uses
87186         stdio, and performance isn't crucial there.
87187         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87188         Bison 1.875 features as described below.
87189         All uses of "PC." replaced by "pc->".
87190         (YYSTYPE): Add a forward declaration.
87191         (yylex, yyerror): Use full prototypes in forward decls.
87192         Use "%pure-parser" rather than obsolescent "%pure_parser".
87193         Use %parse-param and %lex-param instead of obsolescent
87194         YYPARSE_PARAM and YYLEX_PARAM.
87195         (meridian_table, month_and_day_table, time_units_table,
87196         relative_time_table, time_zone_table, military_table,
87197         lookup_zone, lookup_word, get_date):
87198         Use NULL instead of 0 where appropriate.
87199         (to_hour): Avoid abort (), to avoid a dependency on
87200         stdlib.h.
87201         (yyerror, yylex): Now accepts parser_control * arg.
87202         (main) [TEST]: Use '\0' rather than 0 for char.
87203
87204 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87205
87206         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87207
87208 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87209
87210         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87211         It's now the caller's responsibility to handle the case where
87212         !HAVE_GETPAGESIZE && !defined getpagesize.
87213
87214         * lib/mktime.c (leapyear): Arg is long int, not int.
87215
87216 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87219
87220 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87223         missing.  Problem reported by James Youngman.
87224
87225 2004-10-16  Simon Josefsson  <jas@extundo.com>
87226
87227         * gnulib-tool: Fix comments.  Fix parse problem.
87228         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87229
87230 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87231
87232         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87233         implementation of getopt_long.  Problem reported by Alexander Taler in:
87234         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87235
87236 2004-10-15  Bruno Haible  <bruno@clisp.org>
87237
87238         * gnulib-tool: Untabify. Initialize supplied_libname.
87239         (func_usage): More homogenous output.
87240         (func_modules_transitive_closure, func_modules_to_filelist,
87241         func_emit_lib_Makefile_am): New functions.
87242         (func_import): New function, extracted from big case statement. Use
87243         func_get_license, func_modules_transitive_closure,
87244         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87245         opt_lgpl. Don't use test -a, as it's not portable.
87246         (func_create_testdir): Use func_modules_transitive_closure,
87247         func_modules_to_filelist, func_emit_lib_Makefile_am.
87248
87249 2004-10-15  Bruno Haible  <bruno@clisp.org>
87250
87251         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87252
87253 2004-10-15  Bruno Haible  <bruno@clisp.org>
87254
87255         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87256         the portions belonging to each module.
87257         Suggested by Derek Robert Price <derek@ximbiot.com>.
87258
87259 2004-10-12  Simon Josefsson  <jas@extundo.com>
87260
87261         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87262         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87263         to real functions.
87264
87265 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87266
87267         * modules/vsnprintf: New file.
87268
87269 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87270
87271         * m4/vsnprintf.m4: New file.
87272
87273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87274
87275         * lib/vsnprintf.h: New file.
87276         * lib/vsnprintf.c: New file.
87277
87278 2004-10-11  Bruno Haible  <bruno@clisp.org>
87279
87280         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87281         vsnprintf.
87282
87283 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87284
87285         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87286
87287 2004-10-07  Bruno Haible  <bruno@clisp.org>
87288
87289         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87290         fits into the provided buffer.
87291
87292 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87293
87294         * lib/diacrit.c, diacrit.h: Add GPL notice.
87295
87296         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87297         notice.
87298         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87299         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87300         This avoids a potential constant-folding bug.
87301
87302 2004-10-05  Bruno Haible  <bruno@clisp.org>
87303
87304         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87305         for the declaration of strsep.
87306
87307 2004-10-05  Bruno Haible  <bruno@clisp.org>
87308
87309         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87310
87311 2004-10-04  Simon Josefsson  <jas@extundo.com>
87312
87313         * modules/memmem: New file.
87314         * tests/test-memmem.c: New file.
87315         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87316
87317 2004-10-04  Simon Josefsson  <jas@extundo.com>
87318
87319         * m4/memmem.m4: New file.
87320
87321 2004-10-04  Simon Josefsson  <jas@extundo.com>
87322
87323         * lib/memmem.h: New file.
87324         * lib/memmem.c: New file, taken from glibc.
87325
87326 2004-10-04  Simon Josefsson  <jas@extundo.com>
87327
87328         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87329         '#ifdef USE_UNLOCKED_IO'.
87330
87331 2004-10-04  Simon Josefsson  <jas@extundo.com>
87332
87333         * config/srclist.txt: Add memmem from glibc.
87334
87335 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87336
87337         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87338
87339         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87340         modules/exclude, modules/getdate, modules/getline,
87341         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87342         modules/getusershell, modules/linebuffer, modules/md5,
87343         modules/mountlist, modules/posixtm, modules/readtokens,
87344         modules/readutmp, modules/regex, modules/sha1,
87345         modules/version-etc, modules/yesno:
87346         Remove dependency on unlocked-io.
87347
87348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87349
87350         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87351
87352         * m4/unlocked-io.m4: Add copyright notice.
87353         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87354
87355 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87356
87357         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87358         * lib/xmalloc.c (xmemdup): Likewise.
87359         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87360         XFREE): Remove these long-obsolescent macros.
87361         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87362         * lib/xstrdup.c: Remove.
87363
87364         * lib/regex.c (re_comp): Cast gettext return value to char *,
87365         Problem reported by Martin Neitzel via Mark D. Baushke.
87366
87367 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87368
87369         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87370         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87371         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87372         regex.c, sha1.c, version-etc.c, yesno.c:
87373         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87374         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87375         the includer's responsibility.
87376
87377         Sync from coreutils.
87378
87379         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87380         points to the start of a string, as the C Standard says the
87381         resulting behavior is undefined.
87382
87383         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87384         simple -> simple_backups, numbered_existing ->
87385         numbered_existing_backups, numbered -> numbered_backups
87386         to avoid shadowing problems.  All uses changed.
87387         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87388         * lib/backupfile.c (check_extension, numbered_backup):
87389         Rename locals to avoid shadowing 'basename'.
87390         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87391         once.
87392
87393         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87394         * lib/.cvsignore: Add getopt.h.
87395
87396 2004-10-04  Bruno Haible  <bruno@clisp.org>
87397
87398         * modules/README: New file.
87399         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87400         not a module.
87401
87402 2004-10-02  Jim Meyering  <jim@meyering.net>
87403
87404         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87405
87406 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87407
87408         * modules/strsep: New file.
87409
87410 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87411
87412         * m4/strsep.m4: New file.
87413
87414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87415
87416         * lib/strsep.h: New file.
87417         * lib/strsep.c: New file.
87418
87419 2004-10-01  Simon Josefsson  <jas@extundo.com>
87420
87421         * lib/snprintf.c (snprintf): Handle size==0.
87422
87423 2004-10-01  Simon Josefsson  <jas@extundo.com>
87424             Bruno Haible  <bruno@clisp.org>
87425
87426         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87427         (snprintf): Declare 'args'.
87428
87429 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87430
87431         * lib/snprintf.c: Remove comments as to why each header is needed.
87432
87433 2004-10-01  Bruno Haible  <bruno@clisp.org>
87434
87435         * MODULES.html.sh: Add strsep.
87436
87437 2004-09-30  Simon Josefsson  <jas@extundo.com>
87438
87439         * modules/snprintf: New file.
87440
87441 2004-09-30  Simon Josefsson  <jas@extundo.com>
87442
87443         * m4/snprintf.m4: New file.
87444
87445 2004-09-30  Simon Josefsson  <jas@extundo.com>
87446
87447         * lib/snprintf.h, lib/snprintf.c: New files.
87448
87449 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87450
87451         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87452         (hol_entry_help): Never translate an empty string.
87453         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87454         * lib/argp.h (OPTION_NO_TRANS): New option.
87455
87456 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87457
87458         * modules/argp (Maintainer): Replace Simon Josefsson
87459         by Sergey Poznyakoff.
87460
87461 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87462
87463         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87464         changes merged back into glibc.
87465
87466 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87467
87468         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87469
87470 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87471
87472         * lib/xvasprintf.c: Include xalloc.h.
87473         (xvasprintf): Use xalloc_die, not xmalloc_die.
87474
87475 2004-09-29  Bruno Haible  <bruno@clisp.org>
87476
87477         * modules/alloca-opt: New file, derived from modules/alloca.
87478         * modules/allocsa: Depend on alloca-opt instead of alloca.
87479         * modules/setenv: Likewise.
87480         * modules/vasnprintf: Likewise.
87481         * MODULES.html.sh: Add alloca-opt.
87482
87483 2004-09-28  Simon Josefsson  <jas@extundo.com>
87484
87485         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87486         LGPL, and to replace license template from GPL to LGPL.
87487
87488 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87489
87490         * modules/dummy: Change license to LGPL.
87491
87492 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87493
87494         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87495
87496 2004-09-24  Simon Josefsson  <jas@extundo.com>
87497
87498         * modules/minmax (License): Change from GPL to LGPL.
87499
87500 2004-09-23  Simon Josefsson  <jas@extundo.com>
87501
87502         * gnulib-tool (--import): Typo.
87503
87504 2004-09-23  Simon Josefsson  <jas@extundo.com>
87505
87506         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87507
87508 2004-09-22  Bruno Haible  <bruno@clisp.org>
87509
87510         * modules/*: Add 'License' field.
87511         * gnulib-tool: Accept --extract-license option.
87512         (func_get_license): New function.
87513
87514 2004-09-21  Bruno Haible  <bruno@clisp.org>
87515
87516         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87517         Reported by Simon Josefsson.
87518
87519 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87522         gl_AC_TYPE_LONG_LONG.
87523
87524 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87525
87526         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87527
87528 2004-09-18  Simon Josefsson  <jas@extundo.com>
87529         and  Paul Eggert  <eggert@cs.ucla.edu>
87530
87531         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87532         calls with autoreconf.  Define GL_LIB.
87533
87534 2004-09-14  Karl Berry  <karl@gnu.org>
87535
87536         * config/srclist.txt: unsync setenv.c, sigh.
87537
87538 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87539
87540         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87541         Problem reported by Bruno Haible in:
87542         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87543
87544 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87545
87546         * config/srclist.txt: Comment out argp-pvh.c.
87547
87548 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87549
87550         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87551         in case some system header has #define'd it.  Problem reported by
87552         Soeren D. Schulze in
87553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87554
87555 2004-09-09  Karl Berry  <karl@gnu.org>
87556
87557         * regex.[ch]: delete from the root.  These were supposed to be
87558                 synced with emacs cvs, but this has not happened for about
87559                 a year, and anyway nothing else uses emacs regex.[ch].
87560                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87561                 lib/regex[.ch] is untouched.
87562
87563 2004-09-09  Bruno Haible  <bruno@clisp.org>
87564
87565         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87566
87567 2004-09-09  Bruno Haible  <bruno@clisp.org>
87568
87569         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87570         modifications.
87571         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87572
87573 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87574
87575         * modules/xvasprintf: New file.
87576         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87577
87578 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87579
87580         * lib/xvasprintf.h: New file.
87581         * lib/xvasprintf.c: New file.
87582         * lib/xasprintf.c: New file.
87583
87584 2004-09-08  Bruno Haible  <bruno@clisp.org>
87585
87586         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87587
87588 2004-09-08  Bruno Haible  <bruno@clisp.org>
87589
87590         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87591         length is > INT_MAX.
87592         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87593         more.
87594
87595 2004-09-08  Bruno Haible  <bruno@clisp.org>
87596
87597         * lib/stdint_.h: New file, taken from GNU clisp.
87598
87599 2004-09-08  Bruno Haible  <bruno@clisp.org>
87600             Oskar Liljeblad  <oskar@osk.mine.nu>
87601
87602         * modules/stdint: New file.
87603         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87604
87605 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87606
87607         Import from coreutils.
87608         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87609         strings on unbounded length.  alloca's performance benefits aren't
87610         that important here.
87611         (V_STRDUP): Remove.
87612         (parse_with_separator): New function, with most of the internals
87613         of the old parse_user_spec.  Allow user to omit both user and group,
87614         for compatibility with FreeBSD.
87615         Clone only the user name, not the entire spec.
87616         Do not set *uid, *gid unless entirely successful.
87617         Avoid memory leak in some failing cases.
87618         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87619         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87620         (parse_user_spec): Rewrite to use parse_with_separator.
87621
87622 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87623
87624         * modules/userspec: Don't depend on alloca.
87625
87626 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87629
87630 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87631
87632         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87633         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87634         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87635
87636 2004-08-16  Simon Josefsson  <jas@extundo.com>
87637
87638         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87639         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87640         Add --dry-run for --import.
87641         Let user provided command line parameters override configure.ac
87642         settings.
87643
87644 2004-08-12  Simon Josefsson  <jas@extundo.com>
87645
87646         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87647         as discussed with Paul Eggert in threads rooted at
87648         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87649         and
87650         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87651         Before, the test was empty, and relied on ELIDE_CODE in source
87652         code.)
87653         (gl_PREREQ_GETOPT): New macro.
87654         (gl_GETOPT): Use them.
87655
87656 2004-08-12  Simon Josefsson  <jas@extundo.com>
87657
87658         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87659         * lib/getopt_.h: Renamed from getopt.h.
87660
87661 2004-08-12  Simon Josefsson  <jas@extundo.com>
87662
87663         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87664         Change default library name from libfoo to libgnu.
87665         Now, if you have a configure.ac that says:
87666                 gl_SOURCE_BASE(gl)
87667                 gl_M4_BASE(gl/m4)
87668                 gl_MODULES(error getopt etcetera)
87669                 gl_INIT
87670         you can import all you need by running:
87671                 ../gnulib/gnulib-tool --import
87672
87673         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87674         (Makefile.am): Rewrite, use logic from argz.
87675         (Include): Use <getopt.h> instead of "getopt.h".
87676
87677 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87678
87679         * modules/argp (Files): Add m4/unlocked-io.m4.
87680         (Depends-on): Add extensions.
87681
87682 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87683
87684         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87685         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87686         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87687         Check for program_invocation_name, program_invocation_short_name,
87688         flockfile, funlockfile, features.h, _getopt_long_only_r.
87689
87690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87691
87692         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87693         its complicated substitute.
87694         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87695         and program_invocation_name.
87696         (__argp_basename) [!_LIBC]: Remove; the only use was
87697         replaced by its body.
87698         (__argp_short_program_name): Change condition from
87699         !defined __argp_short_program_name to
87700         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87701         to match argp-namefrob.h.
87702         (__argp_failure): Don't assume strerror_r returns char *.
87703         * lib/argp-parse.c (N_): Define unconditionally.
87704         (argp_default_options): Fill out initializers with 0 to avoid
87705         gcc warnings.
87706
87707 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87708
87709         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87710         getopt1.c.
87711
87712 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87713
87714         Merge from coreutils.
87715
87716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87717
87718         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87719         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87720
87721 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87722
87723         Merge from coreutils.
87724
87725         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87726         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87727         for Reliant Unix 5.43.
87728
87729         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87730         (union fooround): Use uintmax_t, not long int.
87731         The rest is a merge from libc:
87732         [defined _LIBC]: Include <shlib-compat.h>.
87733         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87734
87735         * lib/settime.c (settime): Recode to avoid warning with
87736         Sun Forte C 6U2.
87737
87738         * lib/strverscmp.c: Convert to UTF-8.
87739
87740 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87741
87742         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87743         m4/uintmax_t.m4.
87744
87745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87746
87747         * modules/xalloc-die: New file.
87748         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87749
87750         * modules/md5 (Files): Add m4/uint32_t.m4.
87751         * modules/sha1: Renamed from modules/sha.
87752         (Files):
87753         Rename lib/sha.h to lib/sha1.h.
87754         Rename lib/sha.c to lib/sha1.c.
87755         Rename m4/sha.m4 to m4/sha1.m4.
87756         (lib_SOURCES): Likewise.
87757         (configure.ac): Rename gl_SHA to gl_SHA1.
87758         (Include): sha.h -> sha1.h.
87759
87760 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87761
87762         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87763         * m4/sha1.m4: Renamed from sha.m4.
87764         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87765
87766 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87767
87768         * lib/obstack.h (obstack_empty_p):
87769         Don't assume that chunk->contents is suitably aligned.
87770         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87771         Likewise. Problem reported by Benno in
87772         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87773
87774         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87775         readable.  This could be improved further but it'd take some work.
87776
87777 2004-08-08  Simon Josefsson  <jas@extundo.com>
87778
87779         * modules/xgethostname (Depends-on): Remove exit and error (not
87780         used).
87781
87782         * modules/getpass-gnu: Add getpass.h.
87783         (Depends-on): Add stdbool.
87784         * modules/getpass: Add getpass.h.
87785
87786 2004-08-08  Simon Josefsson  <jas@extundo.com>
87787
87788         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87789         Check getpass declaration.
87790
87791 2004-08-08  Simon Josefsson  <jas@extundo.com>
87792
87793         * lib/xgethostname.c: Don't include error.h (not used).
87794
87795         * lib/getpass.h: Add.
87796         * lib/getpass.c: Include getpass.h first.
87797
87798 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         * lib/xalloc-die.c: New file.
87801         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87802         All uses removed.
87803         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87804         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87805         xalloc-die.c.
87806         (_, N_, xalloc_die): Move to xalloc-die.c.
87807         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87808         so that we needn't mess with xalloc_msg_memory_exhausted.
87809
87810         * lib/sha1.h: Renamed from sha.h.
87811         (SHA1_H): Renamed from _SHA_H.
87812         (sha1_ctx): Renamed from sha_ctx.
87813         (sha1_init_ctx): Renamed from sha_init_ctx.
87814         (sha1_process_block): Renamed from sha_process_block.
87815         (sha1_process_bytes): Renamed from sha_process_bytes.
87816         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87817         (sha1_read_ctx): Renamed from sha_read_ctx.
87818         (sha1_stream): Renamed from sha_stream.
87819         (sha1_buffer): Renamed from sha_buffer.
87820         * lib/sha1.c: Likewise; renamed from sha.c.
87821         Do not include <sys/types.h>.
87822         Include <stddef.h> rather than <stdlib.h>.
87823
87824 2004-08-08  Bruno Haible  <bruno@clisp.org>
87825
87826         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87827         FILESYSTEM_PREFIX_LEN.
87828         * lib/progreloc.c: Likewise.
87829         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87830
87831 2004-08-06  Simon Josefsson  <jas@extundo.com>
87832
87833         * modules/progname (Depends-on): Don't depend on stdbool.
87834
87835 2004-08-06  Simon Josefsson  <jas@extundo.com>
87836
87837         * modules/getsubopt: New file.
87838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87839         getsubopt.
87840
87841 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87842
87843         More merge from coreutils.
87844
87845         * m4/utimens.m4, m4/utimecmp.m4: New files.
87846         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87847         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87848         prereq.m4, sha.m4: Import changes from coreutils.
87849
87850 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87851
87852         More merge from coreutils.
87853         * modules/raise, modules/readtokens0, modules/utimens:
87854         * modules/utimecmp, module/xnanosleep: New files.
87855         * modules/strftime: Add lib/strftime.h.
87856         Change include from <time.h> to "strftime.h".
87857         * modules/yesno: Add lib/yesno.h.
87858         * modules/backupfile: Remove lib/addext.c.
87859         * modules/euidaccess: Add stat-macros.h.
87860         * modules/canonicalize, modules/euidaccess,
87861         modules/filemode, modules/lchown, modules/makepath,
87862         modules/rmdir, modules/stat: Likewise.
87863
87864 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87865
87866         Merge from tar.
87867         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87868         SIZE_MAX is a valid preprocessor constant.
87869         (__argp_basename): Change from "#ifndef _LIBC"
87870         to "#ifndef __argp_short_program_name", so that
87871         we don't compile these functions for tar.
87872
87873         More merges from coreutils.
87874         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87875         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87876         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87877         * lib/addext.c: Remove; no longer needed.
87878         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87879         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87880         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87881         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87882         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87883         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87884         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87885         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87886         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87887         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87888         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87889         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87890         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87891         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87892         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87893         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87894         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87895         Import changes from coreutils.
87896
87897 2004-08-05  Simon Josefsson  <jas@extundo.com>
87898
87899         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87900
87901 2004-08-05  Simon Josefsson  <jas@extundo.com>
87902
87903         * m4/getsubopt.m4: New file.
87904
87905 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87906
87907         Merge from coreutils.
87908
87909         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87910         * m4/getcwd-path-max.m4: New files.
87911
87912         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87913         FILESYSTEM_PREFIX_LEN ->
87914         FILE_SYSTEM_PREFIX_LEN.
87915         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87916         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87917         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87918         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87919
87920         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87921         prerequisite modules now handle the DOS stuff.
87922         Don't check for unistd.h.
87923
87924 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87925
87926         Merge from coreutils.
87927
87928         * lib/.gdb-history: Remove; this doesn't belong here.
87929
87930         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87931         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87932         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87933         * lib/getcwd.c: New files.
87934
87935         * lib/dirname.h: Include <stdbool.h>.
87936         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87937         for consistency with POSIX terminology.  All uses changed.
87938         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87939         (strip_trailing_slashes): Use bool for booleans.
87940         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87941
87942         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87943         sometimes returns a positive errno value even when it succeeds.
87944         (print_errno_message) [!LIBC]: Fall back on strerror if
87945         __strerror_r fails.
87946
87947         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87948         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87949         (longest_relative_suffix): New function.
87950         (path_concat): Use it.  Assume first argument is not NULL.
87951         Port to DOS.  Omit redundant separators.
87952         Report an error instead of returning NULL.
87953         Use mempcpy instead of memcpy.
87954         (xpath_concat): Remove: not declared or used.
87955
87956         * lib/same.h: Include <stdbool.h>
87957         (same_name): Return bool, not int.
87958         * lib/same.c (same_name): Likewise.
87959         (errno): Don't declare; we assume C89 or better now.
87960
87961         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87962         if not already defined.
87963
87964         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87965         * lib/dup-safer.c (errno): Likewise.
87966
87967 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87968
87969         Merge from coreutils.
87970         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87971         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87972         * modules/path-concat: Don't depend on strdup.
87973
87974 2004-08-03  Simon Josefsson  <jas@extundo.com>
87975
87976         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87977         * lib/progname.h: Don't include stdbool.h.
87978
87979 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87980
87981         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87982         * MODULES.html.sh (func_all_modules): Remove fatal.
87983
87984 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87987
87988 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87991         working.
87992
87993 2004-08-02  Simon Josefsson  <jas@extundo.com>
87994
87995         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87996         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87997         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87998
87999 2004-08-01  Simon Josefsson  <jas@extundo.com>
88000
88001         * lib/xgetdomainname.c: Include stdlib.h, for free().
88002
88003 2004-07-19  Bruno Haible  <bruno@clisp.org>
88004
88005         * MODULES.html.sh (func_all_modules): Add dummy.
88006
88007 2004-07-16  Simon Josefsson  <jas@extundo.com>
88008
88009         * modules/dummy: New file.
88010
88011 2004-07-16  Simon Josefsson  <jas@extundo.com>
88012
88013         * lib/dummy.c: New file.
88014
88015 2004-07-16  Bruno Haible  <bruno@clisp.org>
88016
88017         * lib/backupfile.h: Add extern "C" for C++.
88018         * lib/closeout.h: Likewise.
88019         * lib/copy-file.h: Likewise.
88020         * lib/findprog.h: Likewise.
88021         * lib/full-write.h: Likewise.
88022         * lib/pathname.h: Likewise.
88023         * lib/progname.h: Likewise.
88024         * lib/stpcpy.h: Likewise.
88025         * lib/stpncpy.h: Likewise.
88026         * lib/strcase.h: Likewise.
88027         * lib/strstr.h: Likewise.
88028         * lib/xalloc.h: Likewise.
88029
88030         * lib/mbswidth.h: Add extern "C" for C++.
88031         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88032
88033 2004-07-13  Robert Millan  <robertmh@gnu.org>
88034
88035         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88036
88037 2004-07-09  Simon Josefsson  <jas@extundo.com>
88038
88039         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88040         failed without this.)
88041
88042 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88043
88044         * modules/chown (Files): Add lib/fchown-stub.c, since
88045         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88046
88047 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88048
88049         * lib/fchown-stub.c: New file.
88050
88051 2004-06-24  Jim Meyering  <jim@meyering.net>
88052
88053         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88054
88055 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88056
88057         * modules/argz: Omit "#include".
88058
88059         * MODULES.html.sh (func_all_modules): Add calloc, to match
88060         2004-06-01 addition of calloc module.
88061
88062 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88063
88064         * m4/argz.m4: New file, which is autoupdated from libtool.
88065
88066 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88067
88068         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88069         libtool.
88070
88071 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88072
88073         * config/srclist-update: Don't insist on "USA." before the
88074         close-comment, as libtool omits the period and puts the */ on a
88075         separate line.
88076         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88077         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88078
88079 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88080
88081         * modules/argz: New file.
88082         * MODULES.html.sh (func_all_modules): Add argz.
88083
88084 2004-06-12  Jim Meyering  <jim@meyering.net>
88085         and  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         * modules/hash (Files): Add lib/xalloc.h.
88088         * modules/pipe (Depends-on): Add wait-process.
88089         * modules/stat (Depends-on): Add xalloc.
88090         * modules/userspec (Files): Add lib/userspec.h.
88091         * modules/xstrto
88092
88093         Upgrade from gettext-0.13.
88094         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88095         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88096         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88097
88098 2004-06-10  Jim Meyering  <jim@meyering.net>
88099
88100         * lib/calloc.c: New file.
88101
88102 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88103
88104         * lib/getdate.y (yylex): Allow space between sign and number.
88105         Problem reported by Dan Jacobson.
88106
88107 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88108
88109         Merge from coreutils CVS.
88110
88111         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88112         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88113         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88114         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88115         xstrtol.m4: Fix copyright date and/or serial number.
88116
88117         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88118         See if we need an fchown replacement.
88119         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88120         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88121         and use the replacement function if we detect either defect.
88122
88123         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88124         gl_UTIMECMP.
88125
88126 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88127         and  Jim Meyering  <jim@meyering.net>
88128
88129         Merge from coreutils CVS.
88130
88131         * lib/stat-macros.h: New file, with contents from file-type.h
88132         and coreutils' system.h.
88133         * lib/file-type.c: Include "stat-macros.h".
88134         * lib/file-type.h (file_type): Move all macro definitions to new file,
88135         stat-macros.h.
88136
88137         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88138         Wrap old code with this conditional.
88139         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88140         function that does not dereference symlinks.
88141         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88142
88143         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88144         dependency problems.
88145         (xreadlink): Accept new arg SIZE, for efficiency.
88146         All decls and uses changed.
88147         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88148
88149         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88150         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88151
88152         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88153         sysexits.h.
88154
88155 2004-06-01  Jim Meyering  <jim@meyering.net>
88156
88157         * m4/calloc.m4: New file.
88158
88159 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88160
88161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88162         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88163         Also, fix a typo in a diagnostic.
88164
88165 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88166
88167         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88168         or AC_FUNC_REALLOC.
88169
88170 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88171
88172         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88173         macros to be defined.
88174         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88175         the allocator returns NULL because the requested size is zero.
88176
88177 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88178
88179         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88180         var.  Add comment explaining why libc still defines it.  This
88181         merges the following patch from glibc:
88182         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88183
88184 2004-05-20  Andreas Schwab  <schwab@suse.de>
88185
88186         * m4/free.m4: Replace free if it not known to work, not the other
88187         way round.
88188
88189 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88190
88191         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88192         present in glibc since revision 1.1 of this file.
88193         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88194         obstack_alignment_mask, obstack_alloc, obstack_base,
88195         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88196         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88197         obstack_grow0, obstack_init, obstack_int_grow,
88198         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88199         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88200         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88201         nonexistent functions.
88202
88203 2004-05-18  Karl Berry  <karl@gnu.org>
88204
88205         * config/srclist.txt: break link for vasnprintf.c.
88206
88207 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88208
88209         Port obstack to the AS/400, where pointers are 16 bytes wide and
88210         you cannot cast an integer to a valid pointer.  This patch is
88211         currently waiting to be integrated into glibc; see
88212         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88213
88214         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88215         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88216         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88217         (struct obstack): temp member is now a union of a pointer and
88218         an integer, instead of an integer.  All integer uses changed.
88219         This does not affect the physical layout of struct obstack,
88220         except on hosts (like the AS/400) where the size or alignment of
88221         void * is greater than that of ptrdiff_t.
88222         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88223         __STDC__)]: Store temporary in pointer member of union, not
88224         integer member.
88225         * lib/obstack.c: Include <stddef.h>, for offsetof.
88226         (struct fooalign): Remove; it doesn't need a name.
88227         (union fooround): Change double to long double, and add void *.
88228         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88229         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88230         not a macro.  Hence the values are always int; so remove all
88231         casts-to-int in uses.
88232
88233 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88234
88235         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88236         we can get this patch merged into glibc.
88237
88238 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88239             Paul Eggert  <eggert@cs.ucla.edu>
88240
88241         * m4/argp: Depend on alloca.
88242
88243 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88244             Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88247         freecoding.
88248
88249 2004-05-17  Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88252         precision that consists of a '.' followed by an empty digit string.
88253         Patch by Tor Lillqvist <tml@iki.fi>.
88254
88255 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88256
88257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88258         for backward compatibility with older code.  We need our own
88259         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88260         it under some other name, and our alloca.h will define it.
88261
88262 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88263             Derek Price  <derek@ximbiot.com>
88264
88265         * lib/alloca.c: Include <alloca.h>, to get our interface.
88266         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88267         include <alloca.h> first.  Use C89 prototype for alloca; this
88268         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88269         Use #elif for simplicity, since we can assume C89 now.
88270         Don't try to source the system alloca.h since it will not be found
88271         and to prevent recursively including its replacement.
88272         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88273         * lib/regex.c: Likewise.
88274
88275 2004-05-16  Derek Price  <derek@ximbiot.com>
88276             Paul Eggert  <eggert@cs.ucla.edu>
88277
88278         getline cleanup.  This changes the getndelim2 API: both order of
88279         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88280         no delimiter).
88281
88282         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88283         interface does that.
88284         (getline): Always use getdelim, so that we don't have two
88285         copies of this code.
88286         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88287         if available.
88288         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88289         (GETNDELIM2_MAXIMUM): New macro.
88290         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88291         instead of the old practice of delim2==0.  All callers changed.
88292         Return -1 on overflow, instead of returning junk.
88293         Do not set *linesize unless allocation succeeds.
88294         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88295         that we include sys/types.h.
88296         * lib/getnline.h: Likewise.
88297         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88298         (getndelim2): Reorder arguments.
88299         * lib/getnline.c (getnline, getndelim):
88300         Don't discard the NMAX argument.
88301         (getnline): Invoke getndelim, to avoid code duplication.
88302         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88303         of (size_t) -1 by callers of the getnline family.
88304
88305 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88306
88307         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88308         Check for gettimeofday.
88309         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88310         Check for settimeofday, stime.
88311
88312 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88313
88314         * lib/nanosleep.c (suspended): Change its type from int to
88315         sig_atomic_t volatile.
88316         (first_call): Make it private to rpl_nanosleep, and have it
88317         be zero initially as that's a bit faster.
88318         (my_usleep): Round up fractional times instead of truncating them,
88319         as this is the usual meaning for 'sleep'.
88320
88321         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88322         doesn't work.
88323         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88324         (ENOSYS): Define if not defined.
88325         (settime): Fall back on stime if it exists and settimeofday fails.
88326         But don't bother with fallbacks if a method fails with errno == EPERM.
88327
88328 2004-05-11  Jim Meyering  <jim@meyering.net>
88329
88330         Prior to this change, the save_cwd caller required read access to the
88331         current directory on most systems (ones with the fchdir function).
88332
88333         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88334         fails, try write-only, and finally, resort to using xgetcwd.
88335
88336 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88337
88338         * lib/obstack.c, obstack.h: Import changes from libc.
88339
88340 2004-04-28  Bruno Haible  <bruno@clisp.org>
88341
88342         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88343         also implicitly appends .exe to executables.
88344         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88345         accepts Windows pathnames.
88346         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88347         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88348         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88349         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88350         Reported by Derek Robert Price <derek@ximbiot.com>.
88351
88352 2004-04-21  Karl Berry  <karl@gnu.org>
88353
88354         * config/srclist.txt (localcharset.c): break sync.
88355
88356 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88357
88358         * m4/host-os.m4: Add a copyright notice.
88359
88360 2004-04-20  Jim Meyering  <jim@meyering.net>
88361
88362         Change UTILS_ to gl_ in AC_DEFINE'd names.
88363         Change utils_- and jm_-prefixed variables, too.
88364         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88365         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88366         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88367
88368         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88369         Don't emit trailing blanks.
88370         Also rename jm_-prefixed variables to have gl_ prefix.
88371
88372         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88373         Also rename jm_-prefixed variables to have gl_ prefix.
88374
88375         * m4/jm-macros.m4: Reflect the renamings.
88376         * m4/prereq.m4: Likewise.
88377
88378 2004-04-20  Jim Meyering  <jim@meyering.net>
88379
88380         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88381         memory.
88382
88383 2004-04-20  Jim Meyering  <jim@meyering.net>
88384             Bruno Haible  <bruno@clisp.org>
88385
88386         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88387         memory when realloc fails.
88388
88389 2004-04-19  Jim Meyering  <jim@meyering.net>
88390
88391         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88392         now that readutmp.c may call `free (0)'.
88393
88394 2004-04-19  Bruno Haible  <bruno@clisp.org>
88395
88396         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88397         * m4/inttypes_h.m4: Likewise.
88398         * m4/stdint_h.m4: Likewise.
88399         * m4/intmax_t.m4: Likewise.
88400         * m4/uintmax_t.m4: Likewise.
88401
88402 2004-04-18  Jim Meyering  <jim@meyering.net>
88403
88404         * m4/prereq.m4: Don't forbid jm_ prefix.
88405
88406         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88407         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88408         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88409         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88410         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88411         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88412         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88413         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88414         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88415         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88416         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88417         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88418         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88419         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88420         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88421         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88422         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88423         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88424         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88425
88426 2004-04-18  Jim Meyering  <jim@meyering.net>
88427
88428         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88429         failure, don't leak memory and do call END_UTMP_ENT.
88430
88431 2004-04-16  Jim Meyering  <jim@meyering.net>
88432
88433         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88434         coreutils' stat program.
88435         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88436
88437 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88440         C89.
88441         (CHAR_BIT): Remove, since we assume C89.
88442         Include <stdint.h> if available, as per current Autoconf CVS advice.
88443
88444 2004-03-31  Jim Meyering  <jim@meyering.net>
88445
88446         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88447         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88448         * m4/xalloc.m4: Likewise.
88449
88450 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88451
88452         Merge from coreutils.
88453
88454         * m4/inttostr.m4: New file.
88455         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88456         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88457         Require gl_CLOCK_TIME.
88458         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88459
88460 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88461
88462         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88463         not bool, to be more consistent with Unix conventions.
88464         Suggested by Bruno Haible.
88465
88466         Merge from coreutils.
88467
88468         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88469         * lib/umaxtostr.c: New files.
88470
88471         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88472         the usual <time.h> dance.
88473         (get_date): Change signature to support fractional time stamps.
88474         All callers changed.
88475         * lib/getdate.y: Include "getdate.h" first, as we can now
88476         assume C89 and don't need to worry about 'const'.
88477         Similarly, include "unlocked-io.h" near start, not in middle.
88478         Include <limits.h>.
88479         (textint.value): Use long int rather than int.
88480         (textint.digits): Use size_t rather than int.
88481         (BILLION, LOG10_BILLION): New constants.
88482         (parser_control): New member rel_ns.  Members day_ordinal,
88483         time_zone, month, day, hour, minutes, rel_year, rel_month,
88484         rel_day, rel_hour, rel_minutes, rel_seconds
88485         are now long int, not int.  Member seconds is now struct timespec,
88486         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88487         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88488         not int.
88489         (%union.intval): Now long int, not int.
88490         New member timespec.
88491         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88492         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88493         (spec): Now is a timespec or an item list.
88494         (timespec, items): New nonterminals.
88495         (time, rel, relunit, number, get_date):
88496         Add support for fractional seconds.
88497         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88498         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88499         (to_hour): First arg is now long int, not int.
88500         (to_year): Returns long int, not int.
88501         Don't treat year -70 like 70.
88502         (tm_diff): Returns long int, not int.
88503         (lookup_word): Use bool instead of int when appropriate.
88504         (yylex): Use size_t for count, not int.
88505         Detect overflow when parsing large integer constants.
88506         Add support for fractions.
88507         (get_date): Make pointers 'const' if possible.
88508         Use more-portable code to detect integer overflow.
88509         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88510         Don't use ctime; it's not reliable if the year has >4 digits.
88511
88512         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88513         This is for compatibility with BSD.
88514
88515         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88516         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88517         From coreutils' system.h.
88518
88519         * lib/userspec.c: Don't include "posixver.h".
88520         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88521         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88522         compatible extension.  Simplify code by removing a boolean int
88523         that was always nonzero if a string was nonnull.
88524
88525 2004-03-30  Jim Meyering  <jim@meyering.net>
88526
88527         Merge from coreutils.
88528
88529         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88530         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88531         on some systems one must include <grp.h> before it.
88532         Reported by Christian Krackowizer.
88533
88534 2004-03-30  Jim Meyering  <jim@meyering.net>
88535
88536         Merge from coreutils.
88537
88538         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88539
88540         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88541         an empty input stream.
88542
88543         * lib/readtokens.c: Include <stdbool.h>.
88544         (readtoken): Use `size_t' rather than int/long.
88545         All callers adjusted.
88546         Use `bool' rather than `int' where appropriate.
88547         Use memset rather than an explicit loop.
88548         Use x2nrealloc rather than xrealloc.
88549         Allow the use of `\0' as a delimiter.
88550         (readtokens): Likewise.
88551         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88552
88553 2004-03-30  Jim Meyering  <jim@meyering.net>
88554
88555         * m4/realloc.m4: Remove file, since now it does no more than
88556         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88557         the `configure.ac' section of module/realloc.
88558         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88559
88560 2004-03-30  Bruno Haible  <bruno@clisp.org>
88561
88562         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88563         nonnull.
88564
88565 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88566
88567         Merge changes to getloadavg.c from coreutils and Emacs.
88568
88569         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88570         Define to an expression, not to the empty string.
88571         Include cloexec.h and xalloc.h.
88572         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88573         Use set_cloexec_flag rather than rolling our own.
88574         * lib/cloexec.c, lib/cloexec.h: New files.
88575
88576 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88577
88578         * m4/cloexec.m4: New file.
88579
88580 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88581
88582         * lib/getopt.h: Sync with libc CVS.
88583
88584 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88585             Bruno Haible  <bruno@clisp.org>
88586
88587         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88588         mbswidth.
88589
88590 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88591             Bruno Haible  <bruno@clisp.org>
88592
88593         * lib/mbswidth.h: Include <wchar.h> only if
88594         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88595         <wchar.h>.
88596         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88597
88598 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88599
88600         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88601         Sync with libc CVS.
88602         * lib/getopt_int.h: New file, also synced from libc.
88603
88604 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88605
88606         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88607         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88608         Bring back getopt.c, getopt.h, getopt1.c.
88609
88610 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88611
88612         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88613         All uses changed.  Check for sa_sigaction member; this fixes
88614         a bug first reported by Jason Andrade in
88615         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88616
88617 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88618
88619         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88620         '#if' expressions.  Unlike the code it replaces, it does not
88621         depend on (defined _SC_PAGESIZE).  However, it does depend on
88622         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88623         first reported by Jason Andrade in
88624         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88625
88626 2004-02-25  Simon Josefsson  <jas@extundo.com>
88627
88628         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88629
88630 2004-02-25  Simon Josefsson  <jas@extundo.com>
88631
88632         * lib/strdup.h: New file.
88633         * lib/strdup.c: Include it.
88634         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88635         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88636
88637 2004-02-23  Karl Berry  <karl@gnu.org>
88638
88639         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88640         (from fencepost.gnu.org:/gd/gnuorg).
88641
88642 2004-02-23  Karl Berry  <karl@gnu.org>
88643
88644         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88645         * config/srclist.txt: add maintain/standards documents.
88646
88647 2004-02-18  Bruno Haible  <bruno@clisp.org>
88648
88649         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88650         Reported by Derek Robert Price <derek@ximbiot.com>.
88651
88652 2004-02-16  Karl Berry  <karl@gnu.org>
88653
88654         * config/mkinstalldirs, install-sh: update from automake.
88655
88656 2004-02-06  Karl Berry  <karl@gnu.org>
88657
88658         * m4/po.m4: update from gettext 0.14.1.
88659
88660 2004-02-06  Karl Berry  <karl@gnu.org>
88661
88662         * lib/config.charset: update from gettext 0.14.1.
88663
88664 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88665
88666         Add comments and code, prompted by suggestions from Bruno Haible
88667         for sh-quote.
88668         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88669         describing the enum quoting_style values.
88670         * lib/quotearg.c (quotearg_alloc): New function.
88671         (quotearg_buffer_restyled): Treat lone { and } as special.
88672         Treat = as special.  Work around bug with older shells
88673         that "see" a '\' that is really the 2nd byte of a multibyte char.
88674         Quote empty string with shell_quoting_style.
88675
88676 2004-02-03  Bruno Haible  <bruno@clisp.org>
88677
88678         * m4/pipe.m4: New file, from GNU gettext.
88679
88680 2004-02-03  Bruno Haible  <bruno@clisp.org>
88681
88682         * lib/pipe.h: New file, from GNU gettext.
88683         * lib/pipe.c: New file, from GNU gettext.
88684
88685 2004-01-27  Bruno Haible  <bruno@clisp.org>
88686
88687         * m4/execute.m4: New file, from GNU gettext.
88688
88689 2004-01-27  Bruno Haible  <bruno@clisp.org>
88690
88691         * lib/execute.h: New file, from GNU gettext.
88692         * lib/execute.c: New file, from GNU gettext.
88693         * lib/w32spawn.h: New file, from GNU gettext.
88694
88695 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88696
88697         Merge from diffutils.
88698
88699         * lib/file-type.c (file_type): Add typed memory objects.
88700         * lib/file-type.h (S_TYPEISTMO): New macro.
88701
88702         * lib/c-stack.h (c_stack_action): Remove argv argument.
88703         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88704         (die): Don't calculate message unless segv_action returns.
88705         (get_stack_location, min_address_from_argv, max_address_from_argv,
88706         volatile stack_base, volatile_stack_size): Remove.
88707         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88708         that every segmentation violation is a stack overflow.  (Ouch!)
88709         See Debian bug 136249 (still outstanding) for more info about why
88710         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88711
88712 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88713
88714         Exit-status fix from coreutils.
88715
88716         Use exit_failure consistently in place of EXIT_FAILURE,
88717         so that program exit statuses are consistent on failure.
88718
88719         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88720         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88721         * lib/argmatch.h: Comment fix to match the above.
88722         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88723         Now a macro referring to exit_failure, instead of a separate
88724         variable.  Include "exitfail.h" to get it.
88725         * lib/xstrtol.h: Include "exitfail.h".
88726         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88727
88728         * lib/long-options.c (parse_long_options): Use prototype
88729         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88730         for clarity.
88731
88732 2004-01-21  Jim Meyering  <jim@meyering.net>
88733
88734         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88735         so as not to conflict with a different-sized __mktime_internal
88736         function in GNU libc.
88737         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88738         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88739
88740 2004-01-20  Karl Berry  <karl@gnu.org>
88741
88742         * config/config.guess: update from config.
88743
88744         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88745
88746 2004-01-20  Bruno Haible  <bruno@clisp.org>
88747
88748         Safer stack allocation.
88749         * lib/setenv.c: Include allocsa.h.
88750         (alloca): Remove fallback definition.
88751         (freea): Remove macro.
88752         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88753         instead of freea.
88754
88755 2004-01-20  Bruno Haible  <bruno@clisp.org>
88756
88757         * m4/eealloc.m4: New file, from GNU gettext.
88758
88759 2004-01-20  Bruno Haible  <bruno@clisp.org>
88760
88761         * m4/allocsa.m4: New file, from GNU gettext.
88762
88763 2004-01-20  Bruno Haible  <bruno@clisp.org>
88764
88765         * lib/xallocsa.h: New file, from GNU gettext.
88766         * lib/xallocsa.c: New file, from GNU gettext.
88767
88768 2004-01-20  Bruno Haible  <bruno@clisp.org>
88769
88770         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88771
88772 2004-01-20  Bruno Haible  <bruno@clisp.org>
88773
88774         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88775         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88776         specially.
88777
88778 2004-01-20  Bruno Haible  <bruno@clisp.org>
88779
88780         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88781         patch.
88782
88783 2004-01-20  Bruno Haible  <bruno@clisp.org>
88784
88785         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88786
88787 2004-01-20  Bruno Haible  <bruno@clisp.org>
88788
88789         * lib/eealloc.h: New file.
88790
88791 2004-01-20  Bruno Haible  <bruno@clisp.org>
88792
88793         * lib/binary-io.h: Avoid warnings on Cygwin.
88794
88795 2004-01-20  Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/allocsa.h: New file, from GNU gettext.
88798         * lib/allocsa.c: New file, from GNU gettext.
88799
88800 2004-01-18  Karl Berry  <karl@gnu.org>
88801
88802         * doc/gpl.texi, doc/lgpl.texi: new files.
88803
88804 2004-01-18  Karl Berry  <karl@gnu.org>
88805
88806         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88807         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88808
88809 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88810
88811         Merge from coreutils.
88812
88813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88814         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88815         (gl_DEFAULT_POSIX2_VERSION): Move
88816         the documentation from 'configure' into 'config.hin',
88817         so that 'configure --help' isn't burdened by it and
88818         we don't have to worry about its formatting there.
88819         Reword the documentation so that it's more succinct
88820         and can be run together into a single paragraph.
88821         * m4/same.m4 (gl_SAME): Check for pathconf.
88822
88823 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88824
88825         Merge from coreutils.
88826
88827         * lib/posixver.c: Include posixver.h.
88828
88829         * lib/same.c: Include <stdbool.h>, <limits.h>.
88830         (_POSIX_NAME_MAX): Define if not defined.
88831         (MIN): New macro.
88832         (same_name): If file names are silently truncated, report
88833         that the file names are the same if they are the same after
88834         the silent truncation.
88835
88836         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88837         conversion function.
88838         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88839         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88840         longer needed.
88841
88842 2004-01-15  Jim Meyering  <jim@meyering.net>
88843
88844         Merge from coreutils.
88845
88846         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88847         if no library is required.
88848         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88849         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88850         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88851         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88852         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88853         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88854         value, $ac_cv_search_crypt, if it's "none required".
88855         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88856         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88857         not gl_FUNC_GETLOADAVG.
88858         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88859         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88860
88861 2004-01-15  Jim Meyering  <jim@meyering.net>
88862
88863         Merge from coreutils.
88864
88865         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88866         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88867         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88868
88869         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88870         optional configure-time default.
88871
88872         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88873
88874         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88875
88876 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88877
88878         Merge from coreutils.
88879
88880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88881         value, $ac_cv_search_nanosleep, if it's "none required".
88882
88883 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88884
88885         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88886         with like-named macro in fnmatch.c.
88887         (EXT): Use an internal constant instead.
88888
88889         Merge fnmatch patches from glibc.
88890         * lib/fnmatch.c (mbsinit): Remove define.
88891         Add libc_hidden_ver (__fnmatch, fnmatch).
88892         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88893         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88894
88895 2004-01-14  Karl Berry  <karl@gnu.org>
88896
88897         * config/install-sh: update from automake.
88898
88899 2004-01-13  Karl Berry  <karl@gnu.org>
88900
88901         * config/install-sh: update from automake.
88902
88903 2004-01-09  Karl Berry  <karl@gnu.org>
88904
88905         * config/install-sh: update from automake.
88906
88907 2004-01-05  Karl Berry  <karl@gnu.org>
88908
88909         * config/config.{sub,guess}: update from config.
88910
88911 2003-12-31  Karl Berry  <karl@gnu.org>
88912
88913         * config/depcomp: update from automake.
88914
88915 2003-12-14  Karl Berry  <karl@gnu.org>
88916
88917         * lib/config.charset: update from gettext-runtime.
88918
88919 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88920
88921         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88922         Bug reported by Alfred M. Szmidt.
88923
88924 2003-12-03  Bruno Haible  <bruno@clisp.org>
88925
88926         * m4/gettext.m4: Upgrade from gettext-0.13.
88927         * m4/po.m4: Upgrade from gettext-0.13.
88928         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88929         * m4/intmax.m4: New file, from gettext-0.13.
88930         * m4/printf-posix.m4: New file, from gettext-0.13.
88931
88932 2003-11-29  Karl Berry  <karl@gnu.org>
88933
88934         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88935
88936 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88937             Bruno Haible  <bruno@clisp.org>
88938
88939         * lib/printf-parse.h: Don't include sys/types.h.
88940         (ARG_NONE): New macro.
88941         (char_directive): Change type of *arg_index fields to size_t.
88942         * lib/printf-parse.c: Don't include sys/types.h.
88943         (SSIZE_MAX): Remove macro.
88944         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88945         Remove unnecessary overflow check.
88946         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88947         fields.
88948
88949 2003-11-25  Bruno Haible  <bruno@clisp.org>
88950
88951         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88952
88953 2003-11-25  Bruno Haible  <bruno@clisp.org>
88954
88955         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88956         gt_TYPE_SSIZE_T.
88957
88958 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88959
88960         * modules/alloca: Remove dependency on xalloc.
88961
88962 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88963
88964         * lib/alloca.c: Remove dependency on xalloc module.
88965         (xalloc_die): Remove.
88966         (memory_full) [!defined emacs]: New macro.
88967         [!defined emacs]: Don't include xalloc.h.
88968         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88969         address arithmetic overflows.  Change datatypes a bit to avoid
88970         unnecessary casts.
88971
88972 2003-11-22  Jim Meyering  <jim@meyering.net>
88973
88974         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88975         s/size/size_t/.
88976
88977 2003-11-21  Karl Berry  <karl@gnu.org>
88978
88979         * config/config.{sub,guess}: update from config.
88980
88981 2003-11-18  Karl Berry  <karl@gnu.org>
88982
88983         * config/config.{sub,guess}: update from config.
88984
88985         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88986
88987 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88988
88989         * README: Mention that S+T cannot overflow if S is the size of
88990         an existing object and T is sufficiently small.
88991
88992 2003-11-17  Jim Meyering  <jim@meyering.net>
88993
88994         On systems without utime and without a utimes function capable of
88995         dealing with a NULL struct utimbuf* argument, this utime replacement
88996         could -- in unusual circumstances -- leak a file descriptor.
88997         * lib/utime.c: Include <unistd.h> and <errno.h>.
88998         (utime_null): Be sure to close `fd' and to preserve errno.
88999         Reported by Geoff Collyer via Arnold Robbins.
89000
89001 2003-11-17  Bruno Haible  <bruno@clisp.org>
89002
89003         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89004         (Depends-on): Add xsize.
89005
89006 2003-11-17  Bruno Haible  <bruno@clisp.org>
89007
89008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89009
89010 2003-11-17  Bruno Haible  <bruno@clisp.org>
89011
89012         * lib/vasnprintf.c (alloca): Remove fallback definition.
89013         (freea): Remove definition.
89014         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89015         Reported by Paul Eggert.
89016
89017 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89018             Bruno Haible  <bruno@clisp.org>
89019
89020         Protect against address arithmetic overflow.
89021         * lib/printf-args.h: Include stddef.h.
89022         (arguments): Change type of field 'count' to size_t.
89023         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89024         'unsigned int' where appropriate.
89025         * lib/printf-parse.h: Include sys/types.h.
89026         (char_directive): Change type of *arg_index fields to ssize_t.
89027         (char_directives): Change type of fields 'count', max_*_length to
89028         size_t.
89029         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89030         (SSIZE_MAX): Define fallback value.
89031         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89032         instead of 'int' where appropriate. Check a_allocated, d_allocated
89033         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89034         * lib/vasnprintf.c: Include xsize.h.
89035         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89036         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89037         overflow. Avoid wraparound when converting a width or precision from
89038         decimal to binary.
89039
89040 2003-11-16  Bruno Haible  <bruno@clisp.org>
89041
89042         Update from GNU gettext.
89043         * lib/printf-parse.c: Generalize to it can be compiled for wide
89044         strings.
89045         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89046         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89047         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89048         SNPRINTF): New macros.
89049         Don't include <alloca.h> if the file is used inside libintl.
89050         (local_wcslen): New function, for Solaris 2.5.1.
89051         (VASNPRINTF): Use it instead of wcslen.
89052
89053 2003-11-16  Bruno Haible  <bruno@clisp.org>
89054
89055         * lib/xsize.h (xmax): New function.
89056         (xsum, xsum3, xsum4): Declare as "pure" functions.
89057
89058 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89059
89060         * modules/xalloc (Files): Undo latest change, since xalloc.h
89061         no longer needs SIZE_MAX or PTRDIFF_MAX.
89062
89063 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89064
89065         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89066         gl_PTRDIFF_MAX.
89067
89068 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89069
89070         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89071         "return", to pacify some unknown compiler.  Problem reported
89072         by Joerg Schilling.
89073
89074 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89075
89076         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89077         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89078         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89079         heuristic is just as accurate as far as we know, and it removes a
89080         dependency on size_max.m4 and ptrdiff_max.m4.
89081
89082 2003-11-11  Bruno Haible  <bruno@clisp.org>
89083
89084         * modules/xsize (Files): Add m4/size_max.m4.
89085         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89086
89087 2003-11-11  Bruno Haible  <bruno@clisp.org>
89088
89089         * m4/size_max.m4: New file.
89090         * m4/ptrdiff_max.m4: New file.
89091         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89092         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89093         (gl_XALLOC): Invoke it.
89094
89095 2003-11-11  Bruno Haible  <bruno@clisp.org>
89096
89097         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89098         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89099         defined.
89100
89101 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89102
89103         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89104         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89105         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89106         From Bruno Haible.
89107         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89108         not (size_t) -1, since it's defined here.
89109
89110 2003-11-09  Karl Berry  <karl@gnu.org>
89111
89112         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89113
89114 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89115
89116         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89117         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89118         Reject sizes of exactly SIZE_MAX bytes.
89119         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89120         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89121
89122 2003-11-05  Bruno Haible  <bruno@clisp.org>
89123
89124         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89125         SIZE_MAX defined in <limits.h> on Solaris.
89126
89127 2003-11-04  Jim Meyering  <jim@meyering.net>
89128
89129         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89130         variable names, rather than @VAR@.
89131         * modules/poll: Likewise.
89132
89133 2003-11-04  Bruno Haible  <bruno@clisp.org>
89134
89135         * modules/xsize: New file.
89136         * modules/linebreak: Depend on xsize.
89137         * MODULES.html.sh (func_all_modules): Add xsize.
89138
89139 2003-11-04  Bruno Haible  <bruno@clisp.org>
89140
89141         * m4/xsize.m4: New file.
89142
89143 2003-11-04  Bruno Haible  <bruno@clisp.org>
89144
89145         * lib/xsize.h: New file.
89146         * lib/linebreak.c: Include xsize.h.
89147         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89148         argument for overflow.
89149         Suggested by Paul Eggert.
89150
89151 2003-11-03  Karl Berry  <karl@gnu.org>
89152
89153         * config/config.{guess,sub}: update from config.
89154
89155 2003-11-03  Jim Meyering  <jim@meyering.net>
89156
89157         * modules/userspec (lib_SOURCES): Add userspec.h.
89158         (Include): Add "userspec.h".
89159         Improve description.
89160
89161 2003-11-03  Jim Meyering  <jim@meyering.net>
89162
89163         * lib/userspec.c: Include "userspec.h".
89164         * lib/userspec.h: New file.
89165
89166 2003-11-03  Bruno Haible  <bruno@clisp.org>
89167
89168         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89169
89170 2003-11-03  Bruno Haible  <bruno@clisp.org>
89171
89172         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89173         available, to avoid (extremely rare) race condition.
89174         Suggested by Paul Eggert.
89175
89176 2003-11-02  Karl Berry  <karl@gnu.org>
89177
89178         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89179
89180 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89181
89182         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89183         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89184         (read_filesystem_list): Set and use me_type_malloced.
89185         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89186         whatever the type happens to be), for brevity and consistency.
89187         Check for size calculation overflow on Alphas running OSF/1.
89188
89189 2003-10-31  Jim Meyering  <jim@meyering.net>
89190
89191         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89192
89193         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89194
89195 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89196             Bruno Haible  <bruno@clisp.org>
89197
89198         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89199         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89200
89201 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89202
89203         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89204         netbsd*-gnu*.  Suggested by Robert Millan.
89205
89206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89207
89208         * modules/group-member: Depend on stdbool.
89209
89210 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89211
89212         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89213
89214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89215
89216         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89217         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89218         after the 'gnu' in these cases.  This fixes some bugs in the
89219         previous change, and is based on suggestions by Robert Millan.
89220
89221 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89222
89223         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89224         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89225         no longer needed.
89226         * lib/quotearg.c (quotearg_n_options): Use it.
89227         * lib/group-member.c: Include <stdbool.h>.
89228         (free_group_info): Arg is now const *; don't free arg.
89229         (get_group_info): Now returns bool and accepts struct group_info *,
89230         rather than returning a malloc'ed struct group_info *.
89231         All uses changed.  Check for overflow in internal size calculation.
89232
89233         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89234         rather than xmalloc/xrealloc.
89235         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89236         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89237         conformance bug: the old code used a pointer after freeing the
89238         storage that it addressed.
89239         * lib/hash.c (hash_initialize): Simplify the code by using
89240         xalloc_oversized rather than doing it by hand.
89241         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89242         the buffer preserved.  Use free and xmalloc instead.
89243         * lib/quotearg.c (quotearg_n_options): Likewise.
89244         Use a simpler test for size overflow.  Don't use xalloc_oversized
89245         because unsigned int might be wider than size_t (!); this suggests
89246         that we should switch from unsigned int to size_t for slot numbers.
89247
89248 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89249
89250         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89251         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89252         NetBSD kernels.  Requested by Richard Stallman.
89253
89254 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89255
89256         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89257         to allocate the returned structure.  Do not allocate a subarray,
89258         as x2nrealloc will do that.
89259         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89260         instead of xnrealloc.
89261         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89262
89263 2003-10-27  Bruno Haible  <bruno@clisp.org>
89264
89265         * lib/stdbool_.h: Better support for BeOS.
89266
89267 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89268
89269         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89270         now uses inline.
89271
89272 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89273
89274         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89275         callers that want to do their own size-overflow checking.  Include
89276         <stdbool.h>, since xalloc_oversized returns bool.
89277         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89278         to use xalloc_oversized.
89279
89280         Add two functions x2realloc, x2nrealloc, for programs that grow
89281         arrays dynamically by doubling their sizes.
89282         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89283         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89284         New functions.
89285
89286         Port to C99 semantics for 'inline' of external functions.
89287         Bug reported by Bruno Haible.
89288         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89289         with the old contents of xnmalloc.
89290         (xnmalloc, xmalloc): Use it.
89291         (xnrealloc_inline): New static inline function,
89292         with the old contents of xnrealloc.
89293         (xnrealloc, xrealloc): Use it.
89294
89295         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89296         that.
89297
89298 2003-10-26  Karl Berry  <karl@gnu.org>
89299
89300         * config/srclist.txt (COPYING.DOC): no longer available from
89301         /gd/gnuorg; don't know where the ultimate source is.
89302
89303 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89304
89305         Fix several address-calculation bugs in the hash modules,
89306         plus some minor code cleanup.
89307
89308         * lib/hash.h: Include <stdbool.h>, for bool.
89309         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89310         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89311         hash_get_n_entries, hash_get_max_bucket_length,
89312         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89313         hash_rehash): Use size_t rather than unsigned.
89314         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89315         hash_get_n_buckets_used, hash_get_n_entries,
89316         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89317         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89318         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89319         Likewise.
89320         (SIZE_MAX): Define if not defined.
89321         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89322         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89323         hash_print):
89324         Use const * when possible.
89325         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89326         (check_tuning): Fix bug: if tuning parameters were very close to
89327         0 or 1, rounding errors could have caused subscript violations.
89328         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89329         (hash_initialize): Add 'fail:' label
89330         to free table and return NULL, and use it to simplify code.
89331         Use calloc rather than clearing the storage ourself.
89332         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89333         buffer size calculations.
89334         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89335         Include <stddef.h>, for size_t.
89336         * lib/hash-pjw.c (hash_pjw): Likewise.
89337         Switch to method described by Bruno Haible.
89338         Include <limits.h>, for CHAR_BIT.
89339         (SIZE_BITS): New macro.
89340
89341 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89342
89343         * m4/getline.m4 (AM_FUNC_GETLINE):
89344         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89345         hosts.  Problem reported by Derek Robert Price in
89346         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89347         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89348         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89349
89350 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89351
89352         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89353         ceiling the allocation at NMAX bytes rather than silently
89354         discarding input bytes before NMAX is reached.  This makes
89355         a difference only if NMAX exceeds SIZE_MAX / 2.
89356
89357         * lib/obstack.c: Merge from glibc.
89358         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89359         Add libc_hidden_def (_obstack_newchunk).
89360         (_obstack_free) [! defined _LIBC]: Remove.
89361         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89362         a clone of the function body.
89363         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89364         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89365
89366         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89367         glibc.
89368         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89369         arg to memcpy.
89370
89371         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89372         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89373         Don't use lvalue casts, as GCC plans to remove support for them
89374         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89375         was also present in the non-GCC version, indicating that this
89376         code had always been buggy and had never been widely used.
89377         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89378         Use the fast variant of each macro, rather than copying the
89379         definiens of the fast variant; that way, we'll be more likely to
89380         catch future bugs in the fast variants.
89381
89382 2003-10-20  Bruno Haible  <bruno@clisp.org>
89383
89384         * modules/wait-process: New file.
89385         * MODULES.html.sh (func_all_modules): Add wait-process.
89386
89387 2003-10-20  Bruno Haible  <bruno@clisp.org>
89388
89389         * m4/wait-process.m4: New file.
89390
89391 2003-10-20  Bruno Haible  <bruno@clisp.org>
89392
89393         * lib/wait-process.h: New file, from GNU gettext.
89394         * lib/wait-process.c: New file, from GNU gettext.
89395
89396 2003-10-19  Jim Meyering  <jim@meyering.net>
89397
89398         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89399         HPUX 10.20.
89400
89401 2003-10-18  Karl Berry  <karl@gnu.org>
89402
89403         * config/config.guess: update from config.
89404
89405 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89406
89407         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89408         (getgroups): First arg is int, not size_t.
89409         Don't let 'free' mangle errno.
89410
89411 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89412
89413         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89414
89415 2003-10-16  Karl Berry  <karl@gnu.org>
89416
89417         * config/config.{guess,sub}: update from config.
89418
89419 2003-10-16  Jim Meyering  <jim@meyering.net>
89420
89421         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89422         memcpy.
89423
89424 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89425
89426         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89427         (SIZE_MAX): Remove.
89428         (new_exclude, add_exclude_file): Initial size no longer needs to
89429         be a power of 2.
89430         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89431         our own address arithmetic overflow checking.
89432
89433         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89434         (fnmatch): Do not alloca more than 2000 wide characters;
89435         instead, use malloc for large buffers.
89436         Check for address arithmetic overflow, and return -1
89437         with errno set to ENOMEM in that case.
89438         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89439         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89440         instead, return -1.  Check for address arithmetic overflow.
89441
89442 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89443
89444         Handle invalid suffixes and overflow independently, so that
89445         callers can treat them independently as needed.  Fix some bugs in
89446         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89447         suffix for a human-readable blocksize.  The major caller-visible
89448         change is the addition of a new
89449         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89450         that both overflow and suffix chars were found.
89451
89452         * lib/human.c (humblock): Don't check separately for invalid suffix
89453         char; that is xstrtoumax's job (now that its bug is fixed).
89454         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89455         INTMAX_MAX]: New macros.
89456         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89457         TYPE_MAXIMUM): New macros.
89458         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89459         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89460         if overflow occurs, as it's what __strtol does and it's more useful
89461         in practice.
89462         (__xstrtol): If __strtol reports some error other than ERANGE,
89463         reflect it to the caller as LONGINT_INVALID.  If it reports
89464         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89465         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89466         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89467         value.
89468         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89469         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89470         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89471         [defined UINTMAX_MAX]: New macros.
89472
89473 2003-10-14  Bruno Haible  <bruno@clisp.org>
89474
89475         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89476
89477 2003-10-14  Bruno Haible  <bruno@clisp.org>
89478
89479         * m4/sig_atomic_t: New file, from GNU gettext.
89480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89481
89482 2003-10-14  Bruno Haible  <bruno@clisp.org>
89483
89484         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89485         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89486         Also use volatile where needed.
89487
89488 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89489
89490         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89491         Change maintainer from Bruno Haible to 'all'.
89492
89493 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89494
89495         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89496
89497 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89498
89499         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89500         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89501         and define in terms of the other primitives.
89502         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89503         (SIZE_MAX): Define if not already defined.
89504         (array_size_overflow): New function.
89505         (xalloc_die): Abort instead of exiting if 'error' returns.
89506         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89507         (xmalloc, xrealloc): Use them.
89508         (xcalloc): Check for address arithmetic overflow.
89509         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89510         a bit faster than strcpy.
89511
89512 2003-10-10  Simon Josefsson  <jas@extundo.com>
89513
89514         * modules/argp (Depends-on): Add restrict and strcase.
89515
89516 2003-10-10  Simon Josefsson  <jas@extundo.com>
89517
89518         * m4/argp.m4: Add AC_C_INLINE.
89519
89520 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89521
89522         Merge getpass from libc, plus a few fixes.
89523
89524         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89525         Include <stdbool.h>.
89526         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89527         __fsetlocking to empty.
89528         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89529         do include <bits/libc-lock.h>.
89530         Do not include <fcntl.h>; not needed.
89531         [_LIBC]: Include <wchar.h>.
89532         (NOTCANCEL_MODE): New macro.
89533         (flockfile, funlockfile) [_LIBC]: New macros.
89534         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89535         [!_LIBC]: New macros.
89536         (call_fclose): New function.
89537         (getpass): Use it.  Save tty stream separately; this simplifies the
89538         code and makes it more reliable if stdin happens to equal stdout.
89539         Invoke __fsetlocking on tty.
89540         Handle thread cancellation if needed.
89541         Namespace cleanup (use __tcgetattr, __getline).
89542         Use bool for Booleans.
89543         [USE_IN_LIBIO]: Handle wide streams.
89544         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89545         stream might go where.
89546
89547         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89548         doesn't have to include <stdio.h> before us.
89549         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89550         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89551         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89552         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89553         if not declared, so that we can use getpass.c code from libc without
89554         rewriting it.
89555         (flockfile, ftrylockfile, funlockfile): New macros.
89556
89557 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89558
89559         * modules/getpass: Depend on stdbool.
89560
89561 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89562
89563         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89564
89565 2003-10-07  Karl Berry  <karl@gnu.org>
89566
89567         * config/config.{guess,sub}: update from config.
89568
89569 2003-10-06  Jim Meyering  <jim@meyering.net>
89570             Bruno Haible  <bruno@clisp.org>
89571
89572         This lets translators provide better translations for the
89573         "Written by ..." part of --version output.
89574         * lib/version-etc.h: Include stdarg.h.
89575         (version_etc_copyright): Declare as readonly.
89576         (version_etc): Make this function variadic with a NULL-terminated list
89577         of author name strings.
89578         (version_etc_va): New declaration.
89579         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89580         (version_etc_copyright): Declare as readonly.
89581         (version_etc_va): New function. Provide a different translatable string
89582         for each possible number of authors < 10. Abbreviate when there are 10
89583         authors or more.
89584         (version_etc): Make this function variadic. Call version_etc_va.
89585         Suggestion from Gary V. Vaughan.
89586
89587         * lib/long-options.h (parse_long_options): Change prototype: the
89588         authors string is moved to the end and becomes variadic.
89589         * lib/long-options.c: Include stdarg.h.
89590         (parse_long_options): Make this function variadic, too.
89591         Call version_etc_va, not version_etc.
89592
89593 2003-10-06  Bruno Haible  <bruno@clisp.org>
89594
89595         * modules/version-etc-2: Remove file.
89596         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89597
89598 2003-10-06  Bruno Haible  <bruno@clisp.org>
89599
89600         * modules/fatal-signal: New file.
89601         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89602
89603 2003-10-06  Bruno Haible  <bruno@clisp.org>
89604
89605         * m4/fatal-signal.m4: New file.
89606         * m4/signalblocking.m4: New file, from GNU gettext.
89607
89608 2003-10-06  Bruno Haible  <bruno@clisp.org>
89609
89610         * lib/version-etc-2.h: Remove file.
89611         * lib/version-etc-2.c: Remove file.
89612
89613 2003-10-06  Bruno Haible  <bruno@clisp.org>
89614
89615         * lib/fatal-signal.h: New file, from GNU gettext.
89616         * lib/fatal-signal.c: New file, from GNU gettext.
89617
89618 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89619
89620         * README: Rework advice for preventing empty .o files.
89621         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89622         not <sys/types.h>.
89623
89624 2003-10-04  Karl Berry  <karl@gnu.org>
89625
89626         * lib/argp*: update from libc.
89627
89628 2003-10-04  Karl Berry  <karl@gnu.org>
89629
89630         * config/config.{guess,sub}: update from config.
89631
89632 2003-10-02  Bruno Haible  <bruno@clisp.org>
89633
89634         * modules/lchown (Include): Add lchown.h.
89635         * modules/time_r (Include): Use "..." syntax.
89636         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89637
89638 2003-10-01  Simon Josefsson  <jas@extundo.com>
89639
89640         * MODULES.html.sh (func_all_modules): Move gethostname from section
89641         'based on' to section 'lacking' POSIX:2001.
89642
89643 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89644
89645         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89646         to output mode on the same stream.
89647
89648 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89649
89650         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89651         Fix arg typo in previous patch.
89652
89653 2003-09-28  Jim Meyering  <jim@meyering.net>
89654
89655         * lib/error.c: Correct cpp indentation.
89656
89657 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89658
89659         * modules/free: New file.
89660
89661 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89662
89663         * m4/free.m4: New file.
89664
89665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89666
89667         * lib/minmax.h (MIN, MAX)
89668         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89669         Omit the special code that used __typeof__, since we worry that
89670         it could be more trouble than it's worth.  See:
89671         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89672         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89673
89674         * lib/free.c: New file.
89675
89676 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89677
89678         Trivial fixes to Makefile.am parts of module listings.
89679         * modules/strstr: Append strstr.h to lib_SOURCES.
89680         * modules/strcase: Likewise, for strcase.h.
89681
89682 2003-09-27  Karl Berry  <karl@gnu.org>
89683
89684         * config/mkinstalldirs: update from automake.
89685
89686 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89687
89688         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89689         (error_tail): Do not loop, reallocating temporary buffer, since
89690         the output cannot contain more wide characters than the input
89691         contains bytes, the size must be big enough already.  This avoids
89692         one potential size overflow calculation.  Check for size overflow
89693         when calculating temporary buffer size.  Free temporary buffer
89694         when done, if it was allocated with malloc; this plugs a memory
89695         leak.  Remove casts from void * to pointers, that are no longer
89696         needed now that we're assuming C89 or better.
89697
89698         Merge error changes from glibc.
89699
89700         * lib/error.c, error.h: Update copyright notice header to match glibc.
89701         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89702         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89703         Disable cancellation while printing error.
89704         * lib/error.h: Prepend __ to parameter names.
89705
89706 2003-09-26  Jim Meyering  <jim@meyering.net>
89707
89708         * lib/error.c (error_tail): Move some declarations
89709         into inner scope where the local variables are used.
89710
89711 2003-09-26  Bruno Haible  <bruno@clisp.org>
89712
89713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89714         stpncpy().
89715         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89716
89717 2003-09-26  Bruno Haible  <bruno@clisp.org>
89718
89719         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89720         (stpncpy): Define as alias for gnu_stpncpy.
89721         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89722
89723 2003-09-25  Simon Josefsson  <jas@extundo.com>
89724
89725         * lib/xgetdomainname.h: New file.
89726         * lib/xgetdomainname.c: New file.
89727
89728 2003-09-25  Simon Josefsson  <jas@extundo.com>
89729             Bruno Haible  <bruno@clisp.org>
89730
89731         * modules/getdomainname: New file.
89732         * modules/xgetdomainname: New file.
89733         * MODULES.html.sh (func_all_modules): Add getdomainname,
89734         xgetdomainname.
89735
89736 2003-09-25  Simon Josefsson  <jas@extundo.com>
89737             Bruno Haible  <bruno@clisp.org>
89738
89739         * m4/getdomainname.m4: New file.
89740
89741 2003-09-25  Simon Josefsson  <jas@extundo.com>
89742             Bruno Haible  <bruno@clisp.org>
89743
89744         * lib/getdomainname.h: New file.
89745         * lib/getdomainname.c: New file.
89746
89747 2003-09-25  Karl Berry  <karl@gnu.org>
89748
89749         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89750
89751 2003-09-25  Karl Berry  <karl@gnu.org>
89752
89753         * config/install-sh: update from automake.
89754
89755 2003-09-25  Bruno Haible  <bruno@clisp.org>
89756
89757         * modules/version-etc-2: New file, from modules/version-etc with
89758         modifications.
89759         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89760
89761 2003-09-25  Bruno Haible  <bruno@clisp.org>
89762
89763         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89764         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89765
89766 2003-09-24  Simon Josefsson  <jas@extundo.com>
89767
89768         * modules/xgethostname: Add xgethostname.h.
89769
89770 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89771
89772         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89773         the buffer associated with the argument.  Bug reported by
89774         Simon Josefsson.
89775
89776 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89777
89778         * README: Document assumptions that 'int' is at least 32 bits
89779         wide, that integer arithmetic is 2's complement without overflow,
89780         that there are no holes in integer values, that adding sizes of
89781         two nonoverlapping objects can't overflow, and that all-bits-zero
89782         yields scalar zero.  Fix spelling and capitalization typos.
89783
89784 2003-09-19  Karl Berry  <karl@gnu.org>
89785
89786         * lib/argp.h: update from libc.
89787
89788 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89789
89790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89791         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89792         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89793
89794 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89795
89796         * gnulib-tool: Use "test -h", not "test -L", for portability
89797         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89798         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89799         (sed_extract_prog): Issue s commands one-by-one, rather than
89800         using \| in one s command.
89801
89802 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89803
89804         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89805         input error, instead of returning NULL the next time we are called
89806         (and therefore losing track of errno).
89807
89808 2003-09-16  Bruno Haible  <bruno@clisp.org>
89809
89810         * gnulib-tool (func_create_testdir): Warn about duplicated
89811         dependencies.
89812
89813 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89814
89815         * modules/argmatch, modules/fatal, modules/obstack,
89816         modules/xalloc, modules/xgethostname: Sort dependencies by
89817         importance, not alphabetically.
89818
89819 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89820
89821         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89822         fails, so that the caller gets the proper errno.
89823
89824         * lib/readutmp.c (read_utmp): Likewise.
89825         Check for fstat error.  Close stream and free storage
89826         when failing.
89827
89828 2003-09-14  Karl Berry  <karl@gnu.org>
89829
89830         * config/srclist.txt (strdup.c): disable for c89 changes.
89831
89832 2003-09-14  Jim Meyering  <jim@meyering.net>
89833
89834         * lib/getloadavg.c: Correct cpp indentation.
89835         * lib/strdup.c: Likewise.
89836         * lib/vasnprintf.c: Likewise.
89837
89838 2003-09-14  Bruno Haible  <bruno@clisp.org>
89839
89840         * modules/fwriteerror: New file.
89841         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89842
89843 2003-09-14  Bruno Haible  <bruno@clisp.org>
89844
89845         * lib/fwriteerror.h: New file.
89846         * lib/fwriteerror.c: New file.
89847
89848 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89849
89850         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89851         modules/xgethostname, modules/xalloc: Depend on exit.
89852
89853 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89854
89855         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89856
89857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89858         and AC_MINIX, too, so that their extensions are available.
89859
89860         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89861         This macro has been superseded by gl_BACKUPFILE.
89862
89863         More patches to assume C89 or better.
89864
89865         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89866
89867         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89868         unconditionally.
89869         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89871         Include <string.h>, <stdlib.h> unconditionally.
89872         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89873         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89874         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89875         headers or for string.h.
89876         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89877         or strtoul.
89878
89879         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89880         headers.
89881         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89882         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89884         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89887         memcpy, memset.
89888         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89889         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89890         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89891         strtol.
89892         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89893         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89894         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89895         strtoul.
89896
89897 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89898
89899         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89900         * lib/obstack.c [!defined _LIBC]: Likewise.
89901         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89902         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89903         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89904
89905         More changes to assume C89 or better.
89906
89907         * lib/error.c (error_tail): Assume vprintf.
89908
89909         * lib/argmatch.c (getenv): Remove decl.
89910         * lib/progreloc.c (get_full_program_name): Define via prototype.
89911         * lib/setenv.c (clearenv): Likewise.
89912         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89913         needed.
89914         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89915         (malloc, memcpy): Remove decls.
89916         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89917         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89918         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89919         (memcpy): Remove macro.
89920         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89921         (__P): Remove.  All uses removed.
89922         (PTR): Remove.  All uses changed to void *.
89923         (CHAR_BIT, NULL): Remove.
89924         (spaces, zeros, memset_space, memset_zero)
89925         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89926         Remove.
89927         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89928         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89929         Define with prototype.
89930         Remove now-unnecessary prototype decl.
89931         (extra_args_spec): Assume ANSI C.  All uses changed.
89932         (extra_args_spec_iso): Remove.
89933         (my_strftime, emacs_strftimeu): Define via prototype.
89934         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89935         unconditionally.
89936         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89937         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89938         (strtoul, strtol): Remove decls.
89939         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89940         LONG_MAX): Remove.
89941         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89942         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89943         (LOCALE_PARAM_PROTO): New macro.
89944         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89945         (INTERNAL (strtol), strtol): Define with a prototype.
89946         (PARAMS): Remove.  All uses removed.
89947         * lib/tempname.c: Include <string.h> unconditionally.
89948         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89949         * lib/xgethostname.c (main): Define with a prototype.
89950         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89951         Include <stdlib.h> unconditionally.
89952         (calloc, malloc, realloc, free): Remove decls.
89953         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89954         Include <stdlib.h> unconditionally.  Sort include file names.
89955         (strtod): Remove.
89956         (xstrtod): Define with a prototype.
89957         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89958         (strtol, strtoul): Remove decls.
89959
89960 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89961
89962         More patches to assume C89 or better.
89963         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89964         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89965         string.h, memchr, STDC_HEADERS.
89966
89967 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89968
89969         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89970         Include <stdlib.h>, <string.h> unconditionally.
89971         Remove now-unnecessary cast to char *.
89972         * lib/strnlen.c: Include <string.h> unconditionally.
89973         * lib/yesno.c (yesno): Define with a prototype.
89974
89975 2003-09-11  Bruno Haible  <bruno@clisp.org>
89976
89977         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89978
89979 2003-09-10  Jim Meyering  <jim@meyering.net>
89980
89981         * lib/error.c: Correct indentation of cpp directives.
89982
89983 2003-09-10  Bruno Haible  <bruno@clisp.org>
89984
89985         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89986         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89987         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89988         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89989         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89990         <stdlib.h> and <string.h> checks.
89991         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89992         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89993
89994 2003-09-10  Bruno Haible  <bruno@clisp.org>
89995
89996         * lib/strcspn.c: Include <string.h> unconditionally.
89997         * lib/strpbrk.c: Include <string.h> unconditionally.
89998         * lib/strstr.c: Include <string.h> unconditionally.
89999         * lib/unicodeio.c: Include <string.h> unconditionally.
90000         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90001         * lib/unsetenv.c: Likewise.
90002         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90003         * lib/yesno.c: Include <stdlib.h> unconditionally.
90004         (rpmatch): Add prototype.
90005
90006 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90007
90008         More patches to assume C89 or better.
90009         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90010         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90011         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90012         or for string.h.
90013         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90014         stdlib.h.
90015         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90016         C headers.
90017         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90018         string.h.
90019         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90020         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90021         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90022         or for string.h.
90023         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90024         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90025         C headers.
90026         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90027         memcpy.
90028         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90029         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90030         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90031         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90032         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90033         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90034         string.h, free.
90035         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90036         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90037         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90038         C headers, or for string.h.
90039         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90040         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90041         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90042         headers, memory.h, stdlib.h, string.h, strings.h.
90043         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90044         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90045         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90046         strchr.
90047         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90048         headers, memory.h, string.h.
90049         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90050         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90051         free.
90052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90053         headers.
90054         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90055         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90056         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90057         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90058         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90059
90060 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90061
90062         More K&R removal.
90063
90064         * lib/acosl.c (main): Use a prototype.
90065         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90066         tanl.c: Likewise.
90067
90068         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90069
90070         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90071         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90072         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90073         with a prototype.
90074         * lib/getopt.c (const): Remove macro.
90075         Include <string.h> unconditionally.
90076         (my_index): Remove; all uses changed to strchr.
90077         (strlen): Remove decl.
90078         (exchange): Remove forward decl; no longer needed.
90079         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90080         Define with prototype.
90081         * lib/getopt1.c (const): Remove macro.
90082         (getopt_long, getopt_long_only, main): Define with prototype.
90083
90084         * lib/getugroups.c: Include <string.h> unconditionally.
90085
90086         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90087         (getusershell, setusershell, endusershell, readname, main):
90088         Define with prototypes.
90089
90090         * lib/group-member.c: Include group-member.h first.
90091         Include <stdlib.h> unconditionally.
90092
90093         * lib/hard-locale.c: Include hard-locale.h first.
90094         Include <stdlib.h>, <string.h> unconditionally.
90095
90096         * lib/hash.c (free, malloc): Remove decls.
90097         Include <stdlib.h> unconditionally.
90098
90099         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90100         (getenv): Do not declare.
90101
90102         * lib/idcache.c: Include <string.h> unconditionally.
90103
90104         * lib/long-options.c: Include long-options.h first, to test interface.
90105         Include <stdlib.h> unconditionally.
90106
90107         * lib/makepath.c: Include makepath.h first, to test interface.
90108         Include <stdlib.h> and <string.h> unconditionally.
90109
90110         * lib/linebuffer.c: Include <stdlib.h>.
90111         (free): Remove decl.
90112
90113         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90114         stddef.h. rpl_malloc returns void *, not char *.
90115         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90116         prototype.
90117
90118         * lib/md5.h: Include <limits.h> unconditionally.
90119         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90120         (__P): Remove; all uses removed.
90121         * lib/md5.c: Include "md5.h" first.
90122         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90123         md5_buffer, md5_process_bytes, md5_process_block):
90124         Define with prototypes.
90125         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90126         * lib/sha.c: Include "sha.h" first.
90127         Include <stdlib.h>, <string.h> unconditionally.
90128
90129         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90130         * lib/memcmp.c (__ptr_t): Likewise.
90131         * lib/memrchr.c (__ptr_t): Likewise.
90132         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90133         Include <string.h> unconditionally.
90134         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90135         * lib/memchr.c: Include <stdlib.h> unconditionally.
90136         * lib/memchr.c (LONG_MAX): Remove.
90137         * lib/memrchr.c (LONG_MAX): Likewise.
90138         * lib/memchr.c (__memchr): Define via a prototype.
90139         * lib/memrchr.c (__memrchr): Likewise.
90140         * lib/memcmp.c (__P): Remove, and remove all uses.
90141         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90142         Remove forward decls; no longer needed.
90143         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90144         Use types required by C89 in prototype.
90145
90146         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90147         * lib/savedir.c: Likewise.
90148         * lib/mkdir.c (free): Remove decl.
90149         * lib/rmdir.c (rmdir): Define with a prototype.
90150         * lib/savedir.c: Include savedir.h first, to test interface.
90151
90152         * lib/mktime.c (STDC_HEADERS): Remove.
90153         Include <stdlib.h>, <string.h> unconditionally.
90154
90155         * lib/modechange.c: Include <stdlib.h> unconditionally.
90156         (malloc): Remove decl.
90157
90158         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90159         (free): Remove decl.
90160
90161         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90162         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90163         (This type really should be intptr_t, but that's a C99ism.)
90164         (_obstack_memcpy): Remove: all uses changed to memcpy.
90165         Include <string.h> unconditionally.
90166         (struct obstack): Assume __STDC__ for types of members
90167         chunkfun, freefun, extra_arg.
90168         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90169         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90170         obstack_begin, obstack_specify_allocation,
90171         obstack_specify_allocation_with_arg, obstack_chunkfun,
90172         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90173         Remove unprototyped decls and the macros that use them.
90174         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90175         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90176         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90177         (defined __STDC__ && __STDC__)]:
90178         Remove nonprototyped code.
90179         Include <stdlib.h> unconditionally.
90180         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90181         _obstack_allocated_p, _obstack_free, obstack_free,
90182         _obstack_memory_used, print_and_abort):
90183         Define using prototypes.
90184         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90185         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90186         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90187         obstack_next_free, obstack_object_size, obstack_room) [0]:
90188         Remove unused, unprototyped code.
90189
90190         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90191
90192         * lib/physmem.c (physmem_total, physmem_available, main): Define
90193         with prototypes.
90194
90195         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90196         (main): Define with a prototype.
90197
90198         * lib/posixver.c (getenv): Remove decl.
90199
90200         * lib/putenv.c (malloc): Returns void *, not char *.
90201         Include <string.h> unconditionally.
90202         (strchr, memcpy, NULL): Do not define.
90203
90204         * lib/readtokens.c: Include readtokens.h first, to test interface.
90205         Include <stdlib.h>, <string.h> unconditionally.
90206         (init_tokenbuffer): Define with a prototype.
90207
90208         * lib/regex.c (PARAMS): Remove.  All uses removed.
90209         All uses of _RE_ARGS removed, too.
90210         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90211         unconditionally.
90212         (bzero): Assume memset exists.
90213         (memcmp, memcpy, NULL): Remove.
90214         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90215         char, or assignments to local vars of type signed char.
90216         (init_syntax_once, PREFIX(extract_number_and_incr),
90217         PREFIX(print_partial_compiled_pattern),
90218         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90219         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90220         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90221         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90222         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90223         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90224         wcs_compile_range, byte_compile_range, truncate_wchar,
90225         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90226         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90227         count_mbs_length, wcs_re_match_2_internal,
90228         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90229         PREFIX(alt_match_null_string_p),
90230         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90231         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90232         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90233         now-unnecessary declaration, if any.
90234         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90235         regcomp, regexec):
90236         Remove now-unnecessary casts among pointer types.
90237         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90238
90239         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90240         (free): Remove decl.
90241
90242         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90243
90244         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90245         (free): Remove decl.
90246
90247         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90248         * lib/xgetcwd.c: Likewise.
90249
90250         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90251         (free): Remove decl.
90252
90253         * lib/strchrnul.c (strchrnul): Define with a prototype.
90254         Fix bug: c_in was not converted to char before searching.
90255
90256         The following changes are not K&R related:
90257
90258         * lib/group-member.h: Include <sys/types.h>, so that this file is
90259         self-contained.
90260         * lib/makepath.h: Likewise.
90261
90262         * lib/getusershell.c (readname, default_index, line_size, readname):
90263         Use size_t, not int, for sizes.
90264         (readname): If the size overflows, report an error instead of
90265         looping forever.
90266
90267 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90268
90269         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90270         libc.
90271
90272 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90273
90274         * README: New section: portability guidelines.
90275
90276 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90277
90278         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90279         C89 spec.
90280
90281 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90282
90283         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90284
90285 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90286
90287         Assume C89 or better; remove K&R cruft.
90288         A few of these changes were first proposed by Derek Robert Price
90289         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90290
90291         * lib/addext.c: Include <string.h> unconditionally.
90292         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90293         Don't declare getenv or malloc.
90294
90295         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90296         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90297         (NULL): Remove.
90298         (find_stack_direction, alloca): Use prototypes.
90299
90300         * lib/atexit.c (atexit): Define using a prototype.
90301
90302         * lib/basename.c, dirname.c, stripslash.c:
90303         Include <string.h> unconditionally.
90304
90305         * lib/bcopy.c: Include <stddef.h>.
90306         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90307
90308         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90309
90310         * lib/error.h (error, error_at_line, error_print_progname)
90311         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90312         * lib/error.c: Include error.h first, to check interface.
90313         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90314         (VA_START): Remove; all uses changeed to va_start.
90315         (exit, strerror): Remove decls.
90316         (error_print_progname): Prototype uncondionally.
90317         Don't include <errno.h>; no longer needed.
90318         (private_strerror): Remove.
90319         (error_tail): Always define.
90320         (error, error_at_line): Assume C89 or better; always use prototypes.
90321         * lib/fatal.c: Include "fatal.h" first, to test interface.
90322         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90323         (VA_START): Remove; all uses changed to va_start.
90324         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90325         this case.
90326         (exit): Remove decl.
90327         (fatal): Prototype unconditionally.  Assume va_start works.
90328         Abort at end, to pacify gcc.
90329
90330         * lib/euidaccess.c (main): Define with a prototype.
90331
90332         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90333
90334         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90335
90336         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90337         prototypes.
90338         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90339         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90340         (getenv): Remove decl.
90341         (fnmatch): Define using a prototype.
90342         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90343         (FCT): Define using a prototype.
90344
90345         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90346
90347         * lib/gethostname.c: Include <stddef.h>.
90348         (gethostname): Define with prototype.  Length is size_t, not int.
90349
90350 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90351
90352         Assume C89 or better; remove K&R cruft.
90353         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90354         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90355         string.h, getenv, malloc.
90356         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90357         headers.
90358         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90359         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90360         do not check for strerror.
90361         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90362         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90363         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90364         do not check for doprnt or vprintf.
90365         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90366         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90367
90368 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90369
90370         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90371         getversion.c should have been removed then, but was accidentally
90372         preserved.
90373
90374         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90375         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90376
90377 2003-09-08  Karl Berry  <karl@gnu.org>
90378
90379         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90380                 config, forget about prep.
90381
90382         * config/depcomp, missing: update from automake.
90383
90384 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90385
90386         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90387         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90388
90389 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90390
90391         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90392         copy_tm_result.  Bug reported by Simon Josefsson in
90393         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90394
90395 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90396
90397         * m4/time_r.m4: New file.
90398         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90399         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90400         is. Check for timegm declaration.
90401         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90402         Do not check for gmtime_r.
90403         Replace mktime if __mktime_internal does not exist and if mktime
90404         hasn't been replaced already.
90405
90406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90407
90408         * lib/time_r.c, lib/time_r.h: New files.
90409
90410         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90411         __localtime_r.
90412         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90413         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90414
90415         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90416         __gmtime_r.
90417         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90418         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90419         Include <time_r.h>.
90420
90421         * lib/timegm.c: Switch to glibc implementation, with the following
90422         changes:
90423         [defined HAVE_CONFIG_H]: Include <config.h>.
90424         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90425         (__mktime_internal) [!defined _LIBC]: New decl.
90426         (__gmtime_r) [!defined _LIBC]: New macro and function.
90427         (timegm): Use a prototype, since gnulib assumes C89.
90428         Do not bother declaring tmp to be const, as it's not really usefu.
90429         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90430         (timegm): Declare only if HAVE_DECL_TIMEGM.
90431
90432 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90433
90434         * MODULES.html.sh (func_all_modules): Add time_r.
90435         * modules/time_r: New file.
90436         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90437         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90438
90439 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90440
90441         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90442         Bug reported by Lute Kamstra in
90443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90444
90445         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90446         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90447         course with correspondingly smaller numbers for tomorrow and
90448         yesterday.  From Tadayoshi Funaba.  Originally installed into
90449         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90450         coreutils merge?).
90451
90452 2003-08-31  Simon Josefsson  <jas@extundo.com>
90453
90454         * modules/timegm: New file.
90455         * MODULES.html.sh (func_all_modules): Add timegm.
90456
90457 2003-08-31  Simon Josefsson  <jas@extundo.com>
90458
90459         * m4/timegm.m4: New file.
90460
90461 2003-08-31  Simon Josefsson  <jas@extundo.com>
90462
90463         * lib/timegm.h: New file.
90464         * lib/timegm.c: New file.  Based on
90465         wget-1.8.2/src/http.c:mktime_from_utc.
90466
90467 2003-08-31  Karl Berry  <karl@gnu.org>
90468
90469         * lib/argp.h: update from libc.
90470
90471 2003-08-28  Bruno Haible  <bruno@clisp.org>
90472
90473         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90474         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90475         followed by '#define fnmatch fnmatch_posix' gives an error.
90476
90477 2003-08-28  Bruno Haible  <bruno@clisp.org>
90478
90479         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90480         warning on QNX, which defines O_BINARY to 000000.
90481
90482 2003-08-27  Jim Meyering  <jim@meyering.net>
90483
90484         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90485         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90486         would fail after 32.  Reported by Danny Levinson.  Details here:
90487         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90488
90489 2003-08-24  Bruno Haible  <bruno@clisp.org>
90490
90491         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90492         MSVC7 <stdio.h> is included later.
90493
90494 2003-08-22  Simon Josefsson  <jas@extundo.com>
90495
90496         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90497
90498 2003-08-20  Karl Berry  <karl@gnu.org>
90499
90500         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90501
90502 2003-08-20  Bruno Haible  <bruno@clisp.org>
90503
90504         * modules/progname: New file.
90505         * MODULES.html.sh (func_all_modules): Add progname.
90506
90507 2003-08-20  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/progname.h: New file, from GNU gettext.
90510         * lib/progname.c: New file, from GNU gettext.
90511         * lib/progreloc.c: New file, from GNU gettext.
90512
90513 2003-08-19  Jim Meyering  <jim@meyering.net>
90514
90515         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90516         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90517
90518 2003-08-19  Bruno Haible  <bruno@clisp.org>
90519
90520         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90521         more.
90522
90523 2003-08-19  Bruno Haible  <bruno@clisp.org>
90524
90525         * lib/xstrdup.c: Assume <string.h> exists.
90526
90527 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90528
90529         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90530         in makefile rules.
90531
90532 2003-08-18  Jim Meyering  <jim@meyering.net>
90533
90534         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90535         * m4/lib-ld.m4: Likewise.
90536
90537 2003-08-18  Jim Meyering  <jim@meyering.net>
90538
90539         * lib/setenv.h: Indent nested cpp directive.
90540         * lib/vasnprintf.c: Remove trailing blanks.
90541
90542 2003-08-17  Simon Josefsson  <jas@extundo.com>
90543
90544         * modules/xstrndup: New file.
90545         * MODULES.html.sh (func_all_modules): Add xstrndup.
90546
90547 2003-08-17  Simon Josefsson  <jas@extundo.com>
90548
90549         * modules/argp: Fix autoconf macro name. Add more dependencies.
90550
90551 2003-08-17  Simon Josefsson  <jas@extundo.com>
90552
90553         * m4/xstrndup.m4: New file.
90554
90555 2003-08-17  Simon Josefsson  <jas@extundo.com>
90556
90557         * m4/argp.m4: New file.
90558
90559 2003-08-17  Simon Josefsson  <jas@extundo.com>
90560             Bruno Haible  <bruno@clisp.org>
90561
90562         * lib/xstrndup.h: New file.
90563         * lib/xstrndup.c: New file.
90564
90565 2003-08-17  Bruno Haible  <bruno@clisp.org>
90566
90567         * modules/strndup (Files, Include): Add lib/strndup.h.
90568
90569 2003-08-17  Bruno Haible  <bruno@clisp.org>
90570
90571         * modules/euidaccess (Files): Add lib/euidaccess.h.
90572
90573 2003-08-17  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/strndup.h: New file.
90576
90577 2003-08-17  Bruno Haible  <bruno@clisp.org>
90578
90579         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90580         like AC_GNU_SOURCE.
90581         * modules/extensions (configure.ac): Comment out the invocation of
90582         gl_USE_SYSTEM_EXTENSIONS.
90583
90584 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90585
90586         Merges from coreutils, etc.
90587         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90588         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90589         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90590         fixing a typo.
90591         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90592         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90593
90594 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90595
90596         Document merge from coreutils.
90597         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90598         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90599         * modules/utime: Add m4/utimes-null.m4.
90600
90601 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90602
90603         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90604         space, undoing this 2003-08-12 change:
90605         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90606
90607 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90608
90609         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90610         strtoul.c from libc, undoing this 2003-08-12 change:
90611         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90612
90613 2003-08-16  Jim Meyering  <jim@meyering.net>
90614
90615         Merges from coreutils.
90616         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90617         prefix.  Adjust cache variables similarly.  Create 500 rather than
90618         just 300 files, to exercise bug on Darwin6.5, too.
90619         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90620         $missing_dir.
90621         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90622         AM_SYS_POSIX_TERMIOS.
90623         Reported by mkc@mathdogs.com.
90624         Also change use of $am_cv_sys_posix_termios
90625         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90626         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90627         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90628         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90629         in /proc/mounts until it finds one with matching device number.  This
90630         is unnecessary when the FILE argument *is* a mount point.  No stat call
90631         is necessary in that case.  So, disable the statvfs-testing code on
90632         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90633         as RedHat bug# 84846.
90634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90635         to 1MB, so as not to render systems with no stack size limit (e.g.,
90636         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90637         Include <unistd.h>.  On some systems,
90638         it is required for the definition of _SC_PAGESIZE.
90639
90640 2003-08-16  Jim Meyering  <jim@meyering.net>
90641
90642         Merge from coreutils.
90643         * lib/xstrtoimax.c: #else #if -> #elif.
90644         * lib/xstrtoumax.c: Likewise.
90645
90646 2003-08-16  Jim Meyering  <jim@meyering.net>
90647
90648         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90649         * m4/utimes.m4: Removed.
90650         * m4/utimes-null.m4: Renamed from utimes.m4.
90651
90652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90653         to 1MB, so as not to render systems with no stack size limit (e.g.,
90654         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90655         Include <unistd.h>.  On some systems,
90656         it is required for the definition of _SC_PAGESIZE.
90657
90658 2003-08-16  Jim Meyering  <jim@meyering.net>
90659         and Paul Eggert  <eggert@cs.ucla.edu>
90660
90661         Merges from coreutils, etc.
90662
90663         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90664         using the latest version from cvs.  This avoids problems with #line
90665         directives using a vendor (Sun) compiler.
90666         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90667         Don't set GETGROUPS_LIB here; now it's
90668         done via getgroups.m4's wrapper function.
90669         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90670         rather than just in sh-util/configure.in, so that the
90671         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90672         same.
90673         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90674         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90675         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90676         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90677         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90678         Remove code that is now done by the newly-required macros.
90679         Append $(EXEEXT) to DF_PROG.
90680         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90681         Do not invoke or require the following here,
90682         since prereq.m4 or some gnulib .m4 now does this for us:
90683         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90684         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90685         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90686         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90687         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90688         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90689         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90690         AC_FUNC_OBSTACK.
90691         Do not replace the following functions, as this is now the job
90692         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90693         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90694         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90695         atexit getpass, strdup, getpagesize.
90696         Replace 'raise'.
90697         Do not check for the following functions, as this is now the job
90698         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90699         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90700         setregid.
90701         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90702         Check for sys/sysctl.h.
90703         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90704         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90705         of checking for ssize_t ourselves.
90706
90707         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90708         Require every macro that gnulib/modules/* suggests for us.
90709         (jm_PREREQ_ADDEXT): New macro.
90710         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90711         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90712
90713         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90714         (gl_PHYSMEM): Use it.
90715         Also check for `table' function.
90716         Check for new headers and functions.
90717         Add check for sys/sysmp.h.
90718         With suggestions from Kaveh Ghazi.
90719         Ignore headers that are present but cannot be compiled.  This
90720         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90721         C 5.4.
90722
90723 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90724
90725         Document merge from coreutils.
90726         * modules/userspec: Depend on posixver.
90727         * modules/strftime: Depend on tzset.
90728
90729 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90730
90731         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90732         rather than tab, after '#' in shell-script copyright notices.
90733         Suggested by Bruno Haible.
90734
90735 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90736
90737         * config/srclist-update: Use three spaces, rather than tab, after '#'
90738         in shell-script copyright notices.  Suggested by Bruno Haible.
90739         Remove unnecessary parenthesization in regular expression.
90740
90741 2003-08-15  Jim Meyering  <jim@meyering.net>
90742
90743         Merge from coreutils.
90744         * lib/xgethostname.c: Include <stdlib.h>.
90745         (xghostname): Don't exit for anything other than memory-related
90746         failure; just return NULL.
90747         * lib/userspec.c: Include "posixver.h".
90748         (parse_user_spec): Accept `.' as a separator only
90749         in pre-POSIX-200112 mode.
90750         * lib/strtoimax.c: Use #elif rather than #else #if.
90751         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90752         Remove function, now that we can rely on a working tzset function.
90753         [!_LIBC]: Ensure that the required autoconf test has been run.
90754         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90755         Use underlying_strftime for %r.
90756         * lib/sha.c: Merge in some clean-up and optimization changes from
90757         glibc.
90758         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90759         Ensure that it is a multiple of 64.
90760         Rearrange loop exit tests so as to avoid performing an
90761         additional fread after encountering an error or EOF.
90762         * lib/realloc.c: Update copyright date.
90763
90764 2003-08-15  Jim Meyering  <jim@meyering.net>
90765         and Paul Eggert  <eggert@twinsun.com>
90766
90767         Merge from coreutils.
90768         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90769         member but strut utmpx does not.  Needed for AIX 4.3.3.
90770         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90771
90772 2003-08-15  Jim Meyering  <jim@meyering.net>
90773         and Paul Eggert  <eggert@cs.ucla.edu>
90774
90775         Merges from coreutils, etc.
90776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90777         Require gl_FUNC_TZSET_CLOBBER.
90778         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90779         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90780         members.
90781
90782 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90783
90784         Help the merge from coreutils.
90785         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90786         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90787         * m4/tzset.m4: Use it too.
90788
90789 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90790
90791         * modules/tzset: New file.
90792
90793 2003-08-14  Jim Meyering  <jim@meyering.net>
90794
90795         Merges from coreutils.
90796         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90797         variable names, rather than @FNMATCH_H@.
90798         * modules/alloca: Likewise for $(ALLOCA_H).
90799
90800         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90801         the three copies of the literal target, `fnmatch.h'.
90802         * modules/alloca (alloca.h): Likewise.
90803
90804 2003-08-14  Jim Meyering  <jim@meyering.net>
90805
90806         Merge from coreutils.
90807         * m4/tzset.m4: New file.
90808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90809         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90810         otherwise, AIX 5.1 systems would end up using the latter.
90811         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90812         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90813         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90814         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90815
90816 2003-08-14  Jim Meyering  <jim@meyering.net>
90817
90818         Merge from coreutils.
90819         * lib/obstack.h: Whitespace changes.
90820         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90821         and xcalloc return values.
90822         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90823         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90824         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90825         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90826         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90827         error from mntctl.
90828         Use mntctl's return value to drive the entry-processing loop, since
90829         we can't rely on the value of the vmt_length member in the last
90830         entry.  On some systems doing so could result in exhausting
90831         virtual memory.  Based in part on a patch from Mike Jetzer.
90832
90833 2003-08-14  Jim Meyering  <jim@meyering.net>
90834         and Paul Eggert  <eggert@twinsun.com>
90835
90836         Merges from coreutils, plus other fixes.
90837         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90838         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90839         for credits and details.  Thanks to Kaveh Ghazi for helping
90840         to keep these files in sync.
90841         (ARRAY_SIZE): Define it.
90842         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90843         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90844         (memcasecmp): Don't assume size_t fits in unsigned int.
90845         Remove casts and duplicate code.
90846         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90847         (memcpy): Remove definition.
90848         Merge in some clean-up and optimization changes from glibc.
90849         [BLOCKSIZE]: Move definition to top of file.
90850         Ensure that it is a multiple of 64.
90851         Rearrange loop exit tests so as to avoid performing an
90852         additional fread after encountering an error or EOF.
90853         * lib/md5.h (md5_uintptr): Define.
90854         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90855         return to the initial working directory.  Preserve errno
90856         for caller.
90857         * lib/idcache.c: Include "xalloc.h".
90858         (xmalloc, xrealloc): Remove decls.
90859         (getuser): Remove casts no longer required in C89.
90860         * lib/human.c: Include stdio.h, for sprintf.
90861         * lib/group-member.c: Include "xalloc.h".
90862         (xmalloc, xrealloc): Remove decls.
90863         (get_group_info): Remove casts no longer required in C89.
90864         * lib/getusershell.c (readname): Remove casts no longer required in
90865         C89.
90866         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90867         * lib/getline.c: Whitespace fix, from coreutils.
90868
90869 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90870
90871         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90872         Check for isascii.
90873
90874         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90875         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90876         Undo previous (whitespace-only) change.
90877
90878 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90879
90880         * lib/exclude.c: Include <ctype.h>
90881         (IN_CTYPE_DOMAIN): New macro.
90882         (is_space): New fn.
90883         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90884         and empty lines.
90885
90886         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90887         Undo previous (whitespace-only) change.
90888
90889 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90890
90891         * config/srclist-update: Change update back to the old behavior,
90892         leaving whitespace alone.  Use one 'sed' command rather than a
90893         pipeline.
90894         (fixlicense): Now a variable, not a function.
90895         (remove_trailing_blanks): Remove.
90896         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90897         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90898         Undo previous (whitespace-only) change.
90899
90900 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90901
90902         Merge from coreutils.
90903         * modules/euidaccess: Add lib_SOURCES, include for new
90904         file euidaccess.h
90905
90906 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90907
90908         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90909         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90910         Normalize leading white space and remove trailing white space.
90911
90912         Merge from coreutils
90913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90914
90915         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90916         0.12.1.  These files are now being upgraded automatically by
90917         ../config/srclist-update.
90918
90919 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90920
90921         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90922         Normalize leading white space and remove trailing white space.
90923         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90924         notice, as per ../config/srclist-update.
90925
90926         Merge from coreutils.
90927         * lib/euidaccess.h: New file.
90928         * lib/euidaccess.c: Include it.
90929         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90930         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90931         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90932
90933 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90934
90935         * config/srclist-update: Add copyright notice.
90936         (remove_id_lines, remove_trailing_blanks): New constants.
90937         (fixfile): Use them to normalize spacing a bit in copied files.
90938         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90939         Normalize leading white space and remove trailing white space.
90940
90941         * config/texinfo.tex: Sync with texinfo.
90942
90943         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90944         strtoul.c from libc, to merge coreutils whitespace changes.
90945
90946         * config/srclist.txt: Get the following m4 files from gettext:
90947         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90948         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90949         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90950         wint_t.m4.
90951
90952 2003-08-12  Karl Berry  <karl@gnu.org>
90953
90954         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90955         been made.
90956
90957 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90958
90959         * modules/gnu-source, m4/gnu-source.m4:
90960         Remove; we're assuming Autoconf 2.54 or later now.
90961         Suggested by Bruno Haible.
90962         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90963
90964 2003-08-11  Bruno Haible  <bruno@clisp.org>
90965
90966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90967
90968 2003-08-11  Bruno Haible  <bruno@clisp.org>
90969
90970         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90971         (vasnprintf): Use it instead of wcslen.
90972
90973 2003-08-11  Bruno Haible  <bruno@clisp.org>
90974
90975         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90976         value to ensure that _Bool promotes to int. Use #define for _Bool when
90977         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90978
90979 2003-08-10  Karl Berry  <karl@gnu.org>
90980
90981         * lib/regex.h: update from libc (whitespace fix).
90982
90983 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90984
90985         Merge some files from coreutils.  These changes were
90986         originally made by Jim Meyering.
90987         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90988         many older Unixes require this.
90989         * lib/alloca.c (alloca): Remove cast to argument of free;
90990         no longer needed in C89.
90991         * lib/alloca_.h, regex.h: Fix white space to match
90992         what GNU indent does.
90993
90994 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90995
90996         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90997         apparently Emacs's Unicode mode got confused before my 2003-08-05
90998         checkin.
90999
91000 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91001
91002         * m4/extensions.m4: New file.
91003         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91004         Require gl_USE_SYSTEM_EXTENSIONS.
91005         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91006         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91007
91008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91009
91010         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91011         * modules/extensions, modules/gnu-source: New files.
91012         * modules/timespec, modules/unlocked-io: Depend on extensions.
91013
91014 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91015
91016         * modules/restrict: New file.
91017         * MODULES.html.sh (func_all_modules): Add restrict.
91018         * modules/regex: Depend on restrict.
91019
91020 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91021
91022         * m4/restrict.m4: New file.
91023         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91024
91025 2003-08-07  Bruno Haible  <bruno@clisp.org>
91026
91027         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91028         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91029
91030 2003-08-07  Bruno Haible  <bruno@clisp.org>
91031
91032         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91033         makes the module 'getndelim2' compatible with the module 'getline'.
91034
91035 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91036
91037         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91038         byte with "\201" to avoid glitches when editing that source file
91039         with multi-gnome-terminal.
91040
91041 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91042
91043         * lib/bumpalloc.h: Remove.
91044
91045 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91046
91047         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91048         * modules/bumpalloc: Remove.
91049
91050 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91051
91052         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91053         GNU coding style.
91054
91055         Merge from coreutils.
91056         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91057         1. From glibc.
91058         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91059         from Karl Berry, implemented by Jim Meyering.
91060         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91061         from Dmitry V. Levin.
91062         Remove anachronistic cast of xrealloc.
91063         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91064         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91065         type. Otherwise, it wouldn't compile with at least /bin/cc on
91066         ymp-cray-unicos9.0.2.X.
91067         Combine two mostly-identical uses of alloca into one.
91068         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91069
91070 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91071
91072         [From Emacs.]
91073
91074         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91075         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91076         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91077         obsolete NLIST_NAME_UNION.
91078         [__GNU__]: Undef BSD and FSCALE.
91079         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91080
91081 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91082
91083         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91084         an enum type, so that it's guaranteed to promote to int.  See:
91085         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91086
91087 2003-08-03  Karl Berry  <karl@gnu.org>
91088
91089         * config/depcomp: update from automake.
91090
91091 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91092
91093         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91094         (strerror): Don't assume that a printable int fits in 14 bytes.
91095
91096 2003-07-31  Bruno Haible  <bruno@clisp.org>
91097
91098         * modules/getpass-gnu: New file.
91099         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91100
91101 2003-07-31  Bruno Haible  <bruno@clisp.org>
91102
91103         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91104
91105 2003-07-24  Karl Berry  <karl@gnu.org>
91106
91107         * config/missing: update from automake.
91108
91109 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91110             Bruno Haible  <bruno@clisp.org>
91111
91112         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91113         * lib/getline.c (getline, getdelim): Likewise.
91114         Remove _GNU_SOURCE define; now it's defined in config.h through
91115         m4/getline.m4.
91116
91117 2003-07-23  Karl Berry  <karl@gnu.org>
91118
91119         * config/config.sub: update from prep.
91120
91121 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91122
91123         * modules/xalloc (Depends-on): Add exitfail.
91124         * modules/xmemcoll: Likewise.
91125
91126 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91127
91128         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91129         over-parenthesization in macros.
91130
91131         Sync with coreutils.
91132
91133         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91134         required by C99.
91135
91136         Use `exit_failure' for xalloc and xmemcoll instead of their own
91137         private exit-failure variables.
91138         * lib/xalloc.h (xalloc_exit_failure): Remove.
91139         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91140         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91141         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91142         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91143         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91144
91145 2003-07-20  Jim Meyering  <jim@meyering.net>
91146
91147         * modules/closeout (Depends-on): Add exitfail.
91148         Suggestion from Bruno Haible.
91149
91150 2003-07-19  Karl Berry  <karl@gnu.org>
91151
91152         * config/config.sub: update from prep.
91153
91154 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91155
91156         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91157         Remove.
91158         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91159         to test that it can stand by itself.  Include "exitfail.h".
91160         Clients should set exit_failure instead.
91161         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91162
91163 2003-07-18  Bruno Haible  <bruno@clisp.org>
91164
91165         * modules/getndelim2: New file.
91166         * modules/getline: Share files with module getndelim2.
91167         * modules/getnline: Depend on getndelim2 instead of sharing files with
91168         it. Add getnline.c to lib_SOURCES.
91169         * MODULES.html.sh (func_all_modules): Add getndelim2.
91170
91171 2003-07-18  Bruno Haible  <bruno@clisp.org>
91172
91173         * m4/getndelim2.m4: New file.
91174         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91175         invoke gl_PREREQ_GETNDELIM2.
91176         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91177         gl_PREREQ_GETNDELIM2.
91178         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91179         gl_GETNDELIM2.
91180
91181 2003-07-18  Bruno Haible  <bruno@clisp.org>
91182
91183         * lib/getndelim2.h: New file.
91184         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91185         getndelim2.h.
91186         (getndelim2): Make non-static. Change return type to ssize_t.
91187         * lib/getline.h: Change argument names.
91188         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91189         * lib/getnline.c: Include getndelim2.h.
91190
91191 2003-07-18  Andreas Schwab  <schwab@suse.de>
91192
91193         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91194
91195 2003-07-17  Karl Berry  <karl@gnu.org>
91196
91197         * config/config.sub: update from prep.
91198
91199 2003-07-17  Bruno Haible  <bruno@clisp.org>
91200
91201         * modules/getnline: New file.
91202         * modules/getline: Add lib/getndelim2.c to source file list.
91203         * MODULES.html.sh (func_all_modules): Add getnline.
91204
91205 2003-07-17  Bruno Haible  <bruno@clisp.org>
91206
91207         * m4/getnline.m4: New file.
91208
91209 2003-07-17  Bruno Haible  <bruno@clisp.org>
91210
91211         * m4/Makefile.am.in: Remove file.
91212         * m4/Makefile.am: Remove file.
91213         * m4/Makefile.in: Remove file.
91214
91215 2003-07-17  Bruno Haible  <bruno@clisp.org>
91216
91217         * lib/getnline.h: New file.
91218         * lib/getnline.c: New file.
91219         * lib/getndelim2.c: New file, extracted from getline.c.
91220         (getndelim2): Renamed from getdelim2, with added nmax argument.
91221         * lib/getline.c: Include getndelim2.c.
91222         (getdelim2): Moved out to getndelim2.c.
91223         (getline, getdelim): Update.
91224
91225 2003-07-17  Bruno Haible  <bruno@clisp.org>
91226
91227         * lib/Makefile.am: Remove file.
91228         * lib/Makefile.in: Remove file.
91229
91230 2003-07-17  Bruno Haible  <bruno@clisp.org>
91231
91232         * configure.in: Remove file.
91233         * Makefile.in: Remove file.
91234
91235 2003-07-17  Bruno Haible  <bruno@clisp.org>
91236
91237         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91238
91239 2003-07-16  Karl Berry  <karl@gnu.org>
91240
91241         * config/srclist-update: was running fixlicense twice, which caused
91242                 texinfo.tex to be nullified for some reason.  Simplify,
91243                 $gplsrc is no longer needed as far as I can see?
91244
91245 2003-07-16  Jim Meyering  <jim@meyering.net>
91246
91247         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91248
91249 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91250
91251         * config/srclist.txt: Get the following files from gettext-runtime/intl
91252         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91253         ref-del.sin.  From Bruno Haible.
91254         * config/srclist-update (fixfile): Change grep pattern again, since the
91255         previous fix didn't work (there was another trailing $).  Use
91256         '[$]' to escape the $s.
91257
91258 2003-07-15  Karl Berry  <karl@gnu.org>
91259
91260         * lib/vasnprintf.c: update from gettext.
91261
91262 2003-07-15  Karl Berry  <karl@gnu.org>
91263
91264         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91265         gets expanded when surrounded by '$'.
91266
91267 2003-07-15  Jim Meyering  <jim@meyering.net>
91268
91269         * modules/save-cwd: Don't depend on error.  From Derek Price.
91270
91271 2003-07-15  Jim Meyering  <jim@meyering.net>
91272
91273         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91274
91275 2003-07-14  Simon Josefsson  <jas@extundo.com>
91276
91277         * modules/mempcpy: New file.
91278         * MODULES.html.sh (func_all_modules): Add mempcpy.
91279
91280 2003-07-14  Simon Josefsson  <jas@extundo.com>
91281
91282         * m4/mempcpy.m4: New file.
91283
91284 2003-07-14  Simon Josefsson  <jas@extundo.com>
91285
91286         * lib/mempcpy.h: New file.
91287         * lib/mempcpy.c: New file.
91288
91289 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91290
91291         * modules/getdate, modules/posixtm: Depend on mktime.
91292
91293 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91294
91295         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91296         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91297         unicodeio.c, unicodeio.h, unlocked-io.h:
91298         Switch from LGPL to GPL.
91299
91300 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91301
91302         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91303         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91304         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91305         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91306         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91307         updated automatically by ../config/srclist-update.  This changes
91308         their license from LPGL to GPL.
91309
91310 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91311
91312         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91313         assumed to refer to the root of the most recent stable gettext version.
91314         * config/srclistvars.sh: Add defaults for eggert.
91315         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91316         Match "This program" as well as "The program".  This is needed
91317         for gettext.
91318
91319 2003-07-14  Jim Meyering  <jim@meyering.net>
91320
91321         Don't emit diagnostics.  Let callers do that.
91322         * lib/save-cwd.c: Don't include "error.h".
91323         (save_cwd): Don't call error.  Ensure that errno is valid
91324         when returning nonzero.
91325
91326         * lib/save-cwd.h (restore_cwd): Update prototype.
91327         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91328         Simplify.  Don't call error upon failure.  Let callers do that.
91329         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91330         when auditing is enabled.  But don't bother updating the #if.
91331
91332 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91333
91334         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91335         it breaks C++ compilation.
91336         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91337
91338 2003-07-10  Simon Josefsson  <jas@extundo.com>
91339
91340         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91341
91342 2003-07-10  Jim Meyering  <jim@meyering.net>
91343
91344         * m4/clock_time.m4: Remove trailing blank.
91345         * m4/intmax_t.m4: Likewise.
91346
91347 2003-07-10  Jim Meyering  <jim@meyering.net>
91348
91349         * lib/vasnprintf.c: Remove trailing blanks.
91350         Make cpp indentation consistent.
91351
91352 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91353
91354         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91355         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91356         Switch from LGPL to GPL.
91357
91358 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91359
91360         * config/srclist.txt: Sort sublists.  Add
91361         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91362         that differ from gnulib for one reason or another; we'd like this list
91363         to be smaller but for now let's document what we have.
91364
91365 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91366
91367         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91368         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91369         and sweeter "eval x=$x".
91370         * config/srclist.txt: Get lib/argp* from glibc.
91371
91372 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91373
91374         * lib/mktime.c: Fix some boundary cases and remove need for floating
91375         point.
91376
91377         Issue a compile-time diagnostic if time_t is floating point, or if
91378         two's complement arithmetic is not in effect, or if arithmetic
91379         right shift does not propagate the sign.  These assumptions were
91380         all in the original code but they weren't checked.
91381
91382         (TIME_T_MIDPOINT, verify): New macros.
91383         (__isleap): Remove; it has integer overflow problems.
91384         (leapyear): New function, without those problems.
91385         (ydhms_tm_diff): Remove; splitting into two parts.
91386         (ydhms_diff): New function, containing the arithmetic part of
91387         the old ydhms_tm_diff function.  Issue a compile-time
91388         diagnostic if we are not using C99 integer division.
91389         Avoid casts when possible.
91390         (guess_time_tm): New function, containing the checking part of
91391         the old ydhms_tm_diff function.  Return the new value, rather than
91392         the difference between it and the old.  Accept a new argument T
91393         so that *T specifies the old value.  Check for overflow in the result.
91394
91395         (__mktime_internal): Use a time_t offset, not a long int offset.
91396         This undoes the 2003-06-04 change, which is no longer needed now
91397         that we have better overflow checking.
91398         (localtime_offset): Likewise.
91399
91400         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91401         and long are 64-bit but int is only 32-bit.
91402         (ydhms_diff): Use long int to store year1 and yday1.
91403         Issue a compile-time diagnostic if long int is not wide enough.
91404
91405         (__mktime_internal): Use long int to store adjusted year and yday.
91406         Use plain C rather than preprocessor commands, if that doesn't
91407         affect efficiency.
91408         Check for overflow (and try to repair) after each probe
91409         rather than checking only at the very end.  This avoids some bugs
91410         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91411         does not equal GMT offset at maximum time).
91412         Use integer to check for overflow rather than floating point; this
91413         is more portable to non-IEEE hosts, and is a tad faster.
91414         When we detect that we are oscillating between two values,
91415         don't check whether tm_isdst has the requested value, since
91416         we already know the answer.  When tm_isdst has the wrong value,
91417         use a different heuristic to find the right one, based on the
91418         extreme values actually observed in practice in tz2003a,
91419         rather than the (overly optimistic) "previous 3 calendar quarters".
91420
91421         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91422         "T const" to accommodate glibc style.
91423         (check_result): Use less-confusing report format.  "long" -> "long int.
91424         (main): Likewise.
91425         Don't loop if the iteration overflows time_t.
91426         Allow a negative step in the iteration.
91427
91428 2003-07-06  Karl Berry  <karl@gnu.org>
91429
91430         * config/depcomp: update from automake.
91431         * config/config.sub: update from prep.
91432
91433 2003-07-03  Karl Berry  <karl@gnu.org>
91434
91435         * config/config.guess: update from prep.
91436
91437 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91438
91439         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91440         xreadlink.c now includes it unconditionally.
91441
91442 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91443
91444         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91445         having it depend on HAVE_SYS_TYPES_H.
91446
91447 2003-07-01  Bruno Haible  <bruno@clisp.org>
91448
91449         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91450         <sys/types.h> should be sufficient.
91451         Reported by Paul Eggert.
91452
91453 2003-06-26  Karl Berry  <karl@gnu.org>
91454
91455         * config/depcomp: update from automake.
91456
91457 2003-06-26  Bruno Haible  <bruno@clisp.org>
91458
91459         * modules/human: Depend on module stdbool.
91460
91461 2003-06-25  Bruno Haible  <bruno@clisp.org>
91462
91463         * modules/readlink: New file.
91464         * modules/xreadlink: Depend on it.
91465         * MODULES.html.sh (func_all_modules): Add readlink.
91466
91467 2003-06-25  Bruno Haible  <bruno@clisp.org>
91468
91469         * m4/readlink.m4: New file.
91470
91471 2003-06-25  Bruno Haible  <bruno@clisp.org>
91472
91473         * lib/readlink.c: New file.
91474
91475 2003-06-22  Karl Berry  <karl@gnu.org>
91476
91477         * config/srclist.txt: update mkinstalldirs from automake.
91478         * config/mkinstalldirs: update.
91479
91480 2003-06-22  Bruno Haible  <bruno@clisp.org>
91481
91482         Portability to mingw32.
91483         * m4/ssize_t.m4: New file, from GNU gettext.
91484         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91485         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91486
91487 2003-06-22  Bruno Haible  <bruno@clisp.org>
91488
91489         * modules/safe-read: Add m4/ssize_t.m4.
91490         * modules/xreadlink: Add m4/ssize_t.m4.
91491
91492 2003-06-20  Bruno Haible  <bruno@clisp.org>
91493
91494         Assume C89, so PARAMS isn't needed.
91495         * lib/unicodeio.h (PARAMS): Remove.
91496         * lib/unicodeio.c: Don't use PARAMS.
91497
91498 2003-06-18  Karl Berry  <karl@gnu.org>
91499
91500         * config/config.{guess,sub}: update from prep.
91501
91502 2003-06-18  Jim Meyering  <jim@meyering.net>
91503
91504         Merge changes from coreutils.
91505         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91506         Remove explicit declarations of xmalloc and realloc.
91507         Include xalloc.h.
91508         (read_utmp): Remove anachronistic cast of xmalloc.
91509
91510 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91511
91512         Assume C89, so PARAMS isn't needed.
91513         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91514         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91515         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91516         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91517         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91518         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91519         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91520         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91521         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91522         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91523         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91524         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91525         no longer needed. Anyway, config.h should always be included before any
91526         other file.
91527
91528 2003-06-11  Simon Josefsson  <jas@extundo.com>
91529
91530         * modules/sysexits: New file.
91531         * MODULES.html.sh (func_all_modules): Add sysexits.
91532
91533 2003-06-11  Simon Josefsson  <jas@extundo.com>
91534
91535         * lib/sysexit_.h: New file.
91536
91537 2003-06-11  Derek Price  <derek@ximbiot.com>
91538
91539         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91540         necessary.
91541
91542 2003-06-11  Bruno Haible  <bruno@clisp.org>
91543
91544         * m4/sysexits.m4: New file.
91545
91546 2003-06-10  Simon Josefsson  <jas@extundo.com>
91547
91548         * lib/argp.h: New file, from glibc.
91549         * lib/argp-ba.c: New file, from glibc.
91550         * lib/argp-eexst.c: New file, from glibc.
91551         * lib/argp-fmtstream.c: New file, from glibc.
91552         * lib/argp-fmtstream.h: New file, from glibc.
91553         * lib/argp-fs-xinl.c: New file, from glibc.
91554         * lib/argp-help.c: New file, from glibc.
91555         * lib/argp-namefrob.h: New file, from glibc.
91556         * lib/argp-parse.c: New file, from glibc.
91557         * lib/argp-pv.c: New file, from glibc.
91558         * lib/argp-pvh.c: New file, from glibc.
91559         * lib/argp-xinl.c: New file, from glibc.
91560
91561 2003-06-10  Simon Josefsson  <jas@extundo.com>
91562
91563         * modules/strchrnul: New file.
91564
91565 2003-06-10  Simon Josefsson  <jas@extundo.com>
91566
91567         * modules/argp: New file.
91568
91569 2003-06-10  Simon Josefsson  <jas@extundo.com>
91570
91571         * m4/strchrnul.m4: New file.
91572
91573 2003-06-10  Simon Josefsson  <jas@extundo.com>
91574
91575         * lib/strchrnul.h: New file.
91576         * lib/strchrnul.c: New file.
91577
91578 2003-06-10  Bruno Haible  <bruno@clisp.org>
91579
91580         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91581
91582 2003-06-07  Karl Berry  <karl@gnu.org>
91583
91584         * config/config.{guess,sub}: update from prep.
91585
91586 2003-06-07  Jim Meyering  <jim@meyering.net>
91587
91588         * modules/strtod: Use $(...) notation, not @...@ for
91589         AC_REPLACE'd variables.
91590         * modules/localcharset: Likewise.
91591
91592 2003-06-07  Jim Meyering  <jim@meyering.net>
91593
91594         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91595         in place of my name in the copyright comment.
91596         Remove definition and uses of __P.
91597
91598         From coreutils.
91599         * lib/stat.c: Don't declare xmalloc explicitly.
91600         Instead, include "xalloc.h".
91601         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91602         xrealloc, and xcalloc return values.
91603         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91604         Improve comment.
91605         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91606
91607 2003-06-07  Bruno Haible  <bruno@clisp.org>
91608
91609         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91610         avoid AC_CONFIG_LINKS.
91611         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91612         fnmatch.h, to avoid AC_CONFIG_LINKS.
91613         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91614
91615 2003-06-07  Bruno Haible  <bruno@clisp.org>
91616
91617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91618         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91619         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91620         directory.
91621         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91622         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91623         directory.
91624
91625 2003-06-06  Jim Meyering  <jim@meyering.net>
91626
91627         Merge from coreutils.
91628         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91629         Consolidate declarations and initializations of *_base* locals.
91630
91631         Merge from coreutils.
91632         This avoids a core dump on systems without GNU putenv,
91633         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91634         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91635         (unsetenv): New static function, from GNU libc.
91636         (rpl_putenv): Use it.
91637
91638         * lib/modechange.c: Remove trailing blanks.
91639
91640         Merge from coreutils.
91641         * lib/fsusage.c: Remove declaration of statfs.
91642         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91643
91644         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91645
91646 2003-06-06  Jim Meyering  <jim@meyering.net>
91647
91648         * lib/stdbool_.h: Renamed from stdbool.h.in.
91649
91650 2003-06-06  Jim Meyering  <jim@meyering.net>
91651             Bruno Haible  <bruno@clisp.org>
91652
91653         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91654         Adjust Makefile.am snippet not to redirect directly to target.
91655         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91656
91657 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91658
91659         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91660         mismatch, look in future quarters as well as past.  This fixes a
91661         bug when processing fall-backwards gaps immediately after a long
91662         period of daylight-saving time.
91663
91664         * lib/mktime.c: Assume freestanding C89 or better.
91665         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91666         (__P): Remove; not used.
91667         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91668         (mktime, not_equal_tm, print_tm, check_result,
91669         main): Use prototypes.  Use const * where appropriate.
91670         (main): Fix typo in testing code that uncovered by above changes.
91671         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91672
91673 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91674
91675         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91676         locale.h, localeconv.  This merges changes from coreutils.
91677
91678         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91679         It can be removed after the next Autoconf is released.
91680         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91681         needed.
91682
91683 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91684
91685         * lib/mktime.c: Fix Debian bug 177940
91686         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91687         (localtime_offset): Now long int, not time_t, because we want it
91688         to be guaranteed to be signed.  All uses changed.
91689         (__mktime_internal): If overflow would occur when adding offset,
91690         don't add it.
91691
91692         Merge 'human' changes from coreutils.  Rewrite to support
91693         locale-specific notations like thousands separators.
91694         * lib/human.c: Simplify authorship notice.
91695         Include human.h immediately after config.h.
91696         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91697         <limits.h>: Do not include, since human.h does.
91698         (SIZE_MAX, UINTMAX_MAX): New macros.
91699         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91700         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91701         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91702         (power_letter): Renamed from suffixes.
91703         (generate_suffix_backwards): Remove.
91704         (adjust_value): Now takes int style (because of human.h changes)
91705         and long double value (for greater precision on some platforms).
91706         (group_number): New function.
91707         (human_readable): Use it.  Use integer options, not enum.
91708         Put the options before the sizes in the arg list.
91709         Support all the new options.
91710         The old human_readable function has been removed;
91711         use inttostr.h instead.
91712         (human_readable, default_block_size, humblock):
91713         Use uintmax_t, not int, for block sizes.
91714         (human_readable_inexact, block_size_types): Remove.
91715         (block_size_opts): New constant.
91716         (human_options): Renamed from human_block_size, with new signature
91717         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91718         * lib/human.h: Add copyright and authorship notice.
91719         Include <limits.h> and <stdbool.h> unconditionally.
91720         (PARAMS): Remove.  All uses removed.
91721         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91722         (enum human_inexact_style): Remove tag; now a nameless enum.
91723         (human_floor, human_ceiling, human_round_to_even): Now have
91724         values 2, 0, 1 rather than -1, 1, 0.
91725         (human_group_digits, human_suppress_point_zero, human_autoscale,
91726         human_base_1024, human_SI, human_B): New constants.
91727         (human_readable_inexact, human_block_size): Remove.
91728         (human_readable): Size args are now uintmax_t, not int.
91729         (human_options): New decl.
91730
91731         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91732         unnecessary now that we assume C89 or better.  This change
91733         imported from coreutils.
91734
91735         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91736         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91737         in the 2003-05-30 sync from glibc.
91738
91739         .h files should stand alone, but we shouldn't include <sys/types.h>
91740         if we can get away with just <stddef.h>.
91741
91742         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91743         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91744         rather than <sys/types.h>, as we merely need size_t.
91745         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91746         to get size_t.
91747         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91748         Include <stdio.h>, to get FILE.
91749         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91750         memcasecmp.h has included <stddef.h> and all we need is size_t.
91751         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91752         our interface, instead of including <sys/types.h>
91753
91754 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91755
91756         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91757         now, as glibc mktime is buggy on non-glibc systems.
91758
91759 2003-06-03  Karl Berry  <karl@gnu.org>
91760
91761         * config/config.sub: update from prep.
91762
91763 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91764
91765         [from coreutils]
91766         Fix some minor time-related bugs with POSIX time arguments.
91767         Some valid time stamps were being rejected (notably -1, and
91768         time stamps before 1900 on 64-bit hosts).  And some invalid
91769         time stamps were being accepted, e.g. September 31.
91770
91771         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91772         that we can return (time_t) -1 successfully.
91773         * lib/posixtm.c: Likewise.
91774         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91775         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91776         (t): Remove static var.
91777         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91778         of static var.  All uses changed.
91779         (year): Do not reject years before 1900; they can occur with
91780         64-bit time_t.
91781         (posix_time_parse): Do not check for out-of-range components;
91782         that is now the caller's responsibility, since our checks were
91783         only approximations.
91784         (posixtime): Use mktime to check for out-of-range components,
91785         since it knows them exactly.
91786         If mktime returns (time_t) -1, check whether an error actually occurred
91787         by invoking localtime on -1.
91788         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91789         posixtime failures better.
91790         Improve the test data (in comments only).
91791
91792 2003-06-02  Karl Berry  <karl@gnu.org>
91793
91794         * config/mkinstalldirs (version): new variable.
91795         (--version): new option.
91796         (usage): improve message.
91797
91798 2003-05-30  Karl Berry  <karl@gnu.org>
91799
91800         * lib/mktime.c: update from libc.
91801
91802 2003-05-30  Bruno Haible  <bruno@clisp.org>
91803
91804         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91805         * config/config.rpath: Upgrade to gettext-0.12.1.
91806
91807 2003-05-30  Bruno Haible  <bruno@clisp.org>
91808
91809         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91810         * m4/nls.m4: New file, from gettext-0.12.1.
91811         * m4/po.m4: New file, from gettext-0.12.1.
91812         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91813
91814 2003-05-30  Bruno Haible  <bruno@clisp.org>
91815
91816         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91817         * lib/localcharset.h: Likewise.
91818         * lib/localcharset.c: Likewise.
91819
91820 2003-05-29  Karl Berry  <karl@gnu.org>
91821
91822         * config/config.rpath: update from gettext.
91823
91824 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91825
91826         Assume the headers required for C89 freestanding compilers.
91827         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91828         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91829         * m4/human.m4 (gl_HUMAN): Likewise.
91830         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91831         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91832         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91833         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91835         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91836
91837 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91838
91839         Assume the headers required for C89 freestanding compilers.
91840         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91841         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91842         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91843         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91844         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91845         define, since <limits.h> is guaranteed to do that.
91846         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91847         * lib/exclude.c: Include <stdbool.h> unconditionally.
91848         * lib/tempname.c: Include <stddef.h> unconditionally.
91849         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91850         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91851         <stddef.h> does that.
91852         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91853         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91854         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91855         needed.
91856         * lib/xstrtol.c: Likewise.
91857         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91858         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91859
91860         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91861         warnings on some platforms.
91862
91863         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91864         arbitrarily.
91865
91866 2003-05-26  Jim Meyering  <jim@meyering.net>
91867
91868         Merge in a change from coreutils:
91869         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91870         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91871         that condition, rather than `-1' which is slightly misleading.
91872         Change the name of the cache variable to have the gl_ prefix.
91873         Prompted by a patch from Richard Dawe for DJGPP.
91874
91875 2003-05-24  Karl Berry  <karl@gnu.org>
91876
91877         * config/config.guess: update from prep.
91878
91879 2003-05-22  Karl Berry  <karl@gnu.org>
91880
91881         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91882
91883 2003-05-20  Karl Berry  <karl@gnu.org>
91884
91885         * config/config.guess: update from prep.
91886
91887 2003-05-18  Karl Berry  <karl@gnu.org>
91888
91889         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91890         might actually be set by the user.
91891
91892         * config/depcomp, install-sh, mdate-sh: update from automake.
91893
91894 2003-05-17  Bruno Haible  <bruno@clisp.org>
91895
91896         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91897         invalid expansion for AC_EGREP_CPP.
91898         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91899         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91900         Suggested by Akim Demaille <akim@epita.fr> in
91901         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91902
91903 2003-05-12  Jim Meyering  <jim@meyering.net>
91904
91905         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91906         the space-padded-by-default conversion specifiers, %e, %k, %l.
91907
91908 2003-05-12  Bruno Haible  <bruno@clisp.org>
91909
91910         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91911         the string is longer than 4 KB.
91912
91913 2003-05-11  Karl Berry  <karl@gnu.org>
91914
91915         * config/config.{guess,sub}: update from prep.
91916
91917 2003-05-09  Bruno Haible  <bruno@clisp.org>
91918
91919         * modules/error: Add m4/strerror_r.m4 to file list.
91920
91921 2003-05-03  Bruno Haible  <bruno@clisp.org>
91922
91923         Upgrade to Unicode-4.0.
91924         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91925         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91926         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91927         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91928         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91929         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91930         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91931         Change width of U+E0100..U+E01EF from 1 to 0.
91932
91933 2003-04-25  Jim Meyering  <jim@meyering.net>
91934
91935         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91936         of type size_t, not int.
91937
91938 2003-04-25  Bruno Haible  <bruno@clisp.org>
91939
91940         * lib/copy-file.c: Include <stddef.h>, for size_t.
91941
91942 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91943
91944         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91945         code which expansion is under static control.  Patch imported from
91946         Akim Demaille's patch to Bison; see
91947         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91948
91949 2003-04-14  Bruno Haible  <bruno@clisp.org>
91950
91951         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91952
91953 2003-04-11  Jim Meyering  <jim@meyering.net>
91954
91955         Merge changes from Coreutils.
91956
91957         2003-03-22  Jim Meyering  <jim@meyering.net>
91958
91959         * lib/strftime.c (widen): Cast alloca return value to proper type.
91960
91961         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91962
91963         From GNU libc.
91964         * lib/strftime.c (my_strftime): Handle very large width
91965         specifications for numeric values correctly.  Improve checks for
91966         overflow.
91967
91968         2003-01-19  Jim Meyering  <jim@meyering.net>
91969
91970         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91971         definitions.
91972         (nl_get_alt_digit) [! defined my_strftime]: Define.
91973         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91974         _nl_get_alt_digit and _nl_get_walt_digit.
91975
91976         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91977         libc. These changes have no effect outside of _LIBC.
91978
91979 2003-04-10  Bruno Haible  <bruno@clisp.org>
91980
91981         * modules/findprog: New file.
91982         * MODULES.html.sh (func_all_modules): Add it.
91983
91984 2003-04-10  Bruno Haible  <bruno@clisp.org>
91985
91986         * m4/findprog.m4: New file.
91987         * m4/eaccess.m4: New file.
91988
91989 2003-04-10  Bruno Haible  <bruno@clisp.org>
91990
91991         * lib/findprog.h: New file, from GNU gettext.
91992         * lib/findprog.c: New file, from GNU gettext.
91993
91994 2003-04-05  Jim Meyering  <jim@meyering.net>
91995
91996         Merge changes from Coreutils.
91997
91998         * lib/exclude.h (PARAMS): Remove definition and uses.
91999         * lib/exclude.c: Remove uses of `PARAMS'.
92000
92001         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92002         Add test-cases for DOS filenames. Declare program_name.
92003         (main): Set up program_name.  Patch by Rich Dawe.
92004
92005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92006         error from mntctl.
92007         Use mntctl's return value to drive the entry-processing loop, since
92008         we can't rely on the value of the vmt_length member in the last
92009         entry.  On some systems doing so could result in exhausting
92010         virtual memory.  Based in part on a patch from Mike Jetzer.
92011
92012 2003-04-04  Bruno Haible  <bruno@clisp.org>
92013
92014         * modules/linebreak: New file.
92015         * MODULES.html.sh (func_all_modules): Add it.
92016
92017 2003-04-04  Bruno Haible  <bruno@clisp.org>
92018
92019         * m4/linebreak.m4: New file.
92020
92021 2003-04-04  Bruno Haible  <bruno@clisp.org>
92022
92023         * lib/linebreak.h: New file, from GNU gettext.
92024         * lib/linebreak.c: New file, from GNU gettext with slight
92025         modifications.
92026         * lib/lbrkprop.h: New file, from GNU gettext.
92027
92028 2003-04-03  Bruno Haible  <bruno@clisp.org>
92029
92030         * modules/utf8-ucs4: New file.
92031         * modules/utf16-ucs4: New file.
92032         * modules/ucs4-utf8: New file.
92033         * modules/ucs4-utf16: New file.
92034         * MODULES.html.sh (func_all_modules): Add them.
92035
92036 2003-04-03  Bruno Haible  <bruno@clisp.org>
92037
92038         * m4/utf-ucs4.m4: New file.
92039         * m4/ucs4-utf.m4: New file.
92040
92041 2003-04-03  Bruno Haible  <bruno@clisp.org>
92042
92043         * lib/utf8-ucs4.h: New file, from GNU gettext.
92044         * lib/utf16-ucs4.h: New file, from GNU gettext.
92045         * lib/ucs4-utf8.h: New file, from GNU gettext.
92046         * lib/ucs4-utf16.h: New file, from GNU gettext.
92047
92048 2003-04-02  Bruno Haible  <bruno@clisp.org>
92049
92050         * modules/binary-io: New file.
92051         * MODULES.html.sh (func_all_modules): Add it.
92052
92053 2003-04-02  Bruno Haible  <bruno@clisp.org>
92054
92055         * lib/binary-io.h: New file, from GNU gettext.
92056
92057 2003-04-01  Bruno Haible  <bruno@clisp.org>
92058
92059         * modules/pathname: New file.
92060         * MODULES.html.sh (func_all_modules): Add it.
92061
92062 2003-04-01  Bruno Haible  <bruno@clisp.org>
92063
92064         * lib/pathname.h: New file, from GNU gettext.
92065         * lib/concatpath.c: New file, from GNU gettext.
92066
92067 2003-03-30  Bruno Haible  <bruno@clisp.org>
92068
92069         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92070
92071 2003-03-30  Bruno Haible  <bruno@clisp.org>
92072
92073         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92074         function chown() doesn't exist.
92075
92076 2003-03-28  Bruno Haible  <bruno@clisp.org>
92077
92078         * modules/copy-file: New file.
92079         * MODULES.html.sh (func_all_modules): Add it.
92080
92081 2003-03-28  Bruno Haible  <bruno@clisp.org>
92082
92083         * m4/copy-file.m4: New file.
92084
92085 2003-03-28  Bruno Haible  <bruno@clisp.org>
92086
92087         * lib/copy-file.h: New file, from GNU gettext.
92088         * lib/copy-file.c: New file, from GNU gettext.
92089
92090 2003-03-18  Jim Meyering  <jim@meyering.net>
92091
92092         * lib/quote.c (quote_n): Fix typo in comment.
92093
92094 2003-03-18  Bruno Haible  <bruno@clisp.org>
92095
92096         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92097         checking.
92098         * m4/onceonly_2_57.m4: Likewise.
92099
92100 2003-03-17  Bruno Haible  <bruno@clisp.org>
92101
92102         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92103         (m4_quote): Remove macro.
92104         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92105
92106 2003-03-14  Jim Meyering  <jim@meyering.net>
92107
92108         Merge changes from Coreutils.
92109         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92110         to be const, in order to avoid warnings.
92111         (obstack_room): Likewise.
92112         (obstack_empty_p): Likewise.
92113
92114 2003-03-14  Bruno Haible  <bruno@clisp.org>
92115
92116         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92117         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92118
92119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92120
92121         Merge changes from Bison.
92122         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92123         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92124         when compiling Bison 1.875's `bitset bset = obstack_alloc
92125         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92126         * lib/hash.c: Include <stdbool.h> unconditionally.
92127
92128 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92129
92130         * m4/onceonly.m4 (m4_quote): New macro.
92131         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92132         Quote AC_FOREACH variable-expansions properly.
92133
92134 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92135
92136         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92137
92138 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92139
92140         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92141         Reported by Bruce Becker; see:
92142         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92143
92144 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92145             Bruno Haible  <bruno@clisp.org>
92146
92147         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92148         Reported by John Hughes, see
92149         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92150
92151 2003-02-20  Bruno Haible  <bruno@clisp.org>
92152
92153         * MODULES.html.sh (func_all_modules): Add poll.
92154
92155 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92156
92157         * modules/poll: New file.
92158
92159 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92160
92161         * lib/poll_.h: New file.
92162         * lib/poll.c: New file.
92163
92164 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92165
92166         * m4/poll.m4: New file.
92167
92168 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92169
92170         * modules/mathl: New file.
92171
92172 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92173
92174         * lib/mathl.h: New file.
92175         * lib/acosl.c: New file.
92176         * lib/asinl.c: New file.
92177         * lib/atanl.c: New file.
92178         * lib/ceill.c: New file.
92179         * lib/cosl.c: New file.
92180         * lib/expl.c: New file.
92181         * lib/floorl.c: New file.
92182         * lib/frexpl.c: New file.
92183         * lib/ldexpl.c: New file.
92184         * lib/logl.c: New file.
92185         * lib/sincosl.c: New file.
92186         * lib/sinl.c: New file.
92187         * lib/sqrtl.c: New file.
92188         * lib/tanl.c: New file.
92189         * lib/trigl.c: New file.
92190         * lib/trigl.h: New file.
92191
92192 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92193
92194         * m4/mathl.m4: New file.
92195
92196 2003-02-18  Bruno Haible  <bruno@clisp.org>
92197
92198         * MODULES.html.sh (func_all_modules): Add mathl.
92199
92200 2003-02-17  Bruno Haible  <bruno@clisp.org>
92201
92202         * modules/mkdtemp: New module.
92203         * MODULES.html.sh (func_all_modules): Add it.
92204
92205 2003-02-17  Bruno Haible  <bruno@clisp.org>
92206
92207         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92208
92209 2003-02-17  Bruno Haible  <bruno@clisp.org>
92210
92211         * lib/mkdtemp.h: New file, from GNU gettext.
92212         * lib/mkdtemp.c: New file, from GNU gettext.
92213
92214 2003-02-02  Jim Meyering  <jim@meyering.net>
92215
92216         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92217         e.g. glibc-2.2.93.
92218
92219 2003-01-31  Bruno Haible  <bruno@clisp.org>
92220
92221         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92222         'rpl_rename'.
92223         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92224         'rpl_strnlen'.
92225         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92226         'rpl_strtod'.
92227         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92228         'rpl_utime'.
92229
92230 2003-01-31  Bruno Haible  <bruno@clisp.org>
92231
92232         * lib/rename.c: #undef rename before defining rpl_rename.
92233         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92234
92235 2003-01-30  Bruno Haible  <bruno@clisp.org>
92236
92237         * modules/vasnprintf, modules/vasprintf: New modules.
92238         * MODULES.html.sh (func_all_modules): Add them.
92239
92240 2003-01-30  Bruno Haible  <bruno@clisp.org>
92241
92242         * m4/signed.m4: New file, from GNU gettext.
92243         * m4/longdouble.m4: New file, from GNU gettext.
92244         * m4/wchar_t.m4: New file, from GNU gettext.
92245         * m4/wint_t.m4: New file, from GNU gettext.
92246         * m4/vasnprintf.m4: New file.
92247         * m4/vasprintf.m4: New file.
92248
92249 2003-01-30  Bruno Haible  <bruno@clisp.org>
92250
92251         * lib/printf-args.h: New file, from GNU gettext.
92252         * lib/printf-args.c: New file, from GNU gettext.
92253         * lib/printf-parse.h: New file, from GNU gettext.
92254         * lib/printf-parse.c: New file, from GNU gettext.
92255         * lib/vasnprintf.h: New file, from GNU gettext.
92256         * lib/vasnprintf.c: New file, from GNU gettext.
92257         * lib/asnprintf.c: New file, from GNU gettext.
92258         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92259         * lib/vasprintf.c: New file, from GNU gettext.
92260         * lib/asprintf.c: New file, from GNU gettext.
92261
92262 2003-01-29  Bruno Haible  <bruno@clisp.org>
92263
92264         * modules/stpncpy: New module.
92265         * MODULES.html.sh (func_all_modules): Add it.
92266
92267 2003-01-29  Bruno Haible  <bruno@clisp.org>
92268
92269         * m4/stpncpy.m4: New file.
92270
92271 2003-01-29  Bruno Haible  <bruno@clisp.org>
92272
92273         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92274         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92275
92276 2003-01-28  Bruno Haible  <bruno@clisp.org>
92277
92278         * modules/c-ctype: New module.
92279         * MODULES.html.sh (func_all_modules): Add it.
92280
92281 2003-01-28  Bruno Haible  <bruno@clisp.org>
92282
92283         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92284         Paul Eggert.
92285         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92286         Paul Eggert.
92287
92288 2003-01-27  Bruno Haible  <bruno@clisp.org>
92289
92290         * modules/xsetenv: New module.
92291         * MODULES.html.sh (func_all_modules): Add it.
92292
92293 2003-01-27  Bruno Haible  <bruno@clisp.org>
92294
92295         * lib/xsetenv.h: New file, from GNU gettext.
92296         * lib/xsetenv.c: New file, from GNU gettext.
92297
92298 2003-01-23  Jim Meyering  <jim@meyering.net>
92299
92300         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92301         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92302
92303 2003-01-23  Bruno Haible  <bruno@clisp.org>
92304
92305         * modules/minmax: New module.
92306         * MODULES.html.sh (func_all_modules): Add it.
92307
92308 2003-01-23  Bruno Haible  <bruno@clisp.org>
92309
92310         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92311         Eggert.
92312
92313 2003-01-22  Bruno Haible  <bruno@clisp.org>
92314
92315         * modules/exit: New module.
92316         * MODULES.html.sh (func_all_modules): Add it.
92317
92318 2003-01-22  Bruno Haible  <bruno@clisp.org>
92319
92320         * lib/exit.h: New file, from GNU gettext.
92321
92322 2003-01-19  Bruno Haible  <bruno@clisp.org>
92323
92324         * gnulib-tool: Recognize option --extract-maintainer.
92325         (func_get_maintainer): New function.
92326         * modules/*: Add Maintainer entry.
92327
92328 2003-01-16  Jim Meyering  <jim@meyering.net>
92329
92330         * m4/regex.m4: The `regex' struct is both input and output.
92331         Initialize it before each use.  Patch by Tim Waugh.
92332
92333 2003-01-16  Bruno Haible  <bruno@clisp.org>
92334
92335         * MODULES.html.sh: Add a table of contents. Add the module name as
92336         leftmost column. Add hyperlinks.
92337
92338 2003-01-15  Bruno Haible  <bruno@clisp.org>
92339
92340         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92341
92342 2003-01-15  Bruno Haible  <bruno@clisp.org>
92343
92344         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92345         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92346         suffix.
92347
92348 2003-01-15  Bruno Haible  <bruno@clisp.org>
92349
92350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92351
92352 2003-01-15  Bruno Haible  <bruno@clisp.org>
92353
92354         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92355         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92356
92357 2003-01-14  Jim Meyering  <jim@meyering.net>
92358
92359         * lib/same.c (same_name): Tweak a comment.
92360
92361 2003-01-14  Bruno Haible  <bruno@clisp.org>
92362
92363         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92364         when a string comparison is sufficient.
92365
92366 2003-01-14  Bruno Haible  <bruno@clisp.org>
92367
92368         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92369         'unsigned int'.
92370
92371 2003-01-14  Bruno Haible  <bruno@clisp.org>
92372
92373         * lib/hash-pjw.c: Add comment about low quality of this function.
92374
92375 2003-01-13  Bruno Haible  <bruno@clisp.org>
92376
92377         * modules/stpcpy: Distribute lib/stpcpy.h.
92378         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92379
92380 2003-01-13  Bruno Haible  <bruno@clisp.org>
92381
92382         * modules/*: Add a description.
92383         * modules/strpbrk: Fix Makefile.am snippet.
92384         * modules/strtoimax: Fix dependencies.
92385         * modules/strtoumax: Likewise.
92386
92387 2003-01-13  Bruno Haible  <bruno@clisp.org>
92388
92389         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92390         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92391         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92392
92393 2003-01-13  Bruno Haible  <bruno@clisp.org>
92394
92395         * gnulib-tool (func_create_testdir): Store config/* files in the main
92396         directory.
92397         * config.rpath: Move to ...
92398         * config/config.rpath: ... here.
92399         * modules/gettext: Contains config/config.rpath, not config.rpath.
92400         * modules/iconv: Likewise.
92401
92402 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92403
92404         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92405         to avoid collisions with libcurses and libreadline.
92406
92407         * m4/getstr.m4: Remove.
92408         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92409
92410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92411
92412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92413         to avoid collisions with libcurses and libreadline.
92414
92415         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92416         * lib/getstr.h, getstr.c: Remove.
92417         * lib/getline.c: Include "getline.h", to check interface.
92418         Move body of old getstr.c here: this defines MIN_CHUNK and
92419         declares getdelim2, which is renamed from getstr.
92420         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92421
92422         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92423         All uses changed.
92424         * lib/linebuffer.h: Likewise.
92425         (readline): Remove backward-compatibility macro.
92426
92427 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92428
92429         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92430         to avoid collisions with libcurses and libreadline.
92431         * getstr: Remove.
92432         * MODULES.html.sh: Remove getstr.
92433         * modules/getline: Depend on unlocked-io, not getstr.
92434
92435 2003-01-12  Jim Meyering  <jim@meyering.net>
92436
92437         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92438
92439 2003-01-10  Bruno Haible  <bruno@clisp.org>
92440
92441         * modules/alloca: Change Makefile.am requirements. Simplify Include
92442         requirements. Add lib/alloca_.h to file list.
92443
92444 2003-01-10  Bruno Haible  <bruno@clisp.org>
92445
92446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92447
92448 2003-01-10  Bruno Haible  <bruno@clisp.org>
92449
92450         * lib/alloca_.h: New file.
92451         * lib/getdate.y: Unconditionally include alloca.h.
92452         * lib/makepath.c: Likewise.
92453         * lib/setenv.c: Likewise.
92454         * lib/userspec.c: Likewise.
92455
92456 2003-01-09  Karl Berry  <karl@gnu.org>
92457
92458         * MODULES.html.sh: include `dirname $0` in PATH, to find
92459         gnulib-tool.
92460
92461 2003-01-09  Bruno Haible  <bruno@clisp.org>
92462
92463         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92464         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92465
92466 2003-01-09  Bruno Haible  <bruno@clisp.org>
92467
92468         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92469
92470 2003-01-09  Bruno Haible  <bruno@clisp.org>
92471
92472         * lib/stdbool.h.in: New file.
92473
92474 2003-01-09  Bruno Haible  <bruno@clisp.org>
92475
92476         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92477         * MODULES.html.sh: Likewise.
92478
92479 2003-01-08  Jim Meyering  <jim@meyering.net>
92480
92481         * lib/full-write.c: Undefine and define-away `const' after inclusion
92482         of errno.h, not before.  Suggestion from Bruno Haible.
92483
92484 2003-01-08  Bruno Haible  <bruno@clisp.org>
92485
92486         * modules/full-read: Depend on full-write.
92487
92488 2003-01-08  Bruno Haible  <bruno@clisp.org>
92489
92490         * lib/safe-read.c: Include specification header first, to ensure its
92491         selfcontainedness.
92492         * lib/full-write.c: Likewise.
92493
92494 2003-01-07  Jim Meyering  <jim@meyering.net>
92495
92496         * lib/full-write.c: Rework so that it may serve to define full_read,
92497         too.
92498         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92499
92500 2003-01-07  Bruno Haible  <bruno@clisp.org>
92501
92502         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92503         <inttypes.h>.
92504         * lib/xstrtol.h: Likewise.
92505         * lib/xstrtoimax.c: Likewise.
92506         * lib/xstrtoumax.c: Likewise.
92507         * lib/human.h: Likewise.
92508
92509         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92510         on systems that have <inttypes.h> but not <stdint.h>.
92511
92512 2003-01-07  Bruno Haible  <bruno@clisp.org>
92513
92514         * MODULES.html.sh: Add copyright notice.
92515         (missed_files): Omit CVS directory entries.
92516         (func_module): Make it work with sed-3.02.
92517         * MODULES.txt: Remove file.
92518
92519 2003-01-06  Jim Meyering  <jim@meyering.net>
92520
92521         * lib/version-etc.c: Update year in translatable copyright string.
92522
92523 2003-01-03  Karl Berry  <karl@gnu.org>
92524
92525         * config/config.{guess,sub}: update from prep.
92526
92527 2003-01-02  Karl Berry  <karl@gnu.org>
92528
92529         * doc/COPYING.DOC: belatedly updated to 1.2.
92530
92531 2003-01-01  Karl Berry  <karl@gnu.org>
92532
92533         * gnulib-tool (func_verify_module): report module name $module in
92534         error message, not $1.
92535         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92536         be created, only if it doesn't exist.
92537         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92538
92539 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92540
92541         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92542
92543 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92544
92545         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92546         memcmp if strcoll doesn't work.
92547
92548 2002-12-31  Bruno Haible  <bruno@clisp.org>
92549
92550         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92551         nonempty.
92552
92553 2002-12-31  Bruno Haible  <bruno@clisp.org>
92554
92555         * lib/memcoll.c (STRCOLL): New macro.
92556         (memcoll): Use it.
92557
92558 2002-12-31  Bruno Haible  <bruno@clisp.org>
92559
92560         * lib/localcharset.h: New file.
92561         * lib/localcharset.c: Include it.
92562         * lib/unicodeio.c: Likewise.
92563
92564 2002-12-31  Bruno Haible  <bruno@clisp.org>
92565
92566         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92567         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92568
92569 2002-12-31  Bruno Haible  <bruno@clisp.org>
92570
92571         * lib/getline.h: Include <stddef.h>, for size_t.
92572
92573         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92574         * lib/unicodeio.c: Don't include <stddef.h>.
92575
92576 2002-12-31  Bruno Haible  <bruno@clisp.org>
92577
92578         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92579         HAVE_TM_ZONE.
92580
92581 2002-12-24  Karl Berry  <karl@gnu.org>
92582
92583         * config/config.guess: update from prep.
92584
92585 2002-12-24  Bruno Haible  <bruno@clisp.org>
92586
92587         General infrasructure.
92588         * m4/README: Rewritten.
92589         * m4/onceonly.m4: New file.
92590         * m4/onceonly_2_57.m4: New file.
92591
92592         Module atexit.
92593         * m4/atexit.m4: New file.
92594
92595         Module strtod.
92596         * m4/strtod.m4: New file.
92597
92598         Module strtol.
92599         * m4/strtol.m4: New file.
92600
92601         Module strtoul.
92602         * m4/strtoul.m4: New file.
92603
92604         Module memchr.
92605         * m4/memchr.m4: New file.
92606
92607         Module memcmp.
92608         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92609         (jm_FUNC_MEMCMP): Invoke it.
92610
92611         Module memcpy.
92612         * m4/memcpy.m4: New file.
92613
92614         Module memmove.
92615         * m4/memmove.m4: New file.
92616
92617         Module memset.
92618         * m4/memset.m4: New file.
92619
92620         Module strcspn.
92621         * m4/strcspn.m4: New file.
92622
92623         Module strpbrk.
92624         * m4/strpbrk.m4: New file.
92625
92626         Module strstr.
92627         * m4/strstr.m4: New file.
92628
92629         Module strerror.
92630         * m4/strerror.m4: New file.
92631
92632         Module mktime.
92633         * m4/mktime.m4: Renamed from jm-mktime.m4.
92634         (gl_PREREQ_MKTIME): New macro.
92635         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92636
92637         Module malloc.
92638         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92639         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92640         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92641
92642         Module realloc.
92643         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92644         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92645         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92646
92647         Module strftime.
92648         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92649         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92650         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92651         gl_TM_GMTOFF.
92652         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92653
92654         Module xalloc.
92655         * m4/xalloc.m4: New file.
92656
92657         Module alloca.
92658         * m4/alloca.m4: New file.
92659
92660         Module putenv.
92661         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92662         (jm_FUNC_PUTENV): Invoke it.
92663
92664         Module setenv.
92665         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92666         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92667         when invoked twice.
92668         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92669         gt_FUNC_SETENV.
92670
92671         Module memrchr.
92672         * m4/memrchr.m4: New file.
92673
92674         Module stpcpy.
92675         * m4/stpcpy.m4: New file.
92676
92677         Module strcase.
92678         * m4/strcase.m4: New file.
92679
92680         Module strdup.
92681         * m4/strdup.m4: New file.
92682
92683         Module strnlen.
92684         * m4/strnlen.m4: New file.
92685
92686         Module strndup.
92687         * m4/strndup.m4: New file.
92688
92689         Module xstrtod.
92690         * m4/xstrtod.m4: New file.
92691
92692         Module xstrtol.
92693         * m4/xstrtol.m4: New file.
92694
92695         Module getdate.
92696         * m4/getdate.m4: New file.
92697
92698         Module unlocked-io.
92699         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92700         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92701         * m4/jm-glibc-io.m4n: Remove file.
92702
92703         Module long-options.
92704         * m4/long-options.m4: New file.
92705
92706         Module md5.
92707         * m4/md5.m4: New file.
92708
92709         Module sha.
92710         * m4/sha.m4: New file.
92711
92712         Module getstr.
92713         * m4/getstr.m4: New file.
92714
92715         Module getline.
92716         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92717         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92718         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92719         simply getline. Infoke gl_PREREQ_GETLINE.
92720
92721         Module obstack.
92722         * m4/obstack.m4: New file.
92723
92724         Module hash.
92725         * m4/hash.m4: New file.
92726
92727         Module readtokens.
92728         * m4/readtokens.m4: New file.
92729
92730         Module strverscmp.
92731         * m4/strverscmp.m4: New file.
92732
92733         Module stdbool.
92734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92735         OSF/1.
92736
92737         Module strtoll.
92738         * m4/strtoll.m4: New file.
92739
92740         Module strtoull.
92741         * m4/strtoull.m4: New file.
92742
92743         Module strtoimax.
92744         * m4/strtoimax.m4: New file.
92745
92746         Module strtoumax.
92747         * m4/strtoumax.m4: New file.
92748
92749         Module xstrtoimax.
92750         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92751         jm_AC_PREREQ_XSTRTOIMAX.
92752         Moved the strtol prerequisites to strtol.m4.
92753         Moved the strtoll prerequisites to strtoll.m4.
92754         Moved the strtoimax prerequisites to strtoimax.m4.
92755
92756         Module xstrtoumax.
92757         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92758         jm_AC_PREREQ_XSTRTOUMAX.
92759         Moved the strtoul prerequisites to strtoul.m4.
92760         Moved the strtoull prerequisites to strtoull.m4.
92761         Moved the strtoumax prerequisites to strtoumax.m4.
92762
92763         Module chown.
92764         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92765         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92766
92767         Module dup2.
92768         * m4/dup2.m4: New file.
92769
92770         Module ftruncate.
92771         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92772         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92773
92774         Module getgroups.
92775         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92776         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92777
92778         Module gettimeofday.
92779         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92780         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92781         gl_PREREQ_GETTIMEOFDAY.
92782
92783         Module mkdir.
92784         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92785         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92786
92787         Module mkstemp.
92788         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92789         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92790         jm_AC_TYPE_UINTMAX_T.
92791         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92792
92793         Module stat.
92794         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92795         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92796
92797         Module lstat.
92798         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92799         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92800
92801         Module timespec.
92802         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92803         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92804         * m4/st_mtim.m4: Indentation.
92805
92806         Module nanosleep.
92807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92808         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92809         gl_PREREQ_NANOSLEEP.
92810
92811         Module regex.
92812         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92813         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92814         (gl_REGEX): New macro.
92815
92816         Module rename.
92817         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92818         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92819
92820         Module rmdir.
92821         * m4/rmdir.m4: New file.
92822
92823         Module utime.
92824         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92825         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92826         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92827
92828         Module dirname.
92829         * m4/dirname.m4: New file.
92830
92831         Module getopt.
92832         * m4/getopt.m4: New file.
92833
92834         Module unistd-safer.
92835         * m4/unistd-safer.m4: New file.
92836
92837         Module fnmatch.
92838         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92839         declaration.
92840         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92841         (gl_FUNC_FNMATCH_POSIX): New macro.
92842         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92843         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92844         simply fnmatch.
92845
92846         Module exclude.
92847         * m4/exclude.m4: New file.
92848
92849         Module human.
92850         * m4/human.m4: New file.
92851
92852         Module acl.
92853         * m4/acl.m4: Nop.
92854
92855         Module backupfile.
92856         * m4/backupfile.m4: New file.
92857         * m4/d-ino.m4: Indentation.
92858
92859         Module fsusage.
92860         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92861         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92862         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92863
92864         Module dirfd.
92865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92866         requirements.
92867
92868         Module euidaccess.
92869         * m4/euidaccess.m4: New file.
92870
92871         Module file-type.
92872         * m4/file-type.m4: New file.
92873
92874         Module fileblocks.
92875         * m4/fileblocks.m4: New file.
92876
92877         Module filemode.
92878         * m4/filemode.m4: New file.
92879
92880         Module isdir.
92881         * m4/isdir.m4: New file.
92882
92883         Module lchown.
92884         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92885         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92886
92887         Module makepath.
92888         * m4/makepath.m4: New file.
92889
92890         Module modechange.
92891         * m4/modechange.m4: New file.
92892
92893         Module mountlist.
92894         * m4/mountlist.m4: New file.
92895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92896         Indentation.
92897
92898         Module path-concat.
92899         * m4/path-concat.m4: New file.
92900
92901         Module pathmax.
92902         * m4/pathmax.m4: New file.
92903
92904         Module same.
92905         * m4/same.m4: New file.
92906
92907         Module save-cwd.
92908         * m4/save-cwd.m4: New file.
92909
92910         Module savedir.
92911         * m4/savedir.m4: New file.
92912
92913         Module xgetcwd.
92914         * m4/xgetcwd.m4: New file.
92915         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92916
92917         Module xreadlink.
92918         * m4/xreadlink.m4: New file.
92919
92920         Module safe-read.
92921         * m4/safe-read.m4: New file.
92922
92923         Module safe-write.
92924         * m4/safe-write.m4: New file.
92925
92926         Module closeout.
92927         * m4/closeout.m4: New file.
92928
92929         Module stdio-safer.
92930         * m4/stdio-safer.m4: New file.
92931
92932         Module getpass.
92933         * m4/getpass.m4: New file.
92934
92935         Module getugroups.
92936         * m4/getugroups.m4: New file.
92937
92938         Module group-member.
92939         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92940         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92941
92942         Module idcache.
92943         * m4/idcache.m4: New file.
92944
92945         Module userspec.
92946         * m4/userspec.m4: New file.
92947
92948         Module gettime.
92949         * m4/clock_time.m4: New file.
92950         * m4/gettime.m4: New file.
92951
92952         Module settime.
92953         * m4/settime.m4: New file.
92954
92955         Module posixtm.
92956         * m4/posixtm.m4: New file.
92957
92958         Module gethostname.
92959         * m4/gethostname.m4: New file.
92960
92961         Module canon-host.
92962         * m4/canon-host.m4: New file.
92963
92964         Module gettext.
92965         * m4/codeset.m4: New file, from gettext-0.11.5.
92966         * m4/gettext.m4: New file, from gettext-0.11.5.
92967         * m4/glibc21.m4: New file, from gettext-0.11.5.
92968         * m4/iconv.m4: New file, from gettext-0.11.5.
92969         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92970         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92971         * m4/inttypes.m4: New file, from gettext-0.11.5.
92972         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92973         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92974         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92975         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92976         * m4/lib-link.m4: New file, from gettext-0.11.5.
92977         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92978         * m4/progtest.m4: New file, from gettext-0.11.5.
92979         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92980         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92981         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92982
92983         Module localcharset.
92984         * m4/localcharset.m4: New file.
92985
92986         Module hard-locale.
92987         * m4/hard-locale.m4: New file.
92988
92989         Module mbswidth.
92990         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92991         onceonly macros.
92992         * m4/mbrtowc.m4: Add comment.
92993
92994         Module memcasecmp.
92995         * m4/memcasecmp.m4: New file.
92996
92997         Module memcoll.
92998         * m4/memcoll.m4: New file.
92999
93000         Module unicodeio.
93001         * m4/unicodeio.m4: New file.
93002
93003         Module rpmatch.
93004         * m4/rpmatch.m4: New file.
93005
93006         Module yesno.
93007         * m4/yesno.m4: New file.
93008
93009         Module exitfail.
93010         * m4/exitfail.m4: New file.
93011
93012         Module c-stack.
93013         * m4/c-stack.m4 (gl_C_STACK): New macro.
93014         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93015
93016         Module error.
93017         * m4/error.m4 (gl_ERROR): New macro.
93018         (jm_PREREQ_ERROR): Use onceonly macros.
93019
93020         Module fatal.
93021         * m4/fatal.m4: New file.
93022
93023         Module getloadavg.
93024         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93025         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93026
93027         Module getpagesize.
93028         * m4/getpagesize.m4: New file.
93029
93030         Module getusershell.
93031         * m4/getusershell.m4: New file.
93032
93033         Module physmem.
93034         * m4/physmem.m4: New file.
93035
93036         Module posixver.
93037         * m4/posixver.m4: New file.
93038
93039         Module quotearg.
93040         * m4/quotearg.m4: New file.
93041
93042         Module quote.
93043         * m4/quote.m4: New file.
93044
93045         Module readutmp.
93046         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93047
93048         Module sig2str.
93049         * m4/sig2str.m4: New file.
93050
93051         Other.
93052         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93053         ulonglong.m4.
93054         * m4/intmax_t.m4: New file.
93055         * m4/d-type.m4: Indentation.
93056         * m4/jm-macros.m4: Update.
93057         * m4/prereq.m4 (jm_PREREQ): Update.
93058         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93059         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93060         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93061         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93062         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93063         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93064         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93065         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93066         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93067         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93068         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93069         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93070         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93071         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93072         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93073         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93074         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93075         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93076         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93077
93078 2002-12-24  Bruno Haible  <bruno@clisp.org>
93079
93080         * MODULES.txt: Update according to m4/ changes.
93081
93082         Module gettext.
93083         * config.rpath: New file, from gettext-0.11.5.
93084
93085         * modules/*: New module descriptions.
93086         * gnulib-tool: New file.
93087         * MODULES.html.sh: New file.
93088
93089 2002-12-21  Karl Berry  <karl@gnu.org>
93090
93091         * doc/fdl.texi: update to version 1.2.
93092
93093 2002-12-19  Karl Berry  <karl@gnu.org>
93094
93095         * config/config.guess: update from prep.
93096
93097 2002-12-18  Bruno Haible  <bruno@clisp.org>
93098
93099         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93100         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93101
93102 2002-12-17  Bruno Haible  <bruno@clisp.org>
93103
93104         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93105         stdlib.h, string.h.
93106
93107 2002-12-17  Bruno Haible  <bruno@clisp.org>
93108
93109         * lib/canon-host.c (strdup): Remove unused declaration.
93110
93111         * lib/fsusage.c: Include full_read.h.
93112         (get_fs_usage): Use full_read instead of safe_read.
93113
93114         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93115
93116 2002-12-12  Karl Berry  <karl@gnu.org>
93117
93118         * config/config.guess: update from prep.
93119
93120 2002-12-11  Bruno Haible  <bruno@clisp.org>
93121
93122         * m4/setenv.m4: New file, from gettext-0.11.5.
93123
93124 2002-12-11  Bruno Haible  <bruno@clisp.org>
93125
93126         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93127         not unsetenv().
93128         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93129         modifications:
93130
93131         2002-12-11  Bruno Haible  <bruno@clisp.org>
93132
93133                 * setenv.c (alloca): Fall back to malloc.
93134                 (freea): New macro.
93135                 (setenv): Use freea() to free memory allocated with alloca().
93136
93137         2002-11-13  Bruno Haible  <bruno@clisp.org>
93138
93139                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93140                 function declarations.
93141                 * unsetenv.c (unsetenv): Likewise.
93142
93143         2002-03-04  Bruno Haible  <bruno@clisp.org>
93144
93145                 Portability to AIX 4.3.3.
93146                 * unsetenv.c: New file, extracted from setenv.c.
93147                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93148
93149         2001-12-20  Bruno Haible  <bruno@clisp.org>
93150
93151                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93152                 use malloc instead. For SunOS 4.
93153
93154         2001-12-11  Bruno Haible  <bruno@clisp.org>
93155
93156                 * setenv.c: Declare alloca.
93157                 (compar_fn_t): New typedef.
93158                 (KNOWN_VALUE, STORE_VALUE): Use it.
93159
93160         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93161         setenv.h.
93162
93163 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93164
93165         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93166         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93167         Choose values that are less likely to collide with system fnmatch
93168         options.
93169         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93170         defined (e.g., a pure POSIX system).
93171         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93172         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93173
93174 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93175
93176         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93177         a pain in practice to deal with generated m4 files.  This change
93178         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93179
93180         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93181         and jm-glibc-io.m4, as they are no longer a special case.
93182         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93183         kludge and the auto-generation stuff.  Check only whether the
93184         functions are declared, not whether they exist, since older hosts
93185         that don't declare the functions can't use the optimization anyway.
93186
93187 2002-12-06  Jim Meyering  <jim@meyering.net>
93188
93189         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93190
93191         Merge in changes from libc's misc/error.c, in preparation
93192         for the merge of gnulib's changes back into libc.
93193
93194         * lib/error.c (_): Define only if not already defined.
93195         Move definition to follow all #include directives.
93196         Include unlocked-io.h only if !_LIBC.
93197         [_LIBC]: Include <libio/libioP.h>.
93198         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93199         (fflush): Tweak definition to use INTUSE.
93200         (putc): Define.
93201
93202 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93203
93204         * lib/alloca.c [defined emacs]: Include "lisp.h".
93205         (xalloc_die) [defined emacs]: New macro.
93206         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93207         [! defined emacs]: Include <xalloc.h>.
93208         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93209         (pointer): Typedef to POINTER_TYPE *.
93210         (malloc): Remove decl; we now always use xmalloc.
93211         (alloca): Use old-style definition, since Emacs needs this.
93212         Check for arithmetic overflow when computing combined size.
93213
93214 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93215
93216         Do not generate unlocked-io.h automatically, since it's easier to
93217         maintain it by hand.
93218
93219         * lib/unlocked-io.h: New file, from GNU diffutils,
93220         but with proper copyright notice and attribution.
93221         * lib/gen-uio: Remove.
93222         * lib/Makefile.am: Add copyright notice.
93223         (libfetish_a_SOURCES): Add unlocked-io.h.
93224         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93225         (DISTCLEANFILES, io_functions): Remove macros.
93226         (EXTRA_DIST): Remove gen_uio.
93227         (unlocked-io.h): Remove rule.
93228
93229 2002-12-04  Jim Meyering  <jim@meyering.net>
93230
93231         Reflect the fact that stat.c and lstat.c are no longer generated.
93232         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93233         (DISTCLEANFILES): Likewise.
93234         (EXTRA_DIST): Likewise.
93235         (all_local): Don't depend on stat.c or lstat.c.
93236         (stat.c, lstat.c): Remove rules.
93237         (EXTRA_DIST): Remove xstat.in.
93238
93239         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93240         * lib/stat.c: New file.  Contents mostly from xstat.in.
93241         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93242         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93243
93244         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93245         too.
93246         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93247
93248 2002-12-03  Jim Meyering  <jim@meyering.net>
93249
93250         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93251         but not semantics, to minimize the differences between these two files.
93252         (safe_read): Change comment to mention SAFE_READ_ERROR.
93253
93254         * lib/safe-read.c (IS_EINTR): Define.
93255         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93256
93257 2002-12-02  Jim Meyering  <jim@meyering.net>
93258
93259         * lib/safe-read.c (EINTR): Define.
93260         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93261         (INT_MAX): Provide fallback.
93262         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93263
93264         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93265
93266 2002-12-02  Bruno Haible  <bruno@clisp.org>
93267
93268         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93269         Define, taken from safe-read.c.
93270         (INT_MAX): Provide fallback.
93271         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93272         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93273
93274         * lib/safe-read.c (EINTR): Remove definition.
93275         (safe_read): Don't use EINTR if it is absent.
93276
93277 2002-12-01  Jim Meyering  <jim@meyering.net>
93278
93279         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93280         zero.
93281         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93282
93283 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93284
93285         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93286         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93287         with `if (! (value < limit)) abort ();', for readability.
93288
93289 2002-11-26  Karl Berry  <karl@gnu.org>
93290
93291         * lib/strdup.c: copy from libc again, with jim's ok.
93292         * lib/.cppi-disable: re-add strdup.c
93293
93294 2002-11-25  Karl Berry  <karl@gnu.org>
93295
93296         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93297         instead of "strtol.c".
93298
93299 2002-11-25  Karl Berry  <karl@gnu.org>
93300
93301         * config/install-sh: update from automake for variable quoting, $0 in
93302         error msgs, etc.
93303
93304         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93305         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93306         entry.
93307
93308 2002-11-25  Jim Meyering  <jim@meyering.net>
93309
93310         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93311
93312 2002-11-24  Karl Berry  <karl@gnu.org>
93313
93314         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93315         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93316
93317 2002-11-24  Jim Meyering  <jim@meyering.net>
93318
93319         Update from coreutils:
93320
93321         * lib/mktime.c: Merge in changes from libc.
93322
93323         Avoid a link-time failure on some Linux systems.
93324         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93325         (otherwise).
93326         (__mon_yday): Declare with the STATIC attribute.
93327         (__mktime_internal): Likewise.
93328         Based on a report from Greg Schafer.
93329
93330 2002-11-23  Jim Meyering  <jim@meyering.net>
93331
93332         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93333         Use `unsigned', not `int', as type of index.
93334
93335         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93336
93337         * lib/fsusage.c: Remove unneeded parentheses around operands of
93338         `defined'.
93339
93340 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93341
93342         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93343         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93344         so that we can be included first.
93345         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93346         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93347         No need to include stddef.h or sys/types.h any more.
93348         Surround local include files with "", not "<>".
93349         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93350         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93351         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93352         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93353         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93354         (ISPRINT): Remove; no longer needed now that we assume C89.
93355
93356         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93357         Preserve errno.
93358
93359         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93360         quotearg_char): Use SIZE_MAX rather than
93361         (size_t) -1 when we are talking about "infinity".
93362
93363         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93364
93365 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93366
93367         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93368         hint that one should use `if (! x) abort ();' rather than `assert
93369         (x);', and anyway it's one less thing to worry about configuring.
93370         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93371         hash_rehash, hash_insert): Use abort rather than assert.
93372
93373 2002-11-22  Bruno Haible  <bruno@clisp.org>
93374
93375         * lib/safe-read.h: Assume C89. Add comments.
93376         (safe_read): Change return type to size_t.
93377         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93378         byte counts > SSIZE_MAX correctly.
93379         * lib/safe-write.h: New file.
93380         * lib/safe-write.c: New file.
93381         * lib/full-read.h: New file.
93382         * lib/full-read.c: New file.
93383         * lib/full-write.h: Assume C89. Add comments.
93384         * lib/full-write.c: Include safe-write.h.
93385         (full_write): Rewritten to use safe_write.
93386         Suggested by Jim Meyering and Paul Eggert.
93387
93388 2002-11-21  Jim Meyering  <jim@meyering.net>
93389
93390         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93391
93392         Merge in changes from the coreutils.
93393
93394         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93395         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93396         <stdint.h>.
93397         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93398         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93399         int.  Work more efficiently if X is the same width as uintmax_t.
93400         Do not compare X to -1, to avoid bogus compiler warning.
93401         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93402         Don't assume that f_frsize and f_bsize are the same type.
93403
93404         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93405         warning on FreeBSD.
93406
93407         * lib/makepath.c (make_path): Restore umask *before* creating the final
93408         component.
93409         (make_path): Minor reformatting.
93410
93411         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93412         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93413         HAVE_MALLOC/HAVE_REALLOC.
93414
93415         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93416         dummy ones.  At least on GNU/Linux systems, `auto' means something
93417         else.
93418         From Michael Stone.
93419
93420 2002-11-21  Bruno Haible  <bruno@clisp.org>
93421
93422         Remove case insensitive option matching.
93423         * lib/argmatch.h (argcasematch): Remove declaration.
93424         (ARGCASEMATCH): Remove macro.
93425         (__xargmatch_internal): Remove case_sensitive argument.
93426         (XARGMATCH): Update.
93427         (XARGCASEMATCH): Remove macro.
93428         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93429         case_sensitive argument.
93430         (argcasematch): Remove function.
93431         (__xargmatch_internal): Remove case_sensitive argument.
93432         (main): Use XARGMATCH instead of XARGCASEMATCH.
93433
93434         * lib/xmalloc.c: Change compile-time error message. Add comment about
93435         required autoconf version.
93436
93437 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93438
93439         Merge argmatch cleanups from Bison.  Assume C89.
93440
93441         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93442         Include stdlib.h, for EXIT_FAILURE.
93443         Always include <string.h>, since we assume C89.
93444         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93445         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93446         Include <stddef.h> instead, since it's all we need for size_t.
93447         (PARAMS): Remove.  All uses removed.
93448         (ARRAY_CARDINALITY): Do not bother to #undef.
93449         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93450         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93451         Remove unnecessary parentheses.
93452         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93453         Insert necessary parentheses.
93454         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93455         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93456
93457 2002-11-19  Bruno Haible  <bruno@clisp.org>
93458
93459         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93460         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93461
93462         * lib/mbswidth.h (PARAMS): Remove macro.
93463         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93464         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93465
93466         * lib/gcd.h (PARAMS): Remove macro.
93467         (gcd): Use ANSI C function declarations.
93468         * lib/gcd.c (gcd): Likewise.
93469
93470 2002-11-15  Bruno Haible  <bruno@clisp.org>
93471
93472         * lib/strcspn.c: Include <stddef.h>.
93473         (strcspn): Use ANSI C function declaration. Change return type to
93474         size_t. Use NULL.
93475         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93476         (strpbrk): Use NULL.
93477         * lib/strpbrk.h (PARAMS): Remove macro.
93478         (strpbrk): Use ANSI C function declaration.
93479         * lib/strstr.c: Don't include <sys/types.h>.
93480         * lib/strstr.h (PARAMS): Remove macro.
93481         (strstr): Use ANSI C function declarations.
93482
93483 2002-11-14  Karl Berry  <karl@gnu.org>
93484
93485         * config/mkinstalldirs: `do' on separate line, instead of
93486         `for var; do'.
93487
93488 2002-11-06  Bruno Haible  <bruno@clisp.org>
93489
93490         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93491         * lib/gcd.c (gcd): Likewise.
93492
93493 2002-11-05  Bruno Haible  <bruno@clisp.org>
93494
93495         * lib/gcd.h: New file, from gettext-0.11.5.
93496         * lib/gcd.c: New file, from gettext-0.11.5.
93497
93498 2002-11-05  Bruno Haible  <bruno@clisp.org>
93499
93500         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93501         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93502         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93503         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93504
93505         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93506         <libintl.h>.
93507         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93508         <libintl.h>.
93509
93510         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93511         * lib/human.c: Include gettext.h instead of <libintl.h>.
93512         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93513         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93514         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93515         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93516         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93517         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93518         (textdomain): Remove definition.
93519         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93520
93521         * lib/long-options.c: Remove include of <libintl.h> and definition of
93522         _.
93523         * lib/same.c: Remove include of <libintl.h> and definition of _.
93524
93525 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93526
93527         * lib/config.charset: A few additions for Solaris.
93528
93529 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93530
93531         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93532         * lib/localcharset.c (locale_charset): Declare as extern "C".
93533
93534 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93535
93536         * lib/config.charset: msdos in uk_UA uses CP1125.
93537
93538 2002-11-04  Bruno Haible  <bruno@clisp.org>
93539
93540         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93541         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93542         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93543         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93544         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93545
93546 2002-11-04  Bruno Haible  <bruno@clisp.org>
93547
93548         * lib/localcharset.c (locale_charset): Don't return an empty string.
93549
93550 2002-11-04  Bruno Haible  <bruno@clisp.org>
93551
93552         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93553         aliases.
93554
93555 2002-11-04  Bruno Haible  <bruno@clisp.org>
93556
93557         * lib/config.charset: Update for newest glibc. Add canonical names
93558         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93559
93560 2002-11-04  Bruno Haible  <bruno@clisp.org>
93561
93562         * lib/config.charset: Add support for NetBSD.
93563
93564 2002-11-04  Bruno Haible  <bruno@clisp.org>
93565
93566         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93567
93568 2002-11-01  Bruno Haible  <bruno@clisp.org>
93569
93570         * configure.in: Add AC_CONFIG_AUX_DIR call.
93571         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93572         test/Makefile.
93573         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93574
93575 2002-09-28  Karl Berry  <karl@gnu.org>
93576
93577         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93578         installed automake until the next release, since changes have been
93579         made.
93580
93581 2002-09-25  Karl Berry  <karl@gnu.org>
93582
93583         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93584         * lib/getopt*: copy from libc/posix.
93585         * lib/gettext.h: copy from gettext.
93586         * lib/.cppi-disable: add strdup.c, gettext.h.
93587
93588 2002-09-25  Karl Berry  <karl@gnu.org>
93589
93590         * config/srclist.txt: enable gettext.h check.
93591         * config/config.{guess,sub}: update from prep.
93592         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93593                 from automake 1.6.3.
93594         See srclist*.
93595
93596 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93597
93598         * regex.c (PATFETCH): Remove the translating fetch.
93599         (PATFETCH_RAW): Rename to PATFETCH.
93600         (set_image_of_range): New fun.
93601         (SET_RANGE_TABLE_WORK_AREA): Use it.
93602         (regex_compile): Don't translate the pattern chars so eagerly.
93603         Only do it when inserting an `exactn' bytecode or when handling
93604         a char-range.
93605         (mutually_exclusive_p): Avoid empty statement.
93606
93607 2002-07-06  Jim Meyering  <meyering@lucent.com>
93608
93609         * m4/README: Don't mention Makefile.am.in.
93610         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93611
93612 2002-07-01  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/c-stack.c: Include sys/time.h.
93615         From Volker Borchert.
93616
93617 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93618
93619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93620
93621 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93622
93623         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93624         New macro.  Use it uniformly instead of
93625         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93626         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93627         reported by Vin Shelton.
93628
93629 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93630
93631         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93632         Do not assume SA_SIGINFO behavior.
93633         Bug reported by Jim Meyering on NetBSD 1.5.2.
93634
93635 2002-06-22  Jim Meyering  <meyering@lucent.com>
93636
93637         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93638         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93639
93640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93641         now that configure.ac uses AC_GNU_SOURCE.
93642         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93643         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93644
93645         Update to latest tools.  Suggestions from Paul Eggert.
93646         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93647         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93648         * m4/fnmatch.m4: Likewise.
93649         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93650         to AC_HEADER_STDBOOL
93651
93652 2002-06-22  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93655         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93656
93657 2002-06-22  Jim Meyering  <meyering@lucent.com>
93658
93659         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93660
93661         * lib/exitfail.c, exitfail.h: Likewise.
93662         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93663
93664         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93665         of fnmatch.h.
93666         (EXTRA_DIST): Add fnmatch_loop.c.
93667         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93668
93669         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93670         * lib/fnmatch.c: Update from diffutils-2.8.2.
93671         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93672         * lib/fnmatch.h: Remove file.
93673
93674 2002-06-21  Jim Meyering  <meyering@lucent.com>
93675
93676         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93677         * m4/mbrtowc.m4: Likewise.
93678
93679         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93680         * m4/mbswidth.m4: Reflect name change:
93681         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93683
93684         * m4/lib-link.m4: Update from gettext-0.11.2.
93685         * m4/gettext.m4: Likewise.
93686
93687         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93688         From Alfred M. Szmidt.
93689
93690 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93691
93692         * lib/file-type.h: Report an error if neither S_ISREG nor
93693         S_IFREG is defined, instead of using a test specific to glibc
93694         2.2.  This should be safe, since POSIX requires S_ISREG and
93695         Unix Version 7 had S_IFREG.  We don't need to check for
93696         <sys/types.h> since we don't use any symbols that it defines.
93697
93698 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93699
93700         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93701         $@-t, so that each temporary file name is unique and valid in the first
93702         8 characters, for operation under DOS.
93703
93704 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93705
93706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93707
93708 2002-06-15  Jim Meyering  <meyering@lucent.com>
93709
93710         Work even with DJGPP 2.03, which lacks support for symlinks.
93711         From Richard Dawe.
93712         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93713         is defined.
93714         * lib/lchown.c (S_ISLNK): Likewise.
93715
93716 2002-06-15  Jim Meyering  <meyering@lucent.com>
93717
93718         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93719         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93720         have been included before this file.
93721
93722 2002-06-14  Jim Meyering  <meyering@lucent.com>
93723
93724         * lib/file-type.h: Use the version from diffutils-2.8.2.
93725         * lib/file-type.c: Likewise.
93726
93727 2002-06-07  Jim Meyering  <meyering@lucent.com>
93728
93729         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93730         They're needed at least for NetBSD 1.5.2.
93731         ($statxfs_includes): Include those same headers.
93732         ($statxfs_includes): Include sys/vfs.h if available.
93733         ($statxfs_includes): Likewise for sys/statvfs.h.
93734         Check for the following members in both structs statfs and statvfs:
93735         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93736
93737 2002-06-01  Jim Meyering  <meyering@lucent.com>
93738
93739         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93740         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93741
93742 2002-05-28  Jim Meyering  <meyering@lucent.com>
93743
93744         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93745         Reported by Volker Borchert.
93746
93747 2002-05-27  Jim Meyering  <meyering@lucent.com>
93748
93749         Fix a problem seen only on nonconforming systems whereby ls.c's
93750         use of localtime, and then of gettimeofday would cause trouble:
93751         the localtime call used to initialize rpl_gettimeofday's save
93752         mechanism would clobber ls's current local time information so
93753         that in any long listing the first file would always be listed
93754         with date 1970-01-01.  Analysis by Volker Borchert.
93755
93756         * lib/gettimeofday.c (localtime): Undefine.
93757         (rpl_localtime): New function.
93758
93759 2002-05-27  Jim Meyering  <meyering@lucent.com>
93760
93761         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93762         localtime.
93763
93764         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93765         use the replacement function; it wouldn't resolve at link time.
93766         Reported by Volker Borchert.
93767
93768 2002-05-22  Jim Meyering  <meyering@lucent.com>
93769
93770         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93771         file-type.h.
93772         * lib/file-type.h: New file.
93773         * lib/file-type.c (file_type): New file/function.  Extracted from
93774         diffutils.
93775
93776 2002-04-30  Jim Meyering  <meyering@lucent.com>
93777
93778         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93779
93780 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93781
93782         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93783
93784 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93785
93786         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93787         Do not check for alloca.h (no longer used) or stdbool.h (was never
93788         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93789
93790 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93791
93792         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93793
93794 2002-04-29  Jim Meyering  <meyering@lucent.com>
93795
93796         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93797         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93798         Use AC_FUNC_STRNLEN here instead.
93799
93800         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93801         With autoconf-2.53a, it's part of AC_PROG_CC.
93802
93803 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93804
93805         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93807
93808 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93809
93810         * lib/sig2str.h, lib/sig2str.c: New files.
93811         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93812
93813 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93814
93815         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93816         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93817         of 127, since 64 is the largest conceivable number for ancient
93818         nonstandard hosts.
93819         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93820
93821 2002-04-28  Jim Meyering  <meyering@lucent.com>
93822
93823         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93824
93825 2002-04-24  Jim Meyering  <meyering@lucent.com>
93826
93827         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93828         (jm_PREREQ): Use it.
93829
93830         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93831         mach/mach.h fcntl.h.
93832         Check for this function: setlocale.
93833
93834 2002-04-24  Jim Meyering  <meyering@lucent.com>
93835
93836         * lib/gettext.h: New file, from Gettext.
93837         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93838         (libfetish_a_SOURCES): Add gettext.h.
93839
93840 2002-04-16  Jim Meyering  <meyering@lucent.com>
93841
93842         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93843         ut_pid, ut_id, ut_exit.
93844
93845 2002-04-16  Jim Meyering  <meyering@lucent.com>
93846
93847         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93848         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93849         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93850
93851 2002-04-12  Jim Meyering  <meyering@lucent.com>
93852
93853         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93854         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93855         existence of the getmntinfo function.  Needed for Darwin 5.3.
93856
93857         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93858         This is necessary at least on Darwin 5.3.
93859
93860         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93861         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93862         strnlen.o in the library, and that makes some versions of ranlib
93863         object.
93864
93865 2002-04-12  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93868
93869 2002-04-09  Jim Meyering  <meyering@lucent.com>
93870
93871         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93872         to be more precise.  Rather than saying we're checking whether the
93873         function `works', say what we're testing.
93874         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93875         Reported by Bruno Haible.
93876
93877 2002-03-10  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93880         Suggestion from Santiago Vila.
93881
93882 2002-03-08  Jim Meyering  <meyering@lucent.com>
93883
93884         * lib/rename.c: Mention that this wrapper is needed also on
93885         mips-dec-ultrix4.4 systems.
93886
93887 2002-03-02  Jim Meyering  <meyering@lucent.com>
93888
93889         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93890         not HAVE_CLOCK_SETTIME.
93891
93892 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93893
93894         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93895         Check for clock_settime.
93896
93897 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93898
93899         * lib/nanosleep.h: Rename to....
93900         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93901
93902         * lib/gettime.c: New file.
93903         * lib/settime.c: New file.
93904         * lib/stime.c: Remove.
93905
93906         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93907         timespec.h.  Remove nanosleep.h.
93908
93909 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93910
93911         * m4/acl.m4: New file.
93912         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93913         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93914
93915 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93916
93917         * lib/acl.c, lib/acl.h: New files.
93918         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93919
93920 2002-02-24  Jim Meyering  <meyering@lucent.com>
93921
93922         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93923         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93924         cause trouble.  Reported by Nelson Beebe.
93925
93926 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93927
93928         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93929         compilers that don't know that xalloc_die never returns.
93930
93931 2002-02-20  Jim Meyering  <meyering@lucent.com>
93932
93933         * lib/getdate.c: Regenerate using bison-1.33.
93934
93935 2002-02-17  Jim Meyering  <meyering@lucent.com>
93936
93937         * config/config.guess (main): Don't use `head -1'; it's no longer
93938         portable. Use `sed 1q' instead.
93939
93940 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93941
93942         * m4/codeset.m4: Upgrade to gettext-0.11.
93943         * m4/gettext.m4: Upgrade to gettext-0.11.
93944         * m4/glibc21.m4: Upgrade to gettext-0.11.
93945         * m4/iconv.m4: Upgrade to gettext-0.11.
93946         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93947         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93948         * m4/lib-ld.m4: New file, from gettext-0.11.
93949         * m4/lib-link.m4: New file, from gettext-0.11.
93950         * m4/lib-prefix.m4: New file, from gettext-0.11.
93951         * m4/progtest.m4: Upgrade to gettext-0.11.
93952
93953 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93954
93955         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93956         (jm_PREREQ): Use it.
93957
93958 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93959
93960         * lib/posixver.c, lib/posixver.h: New files.
93961         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93962
93963 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93964             Bruno Haible  <bruno@clisp.org>
93965
93966         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93967         (fwrite_success_callback): New declaration.
93968         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93969         print_unicode_char. Call failure callback instead of error.
93970         (fwrite_success_callback): New function.
93971         (exit_failure_callback): New function.
93972         (fallback_failure_callback): New function.
93973         (print_unicode_char): Call unicode_to_mb.
93974
93975 2002-01-26  Jim Meyering  <meyering@lucent.com>
93976
93977         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93978         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93979
93980 2002-01-26  Jim Meyering  <meyering@lucent.com>
93981
93982         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93983
93984 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93985
93986         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93987
93988 2002-01-22  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93991         Otherwise, some versions of automake would omit the rule that makes
93992         Makefile from Makefile.in.
93993
93994 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93995
93996         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93997         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93998         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93999         (memcoll): Set errno to zero if there is no error.
94000
94001         * lib/quotearg.c (quotearg_buffer_restyled):
94002         Fix bug with quoting buffers containing NUL when backslashing escapes.
94003         This bug was exposed by the other changes in this patch.
94004         (quotearg_n_options): New arg ARGSIZE.
94005         All callers changed.
94006         (quoting_options_from_style): New function.
94007         (quotearg_n_style): Use it.
94008         (quotearg_n_style_mem): New function.
94009
94010         * lib/quotearg.h (quotearg_n_style_mem): New function.
94011
94012 2002-01-19  Jim Meyering  <meyering@lucent.com>
94013
94014         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94015         Remove useless quotes: DF_PROG="df".
94016         * m4/strnlen.m4: New file.
94017
94018 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94019
94020         * lib/backupfile.c (ISDIGIT): Comment fix.
94021         * lib/getdate.y (ISDIGIT): Likewise.
94022         * lib/posixtm.c (ISDIGIT, year): Likewise.
94023         * lib/strverscmp.c (ISDIGIT): Likewise.
94024         * lib/userspec.c (ISDIGIT): Likewise.
94025
94026 2002-01-16  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/getdate.y: Add three semicolons, each just before a closing
94029         brace. Bison (as of version 1.31) no longer papers over that mistake.
94030
94031 2002-01-05  Jim Meyering  <meyering@lucent.com>
94032
94033         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94034
94035 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94036
94037         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94038         not silently exit merely because the output buffer happens to
94039         have nothing pending.
94040
94041 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94042
94043         See the big note in ../ChangeLog.
94044         * lib/human.c (suffixes): Prefer K to k for 1024.
94045         (generate_suffix_backwards): New function.
94046         (human_readable_inexact): Use it.
94047         * lib/xstrtol.c (__xstrtol): If there is no number but there
94048         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94049         Accept 'K' as well as 'k'.
94050
94051 2001-12-15  Jim Meyering  <meyering@lucent.com>
94052
94053         * lib/regex.h (__restrict_arr): Update from libc.
94054
94055         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94056         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94057         (STREQ): Define.
94058
94059 2001-12-14  Jim Meyering  <meyering@lucent.com>
94060
94061         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94062         Suggestion from Bruno Haible.
94063
94064 2001-12-10  Jim Meyering  <meyering@lucent.com>
94065
94066         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94067         xrealloc, Instead, include "xalloc.h".
94068         (initbuffer): Don't cast xmalloc return value to char*.
94069         (readline): Reword comment.
94070         Don't cast xrealloc return value to char*
94071         Return NULL, not 0.
94072
94073 2001-12-09  Jim Meyering  <meyering@lucent.com>
94074
94075         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94076         about `signed and unsigned type in conditional expression'.
94077         * lib/posixtm.c (posix_time_parse): Likewise.
94078
94079         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94080
94081         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94082         to avoid a pedantic warning.
94083
94084         * lib/getstr.c: Don't include assert.h.
94085         (getstr): Remove warning-evoking assertions.
94086         Return -1 if offset parameter is out of bounds.
94087         Change the type of a local from int to size_t.
94088
94089         * lib/strftime.c (my_strftime_localtime_r): Include this function
94090         definition in the `#if ! HAVE_TM_GMTOFF' block.
94091
94092         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94093         Include xalloc.h instead.
94094
94095 2001-12-02  Jim Meyering  <meyering@lucent.com>
94096
94097         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94098         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94099         included.
94100
94101         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94102         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94103
94104 2001-11-30  Akim Demaille  <akim@epita.fr>
94105
94106         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94107         before being defined.
94108
94109 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94110
94111         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94112         First arg is int, not unsigned.
94113         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94114         (SIZE_MAX, UINT_MAX): New macros.
94115         (quotearg_n_options): Abort if N is negative.
94116         Avoid overflow check on hosts where size_t is 64 bits and int
94117         is 32 bits, as overflow is impossible there.
94118         Fix off-by-one typo that caused unnecessary reallocation.
94119
94120 2001-11-27  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/tempname.c: Merge with version from libc.
94123         * lib/regex.c: Likewise.
94124
94125         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94126         systems for which STDC_HEADERS is 0, it was not included, resulting in
94127         a warning about an integer-to-pointer conversion problem with getenv.
94128         Reported by Volker Borchert.
94129
94130 2001-11-26  Jim Meyering  <meyering@lucent.com>
94131
94132         * lib/gtod.h: Remove file.
94133         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94134         * lib/gettimeofday.c: Don't include gtod.h.
94135         (GTOD_init): Remove function.
94136         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94137         Suggestion from Volker Borchert.
94138
94139 2001-11-23  Jim Meyering  <meyering@lucent.com>
94140
94141         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94142         it.
94143         * lib/hash.c (struct hash_table): Define it here instead.
94144
94145 2001-11-22  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94148
94149 2001-11-20  Jim Meyering  <meyering@lucent.com>
94150
94151         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94152         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94153
94154 2001-11-19  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94157         directory.  Use "conftestXXXXXX" as the template.
94158         Suggestion from Paul Eggert.
94159
94160         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94161         immediately, so the test doesn't mistakenly hit the max-open-files
94162         limit.
94163
94164 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94165
94166         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94167         (TEMPORARIES): New macro.
94168         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94169         removes an artificial limitation (e.g. HP-UX 10.20, where
94170         TMP_MAX is 17576).
94171
94172 2001-11-18  Jim Meyering  <meyering@lucent.com>
94173
94174         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94175
94176 2001-11-18  Jim Meyering  <meyering@lucent.com>
94177
94178         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94179         on SunOS 4.
94180
94181         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94182         files will be created before anything else.
94183
94184 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94185
94186         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94187         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94188
94189 2001-11-17  Jim Meyering  <meyering@lucent.com>
94190
94191         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94192         Prompted by a report from Bob Proulx.
94193
94194         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94195         Instead, require UTILS_FUNC_MKSTEMP.
94196
94197 2001-11-17  Jim Meyering  <meyering@lucent.com>
94198
94199         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94200         Now, that's done as part of AC_FUNC_STRTOD.
94201
94202 2001-11-17  Jim Meyering  <meyering@lucent.com>
94203
94204         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94205         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94206         rather than group writable.  Patch by Juan F. Codagnone.
94207
94208         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94209         xrealloc, Instead, include "xalloc.h".
94210
94211         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94212         Remove explicit declarations of xmalloc, xrealloc,
94213         and xstrdup.  Instead, include "xalloc.h".
94214
94215         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94216         unlocked-io.h.
94217         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94218         Likewise.
94219         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94220
94221         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94222         Reported by Padraig Brady.
94223
94224         * lib/mkstemp.c: #undef mkstemp.
94225         Include config.h.
94226         (rpl_mkstemp): Rename from mkstemp.
94227         Protoize.
94228
94229 2001-11-16  Jim Meyering  <meyering@lucent.com>
94230
94231         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94232         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94233         determine the amount of total physical memory, use pstat_getstatic.
94234         HPUX-11 doesn't define _SC_PHYS_PAGES.
94235         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94236         If sysconf couldn't be used to determine the amount of available
94237         physical memory, use both pstat_getstatic and pstat_getdynamic.
94238         Based on a patch from Bob Proulx.
94239
94240 2001-11-10  Jim Meyering  <meyering@lucent.com>
94241
94242         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94243         (jm_PREREQ): Use it.
94244
94245 2001-11-09  Jim Meyering  <meyering@lucent.com>
94246
94247         * m4/jm-macros.m4: Require autoconf-2.52f.
94248         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94249         Use these AC_-prefixed names, not the AM_-prefixed ones.
94250
94251         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94252
94253 2001-11-05  Jim Meyering  <meyering@lucent.com>
94254
94255         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94256
94257 2001-11-04  Jim Meyering  <meyering@lucent.com>
94258
94259         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94260         $DEFS.
94261
94262 2001-11-03  Jim Meyering  <meyering@lucent.com>
94263
94264         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94265         of AC_DEFUN.
94266
94267         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94268         know the name of the variable in the macro definition.
94269
94270 2001-11-03  Jim Meyering  <meyering@lucent.com>
94271
94272         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94273         in argmatch_to_argument call.
94274
94275         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94276         argument.
94277
94278         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94279         e.g., a fault due to an attempt to free a NULL pointer.
94280
94281 2001-11-01  Jim Meyering  <meyering@lucent.com>
94282
94283         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94284         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94285
94286 2001-11-01  Jim Meyering  <meyering@lucent.com>
94287
94288         * lib/dirfd.c, lib/dirfd.h: New files.
94289         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94290
94291         * lib/hash.c (hash_print) [TESTING]: Clean up.
94292
94293 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94296         to avoid a warning if -Wall.
94297
94298 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94299
94300         * README: New file
94301         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94302         (per RMS's instructions, this is now the canonical source)
94303         * lgpl/, gpl/: New directories.
94304
94305 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94306
94307         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94308
94309 2001-10-21  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94312         this code would end up calling gettext even in packages built
94313         with --disable-nls.
94314         * lib/getopt.c (_): Likewise.
94315         * lib/regex.c (_): Likewise.
94316
94317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94318
94319         * m4/error.m4 (jm_PREREQ_ERROR):
94320         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94321         AC_FUNC_STRERROR_R does that.
94322         Check for strerror declaration.
94323
94324         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94325         are supposed to have them these days.
94326         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94327         Merge changes from latest Autoconf CVS.
94328         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94329         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94330         POSIX decided to standardize on the int flavor of strerror_r.
94331
94332 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94333
94334         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94335         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94336         Use strerror_r that is only a macro, even if it is not a function.
94337         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94338         (private_strerror): Use prototypes, not old-style function definition.
94339         (print_errno_message): New function.
94340         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94341         char*-flavored one.
94342         (error_tail, error, error_at_line): Use it.
94343
94344 2001-10-11  Jim Meyering  <meyering@lucent.com>
94345
94346         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94347         and quote_n (1, ... to avoid clobbering a buffer.
94348
94349 2001-10-05  Jim Meyering  <meyering@lucent.com>
94350
94351         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94352         hash-pjw.h.
94353         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94354         * lib/hash-pjw.h: New file.
94355
94356 2001-09-30  Jim Meyering  <meyering@lucent.com>
94357
94358         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94359         `struct fsstat' has the `f_fstypename' member.
94360         Use that to define FS_TYPE, which is now used to make
94361         the getfsstat link test tighter.
94362
94363 2001-09-30  Jim Meyering  <meyering@lucent.com>
94364
94365         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94366         Include <sys/ucred.h>, for Apple Darwin.
94367         Include sys/mount.h and sys/fs_types.h only if available.
94368         (FS_TYPE): Define.
94369         (read_filesystem_list): Use FS_TYPE.
94370
94371 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94372
94373         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94374         a boolean context.
94375
94376 2001-09-29  Jim Meyering  <meyering@lucent.com>
94377
94378         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94379         [one-argument getmntent function]): Include stdio.h before mntent.h.
94380         SunOS 4.1.x needs it for the declaration of `FILE'.
94381         Patch by Volker Borchert.
94382
94383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94384         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94385         sys/fs_types.h, and make the link-test for getfsstat guard #include
94386         directives with appropriate #if HAVE_*_H tests so that we can
94387         detect getfsstat on Apple Darwin1.3.7 systems.
94388         Reported by Nelson Beebe.
94389         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94390
94391 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94392
94393         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94394         #defines strtoimax.  Also treat the other strto* functions
94395         like strtoimax.
94396
94397         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94398         Check for strtoul and strtoumax,
94399         as those declarations are made even in the signed case.
94400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94401         Likewise, for strtol and strtoimax.
94402
94403 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94404
94405         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94406         #defines strtoimax.  Also treat the other strto* functions
94407         like strtoimax.
94408
94409         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94410         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94411         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94412
94413 2001-09-26  Jim Meyering  <meyering@lucent.com>
94414
94415         Most macros in unlocked-io.h had the wrong number of arguments.
94416         * lib/gen-uio: New script.
94417         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94418         * lib/unlocked-io.hin: Remove file.
94419         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94420         rather than trying to embed it here.
94421         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94422         Reported by Padraig Brady.
94423
94424 2001-09-25  Volker Borchert  <bt@teknon.de>
94425
94426         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94427         `result'.
94428
94429 2001-09-24  Jim Meyering  <meyering@lucent.com>
94430
94431         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94432
94433 2001-09-23  Jim Meyering  <meyering@lucent.com>
94434
94435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94436         instead of the mere test for existence of mntent.h.  The latter
94437         would get a false-positive on AIX 3.4 systems.
94438         In the outer getmntent if-block, don't die if neither of the getmntent
94439         tests succeeds.  Instead, just fall through and continue with the
94440         remaining tests.
94441
94442 2001-09-23  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/mountlist.c: Remove useless parentheses in #if directives.
94445         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94446         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94447
94448 2001-09-22  Jim Meyering  <meyering@lucent.com>
94449
94450         * m4/gettext.m4: New file.  From gettext.
94451         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94452         * m4/progtest.m4: Likewise
94453         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94454         * m4/glibc21.m4: Likewise.
94455
94456         * m4/libintl.m4: Remove.  No longer used.
94457
94458 2001-09-22  Jim Meyering  <meyering@lucent.com>
94459
94460         * lib/localcharset.c: Update from latest gettext.
94461         * lib/config.charset: Likewise.
94462
94463 2001-09-20  Jim Meyering  <meyering@lucent.com>
94464
94465         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94466         strtoimax.
94467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94468         strtoumax.
94469
94470 2001-09-20  Jim Meyering  <meyering@lucent.com>
94471
94472         * lib/xstrtol.c (strtoimax): Guard declaration with
94473         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94474         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94475         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94476         (strtoumax): Likewise, for completeness (it wasn't necessary).
94477
94478 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94479
94480         * lib/strtoimax.c (HAVE_LONG_LONG):
94481         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94482         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94483         to work around bug in IBM C compiler.
94484
94485 2001-09-17  Jim Meyering  <meyering@lucent.com>
94486
94487         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94488         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94489         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94490         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94491         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94492         whenever the right hand side need not be expanded by the shell.
94493
94494 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94495
94496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94497         library.  It's not correct, as some older glibcs are buggy.
94498         fnmatch wasn't fixed until glibc 2.2.
94499
94500         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94501         special shell magic here.
94502
94503 2001-09-16  Jim Meyering  <meyering@lucent.com>
94504
94505         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94506         * m4/jm-macros.m4: Require it.
94507
94508 2001-09-16  Jim Meyering  <meyering@lucent.com>
94509
94510         * lib/mkdir.c: New file.
94511
94512 2001-09-15  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/jm-macros.m4: Check for help2man.
94515
94516 2001-09-11  Jim Meyering  <meyering@lucent.com>
94517
94518         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94519         The body, by Paul Eggert, was moved here from configure.in.
94520         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94521
94522 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94523
94524         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94525         (jm_PREREQ): Use it.
94526
94527 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94528
94529         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94530         Use ssize_t, not int, to store result of readlink.
94531         Check for ssize_t overflow as well as size_t overflow,
94532         as POSIX says the result of readlink is implementation-defined
94533         when ssize_t overflows.
94534         Remove unnecessary cast to char*.
94535         Use free+malloc instead of realloc, as the storage doesn't need
94536         to be preserved and it's clearer and can be more efficient that way.
94537         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94538         * lib/xreadlink.h (xreadlink): Update prototype.
94539
94540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94541
94542         * lib/xgetcwd.c: Revert some of the previous change; intead,
94543         fix the HAVE_GETCWD_NULL code to behave more like the
94544         !HAVE_GETCWD_NULL code used to.
94545
94546         Include "xalloc.h".
94547         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94548         invoke xalloc_die.
94549
94550 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94551
94552         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94553         sys/param.h, as pathmax.h includes them.
94554
94555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94556
94557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94558         (jm_PREREQ_XGETCWD): New macro.
94559
94560         * m4/getcwd.m4: New file.
94561
94562 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94563
94564         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94565         like the HAVE_GETCWD_NULL code.
94566         Include pathmax.h if not HAVE_GETCWD.
94567         Do not include xalloc.h.
94568         (INITIAL_BUFFER_SIZE): New symbol.
94569         Do not use xmalloc / xrealloc, since the caller is responsible for
94570         handling errors.  Preserve errno around `free' during failure.
94571         Do not overrun buffer when using getwd.
94572
94573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94574
94575         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94576         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94577         getcwd (NULL, 0).
94578
94579 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94580
94581         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94582         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94583         spotted by Jim Meyering.
94584
94585 2001-09-03  Jim Meyering  <meyering@lucent.com>
94586
94587         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94588         failure.
94589
94590 2001-09-02  Jim Meyering  <meyering@lucent.com>
94591
94592         * lib/error.c: Update from GNU libc.
94593
94594 2001-09-01  Jim Meyering  <meyering@lucent.com>
94595
94596         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94597         Used by df.
94598
94599 2001-09-01  Jim Meyering  <meyering@lucent.com>
94600
94601         * lib/xreadlink.c: New file.
94602         * lib/xreadlink.h: New file.
94603         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94604         xreadlink.h.
94605
94606         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94607         doesn't conflict with sparc Solaris 7's definition in
94608         /usr/include/sys/int_types.h.
94609
94610         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94611         files.
94612         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94613         and strncasecmp as r-values.  Unixware didn't have declarations.
94614
94615 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94616
94617         * lib/xstrtol.h: Add copyright notice.
94618         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94619         LONGINT_INVALID_SUFFIX_CHAR.
94620
94621 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94622
94623         * lib/xstrtol.c (strtoimax): New decl.
94624
94625 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94626
94627         * lib/xgetcwd.c: Don't include pathmax.h.
94628         Include stdlib.h and unistd.h if available.
94629         Include xalloc.h.
94630         (xmalloc, xstrdup, free): Remove decls.
94631         (xgetcwd): Don't assume sizes fit in unsigned.
94632         Check for overflow when computing sizes.
94633         Simplify reallocation code.
94634
94635 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94636
94637         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94638         a directory's st_size can have an arbitrary value, so the old
94639         usage could waste an arbitrary amount of memory.  All uses
94640         changed.
94641         * lib/savedir.h: Update prototype.
94642
94643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94644
94645         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94646
94647         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94648         old strtoimax.c.
94649
94650         Also, make the following further changes to make this file's
94651         configuration more similar to that of strtol.c:
94652         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94653         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94654         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94655         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94656         changed to signed values.
94657
94658         And make the following changes as well:
94659         Fix copyright notice, as 1999 was missing.
94660         (verify): New macro.
94661         (strtoimax): Check sizes at compile-time, not run-time.
94662         Prefer strtol to strtoll if both work.
94663         (main): Remove; it was not that useful and was a pain to maintain.
94664
94665         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94666
94667 2001-08-31  Jim Meyering  <meyering@lucent.com>
94668
94669         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94670         Use an initial, malloc'd, buffer of length 128 rather than
94671         a statically allocated one of length 1024.
94672
94673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94674
94675         Simplify code, partly by assuming autoconf 2.52 semantics.
94676
94677         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94678
94679         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94680         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94681         All uses removed.
94682         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94683         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94684         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94685         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94686         jm_AC_HEADER_INTTYPES_H.
94687         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94688
94689         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94690
94691         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94692         Quote first arg of AC_DEFUN.
94693         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94694         since they are needed to parse the include file even if we need
94695         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94697         but with opposite signedness.
94698
94699 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94700
94701         Merge 'exclude' changes from tar 1.13.22.
94702         This fixes one or two unlikely storage allocation overflow bugs,
94703         but doesn't change user-visible behavior otherwise.
94704
94705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94706
94707         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94708         (jm_PREREQ_EXCLUDE): New macro.
94709
94710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94711
94712         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94713         tm to be declared.
94714
94715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94716
94717         * lib/hash.c: Remove '2001' from copyright notice.
94718
94719 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94720
94721         * lib/full-write.h: New file.
94722         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94723         * lib/full-write.c: Correct credits, as cccp.c no longer
94724         exists and anyway it was so heavily changed from the old cccp
94725         code as to be unrecognizable.  Include full-write.h.
94726         (full_write): Return size_t, with short writes meaning failure.
94727         All callers changed.  This fixes a bug with large buffers
94728         on 64-bit hosts.
94729         * lib/utime.c: Include full-write.h.
94730
94731 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94732
94733         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94734         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94735         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94736         Include if available.
94737         (<xalloc.h>): Include
94738         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94739         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94740         collide with FNM macros.
94741         (struct patopts): New struct.
94742         (struct exclude): Use it, as exclude patterns now come with options.
94743         (new_exclude): Support above changes.
94744         (new_exclude, add_exclude_file):
94745         Initial size must now be a power of two to simplify overflow checking.
94746         (free_exclude, fnmatch_no_wildcards): New function.
94747         (excluded_filename): No longer requires options arg, as the options
94748         are determined by add_exclude.  Now returns bool, not int.
94749         (excluded_filename, add_exclude):
94750         Add support for the fancy new exclusion options.
94751         (add_exclude, add_exclude_file): Now takes int options arg.
94752         Check for arithmetic overflow when computing sizes.
94753         (add_exclude_file): xrealloc might modify errno, so don't
94754         realloc until after errno might be used.
94755
94756         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94757         New macros.
94758         (free_exclude): New decl.
94759         (add_exclude, add_exclude_file): Now takes int options arg.
94760         (excluded_filename): No longer requires options arg, as the options
94761         are determined by add_exclude.  Now returns bool, not int.
94762
94763 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94764
94765         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94766
94767 2001-08-27  Jim Meyering  <meyering@lucent.com>
94768
94769         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94770
94771         * lib/version-etc.c (N_): Remove definition.
94772         Revert most of last change.
94773         Instead, simply don't mark the `Copyright...' string for translation.
94774         Based on advice from Paul Eggert.
94775
94776         * lib/strtoxmax.c: Tweak comment.
94777
94778 2001-08-26  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94781
94782         * m4/xstrtoimax.m4: New file.
94783         * m4/xstrtoumax.m4: Add comments explaining why we
94784         AC_REPLACE_FUNCS(strtol).
94785
94786 2001-08-26  Jim Meyering  <meyering@lucent.com>
94787
94788         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94789         of copyright with `%s' so translators don't get an untranslated
94790         message in 2002.
94791         (COPYRIGHT_YEAR): Define.
94792         (version_etc): Use fprintf rather than fputs.
94793         Suggestion from Ulrich Drepper.
94794
94795         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94796
94797         * lib/strtoll.c: New file, from GNU libc.
94798         * lib/xstrtoimax.c: New file.
94799
94800         * lib/xstrtol.h: Add xstrtoimax.
94801         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94802         * lib/strtoimax.c: New file.  Likewise, but first define
94803         STRTOUXMAX_SIGNED.
94804
94805         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94806         ...
94807         * lib/strtoxmax.c: ... then renamed to this.
94808
94809 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94810
94811         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94812         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94813         (jm_AC_TYPE_INTMAX_T): New macro.
94814         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94815
94816         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94817
94818         * m4/longlong.m4: Renamed from ulonglong.m4.
94819         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94820         * m4/uintmax_t.m4: Removed.
94821
94822 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94823
94824         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94825         Port to Solaris 8, where 'sed' requires a space after the 'r'
94826         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94827         Redirect output to $tmp just once.
94828
94829 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94830
94831         * lib/addext.c (<errno.h>): Include.
94832         (errno): Declare if not defined.
94833         (addext): Work correctly when pathconf returns -1 and leaves
94834         errno alone because there is no limit.  Also, work even if
94835         pathconf returns a value greater than SIZE_MAX.
94836
94837 2001-08-12  Jim Meyering  <meyering@lucent.com>
94838
94839         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94840         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94841         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94842         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94843         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94844         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94845         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94846         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94847         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94848         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94849         utime.m4, utimes.m4, xstrtoumax.m4:
94850         Quote the first argument in each use of AC_DEFUN.
94851
94852 2001-08-12  Jim Meyering  <meyering@lucent.com>
94853
94854         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94855         Simply `return getcwd (NULL, 0);'.
94856         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94857         Use 1300 as initial value for length, not PATH_MAX.
94858
94859         * lib/pathmax.h: Clean up cpp syntax.
94860
94861 2001-08-12  Jim Meyering  <meyering@lucent.com>
94862
94863         * lib/gettimeofday.c: New file.
94864         * lib/gtod.h: New file.
94865         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94866
94867 2001-08-05  Jim Meyering  <meyering@lucent.com>
94868
94869         * m4/jm-macros.m4: Require autoconf-2.52.
94870
94871 2001-08-04  Jim Meyering  <meyering@lucent.com>
94872
94873         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94874         stmt, to get in sync with glibc.
94875
94876 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94877
94878         The following changes are from gettext 0.10.39 as maintained by
94879         Bruno Haible.
94880
94881         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94882         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94883         with inverted sense.  All uses changed.
94884
94885         * lib/mbswidth.c: Don't include <limits.h>.
94886         Include <stdlib.h> and <string.h> unconditionally.
94887         (iswcntrl, mbsinit, ISCNTRL): New macros.
94888         (mbsnwidth): Use K&R style function declarations.
94889         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94890         can optimize it when MB_CUR_MAX == 1.
94891         The width of control characters is zero, not 1.
94892
94893 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94894
94895         The following changes are from gettext 0.10.39 as maintained by
94896         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94897
94898         * m4/codeset.m4: Upgrade to serial AM1.
94899         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94900         all uses changed.  Quote first arg of AC_DEFUN.
94901         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94902
94903         * m4/iconv.m4: Upgrade to serial AM2.
94904         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94905         Add --with-libconv-prefix.
94906         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94907         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94908         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94909         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94910         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94911
94912         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94913         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94914         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94915         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94916         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94917         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94918         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94919         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94920         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94921
94922         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94923         string.h any more.
94924
94925         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94926         not the default value.
94927
94928         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94929         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94930         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94931         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94932         Also check for iswcntrl, used for wcwidth fallback.
94933         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94934         to Autoconf 2.13.
94935
94936 2001-08-03  Jim Meyering  <meyering@lucent.com>
94937
94938         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94939         as it was in the original.  Reported by Paul Eggert.
94940
94941 2001-07-16  Jim Meyering  <meyering@lucent.com>
94942
94943         * m4/gettimeofday.m4: New file.
94944         Prompted by a report from Bernhard Baehr.
94945
94946 2001-07-15  Jim Meyering  <meyering@lucent.com>
94947
94948         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94949         stuff. Now it's in ../Makefile.cfg.
94950
94951 2001-07-15  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94954         (BUILT_SOURCES): Add unlocked-io.h.
94955         (io_functions): Define.
94956         (unlocked-io.h): New rule.
94957         (DISTCLEANFILES): Add unlocked-io.h.
94958         (all-local): Depend on unlocked-io.h, to ensure it is created.
94959
94960         * lib/unlocked-io.hin: New file
94961
94962         * lib/regex.c: Update from glibc.
94963
94964 2001-07-05  Jim Meyering  <meyering@lucent.com>
94965
94966         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94967         recommendation.
94968         (libfetish_a_SOURCES): Put all .h files here instead.
94969         Remove a thus-exposed (better checks in automake) duplicate and
94970         two unnecessary .h files.
94971
94972 2001-07-04  Jim Meyering  <meyering@lucent.com>
94973
94974         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94975         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94976         distcheck failure.
94977
94978 2001-07-02  Jim Meyering  <meyering@lucent.com>
94979
94980         The following changes were prompted by suggestions from Bruno Haible.
94981
94982         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94983         is now generated.
94984         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94985         definition of EXTRA_DIST.
94986         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94987         ensure that the generated file is created/updated whenever the list
94988         of $(unlocked_functions) is changed.
94989         (jm-glibc-io.m4): New rule.
94990         (unlocked-io.h): New rule -- currently unused.
94991
94992 2001-06-24  Jim Meyering  <meyering@lucent.com>
94993
94994         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94995         unmatched right bracket, rather than kludging it with an extra,
94996         falsely-matching quote in a comment.  Patch by Akim Demaille.
94997
94998 2001-06-11  Jim Meyering  <meyering@lucent.com>
94999
95000         * lib/regex.c: Update from GNU libc.
95001
95002 2001-05-27  Jim Meyering  <meyering@lucent.com>
95003
95004         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95005         Check for ut_type in struct utmp.
95006
95007 2001-05-27  Jim Meyering  <meyering@lucent.com>
95008
95009         * lib/readutmp.h (UT_TYPE): Define.
95010
95011 2001-05-24  Jim Meyering  <meyering@lucent.com>
95012
95013         * lib/argmatch.c: Include "quote.h".
95014         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95015         quote function.  Reported by Göran Uddeborg.
95016
95017 2001-05-22  Jim Meyering  <meyering@lucent.com>
95018
95019         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95020         now that we use the package-supplied version unconditionally.
95021         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95022
95023 2001-05-21  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95026         shell syntax errors.
95027
95028 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95029
95030         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95031
95032 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95033
95034         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95035         Don't bother to check library strftime, since
95036         we'll be using our own my_strftime function anyway.
95037         Define my_strftime instead of strftime.
95038
95039 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95040
95041         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95042         which is not yet declared.
95043
95044 2001-05-15  Jim Meyering  <meyering@lucent.com>
95045
95046         * m4/regex.m4: Use proper quoting so brackets appear in the test
95047         program.
95048         Reported by, and with help from, Bruno Haible.
95049
95050 2001-05-13  Jim Meyering  <meyering@lucent.com>
95051
95052         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95053         undefined.
95054
95055 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95056
95057         dirname code cleanup.  base_name now behaves more compatibly
95058         with POSIX basename when given file names that have trailing
95059         slashes, and similarly for dir_name.  Add new primitives
95060         base_len and dir_len.  Put the directory-name-related decls
95061         into dirname.h.
95062
95063         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95064         * lib/backupfile.c (base_name): Likewise.
95065         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95066         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95067         * lib/makepath.c (strip_trailing_slashes): Likewise.
95068         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95069         ISSLASH): Likewise.
95070         * lib/rename.c (strip_trailing_slashes): Likewise.
95071         * lib/same.c (base_name): Likewise.
95072         * lib/stripslash.c (ISSLASH): Likewise.
95073
95074         * lib/addext.c: Include <dirname.h> after size_t is defined.
95075         * lib/backupfile.c: Likewise.
95076
95077         * lib/addext.c (addext): Use base_len to trim redundant
95078         trailing slashes instead of doing it ourselves.
95079         But do not trim the last slash if it is not redundant.
95080
95081         * lib/backupfile.c (find_backup_file_name,
95082         max_backup_version): Use base_len instead of rolling it ourselves.
95083         Handle the case of "" and (on DOS) "C:" correctly.
95084
95085         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95086         needed. Include <string.h>, <dirname.h>.
95087         (base_name): Allow file names ending in slashes, other than names
95088         that are all slashes.  In this case, return the basename followed
95089         by the slashes.  This is more general, and can be used in places
95090         where the original base_name purposely had an assertion failure.
95091         (base_len): New function.
95092
95093         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95094         Do not include <assert.h>; no longer needed.
95095         Include xalloc.h.
95096         (memrchr): Remove decl.
95097         (dir_name_r): Remove.
95098         (dir_len): Renamed from dirlen.  All callers changed.
95099         Rewrite in terms of base_name, for simplicity and consistency.
95100         (dir_name): Never return NULL.  All callers changed.
95101         Do not include <stdlib.h> in test program; no longer needed.
95102         return 0; is fine for test program.
95103
95104         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95105         New macros.
95106         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95107
95108         * lib/path-concat.c (path_concat): Use base_len to compute
95109         base length, not strlen; this means we cannot rely on memcpy
95110         to null-terminate.
95111
95112         * lib/same.c (STREQ): Remove.
95113         (same_name): Handle the case where the basename ends in trailing '/'.
95114
95115         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95116         a slash was stripped.  Do not strip the last slash after a
95117         file system prefix.
95118
95119 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95120
95121         * lib/Makefile.am (libfetish_a_SOURCES):
95122         Add strftime.c, since we now compile it on all hosts.
95123
95124         * lib/strftime.c (my_strftime):
95125         Define to nstrftime if emacs, but only if my_strftime is not defined.
95126         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95127         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95128         Add one more extra argument: a nanoseconds value.
95129         All uses changed.
95130         (ns): New macro.
95131         (my_strftime function): Add %N format.
95132         (emacs_strftimeu): Renamed from emacs_strftime,
95133         with extra ut argument.
95134
95135 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95136
95137         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95138
95139 2001-04-21  Jim Meyering  <meyering@lucent.com>
95140
95141         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95142         doesn't interfere.
95143
95144 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95145
95146         * m4/ftruncate.m4: Check for chsize.
95147         Link with ftruncate.o unconditionally if ftruncate is missing.
95148         This was required when cross-compiling to i586-mingw32msvc.
95149
95150 2001-04-08  Jim Meyering  <meyering@lucent.com>
95151
95152         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95153         recomputed; that's necessary when the offset spans a DST transition.
95154         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95155
95156 2001-04-02  Jim Meyering  <meyering@lucent.com>
95157
95158         * lib/regex.h, regex.c: Update from GNU libc.
95159
95160 2001-03-24  Jim Meyering  <meyering@lucent.com>
95161
95162         * m4/jm-macros.m4: Require autoconf-2.49d.
95163
95164 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95165
95166         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95167
95168 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95169
95170         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95171
95172 2001-03-17  Jim Meyering  <meyering@lucent.com>
95173
95174         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95175         now that the version in autoconf is equivalent.
95176         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95177
95178         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95179         Suggestion from Akim Demaille.
95180
95181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95182         (jm_PREREQ_TEMPNAME): New function.
95183
95184 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95185
95186         * lib/tempname.c (uint64_t): Define to uintmax_t if
95187         not defined, and if UINT64_MAX is not defined.
95188         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95189         Reported by John David Anglin.
95190
95191 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95192
95193         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95194         resolve alias if codeset is empty.
95195         * lib/config.charset (BeOS): Use wildcard syntax.
95196
95197 2001-03-13  Jim Meyering  <meyering@lucent.com>
95198
95199         * lib/path-concat.c (path_concat)
95200         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95201         concatenating e.g., `C:' and `foo'.
95202         From Bruno Haible.
95203
95204 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95205
95206         * lib/localcharset.c (locale_charset): Don't use
95207         setlocale(LC_CTYPE,NULL). Don't return NULL.
95208         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95209
95210 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95211
95212         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95213         support for DOS/DJGPP.
95214
95215 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95216
95217         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95218         lacks mkstemp.  Compile our own tempname.c if we compile our own
95219         mkstemp.c, as mkstemp relies on tempname.
95220
95221 2001-03-01  Jim Meyering  <meyering@lucent.com>
95222
95223         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95224         AH_VERBATIM really does output its argument verbatim.
95225
95226 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95227
95228         * lib/Makefile.am (libfetish_a_SOURCES):
95229         Add dup-safer.c, fopen-safer.c.
95230         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95231
95232         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95233         * lib/unistd-safer.h: New files.
95234
95235 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95236
95237         The mkstemp replacement is taken from glibc 2.2.2, with some
95238         portability fixes for use outside glibc, as follows:
95239
95240         * lib/tempname.c (struct_stat64): New macro.
95241         (direxists, __gen_tempname): Use it.
95242         This avoids a portability problem with Solaris 8.
95243
95244         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95245         (<stddef.h>, <stdint.h>, <string.h>):
95246         Include only if STDC_HEADERS || _LIBC.
95247         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95248         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95249         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95250         (__set_errno): Define this macro if <errno.h> doesn't.
95251         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95252         Define these macros if <stdio.h> doesn't.
95253         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95254         Define these macros if <sys/stat.h>
95255         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95256         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95257         __xstat64): Define if not _LIBC.
95258         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95259         (__gen_tempname): Invoke gettimeofday only if
95260         HAVE_GETTIMEOFDAY || _LIBC;
95261         otherwise, fall back on plain "time".
95262         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95263
95264         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95265
95266         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95267
95268 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95269
95270         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95271
95272 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95273
95274         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95275         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95276         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95278
95279 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95280
95281         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95282         Remove workaround macros for hosts that have mbrtowc but not
95283         mbstate_t, as we now insist on proper declarations for both
95284         before using mbrtowc.
95285
95286 2001-02-17  Jim Meyering  <meyering@lucent.com>
95287
95288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95289         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95290         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95291         UnixWare 7.1.1.
95292
95293         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95294         rather than AC_CACHE_VAL.
95295
95296 2001-02-17  Jim Meyering  <meyering@lucent.com>
95297
95298         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95299         around included file name.
95300
95301         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95302
95303         * lib/strftime.c: Update from GNU libc (the only changes were to
95304         comments).
95305
95306 2001-02-17  Jim Meyering  <meyering@lucent.com>
95307
95308         * lib/regex.c: Update from libc.
95309
95310 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95311
95312         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95313         clash.
95314
95315 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95316
95317         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95318         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95319         Reported by Mark Hounschell via Paul Eggert.
95320
95321 2001-02-07  Jim Meyering  <meyering@lucent.com>
95322
95323         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95324
95325 2001-02-05  Jim Meyering  <meyering@lucent.com>
95326
95327         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95328         it includes the patch required for `large file' support with at least
95329         HP-UX's 10.20 /bin/cc.
95330
95331 2001-02-03  Jim Meyering  <meyering@lucent.com>
95332
95333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95334         AS_IF, now that it works once again (mysteriously).
95335         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95336
95337 2001-01-30  Jim Meyering  <meyering@lucent.com>
95338
95339         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95340         * m4/chown.m4: Rename conftestchown to conftest.chown.
95341         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95342         s/conftestdir2/conftest.d2/.
95343         * m4/utimes.m4: s/conftestdata/conftest.data/
95344         Inspired by Pavel Roskin's change in autoconf.
95345
95346 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95347
95348         * lib/config.charset: Update for FreeBSD 4.2.
95349
95350 2001-01-27  Jim Meyering  <meyering@lucent.com>
95351
95352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95353         a use of AS_IF.
95354         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95355
95356 2001-01-26  Jim Meyering  <meyering@lucent.com>
95357
95358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95359         quotearg.c includes it.
95360
95361 2001-01-26  Jim Meyering  <meyering@lucent.com>
95362
95363         * lib/quotearg.c: Include stddef.h.
95364         * lib/quote.c: Include stddef.h.
95365         Reported by Axel Kittenberger.
95366
95367         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95368         line in double quotes so that it evokes a better diagnostic.
95369         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95370         Reported by Axel Kittenberger.
95371
95372 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95373
95374         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95375         as if it was a `charset'.
95376
95377 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95378
95379         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95380         has const.
95381
95382 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95383
95384         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95385         to avoid a warning.  Add back 'const' to inptr.
95386
95387 2001-01-20  Jim Meyering  <meyering@lucent.com>
95388
95389         Be sure that headers are checked before used in code compiled
95390         for the type checks.
95391         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95392         In place of that, invoke jm_CHECK_ALL_TYPES.
95393         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95394         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95395         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95396         The check for ssize_t was mistakenly run before the test for unistd.h.
95397
95398         The configure-time check for stdbool.h was missing.
95399         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95400         (jm_PREREQ_HASH): New function.
95401
95402 2001-01-17  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95405         for autoconf-2.49c.
95406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95407
95408 2001-01-16  Jim Meyering  <meyering@lucent.com>
95409
95410         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95411         From Bruno Haible.
95412
95413 2001-01-14  Jim Meyering  <meyering@lucent.com>
95414
95415         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95416         foo and bar.  Create conftestdir/ in the script, not in the C code.
95417         Remove directories in the script, not in the C code.
95418         Remove conftestdir{,2} before trying to create the directory.
95419         Make the entire configure script fail if the mkdir fails.
95420
95421 2001-01-14  Jim Meyering  <meyering@lucent.com>
95422
95423         * lib/rename.c: New file.  From Volker Borchert.
95424         Include stdlib.h, string.h or strings.h, and xalloc.h.
95425         Use strip_trailing_slashes rather than open-coding it.
95426
95427 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95428
95429         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95430
95431 2001-01-03  Jim Meyering  <meyering@lucent.com>
95432
95433         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95434         of local `inptr' to avoid warning with some system declarations of
95435         iconv.
95436
95437 2001-01-02  Volker Borchert  <bt@teknon.de>
95438
95439         * m4/rename.m4: New file.
95440         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95441
95442 2001-01-01  Jim Meyering  <meyering@lucent.com>
95443
95444         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95445         even on systems with utmpx.h.  It's necessary for the declaration of
95446         utmp's ut_user member.  Reported by Andreas Jaeger.
95447
95448         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95449         available. They are required for the declarations of getgrgid and
95450         getpwuid resp.
95451         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95452         Reported by Andreas Jaeger.
95453
95454 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95455
95456         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95457         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95458         so `make install' also works in VPATH builds.
95459
95460 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95461
95462         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95463         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95464         can be used in subdirectories.
95465
95466 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95467
95468         * lib/modechange.c: Do not assume that mode_t uses the
95469         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95470         the other-execute bit of FOO even if S_IXOTH != 1.
95471
95472         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95473         WOTH, XOTH, ALLM): New macros.
95474         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95475          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95476         Use them.
95477         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95478         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95479         (mode_compile):
95480         No need to use uintmax_t; unsigned long is long enough.
95481         Don't bother to get suffix since we don't use it.
95482
95483 2000-12-26  Jim Meyering  <meyering@lucent.com>
95484
95485         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95486         better with autoheader.
95487
95488 2000-12-24  Jim Meyering  <meyering@lucent.com>
95489
95490         * lib/hash.c (is_prime): Return explicit boolean values.
95491         (hash_get_first): Return NULL to appease Irix5.6's 89.
95492         Reported by Nelson Beebe.
95493
95494 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95495
95496         * lib/localcharset.c (locale_charset): Add support for Win32.
95497
95498 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95499
95500         * lib/physmem.h, lib/physmem.c: New files.
95501
95502         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95503         (noinst_HEADERS): Add physmem.h.
95504
95505         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95506         't' for compatibility with Solaris 8 sort.
95507
95508 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95509
95510         * lib/config.charset: Add support for BeOS.
95511
95512 2000-12-17  Jim Meyering  <meyering@lucent.com>
95513
95514         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95515         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95516
95517 2000-12-16  Jim Meyering  <meyering@lucent.com>
95518
95519         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95520         N and M) would have treated it like `chown N:N FILE'.
95521
95522         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95523
95524 2000-12-16  Jim Meyering  <meyering@lucent.com>
95525
95526         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95527         SHELLS_FILE to a file name that's useful on djgpp systems.
95528         Include stdlib.h.
95529         (ADDITIONAL_DEFAULT_SHELLS): Define.
95530         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95531         Based mostly on a patch from Prashant TR.
95532
95533 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95534
95535         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95536         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95537         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95538
95539 2000-12-08  Andreas Schwab  <schwab@suse.de>
95540
95541         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95542         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95543
95544 2000-12-07  Jim Meyering  <meyering@lucent.com>
95545
95546         * lib/stripslash.c (ISSLASH): Define.
95547         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95548         `/'.
95549         From Prashant TR.
95550
95551         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95552         (dir_name_r): Declare this function as static.
95553         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95554         manifest itself on a name containing a mix of slashes and
95555         backslashes.
95556         Make this function work with names starting with a DOS-style
95557         drive letter and colon prefix.
95558         (dir_name): Append `.' if necessary.
95559         Based mostly on patches from Prashant TR and Eli Zaretskii.
95560
95561         * lib/dirname.h (dir_name_r): Remove prototype.
95562
95563 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95564
95565         * m4/off_t-format.m4: Remove this file.
95566         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95567
95568 2000-12-06  Jim Meyering  <meyering@lucent.com>
95569
95570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95571         replacement strtoull, we may well need the replacement strtoul, too.
95572         Check for declarations of strtoul and strtoull.
95573         Check for strtol.  Mainly as a cue to cause automake to include
95574         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95575         Check for limits.h -- strtol.c needs it.
95576
95577 2000-12-05  Jim Meyering  <meyering@lucent.com>
95578
95579         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95580
95581 2000-12-04  Jim Meyering  <meyering@lucent.com>
95582
95583         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95584         Also include memory.h, stdlib.h, unistd.h if appropriate.
95585         Reported by Andreas Jaeger (conflicting declaration of malloc).
95586
95587 2000-12-02  Jim Meyering  <meyering@lucent.com>
95588
95589         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95590         * m4/jm-macros.m4 (jm_MACROS): require it.
95591
95592 2000-12-02  Jim Meyering  <meyering@lucent.com>
95593
95594         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95595
95596 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95597
95598         * lib/memrchr.c: Include <config.h> before any system include file.
95599
95600 2000-11-30  Jim Meyering  <meyering@lucent.com>
95601
95602         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95603
95604 2000-11-30  Jim Meyering  <meyering@lucent.com>
95605
95606         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95607
95608 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95609
95610         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95611
95612 2000-11-26  Jim Meyering  <meyering@lucent.com>
95613
95614         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95615
95616 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95617
95618         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95619         size of (size_t) -1; it's not portable.
95620
95621 2000-11-17  Jim Meyering  <meyering@lucent.com>
95622
95623         * lib/strstr.c: Update from GNU libc.
95624
95625 2000-11-17  Akim Demaille  <akim@epita.fr>
95626
95627         * lib/obstack.h: Formatting changes.
95628         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95629         prevent type checking.
95630         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95631         cast the value to (void *): assigning a `foo *' to a `void *'
95632         variable is valid.
95633         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95634
95635 2000-11-16  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95638
95639 2000-11-11  Jim Meyering  <meyering@lucent.com>
95640
95641         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95642
95643 2000-11-10  Jim Meyering  <meyering@lucent.com>
95644
95645         * lib/obstack.h: Update from GNU libc.
95646         * lib/obstack.c: Likewise.
95647
95648 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95649
95650         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95651
95652 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95653
95654         * lib/getusershell.c (setusershell): Use rewind rather than
95655         fseek/fseeko, to avoid configuration hassles with fseeko.
95656         Don't bother opening SHELLS_FILE if shellstream is NULL;
95657         it's not necessary.
95658
95659 2000-11-05  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/makepath.h (make_dir): Declare.
95662         * lib/makepath.c (make_dir): Remove `static' attribute.
95663         Tweak a comment.
95664
95665 2000-11-04  Jim Meyering  <meyering@lucent.com>
95666
95667         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95668
95669 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95670
95671         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95672         last one in a bucket, advance to the next bucket.
95673
95674 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95675
95676         * lib/fnmatch.c: Do not comment out all the code if we are using
95677         the GNU C library, because in some cases we are replacing buggy
95678         code in the GNU C library itself.
95679
95680 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95681
95682         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95683         (regex_compile): Catch bogus \(\1\).
95684
95685 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95686
95687         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95688         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95689         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95690
95691 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95692
95693         * lib/error.h, getline.h, modechange.h:
95694         Remove "2000" from Copyright line, as the file hasn't been
95695         changed this year other than in the copyright notice.
95696
95697         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95698         was changed this year.
95699
95700 2000-10-29  Jim Meyering  <meyering@lucent.com>
95701
95702         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95703         renaming.
95704         * m4/ls-mntd-fs.m4: Likewise
95705
95706 2000-10-29  Jim Meyering  <meyering@lucent.com>
95707
95708         * lib/xstat.in: Fix grammar in comment.
95709
95710 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95711
95712         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95713         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95714         doesn't define __restrict_arr.
95715
95716 2000-10-28  Jim Meyering  <meyering@lucent.com>
95717
95718         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95719         (jm_PREREQ_MEMCHR): New function.
95720
95721 2000-10-28  Jim Meyering  <meyering@lucent.com>
95722
95723         * lib/memchr.c: Update from libc.
95724         Adjust for portability:
95725         [HAVE_STDLIB_H]: Include stdlib.h.
95726         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95727         Undef __memchr, too.
95728         [!weak_alias]: Define __memchr to memchr.
95729
95730         * lib/regex.c: Update from libc.
95731         * lib/regex.h: Likewise.
95732         * lib/getopt1.c: Likewise.
95733         * lib/memcmp.c: Likewise.
95734
95735         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95736         Avoid using fseek, when possible -- it's broken by design.
95737         Patch by Ulrich Drepper.
95738
95739 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95740
95741         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95742         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95743         Giving in to popular pressure to shut up the compiler with casts.
95744
95745 2000-10-26  Jim Meyering  <meyering@lucent.com>
95746
95747         * lib/strftime.c: Update from libc.
95748
95749 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95750
95751         * regex.c: More `unsigned char' -> `re_char' changes.
95752         Also change several `int' into `re_wchar_t'.
95753         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95754         (PUSH_FAILURE_POINTER): Don't cast any more.
95755         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95756         We want GCC to complain, since this piece of code makes
95757         re_match non-reentrant, which *should* be fixed.
95758         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95759         (EXTEND_BUFFER): Use RETALLOC.
95760         (SET_LIST_BIT): Don't cast.
95761         (re_wchar_t): New type.
95762         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95763         that those two functions will always properly return.
95764         (IMMEDIATE_QUIT_CHECK): Cast to void.
95765         (analyse_first): Use recursion rather than an explicit stack.
95766         (re_compile_fastmap): Can't fail anymore.
95767         (re_search_2): Don't check re_compile_fastmap for failure.
95768         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95769         Now also sets the new value (passed in a new argument).
95770         (re_match_2_internal): Use it.
95771         Also, use a new var `reg' of type size_t when looping through regs
95772         rather than reuse the inappropriate `mcnt'.
95773
95774 2000-10-25  Jim Meyering  <meyering@lucent.com>
95775
95776         * lib/obstack.c: Update from libc.
95777
95778 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95779
95780         * regex.c (regex_compile): Change the way of handling a range from
95781         a char less than 256 to a char not less than 256.
95782
95783 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95784
95785         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95786         NT-Emacs only.
95787         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95788         so that re_search functions only quit when callers expect them to.
95789
95790 2000-10-23  Jim Meyering  <meyering@lucent.com>
95791
95792         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95793         wrong.  That set_locale call must not have any side effects.
95794         From Paul Eggert.
95795
95796 2000-10-22  Jim Meyering  <meyering@lucent.com>
95797
95798         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95799         [CYCLIC]: Remove now-unused definition.
95800
95801         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95802         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95803         Suggestion from Ulrich Drepper.
95804
95805 2000-10-21  Jim Meyering  <meyering@lucent.com>
95806
95807         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95808         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95809         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95810
95811 2000-10-21  Jim Meyering  <meyering@lucent.com>
95812
95813         * lib/dirname.c (memrchr): Declare if necessary.
95814         (dir_name): Remove the restriction that there be no
95815         trailing slashes.  Now, this code skips past them, effectively
95816         ignoring them.
95817         [TEST_DIRNAME] (main): New unit tests.
95818
95819         * lib/memrchr.c: New file from GNU libc.
95820         Undef __memrchr, too.
95821         [!weak_alias]: Define __memrchr to memrchr.
95822         Guard weak_alias use with `#ifdef weak_alias'.
95823
95824 2000-10-21  Jim Meyering  <meyering@lucent.com>
95825
95826         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95827         (dir_name): Use dir_name_r.
95828         * lib/dirname.h (dir_name_r): Declare it.
95829
95830 2000-10-17  Jim Meyering  <meyering@lucent.com>
95831
95832         * lib/quote.h (PARAMS): Define and use.
95833         Reported by Akim Demaille.
95834
95835         * lib/getopt.c: Update from libc.
95836
95837 2000-10-16  Jim Meyering  <meyering@lucent.com>
95838
95839         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95840         setlocale.
95841         From Jan Fedak.
95842
95843 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95844
95845         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95846
95847 2000-09-25  Jim Meyering  <meyering@lucent.com>
95848
95849         * lib/md5.h (rol): Define (from GnuPG).
95850
95851         * lib/sha.c: Give credit (GnuPG) where due.
95852         (M): Use rol rather than open-coding it.
95853         Add a FIXME comment.
95854
95855 2000-09-21  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95858         Reported by Michael Stone.
95859
95860 2000-09-20  Jim Meyering  <meyering@lucent.com>
95861
95862         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95863         (noinst_HEADERS): Add sha.h.
95864         Based on code from Scott G. Miller and from GnuPG.
95865
95866 2000-09-18  Jim Meyering  <meyering@lucent.com>
95867
95868         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95869         LIBS. Otherwise, everyone ends up linking with -lelf for some
95870         configurations.
95871         Reported by Mike Stone.
95872
95873 2000-09-15  Jim Meyering  <meyering@lucent.com>
95874
95875         * lib/regex.c: Update from libc.
95876
95877 2000-09-10  Jim Meyering  <meyering@lucent.com>
95878
95879         * lib/getopt.c (_getopt_internal): Update from glibc.
95880
95881 2000-09-09  Jim Meyering  <meyering@lucent.com>
95882
95883         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95884         think it should be used as a general replacement for isascii.
95885         * lib/fnmatch.c: Likewise.
95886         * lib/mbswidth.c: Likewise
95887         * lib/regex.c: Likewise.
95888
95889         Don't use atoi.
95890         * lib/userspec.c: Include sys/param.h and limits.h.
95891         Include xstrtol.h.
95892         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95893         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95894         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95895         UID, GID.  Check range.
95896
95897 2000-09-06  Jim Meyering  <meyering@lucent.com>
95898
95899         * lib/getopt.c (_getopt_internal): Update from glibc.
95900
95901 2000-08-30  Jim Meyering  <meyering@lucent.com>
95902
95903         * lib/strftime.c: Merge in changes from GNU libc.
95904
95905 2000-08-26  Jim Meyering  <meyering@lucent.com>
95906
95907         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95908         * m4/fpending.m4: New file.
95909
95910 2000-08-26  Jim Meyering  <meyering@lucent.com>
95911
95912         * lib/closeout.c: Include "__fpending.h".
95913         (close_stdout_status): Return right away if there's nothing to flush.
95914
95915         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95916         * lib/__fpending.c: New file.
95917         * lib/__fpending.h: New file.
95918
95919 2000-08-20  Jim Meyering  <meyering@lucent.com>
95920
95921         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95922         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95923         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95924
95925 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95926
95927         Improve fileutils installation on systems where running
95928         programs (like install) can't be unlinked.
95929         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95930         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95931
95932 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95933
95934         Standardize on "memory exhausted" instead of "Memory exhausted"
95935         or "virtual memory exhausted".
95936         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95937         "virtual memory exhausted".
95938         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95939         our own message.
95940         * lib/userspec.c (parse_user_spec): Likewise.
95941         * lib/bumpalloc.h: comment fix
95942         * lib/same.c, userspec.c: Include xalloc.h.
95943
95944         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95945         not char *const and pointing to a constant array.
95946         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95947         (xrealloc): Comment fix.
95948
95949         * lib/userspec.c (parse_user_spec):
95950         Don't translate a message until just before returning,
95951         to avoid unnecessary translation.
95952
95953 2000-08-07  Jim Meyering  <meyering@lucent.com>
95954
95955         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95956         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95957         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95958         getgroups.c, gethostname.c, getopt.h, group-member.c,
95959         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95960         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95961         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95962         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95963         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95964         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95965         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95966         yesno.c: Back out Copyright date changes for each file with no change
95967         this year.  This eases coordination with other programs using the same
95968         source code modules.  From Paul Eggert.
95969
95970 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95971
95972         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95973         not char, for compatibility with glibc 2.1.3 strftime.c.
95974
95975 2000-08-03  Greg McGary  <greg@mcgary.org>
95976
95977         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95978         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95979         (EXTEND_BUFFER): Use them.
95980
95981 2000-08-01  Jim Meyering  <meyering@lucent.com>
95982
95983         * lib/dirname.c (ISSLASH): Define.
95984         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95985         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95986         both `\' and `/' may be use as path separators.
95987         Based on a patch from Prashant TR.
95988
95989 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95990
95991         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95992         slot vector a constant, since it might get modified.
95993
95994 2000-07-31  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/xmalloc.c: Use `virtual memory exhausted', not
95997         `Memory exhausted'.
95998         * lib/obstack.c (print_and_abort): Likewise.
95999
96000 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96001
96002         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96003         buffer, so that the caller can always quote one small
96004         component of a "memory exhausted" message in slot 0.
96005         From a suggestion by Jim Meyering.
96006
96007 2000-07-30  Jim Meyering  <meyering@lucent.com>
96008
96009         * lib/makepath.c (make_path): Quote the other instance, too.
96010
96011         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96012         (STATIC_BUF_SIZE): Define.
96013         (quotearg_n_options): Use only statically allocated storage when
96014         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96015         than STATIC_BUF_SIZE.
96016
96017 2000-07-29  Jim Meyering  <meyering@lucent.com>
96018
96019         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96020         * lib/dirname.c (dir_name): Likewise.
96021
96022         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96023         `/'.
96024
96025         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96026         (dir_name): Assert that there are no trailing slashes.
96027
96028 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96029
96030         * lib/mbswidth.h (mbswidth): Add a flags argument.
96031         (mbswidth): New declaration.
96032         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96033         * lib/mbswidth.c (mbswidth): Add a flags argument.
96034         (mbsnwidth): New function.
96035
96036 2000-07-24  Jim Meyering  <meyering@lucent.com>
96037
96038         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96039
96040 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96041
96042         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96043
96044 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96045
96046         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96047         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96048         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96049         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96050         invoke multibyte primitives.
96051
96052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96053
96054         * lib/quotearg.c:
96055         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96056         so that mbstate_t is always defined.
96057
96058         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96059         be 1 in at least one GCC installation, and this configuration
96060         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96061         performance on hosts that have mbrtowc but have only unibyte
96062         locales, but I assume these hosts are rare.
96063
96064 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96065
96066         * lib/mbswidth.c (_XOPEN_SOURCE):
96067         Don't define; this causes problems on Solaris 7.
96068         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96069
96070 2000-07-23  Jim Meyering  <meyering@lucent.com>
96071
96072         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96073         too: getgrgid, getpwuid, getuid.
96074
96075 2000-07-23  Jim Meyering  <meyering@lucent.com>
96076
96077         * lib/basename.c (base_name): Add an assertion.
96078
96079 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96080
96081         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96082         shadow its mbsinit function.
96083
96084 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96085
96086         * lib/mbswidth.h: New file.
96087         * lib/mbswidth.c: New file.
96088         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96089         (noinst_HEADERS): Add mbswidth.h.
96090
96091 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96092
96093         * lib/config.charset: Add support for FreeBSD. Improve support for
96094         HP-UX and IRIX 6.
96095
96096 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96097
96098         * m4/mbswidth.m4: New file.
96099         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96100
96101 2000-07-15  Jim Meyering  <meyering@lucent.com>
96102
96103         * lib/makepath.c: Include quote.h.
96104         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96105         corresponding argument in a `quote (...)' call.
96106         Give better diagnostics.
96107
96108         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96109         (noinst_HEADERS): Add quote.h.
96110
96111         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96112         from tar's src/misc.c.
96113         * lib/quote.h: New file.  Prototypes for same.
96114
96115 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96116
96117         From a suggestion by Bruno Haible.
96118         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96119         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96120         to decide whether to define the BeOS workaround macro;
96121         this adjusts to the change to AC_MBSTATE_T.
96122
96123 2000-07-14  Jim Meyering  <meyering@lucent.com>
96124
96125         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96126         jm_AC_TYPE_UINTMAX_T.
96127
96128 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96129
96130         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96131
96132         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96133         quotearg_buffer_restyled): Add support for
96134         clocale_quoting_style.  Undo previous change to
96135         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96136         and "{RIGHT QUOTATION MARK}" msgids.
96137
96138 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96139
96140         From a suggestion by Bruno Haible.
96141         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96142         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96143         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96144         and mbstate_t, to a single-part test that simply defines mbstate_t.
96145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96146         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96147
96148 2000-07-10  Jim Meyering  <meyering@lucent.com>
96149
96150         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96151
96152         * m4/gnu-source.m4: Output to confdefs.h directly.
96153         Suggestion from Akim Demaille.
96154
96155 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96156
96157         The old behavior of quoting `like this' doesn't look good with
96158         newer, ISO-style fonts.  See:
96159         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96160
96161         Instead, quote "like this" by default.  Let the translator
96162         tailor the locale-specific quoting behavior by providing
96163         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96164
96165         * lib/quotearg.c (N_): New macro.
96166         (gettext_default): New function.
96167         (quotearg_buffer_restyled): Use
96168         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96169         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96170
96171 2000-07-09  Jim Meyering  <meyering@lucent.com>
96172
96173         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96174         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96175
96176         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96178
96179 2000-07-09  Jim Meyering  <meyering@lucent.com>
96180
96181         * lib/Most files: Update copyright dates to include 2000.
96182
96183 2000-07-08  Jim Meyering  <meyering@lucent.com>
96184
96185         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96186         if not defined.
96187         (xgethostname): Remove now-unnecessary #ifdef.
96188         Move declaration of `err' into loop where it's used.
96189
96190 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96191         and Bruno Haible  <haible@clisp.cons.org>
96192
96193         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96194         only if the test for an object-type mbstate_t fails.  This
96195         prevents us from mistakenly reporting that mbstate_t is a
96196         system object type after we "#define mbstate_t int" to work
96197         around its lack.
96198
96199 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96200         and Bruno Haible  <haible@clisp.cons.org>
96201
96202         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96203
96204 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96205
96206         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96207         to strerror_r.
96208         Include <ctype.h> for use of isalpha.
96209
96210 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96211
96212         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96213         by allocating a larger buffer. Test the gethostname return value for
96214         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96215         returns an error and ENAMETOOLONG isn't defined.
96216
96217 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96218
96219         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96220         dimension.
96221
96222 2000-07-04  Jim Meyering  <meyering@lucent.com>
96223
96224         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96225         of the deprecated AC_CHECKING.
96226
96227 2000-07-04  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96230         Reported by Bruno Haible.
96231
96232 2000-07-04  Jim Meyering  <meyering@lucent.com>
96233
96234         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96235         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96236         lacks mbrtowc.
96237
96238 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96241         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96242
96243 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96244         and Bruno Haible  <haible@clisp.cons.org>
96245
96246         * lib/quotearg.c (mbrtowc):
96247         Assign to *pwc, and return 1 only if result is nonzero.
96248         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96249
96250 2000-07-03  Jim Meyering  <meyering@lucent.com>
96251
96252         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96253
96254 2000-07-03  Jim Meyering  <meyering@lucent.com>
96255
96256         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96257         This is necessary to get a definition of e.g., UTMP_FILE on
96258         HP-UX 10.20.
96259         From Bob Proulx.
96260
96261 2000-07-02  Jim Meyering  <meyering@lucent.com>
96262
96263         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96264
96265         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96266         AC_LIBOBJ(function_name).
96267         * m4/chown.m4: Likewise.
96268         * m4/fnmatch.m4: Likewise.
96269         * m4/ftruncate.m4: Likewise.
96270         * m4/getgroups.m4: Likewise.
96271         * m4/getline.m4: Likewise.
96272         * m4/group-member.m4: Likewise.
96273         * m4/jm-macros.m4: Likewise.
96274         * m4/lstat.m4: Likewise.
96275         * m4/malloc.m4: Likewise.
96276         * m4/memcmp.m4: Likewise.
96277         * m4/nanosleep.m4: Likewise.
96278         * m4/putenv.m4: Likewise.
96279         * m4/realloc.m4: Likewise.
96280         * m4/regex.m4: Likewise.
96281         * m4/stat.m4: Likewise.
96282         * m4/strftime.m4: Likewise.
96283
96284 2000-07-02  Jim Meyering  <meyering@lucent.com>
96285
96286         * lib/quotearg.c (mbstate_t): Don't define here.
96287
96288 2000-07-02  Jim Meyering  <meyering@lucent.com>
96289
96290         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96291
96292 2000-07-01  Jim Meyering  <meyering@lucent.com>
96293
96294         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96295
96296 2000-07-01  Jim Meyering  <meyering@lucent.com>
96297
96298         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96299         problem.
96300
96301 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96302
96303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96304         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96305
96306 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96307
96308         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96309         per change in ../m4/ls-mntd-fs.m4.
96310         (read_filesystem_list): Ignore symbolic links.
96311
96312 2000-06-29  Jim Meyering  <meyering@lucent.com>
96313
96314         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96315         for declaration of strcmp.
96316
96317         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96318
96319         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96320         Avoid warning by casting result to `char *' to remove `const'.
96321
96322 2000-06-28  Jim Meyering  <meyering@lucent.com>
96323
96324         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96325         included by quotearg.c, for which we perform this test.  From
96326         Bruno Haible.
96327
96328 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96329
96330         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96331         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96332         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96333
96334 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96335
96336         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96337
96338 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96339
96340         savedir now sets errno on failure and invokes xmalloc to get memory.
96341         Fix a couple of other minor bugs while we're at it.
96342
96343         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96344         (NAMLEN): Remove macro.
96345         (malloc, realloc): Remove decls.
96346         (stpcpy): Likewise.
96347         ("xalloc.h"): Include.
96348         (NAME_SIZE_DEFAULT): New macro.
96349         (savedir): Use xmalloc / xrealloc to allocate memory.
96350         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96351         Skip "" directory entries.
96352         Use strlen to calculate directory entry length, since the old method
96353         is rarely used these days and isn't worth supporting.
96354         Don't use a pointer after freeing it.
96355         Check for integer overflow when calculating allocation size.
96356         Use memcpy to copy entries, instead of stpcpy.
96357         Set errno properly when returning NULL.
96358         Check for readdir error.
96359
96360 2000-06-26  Jim Meyering  <meyering@lucent.com>
96361
96362         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96363
96364 2000-06-25  Jim Meyering  <meyering@lucent.com>
96365
96366         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96367         Linux header bug when _XOPEN_SOURCE is defined to 500.
96368
96369 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96370
96371         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96372         deficiency.
96373
96374 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96375
96376         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96377         Include xalloc.h.
96378         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96379
96380 2000-06-24  Jim Meyering  <meyering@lucent.com>
96381
96382         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96383         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96384         for which strerror does return char*, but which lacks a conveniently
96385         accessible declaration of the function.  If the compile-test says
96386         strerror_r doesn't work, then resort to a `run'-test that works on
96387         BeOS and segfaults on DEC Unix.
96388
96389 2000-06-24  Jim Meyering  <meyering@lucent.com>
96390
96391         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96392
96393 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96394
96395         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96397
96398 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96399
96400         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96401         (mbrtowc, mbstate_t): Define substitutes if
96402         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96403         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96404         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96405
96406 2000-06-23  Jim Meyering  <meyering@lucent.com>
96407
96408         * m4/afs.m4: Add missing AC_MSG_RESULT.
96409         Reported by Bruno Haible.
96410
96411         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96412         Suggestion from Bruno Haible.
96413
96414 2000-06-23  Jim Meyering  <meyering@lucent.com>
96415
96416         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96417
96418 2000-06-21  Jim Meyering  <meyering@lucent.com>
96419
96420         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96421
96422 2000-06-21  Jim Meyering  <meyering@lucent.com>
96423
96424         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96425         (noinst_HEADERS): Add getstr.h.
96426
96427         * lib/getline.c (getstr): Move into a separate file.
96428         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96429         the following changes: new parameter, delim2; both delim[12]
96430         parameters have type `int', not `char'.  The latter would lose
96431         with 8-bit delimiters.
96432         * lib/getstr.h: New file.
96433
96434 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96435
96436         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96437         than 1024, return a memory chunk of least possible size, instead
96438         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96439         Use free/xmalloc instead of xrealloc to avoid copying for very long
96440         paths.
96441
96442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96443
96444         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96445         the empty string.
96446
96447 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96448
96449         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96450         address, not strdup.  Include <stdlib.h> and don't declare free().
96451
96452 2000-06-19  Jim Meyering  <meyering@lucent.com>
96453
96454         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96455
96456 2000-06-18  Jim Meyering  <meyering@lucent.com>
96457
96458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96459
96460         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96461         `checking whether...' message to be consistent with that of the
96462         lstat test.
96463
96464 2000-06-18  Jim Meyering  <meyering@lucent.com>
96465
96466         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96467         Besides, these days every porting target provides a mkdir function.
96468
96469         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96470         needed. (this snippet comes from src/system.h).
96471
96472 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96473
96474         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96475
96476 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96477
96478         * lib/human.c (adjust_value): New function.
96479         (human_readable_inexact): Apply rounding style even when
96480         printing approximate values.
96481
96482 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96483
96484         * lib/human.c (human_readable_inexact): Allow an input block
96485         size that is not a multiple of the output block size, and vice versa.
96486         Reported by Piergiorgio Sartor.
96487
96488 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96489
96490         * lib/getdate.y (get_date): Apply relative times after time
96491         zone indicator, not before.  Reported by Todd A. Jacobs.
96492
96493 2000-06-13  Jim Meyering  <meyering@lucent.com>
96494
96495         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96496
96497         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96498
96499 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96500
96501         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96502
96503 2000-06-12  Jim Meyering  <meyering@lucent.com>
96504
96505         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96506         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96507         optional argument.
96508         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96509         the optional argument, `lib'.
96510
96511 2000-06-08  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96514
96515 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96516
96517         Rewrite largefile configuration so that we don't need to run
96518         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96519         AC_CANONICAL_HOST in configure.in -- jmm]
96520
96521         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96522         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96523         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96524         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96525         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96526         All uses changed.
96527         Instead of inspecting the output of getconf, try to compile the
96528         test program without and with the macro definition.
96529         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96530         for getconf.  Instead, check for the needed flags by compiling
96531         test programs.
96532
96533 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96534
96535         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96536
96537 2000-06-04  Jim Meyering  <meyering@lucent.com>
96538
96539         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96540         SunOS 4.1.4 for which gid_t is an unsigned type.
96541
96542 2000-06-03  Jim Meyering  <meyering@lucent.com>
96543
96544         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96545         now that autoconf requires that.
96546
96547         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96548         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96549         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96550
96551 2000-06-03  Jim Meyering  <meyering@lucent.com>
96552
96553         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96554
96555 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96556
96557         * m4/glibc21.m4: New file.
96558         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96559
96560 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96561
96562         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96563         newer, don't install charset.alias.
96564         * lib/config.charset: Change the Linux/glibc rules so they become empty
96565         on glibc-2.1 or newer.
96566
96567 2000-06-02  Jim Meyering  <meyering@lucent.com>
96568
96569         * lib/mountlist.c: Back out last change.  Instead, do this...
96570         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96571         me_dummy member using the same `ignore'-testing code.
96572         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96573         fs_type strings.
96574         From Mark D. Roth.
96575
96576 2000-05-29  Jim Meyering  <meyering@lucent.com>
96577
96578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96579         mounts with the `ignore' attribute.  Based on a patch from
96580         Mark D. Roth.
96581
96582 2000-05-28  Jim Meyering  <meyering@lucent.com>
96583
96584         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96585         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96586         * m4/stat.m4: Likewise.
96587         * m4/lstat.m4: Likewise.
96588         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96589
96590         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96591         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96592
96593 2000-05-26  Jim Meyering  <meyering@lucent.com>
96594
96595         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96596
96597 2000-05-24  Jim Meyering  <meyering@lucent.com>
96598
96599         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96600         autoconf requires that.
96601         * m4/lib-check.m4: Likewise.
96602         * m4/jm-macros.m4: Likewise.
96603         * m4/strftime.m4: Likewise.
96604
96605         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96606         AC_CHECK_DECLS, now that autoconf requires that.
96607
96608 2000-05-22  Jim Meyering  <meyering@lucent.com>
96609
96610         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96611         * m4/lstat.m4: Likewise.
96612
96613 2000-05-22  Jim Meyering  <meyering@lucent.com>
96614
96615         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96616
96617 2000-05-20  Jim Meyering  <meyering@lucent.com>
96618
96619         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96620         (jm_PREREQ): Use it.
96621
96622 2000-05-18  Jim Meyering  <meyering@lucent.com>
96623
96624         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96625         back, too, since it may have been modified by allocate_entry.
96626         (hash_delete): Rewrite to use neither the assignment operator
96627         nor the comma operator in an if-expression.
96628
96629 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96630
96631         * lib/closeout.c:
96632         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96633         Remove; no longer needed.
96634         "quotearg.h": Add include.
96635         (file_name): Do not bother to explicitly initialize to NULL; it's less
96636         efficient on some hosts.
96637         (close_stdout_status): Remove test as to whether stdout was already
96638         closed; it breaks for the case "echo x | sort >&-".
96639         Quote file name colons.
96640         Do not assume that _("write error") lacks format strings.
96641
96642 2000-05-15  Jim Meyering  <meyering@lucent.com>
96643
96644         * lib/version-etc.c (version_etc_copyright): Update the copyright
96645         string used in all --version output.
96646
96647 2000-05-14  Jim Meyering  <meyering@lucent.com>
96648
96649         * lib/closeout.c (close_stdout_set_file_name): New function.
96650         (close_stdout_status): Use new file-scoped global.
96651         Return right away if fstat says the stdout file descriptor is invalid.
96652         * lib/closeout.h (close_stdout_set_file_name): Declare.
96653
96654 2000-05-10  Jim Meyering  <meyering@lucent.com>
96655
96656         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96657         (close_stdout_set_status): New function.
96658         * lib/closeout.h (close_stdout_set_status): Declare.
96659
96660 2000-05-09  Jim Meyering  <meyering@lucent.com>
96661
96662         * m4/gettext.m4: Rename this...
96663         * m4/libintl.m4: ...to this.
96664
96665 2000-05-08  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/long-options.c: Don't include closeout.h.
96668         (parse_long_options): Don't call close_stdout for --version.
96669
96670 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96671
96672         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96673         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96674         2.1.3 bug.  This avoids a clash when files like regex.c define
96675         _GNU_SOURCE.
96676
96677 2000-05-06  Jim Meyering  <meyering@lucent.com>
96678
96679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96680         (AC_REPLACE_FUNCS): Add strnlen.
96681
96682         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96683         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96684
96685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96686         AC_SEARCH_LIBS call for nanosleep.
96687         (LIB_NANOSLEEP): Set and AC_SUBST.
96688
96689 2000-05-06  Jim Meyering  <meyering@lucent.com>
96690
96691         * lib/strnlen.c: Undefine __strnlen and strnlen.
96692         [!weak_alias]: Define __strnlen to strnlen.
96693
96694         * lib/atexit.c: New file, from libiberty.
96695
96696 2000-05-06  Jim Meyering  <meyering@lucent.com>
96697
96698         * lib/closeout.c (close_stdout_status): Also check for errors on the
96699         stderr stream.
96700
96701 2000-05-05  Jim Meyering  <meyering@lucent.com>
96702
96703         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96704         AC_SEARCH_LIBS call for clock_gettime.
96705         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96706
96707         * m4/search-libs.m4: Update from autoconf.
96708
96709         su doesn't work on Solaris 2.6.
96710         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96711         <shadow.h>.  Reported by Dragos Harabor.
96712
96713 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96714
96715         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96716         memcpy instead of xmalloc, xrealloc, path_concat.
96717         (locale_charset): Treat empty environment variables as absent.
96718         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96719
96720 2000-05-04  Jim Meyering  <meyering@lucent.com>
96721
96722         * lib/getopt.c: Update from glibc.
96723         * lib/obstack.c: Likewise.
96724         * lib/obstack.h: Likewise.
96725         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96726         file
96727
96728         * lib/regex.h: Likewise.
96729         * lib/strndup.c: Likewise.
96730         * lib/strnlen.c: New file, from glibc.
96731
96732 2000-05-03  Jim Meyering  <meyering@lucent.com>
96733
96734         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96735
96736 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96737
96738         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96739         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96740         compile-time test, rather than inspecting host and OS, to
96741         decide whether to define _LARGEFILE_SOURCE.
96742
96743 2000-05-01  Jim Meyering  <meyering@lucent.com>
96744
96745         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96746
96747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96748         Based on a patch from Bruno Haible.
96749
96750 2000-05-01  Jim Meyering  <meyering@lucent.com>
96751
96752         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96753
96754 2000-04-29  Jim Meyering  <meyering@lucent.com>
96755
96756         * lib/path-concat.c: Declare strdup only if it's not defined.
96757         * lib/canon-host.c: Likewise.
96758
96759 2000-04-28  Jim Meyering  <meyering@lucent.com>
96760
96761         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96762         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96763         is included first, then limits.h is included by locale.h by libintl.h.
96764         From John David Anglin.
96765
96766 2000-04-25  Jim Meyering  <meyering@lucent.com>
96767
96768         * lib/makepath.c (S_IRWXUGO): Define.
96769         (make_path): Always perform explicit chmod if MODE specifies any
96770         of the `special' permission bits.  Prompted by a bug report against
96771         install from Mate Wierdl and Joost van Baal.
96772
96773 2000-04-18  Jim Meyering  <meyering@lucent.com>
96774
96775         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96776         (jm_PREREQ): Use it.
96777
96778 2000-04-18  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/README: New file.
96781
96782         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96783         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96784
96785 2000-04-17  Jim Meyering  <meyering@lucent.com>
96786
96787         Get it right :-)
96788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96789         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96790         Suggestion from Akim Demaille.
96791
96792 2000-04-17  Jim Meyering  <meyering@lucent.com>
96793
96794         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96795         the definition of it to rpl_strftime also defined-away the system's
96796         declaration.
96797
96798 2000-04-15  Jim Meyering  <meyering@lucent.com>
96799
96800         Use `C' to denote so-called `contiguous' files, the same way
96801         that tar does.
96802         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96803         (ftypelet): Use S_ISCTG.
96804         From Michael Deutschmann.
96805
96806 2000-04-14  Jim Meyering  <meyering@lucent.com>
96807
96808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96809         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96810         clobbered.
96811
96812 2000-04-14  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96815
96816 2000-04-13  Jim Meyering  <meyering@lucent.com>
96817
96818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96819         AH_VERBATIM to insert required #ifndef into config.h.in.
96820         Suggestion from Akim Demaille.
96821
96822 2000-04-12  Jim Meyering  <meyering@lucent.com>
96823
96824         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96825         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96826         Christian Krackowizer.
96827
96828         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96829         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96830         (AC_SYS_LARGEFILE): Require.
96831         (AM_C_PROTOTYPES): Require.
96832
96833 2000-04-08  Jim Meyering  <meyering@lucent.com>
96834
96835         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96836         names don't conflict.  Reported by Eli Zaretskii.
96837
96838 2000-04-07  Jim Meyering  <meyering@lucent.com>
96839
96840         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96841         sys/types.h, to work around system header problems on AIX 3.2.5.
96842         From Bruno Haible.
96843
96844 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96845
96846         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96847         bug.  Deal with the different error behavior of Irix iconv.
96848
96849 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96850
96851         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96852         IRIX if the installer said otherwise.
96853
96854 2000-04-05  Jim Meyering  <meyering@lucent.com>
96855
96856         Portability tweaks required for ultrix4.3.
96857         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96858         (jm_CHECK_DECLS): Add getutent to the list of functions.
96859         (_jm_DECL_HEADERS): Add utmpx.h.
96860         From John David Anglin.
96861
96862         * m4/strftime.m4: Back out the 2000-04-02 change.
96863         Instead of that change, simply undefine putenv in the test program.
96864
96865 2000-04-05  Jim Meyering  <meyering@lucent.com>
96866
96867         Portability tweaks required for ultrix4.3.
96868         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96869         getutent.
96870         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96871         * lib/canon-host.c: Declare strdup.
96872         * lib/path-concat.c: Likewise.
96873         From John David Anglin.
96874
96875 2000-04-04  Jim Meyering  <meyering@lucent.com>
96876
96877         Be more DOS 8.3-friendly.
96878         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96879         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96880         * lib/Makefile.am: Reflect renaming.
96881         Reported by Eli Zaretskii.
96882
96883         Use a temporary file name that won't clash with `charset.alias'
96884         in the DOS 8.3 name space.
96885         * lib/Makefile.am (charset_tmp): Define.
96886         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96887         (uninstall-local): Likewise.
96888         Reported by Eli Zaretskii.
96889
96890 2000-04-03  Jim Meyering  <meyering@lucent.com>
96891
96892         * m4/gettext.m4: Fix typo in comment.
96893
96894         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96895         textutils/configure.in).  Suggestion from Paul Eggert.
96896         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96897
96898 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96899
96900         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96901         variable in the shell rather than using putenv, which isn't
96902         portable.  This avoids the configure-time inter-test dependency
96903         on the potentially-renamed putenv function.
96904
96905 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96906
96907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96908         before checking struct stat.st_blksize, so that
96909         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96910
96911 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96912
96913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96914         since strftime.c uses HAVE_STRFTIME to decide whether to use
96915         the underlying strftime.
96916
96917 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96918
96919         * lib/time/strftime.c (my_strftime): Make sure we call the system
96920         strftime, not ourselves, when invoking the underlying strftime.
96921
96922 2000-03-24  Jim Meyering  <meyering@lucent.com>
96923
96924         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96925         (charset_alias): Define.
96926         (install-exec-local): Factor out common code.
96927         (uninstall-local): Split lines longer than 80.
96928         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96929         (SUFFIXES): Define.
96930         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96931         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96932
96933 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96934
96935         * lib/config.charset: Output a line containing "Packages using this
96936         file".
96937         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96938         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96939         ref-del.sed): New rules.
96940
96941 2000-03-17  Jim Meyering  <meyering@lucent.com>
96942
96943         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96944         Otherwise, include <strings.h>
96945
96946 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96947
96948         * lib/unicodeio.c (utf8_wctomb): New function.
96949         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96950         format instead of in UCS-4 with platform dependent endianness.
96951
96952 2000-03-10  Jim Meyering  <meyering@lucent.com>
96953
96954         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96955         From Marco Franzen.
96956
96957 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96958
96959         * lib/savedir.c (savedir): Work even if directory size is
96960         negative; this can happen with some screwy NFS configurations.
96961
96962 2000-03-06  Jim Meyering  <meyering@lucent.com>
96963
96964         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96965         if it's NULL (because we ran out of memory).  From Bruno Haible.
96966
96967 2000-03-05  Jim Meyering  <meyering@lucent.com>
96968
96969         * lib/localcharset.c ("path-concat.h"): Include.
96970         (get_charset_aliases): Use path_concat instead of ANSI string
96971         concatenation.
96972
96973         * lib/unicodeio.h (PARAMS): Define.
96974         Use it to guard prototype.
96975
96976 2000-03-04  Jim Meyering  <meyering@lucent.com>
96977
96978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96979         for lib/localcharset.c.
96980
96981 2000-03-04  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96984         installing into it.
96985         (uninstall-local): Uncomment this rule so `make distcheck' works
96986         once again.
96987
96988         * lib/unicodeio.c (<errno.h>): Include it.
96989         (errno): Declare if not defined.
96990
96991         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96992
96993         * lib/config.charset: New version, incorporating remarks from a linux
96994         i18n mailing list.  From Bruno Haible.
96995
96996 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96997
96998         * m4/codeset.m4: New file.
96999         * m4/iconv.m4: New file.
97000         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97001
97002 2000-03-03  Jim Meyering  <meyering@lucent.com>
97003
97004         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97005
97006 2000-03-02  Jim Meyering  <meyering@lucent.com>
97007
97008         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97009         the messages come out on separate lines.
97010
97011         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97012         rather than jm_CHECK_DECLARATIONS.
97013         * m4/decl.m4: Remove now-unused file.
97014
97015         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97016         geteuid.
97017
97018 2000-03-02  Jim Meyering  <meyering@lucent.com>
97019
97020         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97021
97022 2000-03-01  Jim Meyering  <meyering@lucent.com>
97023
97024         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97025         * lib/unicodeio.c: Likewise.
97026
97027 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97028
97029         * lib/config.charset: New file.
97030         * lib/localcharset.c: New file.
97031         * lib/unicodeio.h, lib/unicodeio.c: New files.
97032         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97033         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97034         (noinst_HEADERS): Add unicodeio.h.
97035         (all-local, install-exec-local, charset.alias): New targets.
97036
97037 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97038
97039         * lib/quotearg.c (ALERT_CHAR): New macro.
97040         (quotearg_buffer_restyled): Use it.
97041
97042 2000-02-27  Jim Meyering  <meyering@lucent.com>
97043
97044         * m4/check-decl.m4: Add getenv to the list.
97045
97046 2000-02-27  Jim Meyering  <meyering@lucent.com>
97047
97048         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97049         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97050
97051         * lib/backupfile.c: Guard inclusion of stdlib.h with
97052         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97053         Declare malloc if needed.
97054
97055         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97056         `#ifndef HAVE_DECL..'
97057         now that autoconf always defines the HAVE_DECL_ symbols.
97058         * lib/human.c: Likewise.
97059         * lib/same.c: Likewise.
97060         * lib/strtoumax.c: Likewise.
97061
97062         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97063         declaration check was not run.
97064         * lib/hash.c: Likewise.
97065         * lib/human.c: Likewise.
97066         * lib/same.c: Likewise.
97067         * lib/strtoumax.c: Likewise.
97068
97069         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97070         `.', then first look up the entire `.'-containing string as a login
97071         name.
97072
97073 2000-02-23  Jim Meyering  <meyering@lucent.com>
97074
97075         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97076         in place of my hack.
97077
97078 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97079
97080         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97081         (textint): New typedef.
97082         (parser_control): Member year changed from int to textint.
97083         All uses changed.
97084         (YYSTYPE): Removed; replaced by %union with int and textint members.
97085         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97086         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97087         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97088         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97089         (date, number, to_year): Use width of number in digits, not its value,
97090         to determine whether it's a 2-digit year, or a 2-digit time.
97091         (yylex): Store number of digits of numeric tokens.
97092         Reported by John Kendall.
97093
97094         (parser_control): Changed from struct parser_control to typedef (for
97095         consistency).  All uses changed.
97096
97097         (tID): Removed; not used.
97098         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97099
97100 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97101
97102         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97103         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97104
97105 2000-02-12  Jim Meyering  <meyering@lucent.com>
97106
97107         * lib/userspec.c (ISDIGIT): Define it.
97108         (isdigit): Remove definition.
97109         (is_number): Use ISDIGIT, not isdigit.
97110         <libintl.h>: Include.
97111         (_ and N_): Define.
97112         (parse_user_spec): Mark translatable strings.
97113
97114 2000-02-10  Jim Meyering  <meyering@lucent.com>
97115
97116         With these changes, nanosleep.[ch] are finally enough like the other
97117         lib/* replacement files to compile on a few more losing systems.
97118
97119         * lib/nanosleep.h: Don't include config.h.
97120         Remove prototype from declaration of nanosleep.
97121         (PARAMS): Remove now-unneeded definition.
97122         * lib/nanosleep.c: #undef nanosleep.
97123         (rpl_nanosleep): Rename from nanosleep.
97124
97125 2000-02-10  Jim Meyering  <meyering@lucent.com>
97126
97127         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97128         gnu_nanosleep to rpl_nanosleep.
97129
97130 2000-02-09  Jim Meyering  <meyering@lucent.com>
97131
97132         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97133         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97134
97135 2000-02-08  Akim Demaille  <akim@epita.fr>
97136
97137         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97138         `[' and `]' and remove uses of `changequote'.
97139         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97140         (AC_SYS_LARGEFILE): Likewise.
97141         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97142         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97143         of changequote.
97144         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97145         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97146         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97147         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97148
97149 2000-02-05  Jim Meyering  <meyering@lucent.com>
97150
97151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97152         Remove explicit use of AC_HEADER_TIME.  It is required by
97153         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97154         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97155         in autoconf whereby the expansion of the latter ended up preceding
97156         the expansion of its prerequisite, AC_HEADER_TIME.
97157         Reported by Volker Borchert.
97158
97159 2000-02-03  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97162
97163 2000-02-03  Jim Meyering  <meyering@lucent.com>
97164
97165         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97166         rather than with `#if HAVE_UTMPNAME'.
97167
97168 2000-02-02  Jim Meyering  <meyering@lucent.com>
97169
97170         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97171         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97172         Reported by Eli Zaretskii.
97173
97174 2000-02-01  Jim Meyering  <meyering@lucent.com>
97175
97176         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97177
97178 2000-01-31  Jim Meyering  <meyering@lucent.com>
97179
97180         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97181         functions.  Add the time.h and sys/time.h headers along with the
97182         AC_REQUIRE'ment of AC_HEADER_TIME.
97183
97184 2000-01-31  Jim Meyering  <meyering@lucent.com>
97185
97186         * lib/nanosleep.h (nanosleep): Guard declaration with
97187         `#if ! HAVE_DECL_NANOSLEEP'.
97188         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97189         the declaration in that vendor's sys/timers.h.
97190         Reported by Christian Krackowizer.
97191
97192         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97193         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97194         (ISPRINT): Likewise.
97195         Reported by Tom Tromey.
97196
97197 2000-01-30  Jim Meyering  <meyering@lucent.com>
97198
97199         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97200
97201         * m4/prereq.m4 (utmp_includes): Define.
97202         Check for ut_user and ut_name members in both struct utmpx
97203         and struct utmp.
97204
97205 2000-01-30  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97208         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97209         header files where only utmpx.ut_user is declared.
97210
97211         * lib/readutmp.h (UT_USER): Define.
97212
97213 2000-01-29  Jim Meyering  <meyering@lucent.com>
97214
97215         * m4/lib-check.m4: New file containing library-related checks from
97216         fileutils and sh-utils (textutils had none).
97217
97218 2000-01-28  Jim Meyering  <meyering@lucent.com>
97219
97220         * m4/perl.m4: Change format of warning message to look more like that
97221         from the missing script.  Suggestion from François Pinard.
97222
97223 2000-01-25  Jim Meyering  <meyering@lucent.com>
97224
97225         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97226         well as time.h in the compile check.
97227         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97228         Fix typo in cross-compiling case: s/yes/no/.
97229
97230 2000-01-23  Jim Meyering  <meyering@lucent.com>
97231
97232         * m4/jm-macros.m4: Move df-related tests here from
97233         fileutils/configure.in
97234
97235         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97236         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97237
97238         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97239         s/space/ac_fsusage_space/.
97240         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97241
97242         * m4/ftruncate.m4: New file (derived from part of
97243         fileutils/configure.in).
97244         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97245         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97246
97247         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97248         AC_SUBST these here, rather than just in sh-util/configure.in, so
97249         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97250         all the same.
97251         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97252         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97253         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97254         (AC_SUBST(POW_LIBM)): Likewise.
97255         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97256
97257 2000-01-23  Jim Meyering  <meyering@lucent.com>
97258
97259         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97260         obstack.c.
97261
97262 2000-01-22  Jim Meyering  <meyering@lucent.com>
97263
97264         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97265
97266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97267
97268         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97269         configure.in
97270         (AC_CHECK_HEADERS): Likewise for sh-utils.
97271         (AC_CHECK_HEADERS): Likewise for textutils.
97272         Merge the three lists of headers.
97273
97274         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97275         from fileutils' configure.in.
97276
97277         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97278         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97279         check-decl.m4.
97280
97281         * m4/check-decl.m4: Use #if rather than #ifdef.
97282         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97283         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97284         (_jm_DECL_HEADERS): Define new function.
97285         (jm_CHECK_DECLARATIONS): Require it.
97286
97287 2000-01-22  Jim Meyering  <meyering@lucent.com>
97288
97289         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97290         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97291         Required for some AIX systems.  Reported by Christian Krackowizer.
97292         [TESTING] (main): New function.
97293
97294         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97295         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97296         letters.
97297
97298         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97299         iswprint.
97300
97301         * lib/strverscmp.c (ISDIGIT): Define.
97302         (strverscmp): Use ISDIGIT, not isdigit.
97303
97304 2000-01-19  Jim Meyering  <meyering@lucent.com>
97305
97306         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97307         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97308         defines `struct timespec' in <sys/time.h>
97309
97310         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97311         Thanks to Akim for explaining.
97312
97313 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97314
97315         * lib/nanosleep.c (nanosleep):
97316         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97317         POSIX.1 doesn't require SA_INTERRUPT and some systems
97318         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97319         it's been part of POSIX.1 since day 1 (in 1988).
97320
97321 2000-01-17  Jim Meyering  <meyering@lucent.com>
97322
97323         * lib/interlock: Remove unused file.  Reported by François Pinard.
97324
97325 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97326
97327         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97328         alert, backslash, formfeed, and vertical tab unnecessarily in
97329         shell quoting style.
97330
97331 2000-01-16  Jim Meyering  <meyering@lucent.com>
97332
97333         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97334         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97335         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97336         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97337
97338 2000-01-16  Jim Meyering  <meyering@lucent.com>
97339
97340         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97341         because the latter didn't work.
97342
97343 2000-01-15  Jim Meyering  <meyering@lucent.com>
97344
97345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97346         (AC_REPLACE_FUNCS): Add memcpy and memset.
97347         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97348         Add strpbrk.
97349         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97350
97351 2000-01-12  Jim Meyering  <meyering@lucent.com>
97352
97353         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97354         (jm_PREREQ): Use it.
97355         (jm_PREREQ_READUTMP): New macro.
97356         (jm_PREREQ): Use it.
97357
97358 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97359
97360         Quote multibyte characters correctly.
97361         * m4/c-bs-a.m4: New file.
97362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97363         (jm_PREREQ): Use it.
97364
97365 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97366
97367         * m4/uintmax_t.m4: Port to autoconf 2.13.
97368
97369 2000-01-08  Jim Meyering  <meyering@ascend.com>
97370
97371         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97372         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97373
97374 2000-01-04  Jim Meyering  <meyering@ascend.com>
97375
97376         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97377         jm_STRUCT_DIRENT_D_TYPE.
97378         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97379         jm_STRUCT_DIRENT_D_INO.
97380         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97381         jm_STRUCT_UTIMBUF.
97382         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97383         renamings.
97384         * m4/utime.m4: Likewise.
97385
97386         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97387         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97388
97389 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97390
97391         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97392         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97393
97394 2000-01-02  Jim Meyering  <meyering@ascend.com>
97395
97396         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97397         remember if this is necessary.
97398
97399 1999-12-26  Jim Meyering  <meyering@ascend.com>
97400
97401         * m4/jm-macros.m4: Use it here.
97402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97403
97404 1999-12-23  Jim Meyering  <meyering@ascend.com>
97405
97406         * m4/jm-macros.m4: Check for clock_gettime (moved from
97407         fileutils/configure.in)
97408         Check for gettimeofday.
97409
97410 1999-12-20  Jim Meyering  <meyering@ascend.com>
97411
97412         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97413         autoconf-2.14a-1999-12-20.
97414
97415 1999-12-19  Jim Meyering  <meyering@ascend.com>
97416
97417         * m4/lstat-slash.m4: New file.
97418         * m4/jm-macros.m4: Use the new macro:
97419         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97420
97421 1999-12-07  Jim Meyering  <meyering@ascend.com>
97422
97423         * m4/perl.m4: Require that File::Compare be available, too.
97424         Too many systems seem to lack it.
97425
97426         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97427         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97428
97429 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97430
97431         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97432         problem with the QNX 4.25 shell, which doesn't propagate exit
97433         status of failed commands inside shell assignments.
97434
97435 1999-11-17  Jim Meyering  <meyering@ascend.com>
97436
97437         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97438
97439 1999-11-07  Jim Meyering  <meyering@ascend.com>
97440
97441         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97442
97443 1999-11-06  Jim Meyering  <meyering@ascend.com>
97444
97445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97446         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97447
97448 1999-11-05  Jim Meyering  <meyering@ascend.com>
97449
97450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97451         configure.in of textutils, fileutils, and sh-utils into this one
97452         (shared between those packages) file.
97453         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97454         AC_STRUCT_ST_BLKSIZE.
97455
97456 1999-11-03  Jim Meyering  <meyering@ascend.com>
97457
97458         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97459         of AC_CHECK_TYPE checks includes unistd.h.
97460         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97461         Suggestion from Akim Demaille.
97462
97463 1999-10-30  Jim Meyering  <meyering@ascend.com>
97464
97465         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97466         m4-quoted string.
97467         * m4/ls-mntd-fs.m4: Likewise.
97468         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97469         * m4/jm-winsz1.m4: Likewise.
97470
97471         * m4/const.m4: Remove file, since the fix made it into the experimental
97472         version of autoconf.
97473         * m4/mktime.m4: Likewise.
97474
97475         * m4/check-type.m4: Remove file, now that the latest version of
97476         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97477
97478         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97479         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97480         AC_CHECK_TYPE.
97481
97482 1999-10-04  Jim Meyering  <meyering@ascend.com>
97483
97484         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97485
97486 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97487
97488         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97489         2.95.1 bug with HP-UX 10.20.
97490
97491 1999-09-17  Jim Meyering  <meyering@ascend.com>
97492
97493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97494         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97495         due to missing strdup (against sh-utils-2.0).
97496
97497 1999-08-29  Jim Meyering  <meyering@ascend.com>
97498
97499         * m4/jm-macros.m4: Require jm_BISON.
97500         * m4/bison.m4: New file.
97501
97502 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97503
97504         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97505         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97506
97507 1999-08-05  Jim Meyering  <meyering@ascend.com>
97508
97509         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97510         to avoid conflicts with `conftest' on 8+3 filesystems.
97511         Suggestion from Eli Zaretskii.
97512
97513 1999-08-04  Jim Meyering  <meyering@ascend.com>
97514
97515         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97516         fileutils and sh-utils (textutils's getline test was inadequate).
97517         (AM_FUNC_GETLINE): Run this test.
97518         (AC_CHECK_FUNCS): Check for getdelim.
97519         Reported by Bob Proulx.
97520
97521 1999-08-02  Jim Meyering  <meyering@ascend.com>
97522
97523         * m4/jm-macros.m4: Add a comment.
97524
97525 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97526
97527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97528         <inttypes.h> defines strtoumax as a macro (and not as a
97529         function).
97530
97531 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97532
97533         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97534         that we can shift, multiply and divide unsigned long long
97535         values; Ultrix cc can't do it.
97536
97537 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97538
97539         * m4/mktime.m4: New file, which is a preview of what should appear
97540         in the next public autoconf release.
97541
97542 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97543
97544         * m4/lfs.m4: Remove this file.
97545         * m4/largefile.m4: New file.  It contains the old contents of
97546         lfs.m4, except that all names with prefix AC_LFS have been
97547         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97548         compatible with future autoconf versions.  Also, some minor m4
97549         quoting problems have been fixed.
97550
97551 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97552
97553         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97554         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97555         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97556         and simplify the shell code.
97557
97558 1999-08-01  Jim Meyering  <meyering@ascend.com>
97559
97560         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97561         m4.
97562
97563 1999-07-20  Jim Meyering  <meyering@ascend.com>
97564
97565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97566
97567 1999-07-15  Jim Meyering  <meyering@ascend.com>
97568
97569         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97570
97571 1999-05-22  Jim Meyering  <meyering@ascend.com>
97572
97573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97574
97575 1999-05-20  Jim Meyering  <meyering@ascend.com>
97576
97577         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97578         Add a colon after each `then' in case $4 is empty.
97579
97580 1999-05-16  Jim Meyering  <meyering@ascend.com>
97581
97582         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97583
97584 1999-05-10  Jim Meyering  <meyering@ascend.com>
97585
97586         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97587
97588         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97589         AC_FUNC_MKTIME.
97590
97591 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97592
97593         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97594
97595 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97596
97597         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97598         not CPPFLAGS, so that linking works correctly in IRIX.
97599
97600 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97601
97602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97603
97604 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97605
97606         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97607         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97609         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97610         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97611
97612         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97613
97614 1999-04-20  Jim Meyering  <meyering@ascend.com>
97615
97616         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97617         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97618         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97619
97620 1999-04-18  Jim Meyering  <meyering@ascend.com>
97621
97622         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97623         * m4/jm-macros.m4: Use it.
97624
97625 1999-04-06  Jim Meyering  <meyering@ascend.com>
97626
97627         * m4/strftime.m4: Remove test for %f.
97628
97629 1999-03-29  Jim Meyering  <meyering@ascend.com>
97630
97631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97632         superset of the AC_TYPE_* checks in the textutils, fileutils,
97633         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97634         AC_TYPE_PID_T.
97635
97636 1999-03-28  Jim Meyering  <meyering@ascend.com>
97637
97638         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97639         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97640         replaced e.g., in the *.sh files of the sh-utils.
97641
97642 1999-03-20  Jim Meyering  <meyering@ascend.com>
97643
97644         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97645         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97646         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97647
97648 1999-03-19  Jim Meyering  <meyering@ascend.com>
97649
97650         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97651
97652 1999-03-12  Jim Meyering  <meyering@ascend.com>
97653
97654         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97655
97656 1999-03-07  Jim Meyering  <meyering@ascend.com>
97657
97658         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97659         declared.
97660
97661 1999-02-17  Jim Meyering  <meyering@ascend.com>
97662
97663         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97664         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97665
97666 1999-02-07  Jim Meyering  <meyering@ascend.com>
97667
97668         * m4/group-member.m4: New file -- extracted from sh-utils'
97669         configure.in.
97670
97671         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97672         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97673
97674 1999-02-06  Jim Meyering  <meyering@ascend.com>
97675
97676         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97677         * m4/fnmatch.m4: Likewise.
97678         * m4/getgroups.m4: Likewise.
97679         * m4/lstat.m4: Likewise.
97680         * m4/malloc.m4: Likewise.
97681         * m4/putenv.m4: Likewise.
97682         * m4/realloc.m4: Likewise.
97683         * m4/regex.m4: Likewise.
97684         * m4/stat.m4: Likewise.
97685         * m4/strftime.m4: Likewise.
97686         Suggestion from Alain Magloire.
97687
97688         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97689         * m4/fnmatch.m4: Likewise.
97690         * m4/getgroups.m4: Likewise.
97691         * m4/getline.m4: Likewise.
97692         * m4/lstat.m4: Likewise.
97693         * m4/malloc.m4: Likewise.
97694         * m4/memcmp.m4: Likewise.
97695         * m4/putenv.m4: Likewise.
97696         * m4/realloc.m4: Likewise.
97697         * m4/regex.m4: Likewise.
97698         * m4/stat.m4: Likewise.
97699         * m4/strftime.m4: Likewise.
97700         Suggestion from Alain Magloire.
97701
97702         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97703         an argument.
97704
97705         * m4/regex.m4: Add a run-time Test for proper operation of
97706         re_compile_pattern.
97707
97708 1999-01-31  Jim Meyering  <meyering@ascend.com>
97709
97710         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97711
97712 1999-01-30  Jim Meyering  <meyering@ascend.com>
97713
97714         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97715
97716         * m4/jm-mktime.m4: Make this a wrapper around the official
97717         AM_FUNC_MKTIME rather than my private copy, now that the official one
97718         is up to date.
97719         * m4/mktime.m4: Remove file.
97720
97721         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97722         * m4/uptime.m4: Likewise.
97723         * m4/uintmax_t.m4: Likewise.
97724
97725 1999-01-28  Jim Meyering  <meyering@ascend.com>
97726
97727         * m4/jm-macros.m4: Use jm_AFS.
97728         * m4/afs.m4: New file (from fileutils' configure.in).
97729
97730         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97731         * m4/chown.m4: Likewise.
97732         * m4/d-ino.m4: Likewise.
97733         * m4/d-type.m4: Likewise.
97734         * m4/fnmatch.m4: Likewise.
97735         * m4/getgroups.m4: Likewise.
97736         * m4/gettext.m4: Likewise.
97737         * m4/jm-mktime.m4: Likewise.
97738         * m4/jm-winsz2.m4: Likewise.
97739         * m4/lcmessage.m4: Likewise.
97740         * m4/ls-mntd-fs.m4: Likewise.
97741         * m4/malloc.m4: Likewise.
97742         * m4/memcmp.m4: Likewise.
97743         * m4/putenv.m4: Likewise.
97744         * m4/realloc.m4: Likewise.
97745         * m4/st_mtim.m4: Likewise.
97746         * m4/strftime.m4: Likewise.
97747
97748 1999-01-16  Jim Meyering  <meyering@ascend.com>
97749
97750         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97751         (ARGMATCH_DIE_DECL): Define.
97752
97753 1999-01-12  Jim Meyering  <meyering@ascend.com>
97754
97755         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97756         Reported by Lars Hecking.
97757
97758 1999-01-10  Jim Meyering  <meyering@ascend.com>
97759
97760         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97761         gross kludge.
97762         * m4/inttypes_h.m4: Likewise.
97763         * m4/lstat.m4: Likewise.
97764         * m4/malloc.m4: Likewise.
97765         * m4/readdir.m4: Likewise.
97766         * m4/realloc.m4: Likewise.
97767         * m4/st_dm_mode.m4: Likewise.
97768         * m4/stat.m4: Likewise.
97769         * m4/utimbuf.m4: Likewise.
97770         * m4/utimes.m4: Likewise.
97771
97772         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97773         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97774         comments in config.h.in are meaningful.
97775
97776         * m4/jm-macros.m4: Require autoconf-2.13 here.
97777
97778         * m4/regex.m4: By default, don't use the included regex.c on systems
97779         with glibc 2.  Suggestion from Uli Drepper.
97780
97781 1999-01-02  Jim Meyering  <meyering@ascend.com>
97782
97783         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97784
97785 1998-12-18  Jim Meyering  <meyering@ascend.com>
97786
97787         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97788         Based on a suggestion from Lars Hecking.
97789
97790 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97791
97792         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97793
97794 1998-11-16  Jim Meyering  <meyering@ascend.com>
97795
97796         * m4/lfs.m4: Double-quote the `uname...` expression.
97797
97798 1998-11-14  Jim Meyering  <meyering@ascend.com>
97799
97800         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97801         * m4/stat.m4: Likewise.
97802
97803 1998-11-03  Jim Meyering  <meyering@ascend.com>
97804
97805         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97806         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97807
97808 1998-10-18  Jim Meyering  <meyering@ascend.com>
97809
97810         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97811
97812 1998-10-17  Jim Meyering  <meyering@ascend.com>
97813
97814         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97815         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97816         calls for those previously hard-coded headers.  Instead, take a new
97817         parameter.
97818         (jm_CHECK_DECLARATIONS): Reflect interface change.
97819         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97820         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97821
97822         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97823
97824 1998-10-14  Jim Meyering  <meyering@ascend.com>
97825
97826         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97827         instead of "TZ=America/Vancouver".  From Paul Eggert.
97828
97829 1998-10-11  Jim Meyering  <meyering@ascend.com>
97830
97831         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97832         This adds a test for a recently added compatibility fix for mktime.c.
97833         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97834
97835 1998-09-27  Jim Meyering  <meyering@ascend.com>
97836
97837         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97838
97839         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97840         ../configure.in, including a change from Gordon Matzigkeit to allow
97841         cross-compiling for the Hurd.
97842
97843         * m4/glibc.m4: New file/macro to test for the GNU C Library
97844         versions 1 and 2.  From Gordon Matzigkeit.
97845         Indent.
97846
97847 1998-09-21  Jim Meyering  <meyering@ascend.com>
97848
97849         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97850
97851 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97852
97853         Port nanosecond-resolution times to UnixWare 2.1.2 and
97854         pedantic Solaris 2.6.
97855
97856         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97857         AC_STRUCT_ST_MTIM.
97858         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97859         Generate name of ns member, instead of just 1 or undef.
97860         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97861
97862 1998-08-15  Jim Meyering  <meyering@ascend.com>
97863
97864         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97865         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97866         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97867         instead of jm_TYPE_SSIZE_T.
97868
97869 1998-08-12  Jim Meyering  <meyering@ascend.com>
97870
97871         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97872
97873 1998-08-02  Jim Meyering  <meyering@ascend.com>
97874
97875         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97876         in acconfig.h manually.
97877
97878 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97879
97880         * m4/st_mtim.m4: New file.
97881
97882 1998-07-28  Jim Meyering  <meyering@ascend.com>
97883
97884         * m4/utimes.m4: Undef stat.
97885
97886 1998-07-25  Jim Meyering  <meyering@ascend.com>
97887
97888         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97889         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97890
97891 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97892
97893         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97894         uid and gid actually remain unchanged.
97895
97896 1998-07-07  Jim Meyering  <meyering@ascend.com>
97897
97898         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97899
97900 1998-07-04  Jim Meyering  <meyering@ascend.com>
97901
97902         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97903         to prove that this macro can be used in packages without regex.c.
97904
97905 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97906
97907         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97908         is to be used.
97909
97910 1998-07-03  Jim Meyering  <meyering@ascend.com>
97911
97912         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97913
97914         * m4/gettext.m4: New file -- from gettext-0.10.35.
97915         * m4/lcmessage.m4: Likewise.
97916         * m4/progtest.m4: Likewise.
97917
97918         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97919         * m4/jm-macros.m4: Require the new macro.
97920
97921 1998-06-29  Jim Meyering  <meyering@ascend.com>
97922
97923         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97924         for the definition of NGROUPS (used in a system header included
97925         by sys/mount.h).
97926
97927 1998-06-28  Jim Meyering  <meyering@ascend.com>
97928
97929         * m4/ls-mntd-fs.m4: New file.
97930         * m4/fstypename.m4: New file.
97931
97932         * m4/jm-macros.m4: Require the new macro.
97933         * m4/jm-glibc-io.m4: New file.
97934
97935 1998-05-19  Jim Meyering  <meyering@ascend.com>
97936
97937         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97938         * m4/lchown.m4: New file.
97939
97940         * m4/Makefile.am.in: New file.
97941         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97942
97943 1998-05-14  Jim Meyering  <meyering@ascend.com>
97944
97945         * m4/Makefile.am (EXTRA_DIST): Add them.
97946         * m4/jm-macros.m4: New file.
97947         * m4/utimbuf.m4: New file.
97948
97949 1998-05-12  Jim Meyering  <meyering@ascend.com>
97950
97951         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97952
97953 1998-05-11  Jim Meyering  <meyering@ascend.com>
97954
97955         * m4/isc-posix.m4: New file.
97956
97957 1998-05-10  Jim Meyering  <meyering@ascend.com>
97958
97959         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97960
97961 1998-05-09  Jim Meyering  <meyering@ascend.com>
97962
97963         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97964         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97965         with automake.
97966
97967         * m4/ssize_t.m4: New file.
97968         * m4/mktime.m4: Remove file -- the new automake has this now.
97969
97970 1998-04-26  Jim Meyering  <meyering@ascend.com>
97971
97972         * m4/assert.m4: New file.
97973         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97974
97975 1998-04-05  Jim Meyering  <meyering@ascend.com>
97976
97977         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97978         (jm_PREREQ): Use it here.
97979
97980 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97981
97982         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97983         in acconfig.h.
97984
97985 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97986
97987         * m4/prereq.m4: New file.
97988         * m4/error.m4: New file.
97989         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97990
97991 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97992
97993         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97994         cache-check for the same variable -- that defeated the purpose of
97995         the test; the test program was never run.  This was a problem only
97996         on systems with losing getline functions -- HP-UX 10.20 is one.
97997         Reported by Bjorn Helgaas.
97998
97999 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98000
98001         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98002
98003 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98004
98005         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98006
98007         * m4/const.m4: New file.  Use an initializer in this declaration
98008         typedef int charset[2]; const charset x;
98009         Reported by Bob Glickstein.
98010
98011 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98012
98013         * m4/chown.m4: Fix reversed types on -1 args to chown.
98014         From Kaveh Ghazi.
98015
98016 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98017
98018         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98019         Add lseek and memchr.
98020
98021         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98022         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98023         have a 20-character limit on names.
98024
98025 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98026
98027         * m4/inttypes_h.m4: New file.
98028         * m4/uintmax_t.m4: New file.
98029         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98030
98031
98032         -----
98033
98034         Local Variables:
98035         coding: utf-8
98036         End:
98037
98038         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98039
98040         Copying and distribution of this file, with or without
98041         modification, are permitted provided the copyright notice
98042         and this notice are preserved.